monks/stroke_dasharray

The stroke-dasharray CSS property defines a pattern of dashes and gaps used in the painting of the SVG shape’s stroke. If present, it overrides the element’s {{SVGAttr(“stroke-dasharray”)}} attribute.

This property applies to any SVG shape or text-content element (see {{SVGAttr(“stroke-dasharray”)}} for a full list), but as an inherited property, it may be applied to elements such as {{SVGElement(“g”)}} and still have the intended effect on descendant elements’ strokes.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of stroke-dasharray

pub const none: #(String, String)
  • : The stroke will be drawn without any dashes. The default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for stroke-dasharray

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for stroke-dasharray. It will be wrapped in var() and have -- prepended.

Search Document