@woosh/meep-engine 2.84.9 → 2.84.10
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 +27 -13
- package/build/meep.cjs +185 -87
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +185 -87
- package/editor/process/symbolic/makePositionedIconDisplaySymbol.js +2 -4
- package/editor/view/EditorView.js +48 -204
- package/editor/view/ecs/HierarchicalEntityListView.js +191 -0
- package/editor/view/ecs/HierarchicalEntityListView.module.scss +13 -0
- package/editor/view/prepareMeshLibrary.js +178 -0
- package/editor/view/v2/SplitView.js +104 -0
- package/editor/view/v2/ViewManagementSystem.js +0 -0
- package/editor/view/v2/prototypeEditor.js +127 -0
- package/package.json +1 -1
- package/src/core/cache/Cache.d.ts +2 -0
- package/src/core/cache/Cache.js +58 -8
- package/src/core/cache/Cache.spec.js +38 -0
- package/src/core/cache/CacheElement.js +6 -0
- package/src/core/cache/LoadingCache.js +25 -2
- package/src/core/cache/LoadingCache.spec.js +9 -6
- package/src/core/collection/array/arraySetSortingDiff.js +6 -6
- package/src/core/collection/table/RowFirstTable.js +364 -368
- package/src/core/geom/3d/plane/plane3_compute_ray_intersection.js +3 -1
- package/src/core/geom/3d/topology/simplify/prototypeMeshSimplification.js +7 -7
- package/src/engine/animation/curve/ecd_bind_animation_curve.js +9 -0
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometryFlags.js +8 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/prototypeSGMesh.js +23 -19
- package/src/engine/graphics/ecs/mesh-v2/sg_hierarchy_compute_bounding_box_via_parent_entity.js +2 -2
- package/src/engine/graphics/ecs/mesh-v2/three_object_to_entity_composition.js +3 -1
- package/src/view/View.js +64 -95
- package/src/view/setElementTransform.js +20 -0
- package/src/view/setElementVisibility.js +15 -0
|
@@ -44,18 +44,21 @@ test("timeout reload reuse", async () => {
|
|
|
44
44
|
|
|
45
45
|
const cache = new LoadingCache({
|
|
46
46
|
load,
|
|
47
|
-
timeToLive: 0.
|
|
47
|
+
timeToLive: 0.0000001
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
const request_1 = await cache.get(1);
|
|
51
|
+
expect(request_1).toEqual(11);
|
|
51
52
|
|
|
52
|
-
await delay(
|
|
53
|
+
await delay(2);
|
|
53
54
|
|
|
54
|
-
|
|
55
|
+
const request_2 = await cache.get(1);
|
|
56
|
+
expect(request_2).toEqual(5);
|
|
55
57
|
|
|
56
|
-
await delay(
|
|
58
|
+
await delay(2);
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
const request_3 = await cache.get(1);
|
|
61
|
+
expect(request_3).toEqual(3);
|
|
59
62
|
});
|
|
60
63
|
|
|
61
64
|
test("insert element directly", async () => {
|
|
@@ -22,17 +22,17 @@ export function arraySetSortingDiff(a, b, compare) {
|
|
|
22
22
|
|
|
23
23
|
const common = [];
|
|
24
24
|
|
|
25
|
-
let
|
|
26
|
-
let
|
|
25
|
+
let length_a = uniqueA.length;
|
|
26
|
+
let length_b = uniqueB.length;
|
|
27
27
|
|
|
28
28
|
let i;
|
|
29
29
|
let j;
|
|
30
30
|
let cursor_j = 0;
|
|
31
31
|
|
|
32
|
-
for (i = 0; i <
|
|
32
|
+
for (i = 0; i < length_a; i++) {
|
|
33
33
|
const el_a = uniqueA[i];
|
|
34
34
|
|
|
35
|
-
for (j = cursor_j; j <
|
|
35
|
+
for (j = cursor_j; j < length_b; j++) {
|
|
36
36
|
const el_b = uniqueB[j];
|
|
37
37
|
|
|
38
38
|
const diff = compare(el_a, el_b);
|
|
@@ -46,8 +46,8 @@ export function arraySetSortingDiff(a, b, compare) {
|
|
|
46
46
|
i--;
|
|
47
47
|
j--;
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
length_a--;
|
|
50
|
+
length_b--;
|
|
51
51
|
|
|
52
52
|
} else if (diff > 0) {
|
|
53
53
|
cursor_j++;
|