@woosh/meep-engine 2.46.5 → 2.46.6

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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "productName": "Meep",
5
5
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
6
6
  "author": "Alexander Goldring",
7
- "version": "2.46.5",
7
+ "version": "2.46.6",
8
8
  "main": "build/meep.module.js",
9
9
  "module": "build/meep.module.js",
10
10
  "scripts": {
@@ -34,8 +34,36 @@ export class NodeGraph {
34
34
  * @private
35
35
  */
36
36
  this.__idpConnections = new IdPool();
37
+
38
+ /**
39
+ * @readonly
40
+ */
41
+ this.on = {
42
+ /**
43
+ * @type {Signal<NodeInstance,number>}
44
+ */
45
+ nodeAdded: this.nodes.on.added,
46
+
47
+ /**
48
+ * @type {Signal<NodeInstance,number>}
49
+ */
50
+ nodeRemoved: this.nodes.on.removed,
51
+
52
+ /**
53
+ * @type {Signal<Connection,number>}
54
+ */
55
+ connectionAdded: this.connections.on.added,
56
+
57
+ /**
58
+ * @type {Signal<Connection,number>}
59
+ */
60
+ connectionRemoved: this.connections.on.removed
61
+ };
37
62
  }
38
63
 
64
+ /**
65
+ * Clear out all data from the graph
66
+ */
39
67
  reset() {
40
68
  this.nodes.reset();
41
69
  this.connections.reset();