Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

markerUnits

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

« SVG Attribute reference home

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.

Usage context

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.

Examples

Elements

The following elements can use the markerUnits attribute:

文件標籤與貢獻者

 此頁面的貢獻者: Jeremie, Sheppy
 最近更新: Jeremie,