本文へ移動

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

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

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

optional type?: string | readonly string[]

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.

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