@thatopen/components 3.4.3 → 3.4.5

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/index.cjs CHANGED
@@ -12823,7 +12823,7 @@ const _FastModelPicker = class _FastModelPicker {
12823
12823
  return;
12824
12824
  }
12825
12825
  this._originalMaterials.set(child, child.material);
12826
- child.material = this._idMaterial;
12826
+ child.material = [this._idMaterial];
12827
12827
  any = true;
12828
12828
  });
12829
12829
  if (any)
@@ -12888,7 +12888,13 @@ const _FastModelPicker = class _FastModelPicker {
12888
12888
  const half = SCISSOR_PX >> 1;
12889
12889
  const sx = Math.max(0, Math.min(tw - SCISSOR_PX, cx - half));
12890
12890
  const sy = Math.max(0, Math.min(th - SCISSOR_PX, cy - half));
12891
- renderer.setScissor(sx, sy, SCISSOR_PX, SCISSOR_PX);
12891
+ const dpr = renderer.getPixelRatio();
12892
+ renderer.setScissor(
12893
+ sx / dpr,
12894
+ sy / dpr,
12895
+ SCISSOR_PX / dpr,
12896
+ SCISSOR_PX / dpr
12897
+ );
12892
12898
  renderer.setScissorTest(true);
12893
12899
  const objectsByModel = /* @__PURE__ */ new Map();
12894
12900
  for (const [modelId, model] of fragments.list) {
@@ -12987,7 +12993,7 @@ const _FastModelPicker = class _FastModelPicker {
12987
12993
  if (!child.visible)
12988
12994
  return;
12989
12995
  matSwap.set(child, child.material);
12990
- child.material = material;
12996
+ child.material = [material];
12991
12997
  });
12992
12998
  }
12993
12999
  const bimRoots = /* @__PURE__ */ new Set();