Skip to content

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 ​

PropertyTypeDescription
angle?numberarrow: its direction / length in timeline space; hline / vline: the SIGNED length along its axis (geometry × the timeline scale); circle: the radius (× the average scale)
boundsBoundsaxis-aligned box in timeline space (a point: size 0)
centerPointcentre in timeline space (an arrow: its tail; a polygon: its own centre when set, else its area's centroid)
geometryobjectpoint / 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.xnumber-
geometry.ynumber-
idstring-
keystringunique path: "layerId/markerId", inside instances "objectKey/layerId/markerId"
layerobject-
layer.idstring-
layer.namestring-
length?number-
matrixMat-
parabola?objectparabola: its type's physics (so pixi-hm05 hitTestMarkerData can follow the exact curve from geometry + matrix)
parabola.continuousboolean-
parabola.framesnumber-
parabola.gravitynumber-
parentstring | nullthe key of the symbol instance it is inside (see objects()); null = on the timeline itself
pointsPoint[]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-
shapeMarkerShape-
typestringthe marker type's name
typeIdstring-
valuesRecord<string, MarkerValue>field key → value (defaults filled in; unset optional fields left out)
velocity?Pointparabola: the velocity in timeline space

HereSplash — 2D animation for the web