@woosh/meep-engine 2.44.2 → 2.44.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,6 +80,23 @@ export class NodeInstance {
80
80
  return count;
81
81
  }
82
82
 
83
+ /**
84
+ * Outgoing connections from this node
85
+ * @return {Connection[]}
86
+ */
87
+ get outConnections() {
88
+ return this.connections.filter(c => c.source.instance === this);
89
+ }
90
+
91
+ /**
92
+ *
93
+ * Incoming connections to this node
94
+ * @return {Connection[]}
95
+ */
96
+ get inConnections() {
97
+ return this.connections.filter(c => c.target.instance === this);
98
+ }
99
+
83
100
  /**
84
101
  *
85
102
  * @param {number} id
@@ -40,6 +40,22 @@ export class NodeInstancePortReference {
40
40
  this.connections = [];
41
41
  }
42
42
 
43
+ /**
44
+ * Outgoing connections
45
+ * @return {Connection[]}
46
+ */
47
+ get outConnections() {
48
+ return this.connections.filter(c => c.source === this);
49
+ }
50
+
51
+ /**
52
+ * Incoming connections
53
+ * @return {Connection[]}
54
+ */
55
+ get inConnections() {
56
+ return this.connections.filter(c => c.target === this);
57
+ }
58
+
43
59
 
44
60
  /**
45
61
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.44.2",
8
+ "version": "2.44.3",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",