Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

PackableItem

Defined in: packages/sigma/src/utils/shelf-atlas.ts:39

An item to be packed into the atlas.

Properties

height

height: number

Defined in: packages/sigma/src/utils/shelf-atlas.ts:42


key

key: string

Defined in: packages/sigma/src/utils/shelf-atlas.ts:40


width

width: number

Defined in: packages/sigma/src/utils/shelf-atlas.ts:41

Methods

draw()

draw(ctx, destX, destY): void

Defined in: packages/sigma/src/utils/shelf-atlas.ts:43

Parameters

ctx

CanvasRenderingContext2D

destX

number

destY

number

Returns

void