monks/d

The d CSS property defines a path to be drawn by the SVG {{SVGElement(“path”)}} element. If present, it overrides the element’s {{SVGAttr(“d”)}} attribute.

The d property only applies to {{SVGElement(“path”)}} elements nested in an {{SVGElement(“svg”)}}. It doesn’t apply to other SVG elements nor to HTML elements or pseudo-elements.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : No path is drawn.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for d

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 d. It will be wrapped in var() and have -- prepended.

Search Document