documentationfor yFiles for HTML 3.0.0.3

LabelPlacementPolicy

Defines how a label placement algorithm should place labels.

Examples

Used with LayoutExecutor's labelPlacementPolicies.
Keep the current label placement
const layout = new HierarchicalLayout({
  edgeLabelPlacement: EdgeLabelPlacement.INTEGRATED,
})
await new LayoutExecutor({
  graphComponent: graphComponent,
  layout: layout,
  labelPlacementPolicies: LabelPlacementPolicy.PREFER_PARAMETER,
}).start()

Type Details

yFiles module
view-layout-bridge

Constants

Static Methods