artboard-deluxe / ArtboardState
ArtboardState
ArtboardState =
object
Defined in: types/index.ts:1093
Properties
animation
animation:
ArtboardAnimation|null
Defined in: types/index.ts:1107
The target state for the current animation.
artboardSize
artboardSize:
Size|null
Defined in: types/index.ts:1122
The native size of the artboard (without any scaling).
interaction
interaction:
Interaction
Defined in: types/index.ts:1127
The current interaction.
lastAnimateToTimestamp
lastAnimateToTimestamp:
number
Defined in: types/index.ts:1137
The timestamp of the last call to animateTo().
lastLoopTimestamp
lastLoopTimestamp:
number
Defined in: types/index.ts:1142
The timestamp of the last animation loop.
momentum
momentum:
Momentum|null
Defined in: types/index.ts:1112
The calculated velocity of a drag gesture.
momentumStopTimestamp
momentumStopTimestamp:
number
Defined in: types/index.ts:1117
The timestamp when momentum was stopped.
offset
offset:
Coord
Defined in: types/index.ts:1097
The current arboard offset/translation.
rootRect
rootRect:
DOMRect
Defined in: types/index.ts:1147
The position of the root element relative to the viewport.
rootSize
rootSize:
Size
Defined in: types/index.ts:1152
The native size of the root element.
scale
scale:
number
Defined in: types/index.ts:1102
The current scale of the artboard.
scaleVelocity
scaleVelocity:
ScaleTarget|null
Defined in: types/index.ts:1157
The current scaling velocity.
touchDirection
touchDirection:
Direction
Defined in: types/index.ts:1132
The detected touch direction.