Parses the input string for a marker unit value, which defines the coordinate system for attributes ‘markerWidth’, ‘ markerHeight’ and the contents of the ‘marker’.
The allowable values are strokeWidth | userSpaceOnUse
Namespace: RSSVGUtils
Delphi |
function ParseMarkerUnit( S: String; DefValue: TSVGMarkerUnit ): TSVGMarkerUnit; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGMarkerUnit
Default Value. If the string is empty, the default value is returned
Type: TSVGMarkerUnit
If the string is empty, the default value (DefValue) is returned. If markerUnits="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’ property) in place for the graphic object referencing the marker. If markerUnits="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). If attribute ‘markerUnits’ is not specified, then the effect is as if a value of 'strokeWidth' were specified. |
Reference |