@woosh/meep-engine 2.111.0 → 2.111.1

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/build/meep.cjs CHANGED
@@ -1015,7 +1015,8 @@ SignalHandler.prototype.isSignalHandler = true;
1015
1015
 
1016
1016
  /**
1017
1017
  * Signal is a type of event bus. You can subscribe to events using {@link add} method and dispatch using sendN method where N is the number of arguments you wish to pass
1018
- * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference. Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
1018
+ * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference.
1019
+ * Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
1019
1020
  * @example `const mouseDown = new Signal<MouseEvent>(); mouseDown.send1(myMouseEvent);`
1020
1021
  */
1021
1022
  class Signal {
@@ -1013,7 +1013,8 @@ SignalHandler.prototype.isSignalHandler = true;
1013
1013
 
1014
1014
  /**
1015
1015
  * Signal is a type of event bus. You can subscribe to events using {@link add} method and dispatch using sendN method where N is the number of arguments you wish to pass
1016
- * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference. Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
1016
+ * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference.
1017
+ * Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
1017
1018
  * @example `const mouseDown = new Signal<MouseEvent>(); mouseDown.send1(myMouseEvent);`
1018
1019
  */
1019
1020
  class Signal {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.111.0",
8
+ "version": "2.111.1",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"Signal.d.ts","sourceRoot":"","sources":["../../../../../src/core/events/signal/Signal.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACI;;;;OAIG;IACH,iBAAqB;IAErB;;;;OAIG;IACH,cAAU;IAWV;;;OAGG;IACH,yBAEC;IAfD;;;OAGG;IACH,sBAEC;IAYD;;;;OAIG;IACH,cAHW,MAAM;;KAAY,GAChB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM;;KAAY,GAChB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM;;KAAY,SAClB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM;;KAAY,GAChB,OAAO,CAInB;IAGD;;;;;OAKG;IACH,4CAFa,OAAO,CAcnB;IAED,aAEC;IAED,eAEC;IAED;;;OAGG;IACH,eAFa,OAAO,CAInB;IAED;;;;OAIG;IACH,yCAQC;IAED;;;;OAIG;IACH,sCAOC;IA4BD;;;;;OAKG;IACH,oCAFa,OAAO,CA2CnB;IAED;;;;;;OAMG;IACH,kBAEC;IAqDD;;;OAGG;IACH,+BAoCC;IAGD;;;OAGG;IACH,cAoCC;IAED;;;;OAIG;IACH,sBAoCC;IAED;;;;OAIG;IACH,4BAmCC;IAED;;;;;OAKG;IACH,oCAoCC;IAED;;;;;;OAMG;IACH,4CAoCC;IAED;;;;;;;;OAQG;IACH,4DAoCC;IAED;;;;;;;;;;OAUG;IACH,4EAmCC;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,MAAM,CAalB;IAIL;;;OAGG;IACH,mBAFU,OAAO,CAEQ;;CAPxB"}
1
+ {"version":3,"file":"Signal.d.ts","sourceRoot":"","sources":["../../../../../src/core/events/signal/Signal.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH;IACI;;;;OAIG;IACH,iBAAqB;IAErB;;;;OAIG;IACH,cAAU;IAWV;;;OAGG;IACH,yBAEC;IAfD;;;OAGG;IACH,sBAEC;IAYD;;;;OAIG;IACH,cAHW,MAAM;;KAAY,GAChB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM;;KAAY,GAChB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM;;KAAY,SAClB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM;;KAAY,GAChB,OAAO,CAInB;IAGD;;;;;OAKG;IACH,4CAFa,OAAO,CAcnB;IAED,aAEC;IAED,eAEC;IAED;;;OAGG;IACH,eAFa,OAAO,CAInB;IAED;;;;OAIG;IACH,yCAQC;IAED;;;;OAIG;IACH,sCAOC;IA4BD;;;;;OAKG;IACH,oCAFa,OAAO,CA2CnB;IAED;;;;;;OAMG;IACH,kBAEC;IAqDD;;;OAGG;IACH,+BAoCC;IAGD;;;OAGG;IACH,cAoCC;IAED;;;;OAIG;IACH,sBAoCC;IAED;;;;OAIG;IACH,4BAmCC;IAED;;;;;OAKG;IACH,oCAoCC;IAED;;;;;;OAMG;IACH,4CAoCC;IAED;;;;;;;;OAQG;IACH,4DAoCC;IAED;;;;;;;;;;OAUG;IACH,4EAmCC;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,MAAM,CAalB;IAIL;;;OAGG;IACH,mBAFU,OAAO,CAEQ;;CAPxB"}
@@ -6,7 +6,8 @@ import { SignalHandler, SignalHandlerFlags } from "./SignalHandler.js";
6
6
 
7
7
  /**
8
8
  * Signal is a type of event bus. You can subscribe to events using {@link add} method and dispatch using sendN method where N is the number of arguments you wish to pass
9
- * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference. Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
9
+ * Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference.
10
+ * Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
10
11
  * @example `const mouseDown = new Signal<MouseEvent>(); mouseDown.send1(myMouseEvent);`
11
12
  */
12
13
  export class Signal {
@@ -33,12 +33,12 @@ export class NodeGraph {
33
33
  * @readonly
34
34
  * @type {Signal<NodeInstance,number>}
35
35
  */
36
- readonly nodeAdded: Signal<NodeInstance, number>;
36
+ readonly nodeAdded: Signal<NodeInstance<import("./node/NodeDescription.js").NodeDescription>, number>;
37
37
  /**
38
38
  * @readonly
39
39
  * @type {Signal<NodeInstance,number>}
40
40
  */
41
- readonly nodeRemoved: Signal<NodeInstance, number>;
41
+ readonly nodeRemoved: Signal<NodeInstance<import("./node/NodeDescription.js").NodeDescription>, number>;
42
42
  /**
43
43
  * @readonly
44
44
  * @type {Signal<Connection,number>}
@@ -1,18 +1,18 @@
1
- import {NodeDescription} from "./NodeDescription";
2
- import {NodeInstancePortReference} from "./NodeInstancePortReference";
3
1
  import List from "../../../collection/list/List";
4
2
  import {Connection} from "../Connection";
3
+ import {NodeDescription} from "./NodeDescription";
4
+ import {NodeInstancePortReference} from "./NodeInstancePortReference";
5
5
 
6
- export class NodeInstance {
6
+ export class NodeInstance<N extends NodeDescription = NodeDescription> {
7
7
  readonly id: number
8
8
 
9
- readonly description: NodeDescription
9
+ readonly description: N
10
10
 
11
11
  readonly endpoints: NodeInstancePortReference[]
12
12
 
13
13
  readonly connections: List<Connection>
14
14
 
15
- setDescription(d: NodeDescription): void
15
+ setDescription(d: N): void
16
16
 
17
17
  setParameters(hash: { [key: string]: any }): void
18
18
  }