Returns true if there is nothing at all to draw for this style: fill is transparent, stroke is zero size, and there is no shadow.
Optionalinit: PartialDeep<DrawingStyle>Applies current fill, stroke, and shadow styling properties to the given canvas ctx. rect size is used to scale relative-sized stroke width.
Optionalrect: RectangleFills and strokes each path in the given array using DrawingStyle.renderPath() method. The given paths array is cleared.
Fills and strokes the given path onto context using the current drawing style settings.
The context is saved before drawing and restored afterwards.
Any shadow is applied to fill layer, unless that is transparent, in which case it is applied on the stroke.
The stroke can be drawn under or on top of the fill, depending on the value of strokeOver property.
If a rect is given it will be passed on to StrokeStyle which will automatically scale itself if necessary.
Optionalrect: RectangleDraws just the current stroke (line) style onto the given path, with or w/out the current shadow (if any). It does NOT save or restore full context, only shadow properties (if a shadow is used).
Optionalrect: RectangleStyle to apply as context fillStyle property.
Defines how to apply the fill style when filling Path2D paths. One of: "evenodd" or "nonzero"
Styles to apply as context strokeStyle, line*, and miterLimit properties (and setLineDash() method).
Styles to apply as context shadow* properties.
When styling Path2D paths, the stroke is to be drawn on top of the fill if this property is true, otherwise it will draw under the fill
(only half the line width will protrude around the filled area).
Applies a drawing style to a canvas context or
Path2Dobjects, which includes all fill, stroke, and shadow attributes.