refX attribute | refX property
Gets the refX attribute on the marker element.
![]() ![]() |
Syntax
| HTML |
|---|
<element refX="p" ... > |
| JavaScript |
|---|
p = object.refX |
Property values
Type: Object
The x-coordinate of the reference point that should be aligned exactly at the marker position.
Standards information
Remarks
The x-coordinate is defined in the coordinate system after viewBox and preserveAspectRatio attributes are applied to the coordinates.
If you do not specify the refX property, the effect is the same as if you specify a value of "0".
See also
- Reference
- SVGMarkerElement
- SVGMarkerElement
- refY
Show:

