composition-plot

Home > composition-plot > verticesFnFactory

verticesFnFactory() function

Helper function that returns a VerticesFn for a set of predefined plot layouts.

Signature:

export declare function verticesFnFactory(plotType: PlotTypes, origin: Vec2, size: number, fontSize: number): VerticesFn;

Parameters

Parameter Type Description
plotType PlotTypes The layout of the composition plot
origin Vec2 The origin of the plot
size number The length of the plot edge
fontSize number The size of the vertex labels

Returns:

VerticesFn

A VerticesFn