Optionalcount?: numberNumber of cells to use, walked row-major. Mutually exclusive with indices.
OptionalframeDuration?: numberOptionalframeDurations?: readonly number[]Optionalindices?: readonly number[]Explicit row-major, 0-based cell indices. Mutually exclusive with count.
Optionalloop?: AnimationLoopModeOptionalmargin?: numberPixels around the sheet edge.
Optionalrows?: numberOptionalspacing?: numberPixels between cells.
Slice a grid-arranged sprite sheet into a clip. Use when you don't have a TexturePacker JSON — just an image and uniform cell dimensions. Cells are walked row-major.
Specify exactly one of
rows,count, orindicesto define the cell set (along withcolumns). Combiningcountandindicesis rejected.Returns a
Promisebecause pixi.js is imported lazily — keeps the static module graph free of a runtime pixi dependency for consumers who only use the sheet-based helpers.