pixi-reels

ReelMaskRect

pixi-reels


pixi-reels / index / ReelMaskRect

Interface: ReelMaskRect

Defined in: core/ReelViewport.ts:18

Bounding rectangle for one reel. what MaskStrategy builds the clip geometry from. SCREEN-space and viewport-local (origin = viewport top-left), in reel order.

The rect is screen-space in every orientation, so which of its four numbers means “along the strip” depends on the axis: on a vertical set y/height run along the strip and x/width march the reels; on a horizontal set that is exactly reversed. Read MaskContext.axis rather than assuming - axis.toLocal(width, height) gives you the pair as { cross, main }.

Properties#

PropertyTypeDescriptionDefined in
heightnumberScreen height of the reel box.core/ReelViewport.ts:26
widthnumberScreen width of the reel box.core/ReelViewport.ts:24
xnumberLeft edge, viewport-local.core/ReelViewport.ts:20
ynumberTop edge, viewport-local.core/ReelViewport.ts:22