@eturnity/eturnity_3d 1.0.17 → 1.0.18

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": "1.0.17",
4
+ "version": "1.0.18",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -250,6 +250,13 @@ export default {
250
250
  arg: []
251
251
  })
252
252
  break
253
+ case 'clearPanelFromChangingRoofs':
254
+ methodList.push({
255
+ name: 'clearPanelsFromChangingRoofs',
256
+ method: this.clearPanelsFromChangingRoofs,
257
+ arg: [params.roofIds]
258
+ })
259
+ break
253
260
  }
254
261
  return methodList
255
262
  },
@@ -731,6 +738,15 @@ export default {
731
738
  }
732
739
  })
733
740
  },
741
+ clearPanelsFromChangingRoofs(roofIds){
742
+ const roofs=this.polygons.filter(polygon=>roofIds.includes(polygon.id))
743
+ roofs.moduleFields.forEach(mf=>mf.panels.forEach(panel=>{
744
+ if(this.meshes.panelsMeshes[panel.id+'_top']){
745
+ this.clearMesh(mesh)
746
+ }
747
+ })
748
+ )
749
+ },
734
750
  renderPanels() {
735
751
  console.log('renderPanels')
736
752
  this.clearRemovedOnes('panelsMeshes')
@@ -748,9 +764,6 @@ export default {
748
764
  })
749
765
 
750
766
  this.panels.forEach((panelPolygon) => {
751
- if(panelPolygon.roof.isDirectionInclineHandleDraged){
752
- return
753
- }
754
767
  //definition of the material
755
768
  let material = this.material.panel['default_'+this.module_texture_version_id]
756
769
  if (panelPolygon.moduleField.pvData) {