@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.
- package/build/esm/index.js +7 -1
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -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,
|