@eturnity/eturnity_3d 6.34.3 → 6.34.4
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/bitbucket-pipelines.yml
CHANGED
|
@@ -829,34 +829,6 @@ pipelines:
|
|
|
829
829
|
|
|
830
830
|
- step: *build_and_push_image
|
|
831
831
|
- step: *dev_deploy_only
|
|
832
|
-
staging-all:
|
|
833
|
-
- parallel:
|
|
834
|
-
|
|
835
|
-
- step:
|
|
836
|
-
name: Deploy to staging-01
|
|
837
|
-
script:
|
|
838
|
-
- pipe: atlassian/trigger-pipeline:5.2.0
|
|
839
|
-
variables:
|
|
840
|
-
BITBUCKET_ACCESS_TOKEN: $BB_ETURNITY_DEPLOY_ACCESS_TOKEN_1
|
|
841
|
-
REPOSITORY: 'eturnity_expert'
|
|
842
|
-
CUSTOM_PIPELINE_NAME: 'staging-01-deploy'
|
|
843
|
-
REF_TYPE: 'branch'
|
|
844
|
-
REF_NAME: 'staging-v.${BB_STAGING_VERSION}'
|
|
845
|
-
DEBUG: 'true'
|
|
846
|
-
WAIT: 'true'
|
|
847
|
-
|
|
848
|
-
- step:
|
|
849
|
-
name: Deploy to staging-02
|
|
850
|
-
script:
|
|
851
|
-
- pipe: atlassian/trigger-pipeline:5.2.0
|
|
852
|
-
variables:
|
|
853
|
-
BITBUCKET_ACCESS_TOKEN: $BB_ETURNITY_DEPLOY_ACCESS_TOKEN_1
|
|
854
|
-
REPOSITORY: 'eturnity_expert'
|
|
855
|
-
CUSTOM_PIPELINE_NAME: 'staging-02-deploy'
|
|
856
|
-
REF_TYPE: 'branch'
|
|
857
|
-
REF_NAME: 'staging-v.${BB_STAGING_VERSION}'
|
|
858
|
-
DEBUG: 'true'
|
|
859
|
-
WAIT: 'true'
|
|
860
832
|
|
|
861
833
|
|
|
862
834
|
####################################################################################################################
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
methods: {
|
|
3
3
|
applyTextureOnMesh(materials, mesh) {
|
|
4
|
-
if (materials && materials.length > 0) {
|
|
4
|
+
if (mesh && materials && materials.length > 0) {
|
|
5
5
|
let geometry = mesh.geometry
|
|
6
6
|
geometry.clearGroups()
|
|
7
7
|
for (let k = 0; k < materials.length; k++) {
|
|
@@ -267,8 +267,8 @@ export default {
|
|
|
267
267
|
y: (yMax + yMin) / 2000
|
|
268
268
|
}
|
|
269
269
|
let deltaLatLng = distanceToDeltaLatLng(
|
|
270
|
-
roofsBoundCenterMeter.x,
|
|
271
|
-
roofsBoundCenterMeter.y,
|
|
270
|
+
roofsBoundCenterMeter.x*1000,
|
|
271
|
+
roofsBoundCenterMeter.y*1000,
|
|
272
272
|
this.layoutSettings.layout_latitude
|
|
273
273
|
)
|
|
274
274
|
let roofsBoundCenterLatLng = {
|
|
@@ -298,9 +298,9 @@ export default {
|
|
|
298
298
|
(Math.cos((this.layoutSettings.layout_latitude * Math.PI) / 180) *
|
|
299
299
|
2 *
|
|
300
300
|
Math.PI *
|
|
301
|
-
|
|
302
|
-
(
|
|
303
|
-
let sizeInMeter = groundResolution * size
|
|
301
|
+
earthRadius) /
|
|
302
|
+
( Math.pow(2, zoomLevel))
|
|
303
|
+
let sizeInMeter = groundResolution * size / 256
|
|
304
304
|
planeGeometry[indexGoogleBackground] = new THREE.PlaneGeometry(
|
|
305
305
|
sizeInMeter,
|
|
306
306
|
sizeInMeter * 0.9
|
|
@@ -392,7 +392,7 @@ export default {
|
|
|
392
392
|
(Math.cos((this.layoutSettings.layout_latitude * Math.PI) / 180) *
|
|
393
393
|
2 *
|
|
394
394
|
Math.PI *
|
|
395
|
-
|
|
395
|
+
earthRadius) /
|
|
396
396
|
(256 * Math.pow(2, zoomLevel))
|
|
397
397
|
let sizeInMeter = groundResolution * size
|
|
398
398
|
planeGeometry[indexGoogleBackground] = new THREE.PlaneGeometry(
|