Skip to content

@eightkk/vue-weave / core / GraphLayoutChangeMetrics

Interface: GraphLayoutChangeMetrics ​

Defined in: src/core/graphIncremental.ts:427

What graphLayoutChangeMetrics measured. A diagnostic of one layout change, not a benchmark.

Properties ​

compared ​

compared: number

Defined in: src/core/graphIncremental.ts:429

Nodes with a position before and a box after.


edgeBoxIntersections ​

edgeBoxIntersections: number

Defined in: src/core/graphIncremental.ts:439

Pairs of an edge and a box other than its end boxes where the edge's path passes through the box's interior.


maxDisplacement ​

maxDisplacement: number

Defined in: src/core/graphIncremental.ts:431

Largest distance a compared node moved (between top-left corners).


movedIds ​

movedIds: string[]

Defined in: src/core/graphIncremental.ts:435

Compared nodes that moved, in the order of before.


overlaps ​

overlaps: number

Defined in: src/core/graphIncremental.ts:437

Pairs of boxes of after whose interiors overlap.


totalDisplacement ​

totalDisplacement: number

Defined in: src/core/graphIncremental.ts:433

Sum of the distances the compared nodes moved.

Released under the MIT License.