Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TreeChanges

Hierarchy

Index

Constructors

constructor

  • new TreeChanges(rootNode: Node, mutations: MutationRecord[]): TreeChanges

Properties

anyAttributesChanged

anyAttributesChanged: boolean

anyCharacterDataChanged

anyCharacterDataChanged: boolean

anyParentsChanged

anyParentsChanged: boolean

Methods

delete

  • delete(node: Node): void
  • Deletes a node from the NodeMap.

    Parameters

    • node: Node

      The node to delete.

    Returns void

get

  • Gets the value for the given node.

    Parameters

    • node: Node

      The node to get the value of.

    Returns NodeChange

    The value for the given node, or undefined if the node is not present in the map.

getChange

getIsReachable

  • getIsReachable(node: Node): boolean

getOldParent

  • getOldParent(node: Node): Node

getWasReachable

  • getWasReachable(node: Node): boolean

has

  • has(node: Node): boolean
  • Determines if a given node is in the NodeMap.

    Parameters

    • node: Node

      The node to determine if it is in the map.

    Returns boolean

    true if the Node is contained in the map, false otherwise.

keys

  • keys(): Node[]
  • Returns Node[]

    an array that holds the nodes that are the keys of the map.

reachabilityChange

  • reachabilityChange(node: Node): Movement

set

  • Sets the value of a node within the map.

    Parameters

    • node: Node

      The node to set the value for.

    • value: NodeChange

      the value to associate with the node.

    Returns void

Generated using TypeDoc