GenericItemRenderer
Defined in: custom-views.ts:36
One kind’s renderer, over any view type V (./pixi specialises it to PixiJS containers).
Type Parameters
Section titled “Type Parameters”V
Item
Tex = unknown
Kit = unknown
Properties
Section titled “Properties”animated?
Section titled “animated?”
optionalanimated?: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).
Methods
Section titled “Methods”create()
Section titled “create()”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.
Parameters
Section titled “Parameters”Kit
Returns
Section titled “Returns”V
destroy()?
Section titled “destroy()?”
optionaldestroy(view):void
Defined in: custom-views.ts:45
Releases whatever create made, when a pool shrinks or the explorer unmounts.
Parameters
Section titled “Parameters”V
Returns
Section titled “Returns”void
update()
Section titled “update()”update(
view,item,frame):void
Defined in: custom-views.ts:43
Brings the view up to date for item this frame.
Parameters
Section titled “Parameters”V
Item
GenericItemFrame<Tex>
Returns
Section titled “Returns”void