Skip to content

@eightkk/vue-weave / core / GraphPortRules

Interface: GraphPortRules ​

Defined in: src/core/graphPortRules.ts:29

Connection rules for a graph, kept apart from the node and port data so existing data and types stay unchanged. A connection end on a named port uses ports[nodeId][portId], a connection end without a port uses nodes[nodeId], and either falls back to default. An endpoint without any rule accepts every connection.

Properties ​

default? ​

optional default?: GraphPortRule

Defined in: src/core/graphPortRules.ts:35

Rule of every endpoint that has no rule of its own.


nodes? ​

optional nodes?: Readonly<Record<string, GraphPortRule>>

Defined in: src/core/graphPortRules.ts:33

Rules of the node itself, for connections without a port (the single handle of a node without ports).


ports? ​

optional ports?: Readonly<Record<string, Readonly<Record<string, GraphPortRule>>>>

Defined in: src/core/graphPortRules.ts:31

Rules of named ports, keyed by node ID and then port ID.

Released under the MIT License.