@openheart/tavio-renderer 2.3.22-with-wasm → 2.3.23-with-wasm

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.
@@ -44422,11 +44422,17 @@ class Core extends EventEmitter {
44422
44422
  );
44423
44423
  this.meshMap.set(name, tavioMesh);
44424
44424
  const loadingOption = Object.assign({
44425
- autoInsert: true
44425
+ autoInsert: true,
44426
+ autoBackground: true
44426
44427
  }, option ?? {});
44427
44428
  if (loadingOption.autoInsert === true) {
44428
44429
  this.currentRenderView.add(name);
44429
44430
  }
44431
+ tavioMesh.on("setupbackground", () => {
44432
+ if (loadingOption.autoBackground === true) {
44433
+ this.setBackgroundByTavioMesh(name);
44434
+ }
44435
+ });
44430
44436
  tavioMesh.on("setuppoints", () => {
44431
44437
  const maxDistance = Math.max(
44432
44438
  this.maxDistance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openheart/tavio-renderer",
3
- "version": "2.3.22-with-wasm",
3
+ "version": "2.3.23-with-wasm",
4
4
  "author": "OpenHeart Inc.",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Rendering Engine for Tavio Format 3D data",