@webspatial/react-sdk 0.0.16-alpha.1 → 0.0.17

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/web/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 - 1; i >= 0; i--) {
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
  };