NodeIndex
Abstract Class defined in model/data/NodeIndex.js#12

Index for Nodes.

Node indexes are first-class citizens in model/data/Data. I.e., they are updated after each operation, and before any other listener is notified.

Check if a node should be indexed.

Used internally only. Override this in subclasses to achieve a custom behavior.

Parameters
Node
Returns
Boolean

true if the given node should be added to the index.

Called when a node has been created.

Parameters
nodeNode

Called when a node has been deleted.

Parameters
nodeNode

Called when a property has been updated.

Parameters
nodeNode

Reset the index using a Data instance.

Clone this index.

Returns

A cloned NodeIndex.

Create a new NodeIndex using the given prototype as mixin.

Parameters
prototypeObject
Returns
NodeIndex

A customized NodeIndex.

Create a filter to filter nodes by type.

Parameters
typeString
Returns
function