C

WebGLArcEdgeStyle

An arced edge style for use in WebGL2 rendering.
ImplementsInheritance Hierarchy

Remarks

Note that unlike other IEdgeStyle implementations, this class is immutable. All properties are read-only and immutable, and the class cannot be subclassed, either.

See Also

API

WebGLBridgeEdgeStyle, WebGLPolylineEdgeStyle

Members

No filters for this type

Constructors

Creates a new arc edge style that is rendered with WebGL2.

This style can be applied to edges that are rendered by the WebGLGraphModelManager. The preferred way of calling the constructor is using option arguments, as there are many defaults and optional arguments.

To use the default value for a color option, set it to null.

Parameters

height?: number
The height of the arc. Defaults to 0.
fixedHeight?: boolean
Whether to interpret height as an absolute value. Defaults to true.
stroke?: WebGLStroke
The color and thickness of the edge. Defaults to BLACK.
sourceArrow?: WebGLArrowType
The arrow at the edge's source end. Defaults to NONE.
targetArrow?: WebGLArrowType
The arrow at the edge's target end. Defaults to NONE.
selfLoopDistance?: number
The distance between the node's layout and its self-loop control points. Defaults to 20.
effect?: WebGLEffect
The effect around the edge. Defaults to NONE.

Properties

Gets the applied effects on this style.
readonlyfinal
Gets a value that specifies whether to interpret height as an absolute value.
readonlyfinal
Gets the height of the arc.
readonlyfinal
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given edge and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(edge, style)
const visual = creator.createVisual(context)
readonlyfinal
Gets the distance between the node's layout and its self-loop control points.
readonlyfinal
Gets the arrow at the edge's source end.
readonlyfinal
Gets the stroke that specifies the color and thickness of the edge.
readonlyfinal
Gets the arrow at the edge's target end.
readonlyfinal

Methods

Create a clone of this object.
final

Return Value

Object
A clone of this object.