@thatopen/components 3.4.7 → 3.4.8
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 +7 -3
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.mjs +7 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -12639,9 +12639,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
12639
12639
|
const model = fragments.list.get(result.modelId);
|
|
12640
12640
|
if (!model)
|
|
12641
12641
|
return null;
|
|
12642
|
-
const localIds = await model.getLocalIdsFromItemIds([
|
|
12643
|
-
result.itemId
|
|
12644
|
-
]);
|
|
12642
|
+
const localIds = await model.getLocalIdsFromItemIds([result.itemId]);
|
|
12645
12643
|
const localId = localIds == null ? void 0 : localIds[0];
|
|
12646
12644
|
if (localId === void 0 || localId === null)
|
|
12647
12645
|
return null;
|
|
@@ -12938,6 +12936,8 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
12938
12936
|
const prevClearAlpha = renderer.getClearAlpha();
|
|
12939
12937
|
const prevScissorTest = renderer.getScissorTest();
|
|
12940
12938
|
const prevScissor = renderer.getScissor(new THREE__namespace.Vector4());
|
|
12939
|
+
const prevBackground = scene.background;
|
|
12940
|
+
scene.background = null;
|
|
12941
12941
|
renderer.setRenderTarget(target);
|
|
12942
12942
|
renderer.setClearColor(0, 0);
|
|
12943
12943
|
renderer.autoClear = false;
|
|
@@ -13033,6 +13033,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13033
13033
|
renderer.setRenderTarget(prevTarget);
|
|
13034
13034
|
renderer.autoClear = prevAutoClear;
|
|
13035
13035
|
renderer.setClearColor(prevClearColor, prevClearAlpha);
|
|
13036
|
+
scene.background = prevBackground;
|
|
13036
13037
|
}
|
|
13037
13038
|
/**
|
|
13038
13039
|
* Renders the picker's color target with the BIM tile shells using
|
|
@@ -13063,6 +13064,8 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13063
13064
|
const prevAutoClear = renderer.autoClear;
|
|
13064
13065
|
const prevClearColor = renderer.getClearColor(new THREE__namespace.Color());
|
|
13065
13066
|
const prevClearAlpha = renderer.getClearAlpha();
|
|
13067
|
+
const prevBackground = scene.background;
|
|
13068
|
+
scene.background = null;
|
|
13066
13069
|
const matSwap = /* @__PURE__ */ new Map();
|
|
13067
13070
|
const hiddenLines = [];
|
|
13068
13071
|
const modelRoots = this.getModelRoots();
|
|
@@ -13125,6 +13128,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13125
13128
|
renderer.setRenderTarget(prevTarget);
|
|
13126
13129
|
renderer.autoClear = prevAutoClear;
|
|
13127
13130
|
renderer.setClearColor(prevClearColor, prevClearAlpha);
|
|
13131
|
+
scene.background = prevBackground;
|
|
13128
13132
|
}
|
|
13129
13133
|
renderDepthPass() {
|
|
13130
13134
|
this.renderWithTileMaterial(this._depthMaterial);
|