@woosh/meep-engine 2.39.5 → 2.39.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.
Files changed (45) hide show
  1. package/core/binary/BinaryBuffer.js +1 -0
  2. package/core/math/FLT_EPSILON_32.js +7 -0
  3. package/core/math/random/seededRandom_Mulberry32.js +1 -1
  4. package/core/model/stat/LinearModifier.js +7 -0
  5. package/core/process/task/RemainingTimeEstimator.js +49 -0
  6. package/core/process/task/Task.js +3 -1
  7. package/engine/Engine.js +3 -69
  8. package/engine/asset/AssetManager.d.ts +3 -0
  9. package/engine/asset/AssetManager.js +5 -4
  10. package/engine/ecs/terrain/ecs/Terrain.js +33 -0
  11. package/engine/ecs/terrain/ecs/layers/TerrainLayer.js +13 -0
  12. package/engine/ecs/terrain/ecs/layers/TerrainLayers.js +44 -2
  13. package/engine/ecs/terrain/ecs/splat/SplatMapping.js +12 -4
  14. package/engine/graphics/ecs/path/testPathDisplaySystem.js +58 -53
  15. package/engine/graphics/ecs/path/tube/PathNormalType.d.ts +4 -0
  16. package/engine/graphics/ecs/path/tube/PathNormalType.js +11 -0
  17. package/engine/graphics/ecs/path/tube/TubePathStyle.d.ts +4 -0
  18. package/engine/graphics/ecs/path/tube/TubePathStyle.js +21 -3
  19. package/engine/graphics/ecs/path/tube/build/build_geometry_catmullrom.js +4 -1
  20. package/engine/graphics/ecs/path/tube/build/build_geometry_linear.js +4 -1
  21. package/engine/graphics/ecs/path/tube/build/computeFrenetFrames.js +41 -24
  22. package/engine/graphics/geometry/VertexDataSpec.js +24 -0
  23. package/engine/graphics/shaders/TerrainShader.js +3 -7
  24. package/engine/knowledge/database/StaticKnowledgeDataTable.js +66 -28
  25. package/engine/navigation/ecs/components/Path.js +58 -232
  26. package/engine/notify/Notification.js +3 -0
  27. package/engine/ui/notification/AnimatedObjectEmitter.js +3 -2
  28. package/engine/ui/notification/ViewEmitter.js +8 -0
  29. package/engine/ui/scene/initializeNotifications.js +3 -0
  30. package/generation/{GridGenerator.js → GridTaskGroup.js} +21 -5
  31. package/generation/example/SampleGenerator0.js +2 -2
  32. package/generation/filtering/core/CellFilterUnaryOperation.js +5 -8
  33. package/generation/filtering/numeric/util/CellFilterDisplaced.js +7 -7
  34. package/generation/grid/generation/GridTaskSequence.js +5 -3
  35. package/generation/markers/actions/MarkerNodeActionImaginary.js +86 -0
  36. package/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js +265 -0
  37. package/generation/theme/TerrainLayerDescription.js +11 -0
  38. package/generation/theme/ThemeEngine.js +5 -6
  39. package/package.json +1 -1
  40. package/view/common/ListView.js +7 -1
  41. package/view/elements/windrose/WindRoseDiagram.js +13 -0
  42. package/view/task/TaskLoadingScreen.js +163 -0
  43. package/view/{common → task}/TaskProgressView.js +4 -36
  44. package/view/tooltip/gml/GMLEngine.js +13 -0
  45. package/generation/markers/actions/MarkerNodeActionSelectRandom.js +0 -65
@@ -1,65 +0,0 @@
1
- import { seededRandom } from "../../../core/math/random/seededRandom.js";
2
- import { MarkerNodeAction } from "./MarkerNodeAction.js";
3
- import { assert } from "../../../core/assert.js";
4
- import { randomFromArray } from "../../../core/math/random/randomFromArray.js";
5
-
6
- export class MarkerNodeActionSelectRandom extends MarkerNodeAction {
7
- constructor() {
8
- super();
9
-
10
-
11
- /**
12
- *
13
- * @type {MarkerNodeAction[]}
14
- */
15
- this.elements = [];
16
-
17
- this.__random = seededRandom(0);
18
- }
19
-
20
- /**
21
- *
22
- * @param {MarkerNodeAction[]} elements
23
- * @returns {MarkerNodeActionSelectRandom}
24
- */
25
- static from(elements) {
26
- const r = new MarkerNodeActionSelectRandom();
27
-
28
- r.elements = elements;
29
-
30
- return r
31
- }
32
-
33
- initialize(grid, ecd, seed) {
34
- const actions = this.elements;
35
- const n = actions.length;
36
-
37
- assert.greaterThan(n, 0, `Number of option elements must be greater than 0`);
38
-
39
- for (let i = 0; i < n; i++) {
40
- const action = actions[i];
41
-
42
- action.initialize(grid, ecd, seed + i);
43
- }
44
-
45
- this.__random.setCurrentSeed(seed);
46
- }
47
-
48
- execute(grid, ecd, node) {
49
-
50
- assert.defined(grid, 'grid');
51
- assert.equal(grid.isGridData, true, 'grid.isGridData !== true');
52
-
53
-
54
- assert.defined(ecd, 'ecd');
55
- assert.equal(ecd.isEntityComponentDataset, true, 'ecd.isEntityComponentDataset !== true');
56
-
57
- assert.defined(node, 'node');
58
- assert.equal(node.isMarkerNode, true, 'node.isMarkerNode !== true');
59
-
60
- const action = randomFromArray(this.__random, this.elements);
61
-
62
- action.execute(grid, ecd, node);
63
-
64
- }
65
- }