Interface: SsPlacement
Defined in: packages/react-native-spritestudio/src/core/fit.ts:36
Everything <SpriteStudioView> and <SpriteStudioSprite> share about placement.
Properties
align?
optionalalign?:SsAlign
Defined in: packages/react-native-spritestudio/src/core/fit.ts:38
fit?
optionalfit?:SsFit
Defined in: packages/react-native-spritestudio/src/core/fit.ts:37
flipX?
optionalflipX?:boolean
Defined in: packages/react-native-spritestudio/src/core/fit.ts:50
flipY?
optionalflipY?:boolean
Defined in: packages/react-native-spritestudio/src/core/fit.ts:51
frame?
optionalframe?: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?
optionalframeScope?: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?
optionaloffset?: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?
optionalscale?: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.