API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTileCollisionRect

@codexo/exojs-tilemap / tilemap / stable

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.

5
props
0
methods
0
events
Import
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.

Properties5
height: number
Height in pixels (a whole number of tile cells).
type: string
Class/type string shared by every source shape merged into this rectangle.
width: number
Width in pixels (a whole number of tile cells).
x: number
Left edge in layer pixel space.
y: number
Top edge in layer pixel space.
Source