Skip to content

DrawRank

Defined in: render/layerOrder.ts:89

What a draw’s place in the frame depends on: its layer, where it sits inside that layer, the layer’s rule, and the two world coordinates either rule uses.

optional groupInner?: number | null

Defined in: render/layerOrder.ts:100

Where this draw sits inside its SortingGroup, or null when it is in none. See sortingIdentity — with a group, layer/orderInLayer are the GROUP’s and this is what separates the members.


layer: number

Defined in: render/layerOrder.ts:90


order: LayerOrder

Defined in: render/layerOrder.ts:93

The layer’s RULE — how it resolves its contents. Not to be confused with orderInLayer, which is one draw’s stated place inside it.


orderInLayer: number

Defined in: render/layerOrder.ts:96

Sprite.order: the author’s explicit place within the layer, outranking whatever the rule would have inferred. 0 means nothing was stated.


worldY: number

Defined in: render/layerOrder.ts:101


worldZ: number

Defined in: render/layerOrder.ts:102