NodeIndex

Get all indexed nodes for a given path.

Parameters
pathArray.
Returns

A node or an object with ids and nodes as values.

Collects nodes recursively.

Returns

An object with ids as keys and nodes as values.

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.

Override this in subclasses for customization.

Parameters
nodeNode
  • Called when a node has been deleted.
  • Override this in subclasses for customization.
  • @private
  • @param {model/data/Node} node

Called when a property has been updated.

Override this in subclasses for customization.

Parameters
nodeNode

Reset the index using a Data instance.

Clone this index.

Returns

A cloned NodeIndex.

this.property
Property defined in model/data/NodeIndex.js#50

The property used for indexing.

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