@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 +2 -1
- package/build/meep.module.js +2 -1
- package/package.json +1 -1
- package/src/core/events/signal/Signal.d.ts.map +1 -1
- package/src/core/events/signal/Signal.js +2 -1
- package/src/core/model/node-graph/NodeGraph.d.ts +2 -2
- package/src/core/model/node-graph/node/NodeInstance.d.ts +5 -5
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.
|
|
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 {
|
package/build/meep.module.js
CHANGED
|
@@ -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.
|
|
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Signal.d.ts","sourceRoot":"","sources":["../../../../../src/core/events/signal/Signal.js"],"names":[],"mappings":"AAMA
|
|
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.
|
|
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
|
|
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
|
|
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:
|
|
9
|
+
readonly description: N
|
|
10
10
|
|
|
11
11
|
readonly endpoints: NodeInstancePortReference[]
|
|
12
12
|
|
|
13
13
|
readonly connections: List<Connection>
|
|
14
14
|
|
|
15
|
-
setDescription(d:
|
|
15
|
+
setDescription(d: N): void
|
|
16
16
|
|
|
17
17
|
setParameters(hash: { [key: string]: any }): void
|
|
18
18
|
}
|