@webspatial/react-sdk 0.0.16 → 0.0.18
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/dist/default/index.js +3 -2
- package/dist/default/index.js.map +1 -1
- package/dist/web/index.js +3 -2
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
package/dist/default/index.js
CHANGED
|
@@ -915,7 +915,7 @@ function asyncLoadStyleToChildWindow(childWindow, n, debugName) {
|
|
|
915
915
|
}
|
|
916
916
|
async function syncParentHeadToChild(childWindow, debugName) {
|
|
917
917
|
const styleLoadedPromises = [];
|
|
918
|
-
for (let i = document.head.children.length
|
|
918
|
+
for (let i = 0; i < document.head.children.length; i++) {
|
|
919
919
|
let n = document.head.children[i].cloneNode(true);
|
|
920
920
|
if (n.nodeName == "LINK" && n.rel == "stylesheet" && n.href) {
|
|
921
921
|
const promise = asyncLoadStyleToChildWindow(
|
|
@@ -1588,7 +1588,7 @@ function parseSpatialStyle(node) {
|
|
|
1588
1588
|
scale: { x: scale.x, y: scale.y, z: scale.z },
|
|
1589
1589
|
zIndex,
|
|
1590
1590
|
material: {
|
|
1591
|
-
type: backgroundMaterialType
|
|
1591
|
+
type: backgroundMaterialType || "none"
|
|
1592
1592
|
},
|
|
1593
1593
|
visible
|
|
1594
1594
|
};
|
|
@@ -2423,6 +2423,7 @@ var Model3DNative = class {
|
|
|
2423
2423
|
await spatialModel3DComponent.setOpacity(opacity);
|
|
2424
2424
|
const anchor = parseTransformOrigin(computedStyle);
|
|
2425
2425
|
await spatialModel3DComponent.setRotationAnchor(anchor);
|
|
2426
|
+
await this.setScrollWithParent(!isFixed);
|
|
2426
2427
|
}
|
|
2427
2428
|
async updateRectAndTransform(rect, spatialTransform) {
|
|
2428
2429
|
if (!this.entity || !this.spatialModel3DComponent) {
|