@eturnity/eturnity_3d 8.34.3 → 8.34.5-EPDM-16331.0
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/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
if (this.meshes.markerMesh) {
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
const lod = new THREE.LOD()
|
|
14
14
|
const sphereGeometry = new THREE.SphereGeometry(1, 32, 32) // Initial radius of 5
|
|
15
15
|
const coneGeometry = new THREE.ConeGeometry(0.98, 2, 32)
|
|
16
16
|
|
|
@@ -43,18 +43,13 @@ export default {
|
|
|
43
43
|
markerMesh.userData = { id: 'marker' }
|
|
44
44
|
markerMesh.position.set(roofCenter.x, roofCenter.y, roofCenter.z + 10)
|
|
45
45
|
markerMesh.scale.set(3, 3, 3)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// lastMesh.scale.set(150, 150, 150)
|
|
54
|
-
// lastMesh.position.set(0, 0, 600)
|
|
55
|
-
// lod.addLevel(lastMesh, 1000)
|
|
56
|
-
// this.scene.add(lod)
|
|
57
|
-
this.scene.add(markerMesh)
|
|
46
|
+
for (let i = 1; i < 100; i++) {
|
|
47
|
+
const mesh = markerMesh.clone()
|
|
48
|
+
mesh.scale.set(i * 0.2, i * 0.2, i * 0.2)
|
|
49
|
+
mesh.position.set(0, 0, 0.5 * i)
|
|
50
|
+
lod.addLevel(mesh, (i - 1) * 10)
|
|
51
|
+
}
|
|
52
|
+
this.scene.add(lod)
|
|
58
53
|
this.meshes.markerMesh = markerMesh
|
|
59
54
|
},
|
|
60
55
|
showMarker() {
|
package/src/store/hydrateData.js
CHANGED
|
@@ -211,7 +211,7 @@ export async function hydratePolygons({
|
|
|
211
211
|
})
|
|
212
212
|
|
|
213
213
|
modules.forEach((module) => {
|
|
214
|
-
|
|
214
|
+
let panel = new Polygon(module.outline, '')
|
|
215
215
|
panel.id = module.module_uuid
|
|
216
216
|
panel.gridIndex = module.gridIndex
|
|
217
217
|
panel.row_index = module.row_index
|
|
@@ -223,12 +223,15 @@ export async function hydratePolygons({
|
|
|
223
223
|
panel.poolGroupUuidColor = `#${panel.poolGroupUuid.slice(0, 6)}`
|
|
224
224
|
}
|
|
225
225
|
panel.available = true
|
|
226
|
+
|
|
226
227
|
if (module.is_active) {
|
|
227
228
|
panel.layer = 'panel'
|
|
229
|
+
panel = updateComputedGeometryPolygon(panel)
|
|
228
230
|
MFpanels.push(panel)
|
|
229
231
|
panels.push(panel)
|
|
230
232
|
} else {
|
|
231
233
|
panel.layer = 'user_deactivated_panel'
|
|
234
|
+
panel = updateComputedGeometryPolygon(panel)
|
|
232
235
|
MFuserDeactivatedPanels.push(panel)
|
|
233
236
|
userDeactivatedPanels.push(panel)
|
|
234
237
|
}
|
package/src/utils/layers.js
CHANGED
|
@@ -203,12 +203,10 @@ const hexagonLayerGroup = L.layerGroup([hexagonLayerDop20, hexagonLayerDop10], {
|
|
|
203
203
|
layerTypeAPI: 'bkgHexagonGermanyLayer',
|
|
204
204
|
})
|
|
205
205
|
|
|
206
|
-
const getHexagonLayer = (location
|
|
207
|
-
const
|
|
208
|
-
country_short
|
|
209
|
-
administrative_area_level_1
|
|
210
|
-
} = location
|
|
211
|
-
const supportsDop10 = country === 'DE' && administrativeAreaLevel === 'NRW'
|
|
206
|
+
const getHexagonLayer = (location) => {
|
|
207
|
+
const supportsDop10 =
|
|
208
|
+
location?.country_short === 'DE' &&
|
|
209
|
+
location?.administrative_area_level_1 === 'NRW'
|
|
212
210
|
return supportsDop10 ? hexagonLayerGroup : hexagonLayerDop20
|
|
213
211
|
}
|
|
214
212
|
|