Skip to main content

Module svg

Module svg 

Source
Expand description

Specified types for SVG properties.

Macros§

parse_svg_length 🔒

Structs§

ContextPropertyBits
The context properties we understand.
MozContextProperties
Specified MozContextProperties value. Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-context-properties)
SVGPaintOrder
The specified value is tree PaintOrder values packed into the bitfields below, as a six-bit field, of 3 two-bit pairs
VectorEffect
https://svgwg.org/svg2-draft/coords.html#VectorEffects

Enums§

ColorInterpolation
https://svgwg.org/svg2-draft/painting.html#ColorInterpolationProperty
DProperty
The svg d property type.
MaskComposite
https://drafts.fxtf.org/css-masking-1/#propdef-mask-composite
MaskMode
https://drafts.fxtf.org/css-masking-1/#propdef-mask-mode
MaskType
https://drafts.fxtf.org/css-masking-1/#propdef-mask-type
PaintOrder
The specified value for a single CSS paint-order property.
ShapeRendering
https://svgwg.org/svg2-draft/painting.html#ShapeRenderingProperty
StrokeLinecap
https://svgwg.org/svg2-draft/painting.html#StrokeLinecapProperty
StrokeLinejoin
https://svgwg.org/svg2-draft/painting.html#StrokeLinejoinProperty
TextAnchor
https://svgwg.org/svg2-draft/text.html#TextAnchorProperty

Constants§

PAINT_ORDER_COUNT
Number of non-normal components
PAINT_ORDER_MASK
Mask with above bits set
PAINT_ORDER_SHIFT
Number of bits for each component

Functions§

is_context_value_enabled
Whether the context-value value is enabled.

Type Aliases§

SVGLength
| | | context-value
SVGOpacity
| context-fill-opacity | context-stroke-opacity
SVGPaint
Specified SVG Paint value
SVGStrokeDashArray
[ | | ]# | context-value
SVGWidth
A non-negative version of SVGLength.