@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.mjs CHANGED
@@ -12803,7 +12803,7 @@ const _FastModelPicker = class _FastModelPicker {
12803
12803
  return;
12804
12804
  }
12805
12805
  this._originalMaterials.set(child, child.material);
12806
- child.material = this._idMaterial;
12806
+ child.material = [this._idMaterial];
12807
12807
  any = true;
12808
12808
  });
12809
12809
  if (any)
@@ -12868,7 +12868,13 @@ const _FastModelPicker = class _FastModelPicker {
12868
12868
  const half = SCISSOR_PX >> 1;
12869
12869
  const sx = Math.max(0, Math.min(tw - SCISSOR_PX, cx - half));
12870
12870
  const sy = Math.max(0, Math.min(th - SCISSOR_PX, cy - half));
12871
- renderer.setScissor(sx, sy, SCISSOR_PX, SCISSOR_PX);
12871
+ const dpr = renderer.getPixelRatio();
12872
+ renderer.setScissor(
12873
+ sx / dpr,
12874
+ sy / dpr,
12875
+ SCISSOR_PX / dpr,
12876
+ SCISSOR_PX / dpr
12877
+ );
12872
12878
  renderer.setScissorTest(true);
12873
12879
  const objectsByModel = /* @__PURE__ */ new Map();
12874
12880
  for (const [modelId, model] of fragments.list) {
@@ -12967,7 +12973,7 @@ const _FastModelPicker = class _FastModelPicker {
12967
12973
  if (!child.visible)
12968
12974
  return;
12969
12975
  matSwap.set(child, child.material);
12970
- child.material = material;
12976
+ child.material = [material];
12971
12977
  });
12972
12978
  }
12973
12979
  const bimRoots = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thatopen/components",
3
3
  "description": "Collection of core functionalities to author BIM apps.",
4
- "version": "3.4.3",
4
+ "version": "3.4.5",
5
5
  "author": "That Open Company",
6
6
  "contributors": [
7
7
  "Antonio Gonzalez Viegas (https://github.com/agviegas)",