日本語
@eightkk/vue-weave / core / graphConnectionValidator
Function: graphConnectionValidator()
graphConnectionValidator(
nodes,edges,rules,validate?): (connection,replacingEdgeId?) =>string|boolean|void
Defined in: src/core/graphPortRules.ts:336
A validateConnection function for NetworkGraph: the rules run first, and a rejection returns its reason without calling validate; otherwise validate (when given) decides. Build it again when the nodes, edges or rules change.
Parameters
nodes
readonly IdentifiedNode[]
edges
readonly GraphEdge<unknown>[]
rules
validate?
(connection, replacingEdgeId?) => string | boolean | void
Returns
(connection, replacingEdgeId?) => string | boolean | void