artboard-deluxe / ArtboardState
ArtboardState
ArtboardState =
object
Defined in: types/index.ts:1044
Properties
animation
animation:
ArtboardAnimation|null
Defined in: types/index.ts:1058
The target state for the current animation.
artboardSize
artboardSize:
Size|null
Defined in: types/index.ts:1073
The native size of the artboard (without any scaling).
interaction
interaction:
Interaction
Defined in: types/index.ts:1078
The current interaction.
lastAnimateToTimestamp
lastAnimateToTimestamp:
number
Defined in: types/index.ts:1088
The timestamp of the last call to animateTo().
lastLoopTimestamp
lastLoopTimestamp:
number
Defined in: types/index.ts:1093
The timestamp of the last animation loop.
momentum
momentum:
Momentum|null
Defined in: types/index.ts:1063
The calculated velocity of a drag gesture.
momentumStopTimestamp
momentumStopTimestamp:
number
Defined in: types/index.ts:1068
The timestamp when momentum was stopped.
offset
offset:
Coord
Defined in: types/index.ts:1048
The current arboard offset/translation.
rootRect
rootRect:
DOMRect
Defined in: types/index.ts:1098
The position of the root element relative to the viewport.
rootSize
rootSize:
Size
Defined in: types/index.ts:1103
The native size of the root element.
scale
scale:
number
Defined in: types/index.ts:1053
The current scale of the artboard.
scaleVelocity
scaleVelocity:
ScaleTarget|null
Defined in: types/index.ts:1108
The current scaling velocity.
touchDirection
touchDirection:
Direction
Defined in: types/index.ts:1083
The detected touch direction.