Skip to content
pixi-silk
GitHub repository
Function

pixiTreeAdapter

import { pixiTreeAdapter } from 'pixi-silk/ui/layers';
function pixiTreeAdapter(options?: PixiTreeOptions): PixiTreeAdapter;

A TreeAdapter for a Pixi scene graph. Rows list a container’s children front to back, so the last child is the top row. Names are label. Hiding sets visible. Locking turns pointer events off for the node and everything under it. Moves keep each node where it is on screen.

Parameters#

ParameterType
optionsPixiTreeOptions

Returns#

PixiTreeAdapter

Example#

const tree = new LayerTree({ adapter: pixiTreeAdapter(), root: world, selection });