API reference

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

I

interfaceLdtkEntityInstance

@codexo/exojs-ldtk / ldtk / stable

An entity instance placed in an Entities layer.

6
props
0
methods
0
events
Import
import { LdtkEntityInstance } from '@codexo/exojs-ldtk'

An entity instance placed in an Entities layer.

Properties6
defUid: number
UID of the entity definition this instance was created from.
height: number
iid: string
Globally unique instance id (UUID string).
px: readonly [number, number]
Pixel position [x, y] of the entity's pivot-adjusted anchor - NOT the top-left corner. Combine with __pivot to recover the bounding box's top-left corner: topLeftX = px[0] - width * __pivot[0].
width: number
Source