Home > composition-plot > verticesFnFactory
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;
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:
A VerticesFn