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

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:96](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L96)

A box in **player-local units, Y-down** — the space the root transform works
in, and the same one `local_vertices` and the world matrices are expressed in.

Y-down because the context is (`HybridSsContext` sets the Brain's coordinate
system), which is Skia's own sense: the root transform is then a plain
translate-and-scale with no flip hidden in it, and every number that crosses
this boundary — box, world matrix, baked vertex — agrees about which way is up.

## Properties

### height

> **height**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:102](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L102)

***

### width

> **width**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:101](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L101)

***

### x

> **x**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:98](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L98)

Left edge.

***

### y

> **y**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:100](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L100)

**Top** edge, +Y being down.
