Appearance
Export and import scripts / Hm05Script / MarkerInfo
Interface: MarkerInfo
One marker (an instance of a component) at a frame. Markers are never drawn by any export — they are data for scripts. geometry is as stored, in its layer's space; matrix maps that space to the timeline you asked about (inside a symbol instance: its place on that timeline), and the other fields are already in timeline space.
Properties
| Property | Type | Description |
|---|---|---|
angle? | number | arrow: its direction / length in timeline space; hline / vline: the SIGNED length along its axis (geometry × the timeline scale); circle: the radius (× the average scale) |
bounds | Bounds | axis-aligned box in timeline space (a point: size 0) |
center | Point | centre in timeline space (an arrow: its tail; a polygon: its own centre when set, else its area's centroid) |
geometry | object | point / arrow / circle / data: x, y; arrow: angle (degrees), length; rect / ellipse: x, y (top-left), w, h; circle: r; parabola: x, y (start), vx, vy (velocity per frame); hline / vline: x, y (start), length (signed); polygon: x, y + points (corners [x0, y0, x1, y1, …] relative to x, y) + cx / cy (its own centre relative to x, y; absent = none set) |
geometry.angle? | number | - |
geometry.cx? | number | - |
geometry.cy? | number | - |
geometry.h? | number | - |
geometry.length? | number | - |
geometry.points? | number[] | - |
geometry.r? | number | - |
geometry.vx? | number | - |
geometry.vy? | number | - |
geometry.w? | number | - |
geometry.x | number | - |
geometry.y | number | - |
id | string | - |
key | string | unique path: "layerId/markerId", inside instances "objectKey/layerId/markerId" |
layer | object | - |
layer.id | string | - |
layer.name | string | - |
length? | number | - |
matrix | Mat | - |
parabola? | object | parabola: its type's physics (so pixi-hm05 hitTestMarkerData can follow the exact curve from geometry + matrix) |
parabola.continuous | boolean | - |
parabola.frames | number | - |
parabola.gravity | number | - |
parent | string | null | the key of the symbol instance it is inside (see objects()); null = on the timeline itself |
points | Point[] | the marker's key points in timeline space: point / data = [p]; arrow / hline / vline = [start, end]; rect / ellipse = the 4 corners (top-left first, clockwise); circle = [centre]; polygon = its corners; parabola = where it is at every whole frame (start first). A MarkerInfo is marker data as it is: pass two to pixi-hm05 hitTestMarkerData (or hitTestMarkers with their objects). |
radius? | number | - |
shape | MarkerShape | - |
type | string | the marker type's name |
typeId | string | - |
values | Record<string, MarkerValue> | field key → value (defaults filled in; unset optional fields left out) |
velocity? | Point | parabola: the velocity in timeline space |