Skip to content

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? ​

optional align?: SSAlign

Defined in: ssplayer-webgl/src/SSPlayer.ts:106

Default center.


fit? ​

optional fit?: SSFit

Defined in: ssplayer-webgl/src/SSPlayer.ts:104

Default contain.


frame? ​

optional frame?: 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.