Skip to content

Interface: SsPlacement ​

Defined in: packages/react-native-spritestudio/src/core/fit.ts:36

Everything <SpriteStudioView> and <SpriteStudioSprite> share about placement.

Properties ​

align? ​

optional align?: SsAlign

Defined in: packages/react-native-spritestudio/src/core/fit.ts:38


fit? ​

optional fit?: SsFit

Defined in: packages/react-native-spritestudio/src/core/fit.ts:37


flipX? ​

optional flipX?: boolean

Defined in: packages/react-native-spritestudio/src/core/fit.ts:50


flipY? ​

optional flipY?: boolean

Defined in: packages/react-native-spritestudio/src/core/fit.ts:51


frame? ​

optional frame?: SsBox

Defined in: packages/react-native-spritestudio/src/core/fit.ts:43

The box to fit, in player-local units. Omitted, the animation's authored canvas, or the measured box when frameScope asks for one.


frameScope? ​

optional frameScope?: SsFrameScope

Defined in: packages/react-native-spritestudio/src/core/fit.ts:45

Measure the box instead of using the authored canvas. Omitted, nothing is measured.


offset? ​

optional offset?: object

Defined in: packages/react-native-spritestudio/src/core/fit.ts:47

Pixels from the aligned position. Applied after the fit.

x ​

x: number

y ​

y: number


scale? ​

optional scale?: number

Defined in: packages/react-native-spritestudio/src/core/fit.ts:49

Multiplier on top of the fit's scale, not a replacement for it.