Skip to main content

Module: edge-curve/src

Type Aliases

CreateEdgeCurveProgramOptions

Ƭ CreateEdgeCurveProgramOptions<N, E, G>: Object

Type parameters

NameType
Nextends Attributes = Attributes
Eextends Attributes = Attributes
Gextends Attributes = Attributes

Type declaration

NameType
arrowHeadnull | { lengthToThicknessRatio: number ; widenessToThicknessRatio: number }
curvatureAttributestring
defaultCurvaturenumber
drawLabel?EdgeLabelDrawingFunction<N, E, G>

Defined in

edge-curve/src/utils.ts:7

Variables

DEFAULT_EDGE_CURVATURE

Const DEFAULT_EDGE_CURVATURE: 0.25

Defined in

edge-curve/src/utils.ts:5


DEFAULT_EDGE_CURVE_PROGRAM_OPTIONS

Const DEFAULT_EDGE_CURVE_PROGRAM_OPTIONS: CreateEdgeCurveProgramOptions

Defined in

edge-curve/src/utils.ts:23


DEFAULT_INDEX_PARALLEL_EDGES_OPTIONS

Const DEFAULT_INDEX_PARALLEL_EDGES_OPTIONS: Object

This function helps to identify parallel edges, to adjust their curvatures.

Type declaration

NameType
edgeIndexAttributestring
edgeMaxIndexAttributestring
edgeMinIndexAttributestring

Defined in

edge-curve/src/utils.ts:32


EdgeCurvedArrowProgram

Const EdgeCurvedArrowProgram: EdgeProgramType

Defined in

edge-curve/src/index.ts:18


default

Const default: EdgeProgramType

Defined in

edge-curve/src/index.ts:15

Functions

createDrawCurvedEdgeLabel

createDrawCurvedEdgeLabel<N, E, G>(«destructured»): EdgeLabelDrawingFunction<N, E, G>

Type parameters

NameType
Nextends Attributes = Attributes
Eextends Attributes = Attributes
Gextends Attributes = Attributes

Parameters

NameType
«destructured»CreateEdgeCurveProgramOptions

Returns

EdgeLabelDrawingFunction<N, E, G>

Defined in

edge-curve/src/edge-labels.ts:31


createEdgeCurveProgram

createEdgeCurveProgram<N, E, G>(inputOptions?): EdgeProgramType<N, E, G>

Type parameters

NameType
Nextends Attributes = Attributes
Eextends Attributes = Attributes
Gextends Attributes = Attributes

Parameters

NameType
inputOptions?Partial<CreateEdgeCurveProgramOptions<N, E, G>>

Returns

EdgeProgramType<N, E, G>

Defined in

edge-curve/src/factory.ts:13


indexParallelEdgesIndex

indexParallelEdgesIndex(graph, options?): void

Parameters

NameType
graphdefault<Attributes, Attributes, Attributes>
options?Partial<{ edgeIndexAttribute: string = "parallelIndex"; edgeMaxIndexAttribute: string = "parallelMaxIndex"; edgeMinIndexAttribute: string = "parallelMinIndex" }>

Returns

void

Defined in

edge-curve/src/utils.ts:37