Interface LayoutPainter

Provides sizing information for DirectionNode graphs and can paint during CommitLayout commits.

Hierarchy

  • LayoutPainter

Properties

Methods

Properties

getSeparation?: ((node: DirectionNode<any>, axis: Axis, dir: Direction, preferVertical: boolean) => number)

Type declaration

    • (node: DirectionNode<any>, axis: Axis, dir: Direction, preferVertical: boolean): number
    • Calculates the minimum separation between a node and the neighbor on the given direction, according to the given Axis.

      Returns

      the minimum separation

      Parameters

      Returns number

paint?: ((pg: DirectionNode<any>) => boolean)

Type declaration

    • (pg: DirectionNode<any>): boolean
    • Optional. Paints the nodes of a newly committed paint group.

      This can be used to pre-render a paint group.

      Returns

      true if painting needs another call, false if done

      Parameters

      Returns boolean

Methods

Generated using TypeDoc