English
@eightkk/vue-weave / core / GraphLayoutRoute
Interface: GraphLayoutRoute
Defined in: src/core/graph.ts:185
Optional metadata of one routed edge, which an external layout or router can return next to its SVG path. The preserve routing policy uses it to check that a kept route still starts and ends where the edge does: at the named port when the edge has one, on the given box side, and at the same points as the path.
Properties
end
end:
GraphPoint
Defined in: src/core/graph.ts:189
Last point of the route, on the target box border (at the target port when the edge has one).
fromPort?
optionalfromPort?:string
Defined in: src/core/graph.ts:191
The source port the route leaves from; it must equal the edge's fromPort.
fromSide?
optionalfromSide?:"left"|"right"|"top"|"bottom"
Defined in: src/core/graph.ts:195
The side of the source box the route leaves through (its first direction of travel is away from it).
points?
optionalpoints?: readonlyGraphPoint[]
Defined in: src/core/graph.ts:199
Bend points between start and end, in order.
start
start:
GraphPoint
Defined in: src/core/graph.ts:187
First point of the route, on the source box border (at the source port when the edge has one).
toPort?
optionaltoPort?:string
Defined in: src/core/graph.ts:193
The target port the route enters; it must equal the edge's toPort.
toSide?
optionaltoSide?:"left"|"right"|"top"|"bottom"
Defined in: src/core/graph.ts:197
The side of the target box the route enters through (its last direction of travel is into it).