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.