ShapeOptions
The configuration options for the Shape.
ariaChecked? boolean
An optional aria-checked to be applied to the element. The aria-checked will be rendered only for SVG output.
ariaLabel? string
An optional aria-label to be applied to the element. The aria-label will be rendered only for SVG output.
ariaRoleDescription? string
An optional aria-roledescription to be applied to the element. The aria-roledescription will be rendered only for SVG output.
className? string
An optional class to be applied to the element. The class will be rendered only for SVG output.
clip? Path
The clipping path for this element. The Path instance will be monitored for changes. Can be replaced by calling the clip
method.
cursor? string
The CSS cursor of the element.
fill? FillOptions | Gradient
The fill options of the Shape.
id? string
An optional id. The id will be rendered only for SVG output.
name? string
The optional name for this element.
opacity? number
The element opacity. Ranges from zero (completely transparent) to one (completely opaque).
role? string
An optional role to be applied to the element. The role will be rendered only for SVG output.
stroke? StrokeOptions
The stroke options of the Shape.
transform? Transformation
The transformation to apply to this element.
visible? boolean
A flag which indicates if the element is visible.