Trilium Frontend API
    Preparing search index...

    Class NodeSet

    A node set holds a collection of node types. It is used to compactly represent trees by storing their type ids, rather than a full pointer to the type object, in a numeric array. Each parser has a node set, and tree buffers can only store collections of nodes from the same set. A set can have a maximum of 2**16 (65536) node types in it, so that the ids fit into 16-bit typed array slots.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Create a set with the given types. The id property of each type should correspond to its position within the array.

      Parameters

      • types: readonly NodeType[]

        The node types in this set, by id.

      Returns NodeSet

    Properties

    types: readonly NodeType[]

    The node types in this set, by id.

    Methods

    • Create a copy of this set with some node properties added. The arguments to this method can be created with NodeProp.add.

      Parameters

      Returns NodeSet