KiteStrokePen

How a canvas strokes a path under a matrix. ISO 32000-1, 8.4.3.2 measures the line width and the dash lengths in user space, so the pen is a circle there. A matrix that scales x and y differently, or skews, turns the circle into an ellipse on the device, and one device width cannot draw it (#108). strokePen picks the space to stroke in.

Properties

Link copied to clipboard

The factor from user units to the space that the canvas strokes in, for the dash lengths and the dash phase.

Link copied to clipboard

The matrix to map the points of the path with before the canvas strokes it.

Link copied to clipboard

The matrix to add to the transform of the canvas while it strokes, or null to stroke in device space. Only an elliptical pen has one, and its path stays in user space.

Link copied to clipboard

The line width in the space that the canvas strokes in.