Skip to content

Interface: SsRootTransform ​

Defined in: packages/react-native-spritestudio/src/core/types.ts:59

Where the animation's world origin lands on the canvas, and how it is scaled and mirrored.

Applied exactly once, as a canvas transform above the geometry. Folding it into the vertex bake would cost a term per vertex and would detach part-following the moment a player flips; keeping it at the root also leaves everything below in player-local space, which is where the mask coverage pass and the SkSL shaders need it.

Properties ​

flipX ​

flipX: boolean

Defined in: packages/react-native-spritestudio/src/core/types.ts:65


flipY ​

flipY: boolean

Defined in: packages/react-native-spritestudio/src/core/types.ts:66


scale ​

scale: number

Defined in: packages/react-native-spritestudio/src/core/types.ts:64

Uniform scale.


x ​

x: number

Defined in: packages/react-native-spritestudio/src/core/types.ts:61

Canvas-space position of the animation's origin, in pixels.


y ​

y: number

Defined in: packages/react-native-spritestudio/src/core/types.ts:62