Arrow data
A hand-drawn curved arrow that draws itself. Rotate it to aim it.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| color | color | "accent2" | |
| size | number (60 to 800) | 260 | |
| thickness | number (2 to 30) | 9 |
* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.
Parts#
Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.
| Part | Is a |
|---|---|
| root | shape |
Example#
{"el": "Arrow"}How it is made#
This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.
{
"el": "shape",
"kind": "path",
"w": "$size",
"h": "$size",
"vb": [120, 120],
"d": "M12 22 C 62 8, 104 46, 96 100 M68 80 L96 104 L114 72",
"stroke": "$color",
"strokeW": "$thickness",
"motion": [{"do": "draw", "curve": {"ease": "inOut", "duration": 0.55}}]
}