@eturnity/eturnity_3d 0.0.4 → 0.0.5

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -49,11 +49,8 @@ export default {
49
49
  helper=null
50
50
 
51
51
  //Extention of the map with geo-map
52
- console.log("this.selectedMapLayer",this.selectedMapLayer)
53
52
  if(this.selectedMapLayer && !['googleLayerRoadmap','googleLayer','googleLayerTerrain'].includes(this.selectedMapLayer.key)){
54
- console.log("creation of custom provider")
55
53
  this.provider = new CustomProvider('',this.selectedMapLayer.key);
56
- console.log( this.provider)
57
54
 
58
55
  // Create the map view and add it to your THREE scene
59
56
  this.three_map = new MapView(MapView.PLANAR, this.provider);
@@ -91,7 +91,17 @@ const getters = {
91
91
  },
92
92
  getGeometryEvents() {
93
93
  return []
94
- }
94
+ },
95
+ getRoofsBounds(state,getters){
96
+ let bounds={xMin:Infinity,xMax:-Infinity,yMin:Infinity,yMax:-Infinity}
97
+ getters.getRoofs.forEach(polygon=>polygon.outline.forEach(p=>{
98
+ if(bounds.xMin>p.x){bounds.xMin=p.x}
99
+ if(bounds.xMax<p.x){bounds.xMax=p.x}
100
+ if(bounds.yMin>p.y){bounds.yMin=p.y}
101
+ if(bounds.yMax<p.y){bounds.yMax=p.y}
102
+ }))
103
+ return bounds
104
+ },
95
105
  }
96
106
 
97
107
  const mutations = {