API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTileCollisionRect
An axis-aligned collision rectangle in tile-layer pixel space (+Y down), covering one or more whole tile cells. Rectangles are synthesized geometry, not source objects: a merged run has no single originating object, so it carries no object `id`/`name`/`properties` - only the `type` string shared by every shape merged into it. Anything that does not exactly cover whole cells stays a TileCollisionShape, which does keep its source object.
import { TileCollisionRect } from '@codexo/exojs-tilemap'An axis-aligned collision rectangle in tile-layer pixel space (+Y down), covering one or more whole tile cells.
Rectangles are synthesized geometry, not source objects: a merged run has no single originating object, so it carries no object `id`/`name`/`properties` - only the `type` string shared by every shape merged into it. Anything that does not exactly cover whole cells stays a TileCollisionShape, which does keep its source object.
height: numbertype: stringwidth: numberx: numbery: number