@graphty/layout / index / SpiralLayoutOptions
Interface: SpiralLayoutOptions
Defined in: indexed/spiral.ts:7
Options of the index-based spiral layout.
Extends
Properties
center?
readonlyoptionalcenter?:ArrayLike<number>
Defined in: indexed/common.ts:12
The centre (for random, the lowest corner of its cell, as in the legacy layout); missing components are 0. Default the origin.
Inherited from
dim?
readonlyoptionaldim?:2|3
Defined in: indexed/common.ts:8
Components per row, 2 or 3; default 2.
Inherited from
equidistant?
readonlyoptionalequidistant?:boolean
Defined in: indexed/spiral.ts:11
Space consecutive nodes one unit apart along the spiral instead of by equal angles; default false.
resolution?
readonlyoptionalresolution?:number
Defined in: indexed/spiral.ts:9
Angle between consecutive nodes, in radians, or the start angle when equidistant; default 0.35.
scale?
readonlyoptionalscale?:number
Defined in: indexed/common.ts:10
Size of the layout around its centre; default 1. What it measures is documented per layout.
Inherited from
seed?
readonlyoptionalseed?:number|null
Defined in: indexed/common.ts:14
Seed of a layout that draws random numbers; a random seed when absent or null.