@woosh/meep-engine 2.88.0 → 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 CHANGED
@@ -66745,7 +66745,7 @@ class SGMesh {
66745
66745
  * Do not modify contents unless you know exactly what you're doing
66746
66746
  * @returns {EntityNode|null}
66747
66747
  */
66748
- get node(){
66748
+ get node() {
66749
66749
  return this.__node;
66750
66750
  }
66751
66751
 
@@ -66957,6 +66957,22 @@ class SGMesh {
66957
66957
 
66958
66958
  return r;
66959
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
+ }
66960
66976
  }
66961
66977
 
66962
66978
  SGMesh.typeName = "SGMesh";