pixi-reels

ReelCellQuad

pixi-reels


pixi-reels / index / ReelCellQuad

Interface: ReelCellQuad

Defined in: config/types.ts:528

One cell’s projected footprint on a curved reel: the four corners of the quad the symbol should render into, replacing its flat rectangle.

Corners are SCREEN-space and LOCAL to the symbol view’s own origin, in the order PixiJS PerspectiveMesh wants them - clockwise from top-left - in every orientation, because symbol art stays upright however the strip travels. width / height describe the flat cell box the quad replaces, so a symbol can work out its own scale without having to remember what resize() said.

Built by ReelCurve.quadFor(), consumed by ReelSymbol.applyCellQuad(). It lives here rather than next to ReelCurve so symbols/ can name it without importing core/ and inverting the dependency flow.

Properties#

PropertyTypeDescriptionDefined in
heightnumberFlat box height in screen pixels.config/types.ts:536
widthnumberFlat box width in screen pixels.config/types.ts:534
xnumberFlat box’s left edge, view-local. Non-zero when the symbol set an inset.config/types.ts:530
x0numberTop-left.config/types.ts:538
x1numberTop-right.config/types.ts:541
x2numberBottom-right.config/types.ts:544
x3numberBottom-left.config/types.ts:547
ynumberFlat box’s top edge, view-local.config/types.ts:532
y0number-config/types.ts:539
y1number-config/types.ts:542
y2number-config/types.ts:545
y3number-config/types.ts:548