Skip to main content

Function: createEdgeCompoundProgram()

createEdgeCompoundProgram<N, E, G>(programClasses, drawLabel?): EdgeProgramType<N, E, G>

Helper function combining two or more programs into a single compound one. Note that this is more a quick & easy way to combine program than a really performant option. More performant programs can be written entirely.

Type Parameters

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

Parameters

programClasses: (_gl, _pickingBuffer, _renderer) => _EdgeProgramClass<N, E, G>[]

Program classes to combine.

drawLabel?: EdgeLabelDrawingFunction<N, E, G>

An optional edge "draw label" function.

Returns

EdgeProgramType<N, E, G>

Defined in

sigma/src/rendering/edge.ts:120