Skip to content

Interface: SsBox ​

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:96

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


width ​

width: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:101


x ​

x: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:98

Left edge.


y ​

y: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:100

Top edge, +Y being down.