Skip to main content

Function: createNodeCompoundProgram()

createNodeCompoundProgram<N, E, G>(programClasses, drawLabel?, drawHover?): NodeProgramType<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: NonEmptyArray<(_gl, _pickingBuffer, _renderer) => NodeProgramClass<N, E, G>>

Program classes to combine.

drawLabel?: NodeLabelDrawingFunction<N, E, G>

An optional node "draw label" function.

drawHover?: NodeLabelDrawingFunction<N, E, G>

An optional node "draw hover" function.

Returns

NodeProgramType<N, E, G>

Defined in

sigma/src/rendering/node.ts:99