@eturnity/eturnity_3d 8.4.2 → 8.4.3-EPDM-12330.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 +2 -2
- package/src/components/ThreeCanvasViewer.vue +1 -0
- package/src/helper/render/tile.js +36 -19
- package/src/helper/threeMixin.js +4 -3
- package/dist/assets/images/panels/longiSolarLR4_60HPH_350M.png +0 -0
- package/dist/assets/images/panels/longiSolarLR4_60HPH_370M.png +0 -0
- package/dist/assets/images/panels/reneSola_Virtus_2_JC320S_24_Bbw copy.png +0 -0
- package/dist/assets/images/panels/reneSola_Virtus_2_JC320S_24_Bbw.png +0 -0
- package/dist/assets/images/panels/uv.png +0 -0
- package/dist/assets/panels/longiSolarLR4_60HPH_350M.png +0 -0
- package/dist/assets/panels/longiSolarLR4_60HPH_370M.png +0 -0
- package/dist/assets/panels/reneSola_Virtus_2_JC320S_24_Bbw.png +0 -0
- package/dist/assets/panels/uv.png +0 -0
- package/dist/assets/theme.js +0 -43
- package/dist/assets/vue.svg +0 -1
- package/dist/main.es.js +0 -43662
- package/dist/main.umd.js +0 -3542
- package/dist/style.css +0 -1
- package/dist/vite.svg +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eturnity/eturnity_3d",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "8.4.
|
|
4
|
+
"version": "8.4.3-EPDM-12330.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"prettier": "prettier --write \"**/*.{js,vue}\""
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@eturnity/eturnity_maths": "8.4.
|
|
18
|
+
"@eturnity/eturnity_maths": "8.4.2",
|
|
19
19
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
20
20
|
"core-js": "3.30.2",
|
|
21
21
|
"cors": "2.8.5",
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
debouncedRenderTiles: debounce(function () {
|
|
27
27
|
this.renderTiles()
|
|
28
28
|
}, 1000),
|
|
29
|
-
async renderTiles() {
|
|
29
|
+
async renderTiles(isScreenshotForPDF = false) {
|
|
30
30
|
if (!this.scene) {
|
|
31
31
|
return
|
|
32
32
|
}
|
|
@@ -36,9 +36,9 @@ export default {
|
|
|
36
36
|
this.selectedMapLayer.key
|
|
37
37
|
)
|
|
38
38
|
) {
|
|
39
|
-
this.renderGoogleTiles()
|
|
39
|
+
this.renderGoogleTiles(isScreenshotForPDF)
|
|
40
40
|
} else {
|
|
41
|
-
this.renderProviderTiles()
|
|
41
|
+
this.renderProviderTiles(isScreenshotForPDF)
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
removeUnusedTiles() {
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
this.clearMeshFromScene(this.meshes.tileMeshes[id], this.scene)
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
async renderProviderTiles() {
|
|
61
|
+
async renderProviderTiles(isScreenshotForPDF = false) {
|
|
62
62
|
if (this.googleBackgroundMap) {
|
|
63
63
|
this.googleBackgroundMap.clear()
|
|
64
64
|
this.scene.remove(this.googleBackgroundMap)
|
|
@@ -186,7 +186,7 @@ export default {
|
|
|
186
186
|
zoomLvl = this.tileToRender[k].zoomLvl
|
|
187
187
|
let isTileOnRoofBound = this.tileToRender[k].isTileOnRoofBound
|
|
188
188
|
promiseArray.push(
|
|
189
|
-
this.renderTile(xTile, yTile, zoomLvl, isTileOnRoofBound)
|
|
189
|
+
this.renderTile(xTile, yTile, zoomLvl, isTileOnRoofBound, isScreenshotForPDF)
|
|
190
190
|
)
|
|
191
191
|
}
|
|
192
192
|
Promise.all(promiseArray).then((res) => {
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
215
215
|
(t) => t.meshId != meshId || t.mapLayer != mapLayer
|
|
216
216
|
)
|
|
217
217
|
},
|
|
218
|
-
async renderTile(x, y, zoomLvl, isTileOnRoofBound = false) {
|
|
218
|
+
async renderTile(x, y, zoomLvl, isTileOnRoofBound = false, isScreenshotForPDF = false) {
|
|
219
219
|
const promise = new Promise((resolve, reject) => {
|
|
220
220
|
const meshId = 'tile_' + x + '_' + y + '_' + zoomLvl
|
|
221
221
|
const mapLayer = this.provider.mapLayer
|
|
@@ -295,13 +295,22 @@ export default {
|
|
|
295
295
|
mesh.castShadow = false
|
|
296
296
|
mesh.updateMatrix()
|
|
297
297
|
} else {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
298
|
+
if (isScreenshotForPDF) {
|
|
299
|
+
material = new THREE.MeshStandardMaterial({
|
|
300
|
+
map: texture,
|
|
301
|
+
color: 0xffffff,
|
|
302
|
+
side: THREE.FrontSide,
|
|
303
|
+
transparent: false,
|
|
304
|
+
})
|
|
305
|
+
} else {
|
|
306
|
+
material = new THREE.MeshPhongMaterial({
|
|
307
|
+
map: texture,
|
|
308
|
+
color: 0xffffff,
|
|
309
|
+
side: THREE.FrontSide,
|
|
310
|
+
transparent: false,
|
|
311
|
+
shininess: 0,
|
|
312
|
+
})
|
|
313
|
+
}
|
|
305
314
|
material.map = texture
|
|
306
315
|
material.needsUpdate = true
|
|
307
316
|
geometry = getBufferRoofGeometry(corners)
|
|
@@ -333,7 +342,7 @@ export default {
|
|
|
333
342
|
})
|
|
334
343
|
return promise
|
|
335
344
|
},
|
|
336
|
-
async renderGoogleTiles() {
|
|
345
|
+
async renderGoogleTiles(isScreenshotForPDF = false) {
|
|
337
346
|
this.clearByType('tileMeshes')
|
|
338
347
|
if (!this.googleBackgroundMap) {
|
|
339
348
|
this.googleBackgroundMap = new THREE.Group()
|
|
@@ -448,11 +457,19 @@ export default {
|
|
|
448
457
|
googleMapType
|
|
449
458
|
)
|
|
450
459
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
460
|
+
|
|
461
|
+
if (isScreenshotForPDF) {
|
|
462
|
+
planeMaterial[indexGoogleBackground] = new THREE.MeshStandardMaterial({
|
|
463
|
+
map: planeTexture[indexGoogleBackground],
|
|
464
|
+
side: THREE.DoubleSide,
|
|
465
|
+
})
|
|
466
|
+
} else {
|
|
467
|
+
planeMaterial[indexGoogleBackground] = new THREE.MeshPhongMaterial({
|
|
468
|
+
map: planeTexture[indexGoogleBackground],
|
|
469
|
+
side: THREE.DoubleSide,
|
|
470
|
+
shininess: 0,
|
|
471
|
+
})
|
|
472
|
+
}
|
|
456
473
|
backgroundPlane[indexGoogleBackground] = new THREE.Mesh(
|
|
457
474
|
planeGeometry[indexGoogleBackground],
|
|
458
475
|
planeMaterial[indexGoogleBackground]
|
package/src/helper/threeMixin.js
CHANGED
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
isInteractive = true,
|
|
40
40
|
isPerspectiveCamera = true,
|
|
41
41
|
DOMElement = this.$refs.canvas3DContainer,
|
|
42
|
+
isScreenshotForPDF = false,
|
|
42
43
|
} = {}) {
|
|
43
44
|
this.DOMElement = DOMElement
|
|
44
45
|
|
|
@@ -57,7 +58,7 @@ export default {
|
|
|
57
58
|
|
|
58
59
|
this.updateSunLight()
|
|
59
60
|
|
|
60
|
-
this.initialiseThreeMap()
|
|
61
|
+
this.initialiseThreeMap(isScreenshotForPDF)
|
|
61
62
|
|
|
62
63
|
if (isInteractive) {
|
|
63
64
|
this.initialiseControl(isPerspectiveCamera)
|
|
@@ -201,13 +202,13 @@ export default {
|
|
|
201
202
|
}
|
|
202
203
|
this.render()
|
|
203
204
|
},
|
|
204
|
-
initialiseThreeMap() {
|
|
205
|
+
initialiseThreeMap(isScreenshotForPDF = false) {
|
|
205
206
|
//Extention of the map with geo-map
|
|
206
207
|
if (!this.selectedMapLayer) {
|
|
207
208
|
this.initialiseMapLayer()
|
|
208
209
|
}
|
|
209
210
|
this.provider = new CustomProvider('', this.selectedMapLayer.key)
|
|
210
|
-
this.renderTiles()
|
|
211
|
+
this.renderTiles(isScreenshotForPDF)
|
|
211
212
|
},
|
|
212
213
|
initialiseMapLayer() {
|
|
213
214
|
if (!this.layers || this.layers.length == 0) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/assets/theme.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const theme = {
|
|
2
|
-
colors: {
|
|
3
|
-
primary: '#282387',
|
|
4
|
-
secondary: '#818181',
|
|
5
|
-
tertiary: '#d5d5d5',
|
|
6
|
-
black: '#263238',
|
|
7
|
-
yellow: '#fdb813',
|
|
8
|
-
darkGray: '#818181',
|
|
9
|
-
mediumGray: '#d5d5d5',
|
|
10
|
-
lightGray: '#f2f2f2',
|
|
11
|
-
white: '#fff',
|
|
12
|
-
blue: '#48a2d0',
|
|
13
|
-
red: '#FF5656',
|
|
14
|
-
blue1: '#e4efff',
|
|
15
|
-
blue2: '#F6FAFF',
|
|
16
|
-
grey1: '#666',
|
|
17
|
-
grey2: '#c4c4c4',
|
|
18
|
-
grey3: '#b2b9c5',
|
|
19
|
-
grey4: '#dee2eb',
|
|
20
|
-
grey5: '#fafafa',
|
|
21
|
-
grey6: '#555d61',
|
|
22
|
-
turquoise: '#20A4CA',
|
|
23
|
-
green: '#99db0c',
|
|
24
|
-
purple: '#505ca6',
|
|
25
|
-
disabled: '#dfe1e1',
|
|
26
|
-
transparentWhite1: '#ffffff32',
|
|
27
|
-
transparentBlack1: '#263238e6',
|
|
28
|
-
transparentBlue1: '#20a4cae6',
|
|
29
|
-
blueElectric: '#66dffa',
|
|
30
|
-
eturnityGrey: '#263238'
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
screen: {
|
|
34
|
-
mobileSmall: '345px',
|
|
35
|
-
mobile: '425px',
|
|
36
|
-
mobileLarge: '530px',
|
|
37
|
-
tablet: '768px',
|
|
38
|
-
tabletLarge: '950px'
|
|
39
|
-
},
|
|
40
|
-
borderRadius: '4px'
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default theme
|
package/dist/assets/vue.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|