A style for use in WebGL2 rendering to render the selection, highlight, or focus indicator of labels.
Inheritance Hierarchy
Remarks
This style is meant to be used with the WebGLSelectionIndicatorManager.nodeLabelStyle, WebGLSelectionIndicatorManager.edgeLabelStyle, WebGLHighlightIndicatorManager.nodeLabelStyle, WebGLHighlightIndicatorManager.edgeLabelStyle, WebGLFocusIndicatorManager.nodeLabelStyle, and WebGLFocusIndicatorManager.nodeLabelStyle properties. It is implemented as an immutable class. All properties need to be set at construction time. The instance properties are all read-only.
Members
No filters for this type
Constructors
Parameters
- shape?: WebGLLabelIndicatorShapeconversion
- The shape of the label. Defaults to WebGLLabelIndicatorShape.LABEL_SHAPE.
- type?: WebGLIndicatorTypeconversion
- The type of the indicator. Defaults to a suitable value based on the theme of the CanvasComponent.
- thickness?: number
- The total thickness of the indicator style. Defaults to a suitable value based on the theme of the CanvasComponent.
- primaryColor?: Colorconversion
- The primary color of the indicator style. Defaults to a suitable value based on the theme of the CanvasComponent.
- secondaryColor?: Colorconversion
- The secondary color used for the outline or background of the indicator style. Defaults to a suitable value based on the theme of the CanvasComponent.
- margins?: number
- The margins around the label layout. Defaults to a suitable value based on the theme of the CanvasComponent.
- zoomPolicy?: StyleIndicatorZoomPolicyconversion
- How the style is affected by the current zoom level. Defaults to StyleIndicatorZoomPolicy.VIEW_COORDINATES.
- enterTransition?: WebGLTransitionconversion
- The transition to use when an element enters the indicator state. No visible transition by default.
- leaveTransition?: WebGLTransitionconversion
- The transition to use when an element leaves the indicator state. No visible transition by default.
- dashStrokeAnimation?: WebGLAnimationTimingconversion
- The values that specify how the dash/dotted strokes should be animated. No visible animation by default.
Properties
Gets the values that specify how the dash/dotted strokes should be animated.
Gets the values that specify how the dash/dotted strokes should be animated.
By default strokes are not animated and the value is WebGLAnimationTiming.INSTANT.
readonlyfinal
Gets the transition to apply when this style gets newly applied to a label visualization.
Gets the transition to apply when this style gets newly applied to a label visualization.
readonlyfinal
Gets the transition to apply when this style gets removed from a label visualization.
Gets the transition to apply when this style gets removed from a label visualization.
readonlyfinal
Actually, the bounds rendered by the style is the original label layout enlarged by these margins. Taking into account the zoomPolicy, this will either be interpreted in view or world coordinates. If not specified explicitly, this will be adopted from the theme.
The default margins have a value of 0.
readonlyfinal
Gets the primary color of the indicator style.
Gets the primary color of the indicator style.
readonlyfinal
Gets the secondary color of the indicator style.
Gets the secondary color of the indicator style.
For indicator styles with borders this will represent the color of the outline while, for other styles like dash, dotted or stripes this will represent the background color. For the hatch brush, this will be the second color.
readonlyfinal
Gets the shape of this style.
Gets the shape of this style.
The default value is WebGLLabelIndicatorShape.LABEL_SHAPE.
readonlyfinal
The default value is taken from the theme of the CanvasComponent.
readonlyfinal
Gets the type of the indicator style.
Gets the type of the indicator style.
The default value is taken from the theme of the CanvasComponent.
readonlyfinal
Gets how the style is affected by the current zoom level.
Gets how the style is affected by the current zoom level.
The default value is StyleIndicatorZoomPolicy.VIEW_COORDINATES.
readonlyfinal