The markerUnits
attribute defines the coordinate system for the attributes markerWidth
, markerHeight
and the contents of the <marker>
.
If the markerUnits
attribute is not specified, then the effect is as if a value of strokeWidth
were specified.
Categories | None |
---|---|
Value |
userSpaceOnUse | strokeWidth
|
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
userSpaceOnUse
markerWidth
, markerHeight
and the contents of the <marker>
represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the <marker>
element via a marker
, marker-start
, marker-mid
or marker-end
property).strokeWidth
markerWidth
, markerHeight
and the contents of the <marker>
represent values in a coordinate system which has a single unit equal the size in user units of the current stroke width (see the stroke-width
attribute) in place for the graphic object referencing the marker.The following elements can use the markerUnits
attribute:
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/markerUnits