日本語
@eightkk/vue-weave / core / GraphCircularLayoutOptions
Interface: GraphCircularLayoutOptions<N>
Defined in: src/core/graphLayouts.ts:275
Options of layoutCircularGraph. N is the node type, so sort receives your own nodes.
Type Parameters
N
N extends IdentifiedNode = IdentifiedNode
Properties
clockwise?
optionalclockwise?:boolean
Defined in: src/core/graphLayouts.ts:286
Place nodes clockwise on screen. Default true.
nodeGap?
optionalnodeGap?:number
Defined in: src/core/graphLayouts.ts:279
Free space between neighbouring boxes on the circle.
nodeHeight?
optionalnodeHeight?:number
Defined in: src/core/graphLayouts.ts:277
nodeWidth?
optionalnodeWidth?:number
Defined in: src/core/graphLayouts.ts:276
padding?
optionalpadding?:number
Defined in: src/core/graphLayouts.ts:280
radius?
optionalradius?:number
Defined in: src/core/graphLayouts.ts:282
Circle radius (distance from the circle centre to the box centres). Throws a RangeError when neighbouring boxes would overlap. Default: the smallest radius that keeps nodeGap between neighbours.
sort?
optionalsort?: (a,b) =>number
Defined in: src/core/graphLayouts.ts:288
Reorders the nodes before placement (a stable sort of a copy). Default: input order.
Parameters
a
N
b
N
Returns
number
startAngle?
optionalstartAngle?:number
Defined in: src/core/graphLayouts.ts:284
Angle of the first node in radians, measured clockwise from the positive x axis in screen coordinates. Default: -Math.PI / 2 (top).