日本語
@eightkk/vue-weave / core / applyGraphSizes
Function: applyGraphSizes()
applyGraphSizes(
layout,edges,sizes,direction?):GraphLayout
Defined in: src/core/graph.ts:560
Apply saved node sizes on top of a layout (after any positions), keeping each box's top-left corner. Edges that touch a resized node are rerouted like moved ones; other routes are kept. IDs without a box are ignored. Throws RangeError for a size that is not finite and positive. Returns the same layout when nothing changes.
Parameters
layout
edges
readonly GraphEdge<unknown>[]
sizes
ReadonlyMap<string, GraphNodeSize>
direction?
GraphLayoutDirection = 'LR'