Appearance
hm5-types (source format) / Stroke
Interface: Stroke
How a shape's outline / line is drawn.
Properties
| Property | Type | Description |
|---|---|---|
cap? | StrokeCap | - |
color | string | - |
dash? | number[] | DASHED LINE (虛線): on / off lengths like SVG stroke-dasharray, in the same units as width (the PARENT's). Absent / empty = solid; an odd list is repeated. Applied AFTER the trim. |
dashOffset? | number | how far into the dash pattern the line starts (SVG stroke-dashoffset) |
join? | StrokeJoin | - |
trimEnd? | number | - |
trimOffset? | number | turns the drawn window along the path, in shares of the length (absent = 0); wraps on a closed path, slides and cuts on an open one |
trimStart? | number | TRIM PATH (owner 2026-11-22, After Effects "Trim Paths" / Rive): only the part of the path from trimStart to trimEnd is drawn, measured along its ARC LENGTH as shares 0..1 (absent = 0 / 1 = all of it). trimStart > trimEnd wraps through the path's start point on a CLOSED path and draws nothing on an open one. THE maths is @utils/pure/trimDash (strokePaths). |
width | number | - |