A selection, highlight, or focus style which renders a beacon effect around nodes using WebGL2.
Remarks
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2BeaconNodeIndicatorStyle
See Also
Constructors
WebGL2BeaconNodeIndicatorStyle
(shape?: WebGL2NodeIndicatorShape, type?: WebGL2BeaconAnimationType, color?: Color, pulseWidth?: number, pulseCount?: number, pulseDistance?: number, magnitude?: number, smooth?: boolean, zoomPolicy?: StyleDecorationZoomPolicy, enterTransition?: WebGL2Transition, leaveTransition?: WebGL2Transition, timing?: WebGL2AnimationTiming)Creates a new beacon indicator style for nodes with WebGL2.
Parameters
A map of options to pass to the method.
- shape - WebGL2NodeIndicatorShape
- The shape of the node. Defaults to NODE_SHAPE.
- type - WebGL2BeaconAnimationType
- The type of the beacon. Defaults to FADE.
- color - Color
- The color of the beacon. Defaults to black if not specified.
- pulseWidth - number
- The thickness of a single beacon pulse. Defaults to 4.
- pulseCount - number
- How many beacon pulses should be simultaneously visible. Defaults to 1.
- pulseDistance - number
- The distance between multiple beacon pulses. Defaults to 20.
- magnitude - number
- The distance the beacon extends to. Defaults to 50.
- smooth - boolean
- Whether to draw each pulse smoothly or with hard edges. Defaults to
true
. - zoomPolicy - StyleDecorationZoomPolicy
- How the style is affected by the current zoom level. Defaults to VIEW_COORDINATES.
- enterTransition - WebGL2Transition
The transition to use when an element enters the indicator state. No visible transition by default.
If no transition or a SCALE transition is specified, the beacon animation will immediately start when a node enters the indicator state.
- leaveTransition - WebGL2Transition
The transition to use when an element leaves the indicator state. No visible transition by default.
If no transition is specified, the beacon animation will stop immediately when the node leaves the indicator state. If an OPACITY transition is specified, the beacon animation will continue for the duration of the transition while fading out. If a SCALE transition is specified, the beacon animation will finish it's current iteration and will not start another iteration, even if there is transition time remaining.
- timing - WebGL2AnimationTiming
- Specifies the timing function to use for the beacon animation. Defaults to "1s linear infinite normal".
Properties
Gets the values that specify how the beacon should be animated.
Remarks
Gets the transition to apply when this style gets newly applied to a node visualization.
Gets the transition to apply when this style gets removed from a node visualization.
Gets the shape of this style.
Remarks
Gets the type of the indicator style.
Remarks
Gets how the style is affected by the current zoom level.