Skip to content
  1. API
  2. Types
  3. NodeCollapsingChainOptions

NodeCollapsingChainOptions ​

Type: object

Properties

  • animates(optional) boolean Whether to animate the node collapsing process.
  • options
    • computePaths(optional) boolean[=true] When false, no shortest path is computed (much faster on large blobs): context.path is omitted and the edge direction is picked from the doors' in/out edge counts (A -> B when out(A) + in(B) >= in(A) + out(B)). Reverse the edge in the generator if needed.
    • edgeGenerator(optional) ChainEdgeGenerator Function returning the RawEdge(s) to create between each pair of doors of a blob. If no edge generator is specified, a default edge is created.
    • enabled(optional) boolean[=true]
    • mode 'chain' Collapses whole connected groups ("blobs") of hidden nodes into edge(s) between their visible neighbors ("doors"), instead of throwing.
    • selector function(node: Node): boolean Function indicating which nodes will be hidden.