Skip to content

GenericItemRenderer

Defined in: custom-views.ts:36

One kind’s renderer, over any view type V (./pixi specialises it to PixiJS containers).

V

Item

Tex = unknown

Kit = unknown

optional animated?: boolean

Defined in: custom-views.ts:47

Asks for the next frame while a view of this kind is on screen (never under reduced motion).

create(kit): V

Defined in: custom-views.ts:41

Makes one view. Called when a pool needs one more, not once per item: a view is reused for whichever item it is given next, so keep per-item state in update, not here. kit holds the renderer’s own classes (for PixiJS, Container, Graphics and the rest), so a renderers module can build views without importing the renderer library itself.

Kit

V


optional destroy(view): void

Defined in: custom-views.ts:45

Releases whatever create made, when a pool shrinks or the explorer unmounts.

V

void


update(view, item, frame): void

Defined in: custom-views.ts:43

Brings the view up to date for item this frame.

V

Item

GenericItemFrame<Tex>

void