Skip to content
  1. API
  2. Types

SubLayout

Type: object

Represents a layout to be applied to a group of nodes. This can be:

Properties

  • Custom {layout: string, params: object} An object containing the layout name and its parameters.
  • Layout Promise<{x: number, y: number, radius?: number}[]> A promise that resolves to an array of points.
  • Nothing null|undefined (indicating not running any layout).