pixi-reels

API reference

ReelCellQuad

pixi-reels


pixi-reels / index / ReelCellQuad

Defined in: config/types.ts:716

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:724
widthnumberFlat box width in screen pixels.config/types.ts:722
xnumberFlat box’s left edge, view-local. Non-zero when the symbol set an inset.config/types.ts:718
x0numberTop-left.config/types.ts:726
x1numberTop-right.config/types.ts:729
x2numberBottom-right.config/types.ts:732
x3numberBottom-left.config/types.ts:735
ynumberFlat box’s top edge, view-local.config/types.ts:720
y0number-config/types.ts:727
y1number-config/types.ts:730
y2number-config/types.ts:733
y3number-config/types.ts:736