canConnectPorts
canConnectPorts(
graph,catalog,from,fromPort,to,toPort):boolean
Defined in: logic/graphOps.ts:74
Whether a wire may be drawn. Both halves of the answer live here: the ports must exist and their types must meet.
Parameters
Section titled “Parameters”catalog
Section titled “catalog”string
fromPort
Section titled “fromPort”string
string
toPort
Section titled “toPort”string
Returns
Section titled “Returns”boolean