@woosh/meep-engine 2.131.13 → 2.131.16

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.
Files changed (101) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/core/codegen/LineBuilder.d.ts +4 -2
  4. package/src/core/codegen/LineBuilder.d.ts.map +1 -1
  5. package/src/core/codegen/LineBuilder.js +5 -2
  6. package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.d.ts +6 -5
  7. package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.d.ts.map +1 -1
  8. package/src/core/color/YCbCr/YCbCr_to_rgb_uint24.js +19 -13
  9. package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.d.ts +6 -5
  10. package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.d.ts.map +1 -1
  11. package/src/core/color/YCbCr/rgb_to_YCbCr_uint24.js +18 -10
  12. package/src/core/color/illuminant/D65_spd_analytical.d.ts.map +1 -1
  13. package/src/core/color/illuminant/D65_spd_analytical.js +1 -25
  14. package/src/core/color/illuminant/planckian_radiance.d.ts +8 -0
  15. package/src/core/color/illuminant/planckian_radiance.d.ts.map +1 -0
  16. package/src/core/color/illuminant/planckian_radiance.js +33 -0
  17. package/src/core/color/kelvin/kelvin_to_rgb.d.ts +8 -4
  18. package/src/core/color/kelvin/kelvin_to_rgb.d.ts.map +1 -1
  19. package/src/core/color/kelvin/kelvin_to_rgb.js +9 -4
  20. package/src/core/color/rgb_to_luminance.d.ts +7 -4
  21. package/src/core/color/rgb_to_luminance.d.ts.map +1 -1
  22. package/src/core/color/rgb_to_luminance.js +8 -5
  23. package/src/core/color/sRGB/linear_to_sRGB.d.ts +6 -1
  24. package/src/core/color/sRGB/linear_to_sRGB.d.ts.map +1 -1
  25. package/src/core/color/sRGB/linear_to_sRGB.js +5 -0
  26. package/src/core/color/sRGB/sRGB_to_linear.d.ts +3 -2
  27. package/src/core/color/sRGB/sRGB_to_linear.d.ts.map +1 -1
  28. package/src/core/color/sRGB/sRGB_to_linear.js +2 -1
  29. package/src/core/color/xyz/xyz_cmf_tabulated.d.ts.map +1 -1
  30. package/src/core/color/xyz/xyz_cmf_tabulated.js +174 -175
  31. package/src/core/math/frexp.d.ts.map +1 -1
  32. package/src/core/math/frexp.js +1 -0
  33. package/src/core/model/node-graph/visual/NodeDescriptionVisualRegistry.d.ts.map +1 -1
  34. package/src/core/model/node-graph/visual/NodeDescriptionVisualRegistry.js +5 -7
  35. package/src/core/model/node-graph/visual/NodeGraphVisualData.d.ts.map +1 -1
  36. package/src/core/model/node-graph/visual/NodeGraphVisualData.js +10 -12
  37. package/src/core/model/node-graph/visual/NodeVisualData.d.ts.map +1 -1
  38. package/src/core/model/node-graph/visual/NodeVisualData.js +16 -17
  39. package/src/core/model/node-graph/visual/PortVisualData.d.ts.map +1 -1
  40. package/src/core/model/node-graph/visual/PortVisualData.js +7 -9
  41. package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.d.ts +2 -1
  42. package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.d.ts.map +1 -1
  43. package/src/core/model/node-graph/visual/layout/BoxLayoutSpec.js +14 -14
  44. package/src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.d.ts.map +1 -1
  45. package/src/core/model/node-graph/visual/layout/ConnectedBoxLayouter.js +21 -23
  46. package/src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.d.ts.map +1 -1
  47. package/src/core/model/node-graph/visual/layout/ConnectionEndpointLayoutSpec.js +10 -12
  48. package/src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.d.ts.map +1 -1
  49. package/src/core/model/node-graph/visual/layout/ConnectionLayoutSpec.js +10 -14
  50. package/src/engine/asset/preloader/AssetPreloader.d.ts +1 -1
  51. package/src/engine/asset/preloader/AssetPreloader.d.ts.map +1 -1
  52. package/src/engine/asset/preloader/AssetPreloader.js +22 -24
  53. package/src/engine/ecs/storage/BinaryBufferDeSerializer.js +1 -1
  54. package/src/engine/graphics/particles/node-based/codegen/CodeContext.d.ts.map +1 -1
  55. package/src/engine/graphics/particles/node-based/codegen/CodeContext.js +7 -10
  56. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.d.ts.map +1 -1
  57. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js +30 -32
  58. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.d.ts.map +1 -1
  59. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js +10 -12
  60. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.d.ts.map +1 -1
  61. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js +5 -8
  62. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.d.ts.map +1 -1
  63. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionParameterSpecification.js +10 -12
  64. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.d.ts.map +1 -1
  65. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionSignature.js +11 -13
  66. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.d.ts.map +1 -1
  67. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeBinding.js +12 -12
  68. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts +8 -18
  69. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts.map +1 -1
  70. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js +9 -11
  71. package/src/engine/graphics/particles/node-based/particle/ParticleSpecification.d.ts.map +1 -1
  72. package/src/engine/graphics/particles/node-based/particle/ParticleSpecification.js +34 -36
  73. package/src/engine/graphics/particles/node-based/rendering/ParticleRenderCommand.d.ts.map +1 -1
  74. package/src/engine/graphics/particles/node-based/rendering/ParticleRenderCommand.js +10 -12
  75. package/src/engine/graphics/particles/node-based/rendering/ParticleRenderSpecification.d.ts.map +1 -1
  76. package/src/engine/graphics/particles/node-based/rendering/ParticleRenderSpecification.js +6 -8
  77. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.d.ts.map +1 -1
  78. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +123 -124
  79. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts.map +1 -1
  80. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js +32 -30
  81. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts +7 -1
  82. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +1 -1
  83. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js +6 -6
  84. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts.map +1 -1
  85. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.js +5 -9
  86. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts +10 -10
  87. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +1 -1
  88. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js +36 -29
  89. package/src/engine/graphics/particles/particular/engine/shader/MaterialRecord.d.ts.map +1 -1
  90. package/src/engine/graphics/particles/particular/engine/shader/MaterialRecord.js +29 -33
  91. package/src/view/View.d.ts.map +1 -1
  92. package/src/view/View.js +4 -6
  93. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.d.ts +0 -14
  94. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.d.ts.map +0 -1
  95. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRenderProfile.js +0 -18
  96. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.d.ts +0 -8
  97. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.d.ts.map +0 -1
  98. package/src/engine/graphics/particles/particular/engine/emitter/ParticleRendererType.js +0 -10
  99. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.d.ts +0 -38
  100. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.d.ts.map +0 -1
  101. package/src/engine/graphics/particles/particular/engine/parameter/ParameterSheet.js +0 -278
@@ -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
- constructor() {
11
-
12
- /**
13
- *
14
- * @type {BoxLayoutSpec[]}
15
- */
16
- this.boxes = [];
17
- /**
18
- *
19
- * @type {ConnectionLayoutSpec[]}
20
- */
21
- this.connections = [];
22
-
23
-
24
- /**
25
- *
26
- * @type {QuadTreeNode<>}
27
- * @private
28
- */
29
- this.__spatial_index_connections = new QuadTreeNode();
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;IA4BI;;;;OAIG;IACH,yCAFa,4BAA4B,CASxC;IArCG;;;OAGG;IACH,mBAAe;IAEf;;;OAGG;IACH,eAAiB;IAIrB;;;OAGG;IACH,uCAKC;CAeJ"}
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
- * @type {BoxLayoutSpec}
7
- */
8
- this.box = null;
3
+ /**
4
+ *
5
+ * @type {BoxLayoutSpec}
6
+ */
7
+ box = null;
9
8
 
10
- /**
11
- * Local offset inside the box where connection is attached
12
- * @type {Vector2}
13
- */
14
- this.point = null;
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;IAkBI;;;;OAIG;IACH,yFAFa,oBAAoB,CAShC;IA3BG;;;OAGG;IACH,qCAAkB;IAClB;;;OAGG;IACH,qCAAkB;CAmBzB"}
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
  /**
@@ -128,7 +128,7 @@ declare class AssetLoadSpec {
128
128
  * Priority within the level group (see {@link level})
129
129
  * @type {number}
130
130
  */
131
- priotity: number;
131
+ priority: number;
132
132
  fromJSON({ uri, type, level, priority }: {
133
133
  uri: any;
134
134
  type: any;
@@ -1 +1 @@
1
- {"version":3,"file":"AssetPreloader.d.ts","sourceRoot":"","sources":["../../../../../src/engine/asset/preloader/AssetPreloader.js"],"names":[],"mappings":"AAsDA;;;;;;;;;;;;;;;;;GAiBG;AACH;IACI;;;OAGG;IACH,iBAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,iBAFU,aAAa,EAAE,EAAE,CAEf;IAEZ;;OAEG;IACH;QACI;;WAEG;eADO,OAAO,aAAa,EAAC,MAAM,CAAC;QAGtC;;;;WAIG;kBADO,OAAO;YAAC,QAAO;gBAAC,OAAO,EAAC,MAAM,CAAC;gBAAC,KAAK,EAAC,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAA;aAAC,CAAA;SAAC,CAAC;QAG3E;;;WAGG;uBADO,MAAM;QAGhB;;WAEG;;;QAGH;;;WAGG;mBADO,OAAO,MAAM,CAAC;QAGxB;;;;WAIG;kBADO,OAAO,MAAM,EAAC,MAAM,CAAC;MAGjC;IAaF;;;;;;;OAOG;IACH,SANW,MAAM,QACN,MAAM,UACN,MAAM,aACN,MAAM,GACL,cAAc,CAqCzB;IAED;;;OAGG;IACH,aAFW;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAA;KAAC,EAAE,QAQpD;IAED;;;;OAIG;IACH,kCAFY,cAAc,CAkKzB;CACJ;AAED;;;GAGG;AACH,wBAFU,cAAc,CAEgB;AApWxC;;GAEG;AACH;IA+BI;;;;OAIG;IACH,4BAFY,aAAa,CAQxB;IAxCG;;;OAGG;IACH,YAAe;IACf;;;OAGG;IACH,aAAgB;IAChB;;;OAGG;IACH,OAFU,MAAM,GAAC,UAAU,CAEK;IAChC;;;OAGG;IACH,UAFU,MAAM,CAEC;IAGrB;;;;;aAKC;CAcJ;mBAlDkB,uCAAuC;uBAEnC,iBAAiB"}
1
+ {"version":3,"file":"AssetPreloader.d.ts","sourceRoot":"","sources":["../../../../../src/engine/asset/preloader/AssetPreloader.js"],"names":[],"mappings":"AAoDA;;;;;;;;;;;;;;;;;GAiBG;AACH;IACI;;;OAGG;IACH,iBAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,iBAFU,aAAa,EAAE,EAAE,CAEf;IAEZ;;OAEG;IACH;QACI;;WAEG;eADO,OAAO,aAAa,EAAC,MAAM,CAAC;QAGtC;;;;WAIG;kBADO,OAAO;YAAC,QAAO;gBAAC,OAAO,EAAC,MAAM,CAAC;gBAAC,KAAK,EAAC,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAA;aAAC,CAAA;SAAC,CAAC;QAG3E;;;WAGG;uBADO,MAAM;QAGhB;;WAEG;;;QAGH;;;WAGG;mBADO,OAAO,MAAM,CAAC;QAGxB;;;;WAIG;kBADO,OAAO,MAAM,EAAC,MAAM,CAAC;MAGjC;IAaF;;;;;;;OAOG;IACH,SANW,MAAM,QACN,MAAM,UACN,MAAM,aACN,MAAM,GACL,cAAc,CAqCzB;IAED;;;OAGG;IACH,aAFW;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAA;KAAC,EAAE,QAQpD;IAED;;;;OAIG;IACH,kCAFY,cAAc,CAkKzB;CACJ;AAED;;;GAGG;AACH,wBAFU,cAAc,CAEgB;AAlWxC;;GAEG;AACH;IA6BI;;;;OAIG;IACH,4BAFY,aAAa,CAQxB;IAvCD;;;OAGG;IACH,YAAW;IACX;;;OAGG;IACH,aAAY;IACZ;;;OAGG;IACH,OAFU,MAAM,GAAC,UAAU,CAEC;IAC5B;;;OAGG;IACH,UAFU,MAAM,CAEH;IAEb;;;;;aAKC;CAcJ;mBAhDkB,uCAAuC;uBAEnC,iBAAiB"}
@@ -8,34 +8,32 @@ import AssetLevel from "./AssetLevel.js";
8
8
  * Definition of a single asset to be loaded
9
9
  */
10
10
  class AssetLoadSpec {
11
- constructor() {
12
- /**
13
- * Path to the asset
14
- * @type {String}
15
- */
16
- this.uri = null;
17
- /**
18
- * Type of the asset
19
- * @type {String}
20
- */
21
- this.type = null;
22
- /**
23
- *
24
- * @type {number|AssetLevel}
25
- */
26
- this.level = AssetLevel.OPTIONAL;
27
- /**
28
- * Priority within the level group (see {@link level})
29
- * @type {number}
30
- */
31
- this.priotity = 0;
32
- }
11
+ /**
12
+ * Path to the asset
13
+ * @type {String}
14
+ */
15
+ uri = null;
16
+ /**
17
+ * Type of the asset
18
+ * @type {String}
19
+ */
20
+ type = null;
21
+ /**
22
+ *
23
+ * @type {number|AssetLevel}
24
+ */
25
+ level = AssetLevel.OPTIONAL;
26
+ /**
27
+ * Priority within the level group (see {@link level})
28
+ * @type {number}
29
+ */
30
+ priority = 0;
33
31
 
34
32
  fromJSON({ uri, type, level = AssetLevel.OPTIONAL, priority = 0 }) {
35
33
  this.uri = uri;
36
34
  this.type = type;
37
35
  this.level = level;
38
- this.priotity = priority;
36
+ this.priority = priority;
39
37
  }
40
38
 
41
39
  /**
@@ -303,7 +301,7 @@ export class AssetPreloader {
303
301
 
304
302
  //sort batch by priority
305
303
  batch.sort((a, b) => {
306
- return b.priotity - a.priotity;
304
+ return b.priority - a.priority;
307
305
  });
308
306
 
309
307
  for (const def of batch) {
@@ -61,7 +61,7 @@ class BinaryBufferDeSerializer {
61
61
  task = deserializeTask(numSerializedTypes, buffer, context, dataset, this.registry);
62
62
  }
63
63
 
64
- task.on.succeeded.add(function () {
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;IAEQ,2BAA2B;IAE3B;;;;OAIG;IACH,8BAA0C;IAI9C;;;;OAIG;IACH,+CAFa,MAAM,CAiBlB;IAED;;OAEG;IACH,cAFa,MAAM,CASlB;CACJ"}
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
- constructor() {
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;IAiCI;;;;;;;;OAQG;IACH,yEAPW,MAAM,GAKJ,cAAc,CAqB1B;IA3DG;;;OAGG;IACH,IAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,WAFU,iBAAiB,CAEa;IAExC;;;OAGG;IACH,cAFU,uBAAuB,EAAE,CAEb;IAEtB;;;OAGG;IACH,gBAFU,gCAAgC,CAElB;IAExB;;;OAGG;IACH,YAFU,WAAW,CAEc;IAiCvC;;;;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;kCA3HiC,wBAAwB;wCADlB,8BAA8B;wBAD9C,+CAA+C"}
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
- constructor() {
8
- /**
9
- *
10
- * @type {string}
11
- */
12
- this.id = '';
13
-
14
- /**
15
- *
16
- * @type {FunctionSignature}
17
- */
18
- this.signature = new FunctionSignature();
19
-
20
- /**
21
- *
22
- * @type {FunctionModuleReference[]}
23
- */
24
- this.dependencies = [];
25
-
26
- /**
27
- * These variables must be present in the program context
28
- * @type {ParticleAttributeSpecification[]}
29
- */
30
- this.read_variables = [];
31
-
32
- /**
33
- *
34
- * @type {LineBuilder}
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
 
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionModuleReference.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js"],"names":[],"mappings":"AAEA;IAiBI;;;;;OAKG;IACH,gBAJW,MAAM,iCAEJ,uBAAuB,CAenC;IAjCG;;;OAGG;IACH,IAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,6BAAqB;IAyBzB;;;;OAIG;IACH,cAHW,uBAAuB,GACrB,OAAO,CAQnB;IAED,mBAEC;IAIL;;;OAGG;IACH,oCAFU,OAAO,CAE0C;CAP1D"}
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
- * @type {string}
9
- */
10
- this.id = "";
5
+ /**
6
+ *
7
+ * @type {string}
8
+ */
9
+ id = "";
11
10
 
12
- /**
13
- *
14
- * @type {FunctionSignature}
15
- */
16
- this.signature = null;
11
+ /**
12
+ *
13
+ * @type {FunctionSignature}
14
+ */
15
+ signature = null;
17
16
 
18
- }
19
17
 
20
18
  /**
21
19
  *
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionModuleRegistry.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js"],"names":[],"mappings":"AAKA;IAGQ;;;OAGG;IACH,aAAiB;IAIrB;;;;;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;wCA/QuC,8BAA8B"}
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
- * @type {Object<FunctionModule>}
12
- */
13
- this.modules = {};
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;IAgBI;;;;;;OAMG;IACH,uBALW,aAAa,yBAGX,8BAA8B,CAU1C;IA5BG;;;OAGG;IACH,WAFU,aAAa,GAAC,MAAM,CAEG;IAGjC;;OAEG;IACH,qBAAgB;IAoBpB;;;;OAIG;IACH,cAHW,8BAA8B,GAC5B,OAAO,CAcnB;IAED,mBAEC;CACJ;8BA1D6B,+DAA+D"}
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"}
@@ -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
- * @type {PortDirection|number}
10
- */
11
- this.direction = PortDirection.In;
6
+ /**
7
+ *
8
+ * @type {PortDirection|number}
9
+ */
10
+ direction = PortDirection.In;
12
11
 
13
12
 
14
- /**
15
- * @type {BinaryDataType}
16
- */
17
- this.type = null;
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( direction, type) {
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;IAeI;;;;;OAKG;IACH,wBAJW,iBAAiB,gCAEf,iBAAiB,CAa7B;IA9BG;;;OAGG;IACH,YAFU,gCAAgC,CAEtB;IAEpB;;;OAGG;IACH,4BAAuB;IAsB3B;;;;OAIG;IACH,cAHW,iBAAiB,GACf,OAAO,CAInB;IAED,mBAEC;IAIL;;;OAGG;IACH,8BAFU,OAAO,CAE8B;CAP9C"}
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
- constructor() {
6
- /**
7
- *
8
- * @type {FunctionParameterSpecification[]}
9
- */
10
- this.parameters = [];
11
-
12
- /**
13
- *
14
- * @type {BinaryDataType}
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;IAEQ;;;OAGG;IACH,uCAAkB;IAClB;;;OAGG;IACH,uCAAkB;CAEzB"}
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
- constructor() {
3
- /**
4
- *
5
- * @type {ParticleAttributeSpecification}
6
- */
7
- this.source = null;
8
- /**
9
- *
10
- * @type {ParticleAttributeSpecification}
11
- */
12
- this.target = null;
13
- }
2
+
3
+ /**
4
+ *
5
+ * @type {ParticleAttributeSpecification}
6
+ */
7
+ source = null;
8
+ /**
9
+ *
10
+ * @type {ParticleAttributeSpecification}
11
+ */
12
+ target = null;
13
+
14
14
  }
@@ -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
- Boolean: any;
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
- Boolean: any;
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ParticleAttributeSpecification.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js"],"names":[],"mappings":"AAGA;IAqCI;;;;;OAKG;IACH,kBAJW,MAAM;;;QApCb;;WAEG;;;sBAIH;;;WAGG;;;wBAKP;;;WAGG;;QAqBU,8BAA8B,CAc1C;IApDG;;OAEG;IACH;;;QAHA;;WAEG;;;sBAIH;;;WAGG;;;wBAKP;;;WAGG;;MAdoC;IAGnC;;;OAGG;IACH,MAFU,MAAM,CAEF;IAIlB;;;OAGG;IACH,yBAFY,MAAM,CAgBjB;CAqBJ"}
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
- * @type {ParticleDataTypes}
9
- */
10
- this.type = ParticleDataTypes.Float;
6
+ /**
7
+ * @type {ParticleDataTypes}
8
+ */
9
+ type = ParticleDataTypes.Float;
11
10
 
12
11
 
13
- /**
14
- * Name must be unique
15
- * @type {string}
16
- */
17
- this.name = "";
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;IA4EI;;;;;;OAMG;IACH,wBALW,gCAAgC,YAChC,gCAAgC,qBAE9B,qBAAqB,CAUjC;IAxFG;;;OAGG;IACH,YAFU,gCAAgC,CAEtB;IAEpB;;;OAGG;IACH,UAFU,gCAAgC,CAExB;IAGlB;;;OAGG;IACH,iBAAiB;IAGjB;;;;OAIG;IACH,4BAA6B;IAE7B;;;;OAIG;IACH,0CAA0C;IAG9C,mBAEC;IAED;;;OAGG;IACH,mCAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,0BAHW,MAAM,GACL,MAAM,CAMjB;IAED,6BAaC;CAkBJ"}
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"}