本文へ移動

@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? ​

optional clockwise?: boolean

Defined in: src/core/graphLayouts.ts:286

Place nodes clockwise on screen. Default true.


nodeGap? ​

optional nodeGap?: number

Defined in: src/core/graphLayouts.ts:279

Free space between neighbouring boxes on the circle.


nodeHeight? ​

optional nodeHeight?: number

Defined in: src/core/graphLayouts.ts:277


nodeWidth? ​

optional nodeWidth?: number

Defined in: src/core/graphLayouts.ts:276


padding? ​

optional padding?: number

Defined in: src/core/graphLayouts.ts:280


radius? ​

optional radius?: 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? ​

optional sort?: (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? ​

optional startAngle?: 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).

MIT ライセンスで公開しています。