documentationfor yFiles for HTML 2.6

LabelPreferredPlacementPolicy

Defines how a label placement algorithm should place edge labels.

Examples

Used with LayoutExecutor's labelPreferredPlacementPolicy.
Keep the current label placement
const layout = new HierarchicLayout({ integratedEdgeLabeling: true })
await new LayoutExecutor({
  graphComponent: graphComponent,
  graph: graphComponent.graph,
  layout: layout,
  labelPreferredPlacementPolicy: 'from-parameter'
}).start()

Type Details

yfiles module
view-layout-bridge
yfiles-umd modules
view-layout-bridge
Legacy UMD name
yfiles.layout.LabelPreferredPlacementPolicy

Constants

Static Methods