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

DrillDownOptions

Type: object

Properties

  • animates(optional) boolean Whether to animate the drilldown process.
  • copyData(optional) boolean[=true] If true, the data of the open node will be copied into the group replacing it.
  • nodeGenerator(optional) function(nodes: NodeList, groupId: string, transformation: Transformation): NodeDataAndAttributes See nodeGrouping node generator: #types:-nodegroupingoptions.
  • onGetSubgraph function(node: Node): Promise<RawGraph> Function that should return a promise that resolves with the subgraph inside the group.
  • onGroupUpdate(optional) function(metaNode: Node, subNodes: NodeList, isOpen: boolean): SubLayout Callback to run a layout over the content of an open group. It should return a promise that resolves when the layout is done, or a Promise containing an array of positions for each node in the group.
  • padding(optional) number|function(metaNode: Node, depth: number): number Padding applied to groups showing their content. If a function is passed, each MetaNode will get a padding depending on that function.
  • showContents(optional) function(metaNode: Node, depth: number): boolean | boolean Function that would define if the contents of the group node should be hidden or not. This is called on every transformation update.