@woosh/meep-engine 2.131.14 → 2.131.17
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/README.md +2 -2
- package/package.json +1 -1
- package/src/core/codegen/LineBuilder.d.ts +4 -2
- package/src/core/codegen/LineBuilder.d.ts.map +1 -1
- package/src/core/codegen/LineBuilder.js +5 -2
- package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.d.ts +6 -5
- package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.d.ts.map +1 -1
- package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.js +19 -13
- package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.d.ts +6 -5
- package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.d.ts.map +1 -1
- package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.js +18 -10
- package/src/core/color/illuminant/D65_spd_analytical.d.ts.map +1 -1
- package/src/core/color/illuminant/D65_spd_analytical.js +1 -25
- package/src/core/color/illuminant/planckian_radiance.d.ts +8 -0
- package/src/core/color/illuminant/planckian_radiance.d.ts.map +1 -0
- package/src/core/color/illuminant/planckian_radiance.js +41 -0
- package/src/core/color/kelvin/kelvin_to_rgb.d.ts +11 -4
- package/src/core/color/kelvin/kelvin_to_rgb.d.ts.map +1 -1
- package/src/core/color/kelvin/kelvin_to_rgb.js +134 -30
- package/src/core/color/kelvin/rgb_to_kelvin.d.ts +4 -1
- package/src/core/color/kelvin/rgb_to_kelvin.d.ts.map +1 -1
- package/src/core/color/kelvin/rgb_to_kelvin.js +34 -9
- package/src/core/color/rgb_to_luminance.d.ts +7 -4
- package/src/core/color/rgb_to_luminance.d.ts.map +1 -1
- package/src/core/color/rgb_to_luminance.js +8 -5
- package/src/core/color/sRGB/linear_to_sRGB.d.ts +6 -1
- package/src/core/color/sRGB/linear_to_sRGB.d.ts.map +1 -1
- package/src/core/color/sRGB/linear_to_sRGB.js +5 -0
- package/src/core/color/sRGB/sRGB_to_linear.d.ts +3 -2
- package/src/core/color/sRGB/sRGB_to_linear.d.ts.map +1 -1
- package/src/core/color/sRGB/sRGB_to_linear.js +2 -1
- package/src/core/color/xyz/xyz_cmf_tabulated.d.ts.map +1 -1
- package/src/core/color/xyz/xyz_cmf_tabulated.js +174 -175
- package/src/core/math/frexp.d.ts.map +1 -1
- package/src/core/math/frexp.js +1 -0
- package/src/core/model/node-graph/visual/NodeDescriptionVisualRegistry.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/NodeDescriptionVisualRegistry.js +5 -7
- package/src/core/model/node-graph/visual/NodeGraphVisualData.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/NodeGraphVisualData.js +10 -12
- package/src/core/model/node-graph/visual/NodeVisualData.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/NodeVisualData.js +16 -17
- package/src/core/model/node-graph/visual/PortVisualData.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/PortVisualData.js +7 -9
- package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.d.ts +2 -1
- package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.js +14 -14
- package/src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.js +21 -23
- package/src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.js +10 -12
- package/src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.d.ts.map +1 -1
- package/src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.js +10 -14
- package/src/engine/ecs/storage/BinaryBufferDeSerializer.js +1 -1
- package/src/engine/graphics/particles/node-based/codegen/CodeContext.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/CodeContext.js +7 -10
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js +30 -32
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js +10 -12
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js +5 -8
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.js +10 -12
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.js +11 -13
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.js +12 -12
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts +8 -18
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js +9 -11
- package/src/engine/graphics/particles/node-based/particle/ParticleSpecification.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/particle/ParticleSpecification.js +34 -36
- package/src/engine/graphics/particles/node-based/rendering/ParticleRenderCommand.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/rendering/ParticleRenderCommand.js +10 -12
- package/src/engine/graphics/particles/node-based/rendering/ParticleRenderSpecification.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/rendering/ParticleRenderSpecification.js +6 -8
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +123 -124
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js +32 -30
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts +7 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js +6 -6
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.js +5 -9
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts +10 -10
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js +36 -29
- package/src/engine/graphics/particles/particular/engine/shader/MaterialRecord.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/shader/MaterialRecord.js +29 -33
- package/src/view/View.d.ts.map +1 -1
- package/src/view/View.js +4 -6
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.d.ts +0 -14
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.js +0 -18
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.d.ts +0 -8
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.js +0 -10
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.d.ts +0 -38
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.d.ts.map +0 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.js +0 -278
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import Vector2 from "../../../geom/Vector2.js";
|
|
2
2
|
|
|
3
3
|
export class PortVisualData {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.position = new Vector2();
|
|
12
|
-
}
|
|
4
|
+
id = 0;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @type {Vector2}
|
|
9
|
+
*/
|
|
10
|
+
position = new Vector2();
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class BoxLayoutSpec {
|
|
2
|
-
bounds:
|
|
2
|
+
bounds: AABB2;
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @type {ConnectionLayoutSpec[]}
|
|
@@ -11,4 +11,5 @@ export class BoxLayoutSpec {
|
|
|
11
11
|
*/
|
|
12
12
|
locked: boolean;
|
|
13
13
|
}
|
|
14
|
+
import AABB2 from "../../../../geom/2d/aabb/AABB2.js";
|
|
14
15
|
//# sourceMappingURL=BoxLayoutSpec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoxLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/BoxLayoutSpec.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BoxLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/BoxLayoutSpec.js"],"names":[],"mappings":"AAGA;IACI,cAAqB;IAErB;;;OAGG;IACH,aAFU,sBAAsB,CAEf;IAEjB;;;OAGG;IACH,QAFU,OAAO,CAEF;CAElB;kBAlBiB,mCAAmC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import AABB2 from "../../../../geom/AABB2.js";
|
|
1
|
+
import AABB2 from "../../../../geom/2d/aabb/AABB2.js";
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
export class BoxLayoutSpec {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
bounds = new AABB2();
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {ConnectionLayoutSpec[]}
|
|
10
|
+
*/
|
|
11
|
+
connections = [];
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
*/
|
|
17
|
+
locked = false;
|
|
12
18
|
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {boolean}
|
|
16
|
-
*/
|
|
17
|
-
this.locked = false;
|
|
18
|
-
}
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedBoxLayouter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectedBoxLayouter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.js"],"names":[],"mappings":"AAMA;IAGI;;;OAGG;IACH,OAFU,eAAe,CAEd;IACX;;;OAGG;IACH,aAFU,sBAAsB,CAEf;IAGjB;;;;OAIG;IACH,oCAAiD;IAGjD;;;OAGG;IACH,kBAHW,eAAe,eACf,sBAAsB,QAahC;IAED,gDAYC;IAED;;;;;OAKG;IACH,2BA6BC;IAED,0BAkDC;IAED;;;;;OAKG;IACH,0BAqBC;IAED,wCAQC;IAED,uCAQC;IAED,oCAkBC;IAED,aAOC;IAED,eAYC;CACJ"}
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { QuadTreeNode } from "../../../../geom/2d/quad-tree/QuadTreeNode.js";
|
|
2
|
-
import AABB2 from "../../../../geom/AABB2.js";
|
|
3
2
|
import Vector2 from "../../../../geom/Vector2.js";
|
|
4
3
|
import { resolveBoxOverlapUsingForce } from "../../../../graph/layout/box/resolveBoxOverlapUsingForce.js";
|
|
5
4
|
import { seededRandom } from "../../../../math/random/seededRandom.js";
|
|
6
5
|
|
|
7
|
-
const temp_aabb2 = new AABB2();
|
|
8
6
|
|
|
9
7
|
export class ConnectedBoxLayouter {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type {BoxLayoutSpec[]}
|
|
13
|
+
*/
|
|
14
|
+
boxes = [];
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {ConnectionLayoutSpec[]}
|
|
18
|
+
*/
|
|
19
|
+
connections = [];
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {QuadTreeNode<>}
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
__spatial_index_connections = new QuadTreeNode();
|
|
28
|
+
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* @param {BoxLayoutSpec[]} boxes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionEndpointLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.js"],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"file":"ConnectionEndpointLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.js"],"names":[],"mappings":"AAAA;IA0BI;;;;OAIG;IACH,yCAFa,4BAA4B,CASxC;IApCD;;;OAGG;IACH,mBAAW;IAEX;;;OAGG;IACH,eAAa;IAGb;;;OAGG;IACH,uCAKC;CAeJ"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
export class ConnectionEndpointLayoutSpec {
|
|
2
|
-
constructor() {
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @type {BoxLayoutSpec}
|
|
6
|
+
*/
|
|
7
|
+
box = null;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Local offset inside the box where connection is attached
|
|
11
|
+
* @type {Vector2}
|
|
12
|
+
*/
|
|
13
|
+
point = null;
|
|
15
14
|
|
|
16
|
-
}
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.js"],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"file":"ConnectionLayoutSpec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.js"],"names":[],"mappings":"AAAA;IAcI;;;;OAIG;IACH,yFAFa,oBAAoB,CAShC;IAxBD;;;OAGG;IACH,qCAAc;IACd;;;OAGG;IACH,qCAAc;CAgBjB"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
export class ConnectionLayoutSpec {
|
|
2
|
-
constructor() {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @type {ConnectionEndpointLayoutSpec}
|
|
7
|
-
*/
|
|
8
|
-
this.source = null;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {ConnectionEndpointLayoutSpec}
|
|
12
|
-
*/
|
|
13
|
-
this.target = null;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
2
|
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @type {ConnectionEndpointLayoutSpec}
|
|
6
|
+
*/
|
|
7
|
+
source = null;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @type {ConnectionEndpointLayoutSpec}
|
|
11
|
+
*/
|
|
12
|
+
target = null;
|
|
17
13
|
|
|
18
14
|
|
|
19
15
|
/**
|
|
@@ -61,7 +61,7 @@ class BinaryBufferDeSerializer {
|
|
|
61
61
|
task = deserializeTask(numSerializedTypes, buffer, context, dataset, this.registry);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
task.on.
|
|
64
|
+
task.on.completed.add(function () {
|
|
65
65
|
const entity_count_after = dataset.entityCount;
|
|
66
66
|
|
|
67
67
|
const execution_time = task.getExecutedCpuTime();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/codegen/CodeContext.js"],"names":[],"mappings":"AAGA;
|
|
1
|
+
{"version":3,"file":"CodeContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/codegen/CodeContext.js"],"names":[],"mappings":"AAGA;IACI,2BAAuB;IAEvB;;;;OAIG;IACH,8BAAsC;IAEtC;;;;OAIG;IACH,+CAFa,MAAM,CAiBlB;IAED;;OAEG;IACH,cAFa,MAAM,CASlB;CACJ"}
|
|
@@ -2,17 +2,14 @@ import { HashMap } from "../../../../../core/collection/map/HashMap.js";
|
|
|
2
2
|
import { NodeInstancePortReference } from "../../../../../core/model/node-graph/node/NodeInstancePortReference.js";
|
|
3
3
|
|
|
4
4
|
export class CodeContext {
|
|
5
|
-
|
|
6
|
-
this.__identifier_count = 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {HashMap<NodeInstancePortReference,String>}
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
this.__port_identifier_map = new HashMap();
|
|
14
|
-
}
|
|
5
|
+
__identifier_count = 0;
|
|
15
6
|
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {HashMap<NodeInstancePortReference,String>}
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
__port_identifier_map = new HashMap();
|
|
16
13
|
|
|
17
14
|
/**
|
|
18
15
|
* @param {NodeInstance} node
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionModule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"FunctionModule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js"],"names":[],"mappings":"AAKA;IA+BI;;;;;;;;OAQG;IACH,yEAPW,MAAM,GAKJ,cAAc,CAqB1B;IA1DD;;;OAGG;IACH,IAFU,MAAM,CAER;IAER;;;OAGG;IACH,WAFU,iBAAiB,CAES;IAEpC;;;OAGG;IACH,cAFU,uBAAuB,EAAE,CAEjB;IAElB;;;OAGG;IACH,gBAFU,gCAAgC,CAEtB;IAEpB;;;OAGG;IACH,YAFU,WAAW,CAEU;IAgC/B;;;;OAIG;IACH,4BAHW,uBAAuB,GACrB,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,iBAAiB,GACf,OAAO,CAoBnB;IAED;;;OAGG;IACH,iBAFW,WAAW,QAMrB;IAGL;;;OAGG;IACH,2BAFU,OAAO,CAEwB;CANxC;kCAzHiC,wBAAwB;wCADlB,8BAA8B;wBAD9C,+CAA+C"}
|
|
@@ -4,37 +4,35 @@ import { FunctionModuleReference } from "./FunctionModuleReference.js";
|
|
|
4
4
|
import { FunctionSignature } from "./FunctionSignature.js";
|
|
5
5
|
|
|
6
6
|
export class FunctionModule {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.code_lines = new LineBuilder();
|
|
37
|
-
}
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
id = '';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {FunctionSignature}
|
|
16
|
+
*/
|
|
17
|
+
signature = new FunctionSignature();
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {FunctionModuleReference[]}
|
|
22
|
+
*/
|
|
23
|
+
dependencies = [];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* These variables must be present in the program context
|
|
27
|
+
* @type {ParticleAttributeSpecification[]}
|
|
28
|
+
*/
|
|
29
|
+
read_variables = [];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {LineBuilder}
|
|
34
|
+
*/
|
|
35
|
+
code_lines = new LineBuilder();
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
38
|
*
|
|
@@ -51,7 +49,7 @@ export class FunctionModule {
|
|
|
51
49
|
dependencies = [],
|
|
52
50
|
read_variables = [],
|
|
53
51
|
code_lines
|
|
54
|
-
|
|
52
|
+
}) {
|
|
55
53
|
|
|
56
54
|
assert.isString(id, 'id');
|
|
57
55
|
|
package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionModuleReference.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js"],"names":[],"mappings":"AAEA;
|
|
1
|
+
{"version":3,"file":"FunctionModuleReference.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js"],"names":[],"mappings":"AAEA;IAeI;;;;;OAKG;IACH,gBAJW,MAAM,iCAEJ,uBAAuB,CAenC;IAhCD;;;OAGG;IACH,IAFU,MAAM,CAER;IAER;;;OAGG;IACH,6BAAiB;IAwBjB;;;;OAIG;IACH,cAHW,uBAAuB,GACrB,OAAO,CAQnB;IAED,mBAEC;IAIL;;;OAGG;IACH,oCAFU,OAAO,CAE0C;CAP1D"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { assert } from "../../../../../../core/assert.js";
|
|
2
2
|
|
|
3
3
|
export class FunctionModuleReference {
|
|
4
|
-
constructor() {
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type {string}
|
|
8
|
+
*/
|
|
9
|
+
id = "";
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type {FunctionSignature}
|
|
14
|
+
*/
|
|
15
|
+
signature = null;
|
|
17
16
|
|
|
18
|
-
}
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
*
|
package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionModuleRegistry.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"FunctionModuleRegistry.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js"],"names":[],"mappings":"AAKA;IAEI;;;OAGG;IACH,aAAa;IAEb;;;;;OAKG;IACH,+BA2DC;IAED;;;;OAIG;IACH,gCAHW,uBAAuB,GACrB,iBAAe,SAAS,CAmBpC;IAED;;;;OAIG;IACH,+CAHW,uBAAuB,EAAE,GACvB,uBAAuB,EAAE,CAsHrC;IAED;;;;OAIG;IACH,6BAFa,OAAO,CAenB;IAED;;;;OAIG;IACH,cAHW,MAAM,GACJ,iBAAe,SAAS,CAMpC;IAED;;;;OAIG;IACH,sEAMC;CAEJ;wCA5QuC,8BAA8B"}
|
|
@@ -4,15 +4,12 @@ import { Graph } from "../../../../../../core/graph/v2/Graph.js";
|
|
|
4
4
|
import { FunctionModuleReference } from "./FunctionModuleReference.js";
|
|
5
5
|
|
|
6
6
|
export class FunctionModuleRegistry {
|
|
7
|
-
constructor() {
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @type {Object<FunctionModule>}
|
|
11
|
+
*/
|
|
12
|
+
modules = {};
|
|
16
13
|
|
|
17
14
|
/**
|
|
18
15
|
* Materialize entire dependency graph for the registry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionParameterSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.js"],"names":[],"mappings":"AAGA;
|
|
1
|
+
{"version":3,"file":"FunctionParameterSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.js"],"names":[],"mappings":"AAGA;IAcI;;;;;;OAMG;IACH,uBALW,aAAa,yBAGX,8BAA8B,CAU1C;IA3BD;;;OAGG;IACH,WAFU,aAAa,GAAC,MAAM,CAED;IAG7B;;OAEG;IACH,qBAAY;IAmBZ;;;;OAIG;IACH,cAHW,8BAA8B,GAC5B,OAAO,CAcnB;IAED,mBAEC;CACJ;8BAxD6B,+DAA+D"}
|
package/src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.js
CHANGED
|
@@ -2,20 +2,18 @@ import { PortDirection } from "../../../../../../core/model/node-graph/node/Port
|
|
|
2
2
|
import { objectKeyByValue } from "../../../../../../core/model/object/objectKeyByValue.js";
|
|
3
3
|
|
|
4
4
|
export class FunctionParameterSpecification {
|
|
5
|
-
constructor() {
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @type {PortDirection|number}
|
|
9
|
+
*/
|
|
10
|
+
direction = PortDirection.In;
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
13
|
+
/**
|
|
14
|
+
* @type {BinaryDataType}
|
|
15
|
+
*/
|
|
16
|
+
type = null;
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
*
|
|
@@ -24,7 +22,7 @@ export class FunctionParameterSpecification {
|
|
|
24
22
|
*
|
|
25
23
|
* @returns {FunctionParameterSpecification}
|
|
26
24
|
*/
|
|
27
|
-
static from(
|
|
25
|
+
static from(direction, type) {
|
|
28
26
|
const r = new FunctionParameterSpecification();
|
|
29
27
|
|
|
30
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionSignature.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.js"],"names":[],"mappings":"AAGA;
|
|
1
|
+
{"version":3,"file":"FunctionSignature.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.js"],"names":[],"mappings":"AAGA;IAaI;;;;;OAKG;IACH,wBAJW,iBAAiB,gCAEf,iBAAiB,CAa7B;IA7BD;;;OAGG;IACH,YAFU,gCAAgC,CAE1B;IAEhB;;;OAGG;IACH,4BAAmB;IAqBnB;;;;OAIG;IACH,cAHW,iBAAiB,GACf,OAAO,CAInB;IAED,mBAEC;IAIL;;;OAGG;IACH,8BAFU,OAAO,CAE8B;CAP9C"}
|
|
@@ -2,19 +2,17 @@ import { assert } from "../../../../../../core/assert.js";
|
|
|
2
2
|
import { isArrayEqual } from "../../../../../../core/collection/array/isArrayEqual.js";
|
|
3
3
|
|
|
4
4
|
export class FunctionSignature {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.return_type = null;
|
|
17
|
-
}
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type {FunctionParameterSpecification[]}
|
|
8
|
+
*/
|
|
9
|
+
parameters = [];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type {BinaryDataType}
|
|
14
|
+
*/
|
|
15
|
+
return_type = null;
|
|
18
16
|
|
|
19
17
|
/**
|
|
20
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleAttributeBinding.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.js"],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"file":"ParticleAttributeBinding.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.js"],"names":[],"mappings":"AAAA;IAEI;;;OAGG;IACH,uCAAc;IACd;;;OAGG;IACH,uCAAc;CAEjB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export class ParticleAttributeBinding {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @type {ParticleAttributeSpecification}
|
|
6
|
+
*/
|
|
7
|
+
source = null;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @type {ParticleAttributeSpecification}
|
|
11
|
+
*/
|
|
12
|
+
target = null;
|
|
13
|
+
|
|
14
14
|
}
|
package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts
CHANGED
|
@@ -8,21 +8,16 @@ export class ParticleAttributeSpecification {
|
|
|
8
8
|
static from(name: string, type: {
|
|
9
9
|
Void: any;
|
|
10
10
|
Float: any;
|
|
11
|
-
/**
|
|
12
|
-
* @type {ParticleDataTypes}
|
|
13
|
-
*/
|
|
14
11
|
Vector2: any;
|
|
15
12
|
Vector3: any;
|
|
16
|
-
Vector4: any;
|
|
17
|
-
* Name must be unique
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
13
|
+
Vector4: any;
|
|
20
14
|
Matrix4: any;
|
|
21
|
-
|
|
22
|
-
Texture2D: any; /**
|
|
15
|
+
/**
|
|
23
16
|
*
|
|
24
17
|
* @return {number}
|
|
25
18
|
*/
|
|
19
|
+
Boolean: any;
|
|
20
|
+
Texture2D: any;
|
|
26
21
|
Color: any;
|
|
27
22
|
}): ParticleAttributeSpecification;
|
|
28
23
|
/**
|
|
@@ -31,21 +26,16 @@ export class ParticleAttributeSpecification {
|
|
|
31
26
|
type: {
|
|
32
27
|
Void: any;
|
|
33
28
|
Float: any;
|
|
34
|
-
/**
|
|
35
|
-
* @type {ParticleDataTypes}
|
|
36
|
-
*/
|
|
37
29
|
Vector2: any;
|
|
38
30
|
Vector3: any;
|
|
39
|
-
Vector4: any;
|
|
40
|
-
* Name must be unique
|
|
41
|
-
* @type {string}
|
|
42
|
-
*/
|
|
31
|
+
Vector4: any;
|
|
43
32
|
Matrix4: any;
|
|
44
|
-
|
|
45
|
-
Texture2D: any; /**
|
|
33
|
+
/**
|
|
46
34
|
*
|
|
47
35
|
* @return {number}
|
|
48
36
|
*/
|
|
37
|
+
Boolean: any;
|
|
38
|
+
Texture2D: any;
|
|
49
39
|
Color: any;
|
|
50
40
|
};
|
|
51
41
|
/**
|
package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleAttributeSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js"],"names":[],"mappings":"AAGA;
|
|
1
|
+
{"version":3,"file":"ParticleAttributeSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js"],"names":[],"mappings":"AAGA;IAmCI;;;;;OAKG;IACH,kBAJW,MAAM;;;;;;;QAtBjB;;;WAGG;;;;QAqBU,8BAA8B,CAc1C;IAnDD;;OAEG;IACH;;;;;;;QAUA;;;WAGG;;;;MAb4B;IAG/B;;;OAGG;IACH,MAFU,MAAM,CAEN;IAGV;;;OAGG;IACH,yBAFY,MAAM,CAgBjB;CAqBJ"}
|
|
@@ -2,21 +2,19 @@ import { assert } from "../../../../../core/assert.js";
|
|
|
2
2
|
import { ParticleDataTypes } from "../nodes/ParticleDataTypes.js";
|
|
3
3
|
|
|
4
4
|
export class ParticleAttributeSpecification {
|
|
5
|
-
constructor() {
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @type {ParticleDataTypes}
|
|
8
|
+
*/
|
|
9
|
+
type = ParticleDataTypes.Float;
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Name must be unique
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
name = "";
|
|
18
17
|
|
|
19
|
-
}
|
|
20
18
|
|
|
21
19
|
/**
|
|
22
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleSpecification.js"],"names":[],"mappings":"AAEA;
|
|
1
|
+
{"version":3,"file":"ParticleSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleSpecification.js"],"names":[],"mappings":"AAEA;IA0EI;;;;;;OAMG;IACH,wBALW,gCAAgC,YAChC,gCAAgC,qBAE9B,qBAAqB,CAUjC;IAxFD;;;OAGG;IACH,YAFU,gCAAgC,CAE1B;IAEhB;;;OAGG;IACH,UAFU,gCAAgC,CAE5B;IAGd;;;OAGG;IACH,iBAAa;IAGb;;;;OAIG;IACH,4BAAyB;IAEzB;;;;OAIG;IACH,0CAAsC;IAGtC,mBAEC;IAED;;;OAGG;IACH,mCAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,0BAHW,MAAM,GACL,MAAM,CAMjB;IAED,6BAaC;CAkBJ"}
|