@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.mjs
CHANGED
|
@@ -12619,9 +12619,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
12619
12619
|
const model = fragments.list.get(result.modelId);
|
|
12620
12620
|
if (!model)
|
|
12621
12621
|
return null;
|
|
12622
|
-
const localIds = await model.getLocalIdsFromItemIds([
|
|
12623
|
-
result.itemId
|
|
12624
|
-
]);
|
|
12622
|
+
const localIds = await model.getLocalIdsFromItemIds([result.itemId]);
|
|
12625
12623
|
const localId = localIds == null ? void 0 : localIds[0];
|
|
12626
12624
|
if (localId === void 0 || localId === null)
|
|
12627
12625
|
return null;
|
|
@@ -12918,6 +12916,8 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
12918
12916
|
const prevClearAlpha = renderer.getClearAlpha();
|
|
12919
12917
|
const prevScissorTest = renderer.getScissorTest();
|
|
12920
12918
|
const prevScissor = renderer.getScissor(new THREE.Vector4());
|
|
12919
|
+
const prevBackground = scene.background;
|
|
12920
|
+
scene.background = null;
|
|
12921
12921
|
renderer.setRenderTarget(target);
|
|
12922
12922
|
renderer.setClearColor(0, 0);
|
|
12923
12923
|
renderer.autoClear = false;
|
|
@@ -13013,6 +13013,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13013
13013
|
renderer.setRenderTarget(prevTarget);
|
|
13014
13014
|
renderer.autoClear = prevAutoClear;
|
|
13015
13015
|
renderer.setClearColor(prevClearColor, prevClearAlpha);
|
|
13016
|
+
scene.background = prevBackground;
|
|
13016
13017
|
}
|
|
13017
13018
|
/**
|
|
13018
13019
|
* Renders the picker's color target with the BIM tile shells using
|
|
@@ -13043,6 +13044,8 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13043
13044
|
const prevAutoClear = renderer.autoClear;
|
|
13044
13045
|
const prevClearColor = renderer.getClearColor(new THREE.Color());
|
|
13045
13046
|
const prevClearAlpha = renderer.getClearAlpha();
|
|
13047
|
+
const prevBackground = scene.background;
|
|
13048
|
+
scene.background = null;
|
|
13046
13049
|
const matSwap = /* @__PURE__ */ new Map();
|
|
13047
13050
|
const hiddenLines = [];
|
|
13048
13051
|
const modelRoots = this.getModelRoots();
|
|
@@ -13105,6 +13108,7 @@ const _FastModelPicker = class _FastModelPicker {
|
|
|
13105
13108
|
renderer.setRenderTarget(prevTarget);
|
|
13106
13109
|
renderer.autoClear = prevAutoClear;
|
|
13107
13110
|
renderer.setClearColor(prevClearColor, prevClearAlpha);
|
|
13111
|
+
scene.background = prevBackground;
|
|
13108
13112
|
}
|
|
13109
13113
|
renderDepthPass() {
|
|
13110
13114
|
this.renderWithTileMaterial(this._depthMaterial);
|
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.
|
|
4
|
+
"version": "3.4.8",
|
|
5
5
|
"author": "That Open Company",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@thatopen/fragments": "~3.4.
|
|
40
|
+
"@thatopen/fragments": "~3.4.7",
|
|
41
41
|
"@thatopen/ui": "~3.4.0",
|
|
42
42
|
"@types/convert-units": "2.3.11",
|
|
43
43
|
"@types/three": "0.184.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"three-mesh-bvh": "0.9.9"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@thatopen/fragments": "~3.4.
|
|
55
|
+
"@thatopen/fragments": "~3.4.7",
|
|
56
56
|
"camera-controls": ">=3.1.2",
|
|
57
57
|
"three": ">=0.182.0",
|
|
58
58
|
"web-ifc": ">=0.0.77"
|