A label style decorator that uses a node style instance to render the background and a label style instance to render the foreground of a label.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.NodeStyleLabelStyleAdapter
See Also
Constructors
Creates a label style that uses the provided node style to render the background and the label style to render the foreground of this style.
Remarks
Parameters
A map of options to pass to the method.
- nodeStyle - INodeStyle
- The style to use for rendering the background of the label.
- labelStyle - ILabelStyle
- The style to use for rendering the foreground of the label.
- autoFlip - boolean
A value indicating whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise. This option sets the autoFlip property on the created object.
- labelStyleInsets - Insets
The insets to apply for the labelStyle as margins. This option sets the labelStyleInsets property on the created object.
Properties
Gets the ILabelStyle that is used for rendering the foreground of the label.
Gets or sets the insets to apply for the labelStyle as margins.
Remarks
(0,0,0,0)
Gets the INodeStyle that is used for rendering the background of the label.
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given label and this style instance.
Remarks
const creator = style.renderer.getVisualCreator(label, style)
const visual = creator.createVisual(context)
Implements
Methods
Create a clone of this object.