@woosh/meep-engine 2.87.6 → 2.88.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 +26 -4
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +26 -4
- package/editor/view/ecs/HierarchicalEntityListView.js +1 -1
- package/editor/view/v2/prototypeEditor.js +1 -1
- package/package.json +1 -1
- package/src/core/bvh2/bvh3/BVH.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/BVH.js +4 -2
- package/src/core/bvh2/bvh3/BVH.spec.js +15 -3
- package/src/core/geom/2d/aabb/aabb2_clip_line_cohen_sutherland.d.ts +16 -0
- package/src/core/geom/2d/aabb/aabb2_clip_line_cohen_sutherland.d.ts.map +1 -0
- package/src/core/geom/2d/aabb/aabb2_clip_line_cohen_sutherland.js +149 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_circle.d.ts +13 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_circle.d.ts.map +1 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_circle.js +27 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts +41 -6
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts.map +1 -1
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.js +92 -22
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.js +98 -2
- package/src/core/geom/2d/hash-grid/prototypeGridQueries.d.ts +2 -0
- package/src/core/geom/2d/hash-grid/prototypeGridQueries.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/prototypeGridQueries.js +387 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.d.ts +12 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.js +160 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.spec.d.ts +2 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.spec.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_circle.spec.js +85 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.d.ts +14 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.js +132 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.spec.d.ts +2 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.spec.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/shg_query_elements_line.spec.js +102 -0
- package/src/core/geom/2d/line/line2_distance_to_point_sqr.d.ts +11 -0
- package/src/core/geom/2d/line/line2_distance_to_point_sqr.d.ts.map +1 -0
- package/src/core/geom/2d/line/line2_distance_to_point_sqr.js +39 -0
- package/src/core/geom/2d/quad-tree/QuadTreeNode.spec.js +53 -0
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.spec.d.ts +2 -0
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.spec.d.ts.map +1 -0
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.spec.js +86 -0
- package/src/core/model/ObservedString.d.ts.map +1 -1
- package/src/core/model/ObservedString.js +1 -1
- package/src/engine/animation/curve/ecd_bind_animation_curve.js +1 -1
- package/src/engine/ecs/name/Name.d.ts +25 -0
- package/src/engine/ecs/name/Name.d.ts.map +1 -0
- package/src/engine/ecs/name/Name.js +42 -0
- package/src/engine/ecs/name/NameSerializationAdapter.d.ts +18 -0
- package/src/engine/ecs/name/NameSerializationAdapter.d.ts.map +1 -0
- package/src/engine/ecs/name/NameSerializationAdapter.js +29 -0
- package/src/engine/ecs/transform/Transform.d.ts +2 -2
- package/src/engine/graphics/canvas/canvas2d_draw_grid.js +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMesh.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMesh.js +17 -1
- package/src/engine/graphics/ecs/mesh-v2/three_object_to_entity_composition.js +1 -1
- package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts +0 -14
- package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts.map +0 -1
- package/src/core/geom/2d/hash-grid/shg_query_raycast.js +0 -21
package/build/meep.cjs
CHANGED
|
@@ -50996,7 +50996,7 @@ function computeStringHash(string) {
|
|
|
50996
50996
|
class ObservedString extends String {
|
|
50997
50997
|
/**
|
|
50998
50998
|
*
|
|
50999
|
-
* @param {
|
|
50999
|
+
* @param {string} [value]
|
|
51000
51000
|
* @constructor
|
|
51001
51001
|
*/
|
|
51002
51002
|
constructor(value = "") {
|
|
@@ -52624,8 +52624,10 @@ class BVH {
|
|
|
52624
52624
|
let index = this.__root;
|
|
52625
52625
|
|
|
52626
52626
|
while (this.node_is_leaf(index) === false) {
|
|
52627
|
-
const
|
|
52628
|
-
|
|
52627
|
+
const node_address = index * ELEMENT_WORD_COUNT;
|
|
52628
|
+
|
|
52629
|
+
const child1 = uint32[node_address + COLUMN_CHILD_1];
|
|
52630
|
+
const child2 = uint32[node_address + COLUMN_CHILD_2];
|
|
52629
52631
|
|
|
52630
52632
|
const area = this.node_get_surface_area(index);
|
|
52631
52633
|
|
|
@@ -66743,7 +66745,7 @@ class SGMesh {
|
|
|
66743
66745
|
* Do not modify contents unless you know exactly what you're doing
|
|
66744
66746
|
* @returns {EntityNode|null}
|
|
66745
66747
|
*/
|
|
66746
|
-
get node(){
|
|
66748
|
+
get node() {
|
|
66747
66749
|
return this.__node;
|
|
66748
66750
|
}
|
|
66749
66751
|
|
|
@@ -66955,6 +66957,22 @@ class SGMesh {
|
|
|
66955
66957
|
|
|
66956
66958
|
return r;
|
|
66957
66959
|
}
|
|
66960
|
+
|
|
66961
|
+
toJSON() {
|
|
66962
|
+
return {
|
|
66963
|
+
url: this.__url,
|
|
66964
|
+
receiveShadow: this.receiveShadow,
|
|
66965
|
+
castShadow: this.castShadow,
|
|
66966
|
+
};
|
|
66967
|
+
}
|
|
66968
|
+
|
|
66969
|
+
fromJSON({ url, receiveShadow = true, castShadow = true }) {
|
|
66970
|
+
this.clearFlag(SGMeshFlags.Loaded);
|
|
66971
|
+
|
|
66972
|
+
this.__url = url;
|
|
66973
|
+
this.receiveShadow = receiveShadow;
|
|
66974
|
+
this.castShadow = castShadow;
|
|
66975
|
+
}
|
|
66958
66976
|
}
|
|
66959
66977
|
|
|
66960
66978
|
SGMesh.typeName = "SGMesh";
|
|
@@ -73703,6 +73721,10 @@ function assetTypeByPath(url) {
|
|
|
73703
73721
|
}
|
|
73704
73722
|
|
|
73705
73723
|
class Name extends ObservedString {
|
|
73724
|
+
/**
|
|
73725
|
+
*
|
|
73726
|
+
* @param {string} [value]
|
|
73727
|
+
*/
|
|
73706
73728
|
constructor(value = "") {
|
|
73707
73729
|
super(value);
|
|
73708
73730
|
}
|