English
@eightkk/vue-weave / core / GraphPortRule
Interface: GraphPortRule
Defined in: src/core/graphPortRules.ts:9
What one connection endpoint (a named port, or a node without ports) accepts. Every field is optional.
Properties
direction?
optionaldirection?:GraphPortDirection
Defined in: src/core/graphPortRules.ts:19
Which way connections may use the endpoint. It applies together with GraphPort.direction: a port with direction: 'target' stays a target only, whatever its rule says. Default both.
maxConnections?
optionalmaxConnections?:number
Defined in: src/core/graphPortRules.ts:21
The most edges that may use the endpoint, counting each edge end. A non-negative integer; omit for no limit.
type?
optionaltype?:string| readonlystring[]
Defined in: src/core/graphPortRules.ts:14
The type tag of the endpoint, or a list of accepted tags. Two endpoints are compatible when either has no type or they share at least one tag.