@eturnity/eturnity_3d 0.0.8 → 0.0.10
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/css/main.d97599b7.css +1 -0
- package/dist/index.html +1 -1
- package/dist/main.js +46055 -45723
- package/dist/main.js.map +1 -1
- package/package.json +4 -4
- package/src/helper/renderMixin.js +0 -1
- package/src/helper/threeMixin.js +6 -6
- package/dist/css/main.1f8fe45d.css +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eturnity/eturnity_3d",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"express": "^4.18.2",
|
|
16
16
|
"geo-three": "^0.1.11",
|
|
17
17
|
"leaflet": "^1.8.0",
|
|
18
|
-
"leaflet.gridlayer.googlemutant": "^0.
|
|
18
|
+
"leaflet.gridlayer.googlemutant": "^0.14.0",
|
|
19
19
|
"svd-js": "^1.1.1",
|
|
20
20
|
"three": "^0.149.0",
|
|
21
21
|
"uuid": "^9.0.0",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@vue/cli-plugin-babel": "^3.12.1",
|
|
32
32
|
"@vue/cli-plugin-eslint": "^3.12.1",
|
|
33
33
|
"@vue/cli-service": "^3.12.1",
|
|
34
|
-
"babel-loader": "^
|
|
34
|
+
"babel-loader": "^8.3.0",
|
|
35
35
|
"eslint": "5.16.0",
|
|
36
36
|
"eslint-config-prettier": "6.15.0",
|
|
37
37
|
"eslint-plugin-prettier": "3.4.1",
|
|
38
38
|
"eslint-plugin-vue": "5.2.3",
|
|
39
39
|
"html-webpack-plugin": "^3.2.0",
|
|
40
40
|
"webpack": "^4.46.0",
|
|
41
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack-cli": "^4.10.0"
|
|
42
42
|
},
|
|
43
43
|
"eslintConfig": {
|
|
44
44
|
"root": true,
|
|
@@ -748,7 +748,6 @@ export default {
|
|
|
748
748
|
|
|
749
749
|
//definition of the material
|
|
750
750
|
let material = this.material.panel['default_'+this.module_texture_version_id]
|
|
751
|
-
console.log("material Texture",panelPolygon,panelPolygon.moduleField,panelPolygon.moduleField.pvData)
|
|
752
751
|
if (panelPolygon.moduleField.pvData) {
|
|
753
752
|
let pvId = panelPolygon.moduleField.pvData.id
|
|
754
753
|
if (this.material.panel[pvId]) {
|
package/src/helper/threeMixin.js
CHANGED
|
@@ -34,14 +34,14 @@ export default {
|
|
|
34
34
|
})
|
|
35
35
|
this.meshes.backgroundMesh = new THREE.Mesh(planeGeometry, planeMaterial)
|
|
36
36
|
|
|
37
|
-
this.meshes.backgroundMesh.position.z=0
|
|
37
|
+
this.meshes.backgroundMesh.position.z=0
|
|
38
38
|
|
|
39
39
|
//helper grid
|
|
40
40
|
let helper = new THREE.GridHelper(2000, 100)
|
|
41
41
|
helper.material.opacity = 0.25
|
|
42
42
|
helper.material.transparent = true
|
|
43
43
|
helper.rotateX(-Math.PI / 2)
|
|
44
|
-
helper.position.z
|
|
44
|
+
helper.position.z=0
|
|
45
45
|
this.scene.add(helper)
|
|
46
46
|
this.background_map.add( this.meshes.backgroundMesh )
|
|
47
47
|
this.background_map.add( helper )
|
|
@@ -54,10 +54,10 @@ export default {
|
|
|
54
54
|
// Create the map view and add it to your THREE scene
|
|
55
55
|
this.three_map = new MapView(MapView.PLANAR, this.provider);
|
|
56
56
|
this.three_map.rotateX(Math.PI / 2)
|
|
57
|
-
const coef=Math.cos(this.layoutSettings.layout_latitude*Math.PI/180)
|
|
58
|
-
this.three_map.scale.set(2*20015111.9287618*coef, 1, 2*20015111.9287618*coef);
|
|
59
|
-
var coords = UnitsUtils.datumsToSpherical(this.layoutSettings.layout_latitude, this.layoutSettings.layout_longitude)
|
|
60
|
-
this.three_map.position.set(-coords.x*coef,-coords.y*coef
|
|
57
|
+
//const coef=Math.cos(this.layoutSettings.layout_latitude*Math.PI/180)
|
|
58
|
+
//this.three_map.scale.set(2*20015111.9287618*coef, 1, 2*20015111.9287618*coef);
|
|
59
|
+
//var coords = UnitsUtils.datumsToSpherical(this.layoutSettings.layout_latitude, this.layoutSettings.layout_longitude)
|
|
60
|
+
//this.three_map.position.set(-coords.x*coef,-coords.y*coef,0)
|
|
61
61
|
this.scene.add(this.three_map)
|
|
62
62
|
}else{
|
|
63
63
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#canvas3DContainer,#canvas3DContainer>canvas,.frame[data-v-b6f36802]{width:100%;height:100%}
|