Specifies the way two Groups are connected.
Connections can be made between groups using these built-in connection methods and within a group itself by calling the Group connection method with itself as a target.
To learn more about the formed connections between Nodes, Groups, and Layers please see Connection
- Source:
Examples
Copy
let { methods, Group } = require("@liquid-carrot/carrot");
let A = new Group(4);
let B = new Group(5);
A.connect(B, methods.connection.ALL_TO_ALL_FORWARD); // specifying a method is optional
Copy
let { methods, Group } = require("@liquid-carrot/carrot");
let A = new Group(4);
A.connect(A, methods.connection.ALL_TO_ALL_FORWARD);
Members
(static, constant) ALL_TO_ALL_FORWARD :object
The default connection method between Groups
Type:
- object
Example
Copy
let { methods, Group } = require("@liquid-carrot/carrot");
let A = new Group(4);
let B = new Group(5);
A.connect(B, methods.connection.ALL_TO_ALL_FORWARD); // specifying a method is optional
- Source:
- Default Value:
{ "name": "OUTPUT" }
(static, constant) ALL_TO_ELSE :object
Connects each node in GroupX
to all nodes in GroupY
except for the nodes also contained within itself
Type:
- object
Example
Copy
let { methods, Group } = require("@liquid-carrot/carrot");
let A = new Group(4);
let B = new Group(5);
A.connect(B, methods.connection.ALL_TO_ELSE); // specifying a method is optional
- Source:
- Default Value:
{ "name": "INPUT" }
(static, constant) ONE_TO_ONE :object
The default connection method when connecting Groups to themselves
Type:
- object
Example
Copy
let { methods, Group } = require("@liquid-carrot/carrot");
let A = new Group(4);
let B = new Group(5);
A.connect(A, methods.connection.ONE_TO_ONE); // specifying a method is optional
- Source:
- Default Value:
{ "name": "SELF" }