---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/interfaces/SsRootTransform.md
---
# Interface: SsRootTransform

Defined in: [packages/react-native-spritestudio/src/core/types.ts:59](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L59)

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](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L65)

***

### flipY

> **flipY**: `boolean`

Defined in: [packages/react-native-spritestudio/src/core/types.ts:66](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L66)

***

### scale

> **scale**: `number`

Defined in: [packages/react-native-spritestudio/src/core/types.ts:64](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L64)

Uniform scale.

***

### x

> **x**: `number`

Defined in: [packages/react-native-spritestudio/src/core/types.ts:61](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L61)

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

***

### y

> **y**: `number`

Defined in: [packages/react-native-spritestudio/src/core/types.ts:62](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/types.ts#L62)
