Skip to content

@graphty/layout / index / LayoutWeightUse

Type Alias: LayoutWeightUse ​

LayoutWeightUse = "never" | "by-default" | "on-request"

Defined in: catalog.ts:37

Whether a layout reads the snapshot's edge weights (an unweighted snapshot reads as every weight 1).

  • "never": weights make no difference.
  • "by-default": it reads them unless the options say weight: false.
  • "on-request": it ignores them unless the options say weight: true (or name a weight column).