hosanna-ui-docs - v0.9.0
    Preparing search index...

    Interface INodePool

    Interface for a node pool that manages reusable SceneGraph nodes.

    interface INodePool {
        get<T extends ISGNNode>(
            componentType: string,
            initialState?: IStyleDictionary,
        ): T;
        getPoolCounts(): INodePoolCounts;
        prepopulate(componentType: string, count: number): void;
        release(node: ISGNNode): void;
    }

    Implemented by

    Index

    Methods

    • Prepopulates the pool with a specified number of nodes of the given component type.

      Parameters

      • componentType: string

        The type of node to prepopulate.

      • count: number

        The number of nodes to create.

      Returns void