Documentation/D2DStrokeStyle
classWORKERCLONEABLE

D2DStrokeStyle

js/d2d.js:631

Reusable Direct2D stroke style describing line caps, joins and dash behaviour.
Create with d2d.StrokeStyle and reuse it across drawing calls instead of rebuilding the same stroke configuration every frame.

Dotted strokes: Direct2D defines the dot portions of DashStyle.Dot, DashStyle.DashDot and DashStyle.DashDotDot as zero-length dash segments. When dashCap is omitted, JSplitter automatically uses CapStyle.Round for those predefined styles, matching the numeric DashStyle shorthand used by D2D drawing methods. Specify dashCap explicitly to override this behaviour. See Microsoft documentation for D2D1_DASH_STYLE and D2D1_CAP_STYLE.

Example source

propertyWORKERreadonly

DashCap

js/d2d.js:655
DashCap: CapStyle
propertyWORKERreadonly

Dashes

js/d2d.js:690
Dashes: Array<number>
propertyWORKERreadonly

DashOffset

js/d2d.js:683
DashOffset: number
propertyWORKERreadonly

DashStyle

js/d2d.js:676
DashStyle: DashStyle
propertyWORKERreadonly

EndCap

js/d2d.js:648
EndCap: CapStyle
propertyWORKERreadonly

LineJoin

js/d2d.js:662
LineJoin: LineJoin
propertyWORKERreadonly

MiterLimit

js/d2d.js:669
MiterLimit: number
propertyWORKERreadonly

StartCap

js/d2d.js:641
StartCap: CapStyle