English
Interface: SSPlayerPlacement
Defined in: ssplayer-webgl/src/SSPlayer.ts:102
How an animation is fitted into its player's box. See SSPlayer.setPlacement.
Properties
align?
optionalalign?:SSAlign
Defined in: ssplayer-webgl/src/SSPlayer.ts:106
Default center.
fit?
optionalfit?:SSFit
Defined in: ssplayer-webgl/src/SSPlayer.ts:104
Default contain.
frame?
optionalframe?:SSPlacementBox
Defined in: ssplayer-webgl/src/SSPlayer.ts:113
The box to fit, in animation-local units. Omitted, the authored canvas of the animation that is playing — so each animation is fitted by its own canvas. Pass SSPlayer.canvasRect once, after the first setAnimation, to keep one scale across a pack.