documentationfor yFiles for HTML 2.6

CompositeLabelModel

An implementation of ILabelModel that can be used to create custom label models out of existing ILabelModel instances.

Inheritance Hierarchy
CompositeLabelModel
Implemented Interfaces

Remarks

This class holds a number of models and can provide all of their parameters in getParameters. A custom model can easily be created that way:
Creating a CompositeLabelModel
const compositeLabelModel = new CompositeLabelModel()
compositeLabelModel.labelModels.add(new ExteriorLabelModel())
compositeLabelModel.labelModels.add(new InteriorStretchLabelModel())

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.CompositeLabelModel

Constructors

Properties

Methods