@eturnity/eturnity_3d 1.0.17 → 1.0.19
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 +1 -1
- package/src/helper/renderMixin.js +16 -9
package/package.json
CHANGED
|
@@ -201,12 +201,6 @@ export default {
|
|
|
201
201
|
method: this.renderBuilding,
|
|
202
202
|
arg: []
|
|
203
203
|
})
|
|
204
|
-
methodList.push({
|
|
205
|
-
name: 'renderPanels',
|
|
206
|
-
method: this.renderPanels,
|
|
207
|
-
arg: []
|
|
208
|
-
})
|
|
209
|
-
break
|
|
210
204
|
case 'selectedRoofChange':
|
|
211
205
|
methodList.push({
|
|
212
206
|
name: 'renderFlatRoofs',
|
|
@@ -250,6 +244,13 @@ export default {
|
|
|
250
244
|
arg: []
|
|
251
245
|
})
|
|
252
246
|
break
|
|
247
|
+
case 'clearPanelFromChangingRoofs':
|
|
248
|
+
methodList.push({
|
|
249
|
+
name: 'clearPanelsFromChangingRoofs',
|
|
250
|
+
method: this.clearPanelsFromChangingRoofs,
|
|
251
|
+
arg: [params.roofIds]
|
|
252
|
+
})
|
|
253
|
+
break
|
|
253
254
|
}
|
|
254
255
|
return methodList
|
|
255
256
|
},
|
|
@@ -731,6 +732,15 @@ export default {
|
|
|
731
732
|
}
|
|
732
733
|
})
|
|
733
734
|
},
|
|
735
|
+
clearPanelsFromChangingRoofs(roofIds){
|
|
736
|
+
const roofs=this.polygons.filter(polygon=>roofIds.includes(polygon.id))
|
|
737
|
+
roofs.moduleFields.forEach(mf=>mf.panels.forEach(panel=>{
|
|
738
|
+
if(this.meshes.panelsMeshes[panel.id+'_top']){
|
|
739
|
+
this.clearMesh(mesh)
|
|
740
|
+
}
|
|
741
|
+
})
|
|
742
|
+
)
|
|
743
|
+
},
|
|
734
744
|
renderPanels() {
|
|
735
745
|
console.log('renderPanels')
|
|
736
746
|
this.clearRemovedOnes('panelsMeshes')
|
|
@@ -748,9 +758,6 @@ export default {
|
|
|
748
758
|
})
|
|
749
759
|
|
|
750
760
|
this.panels.forEach((panelPolygon) => {
|
|
751
|
-
if(panelPolygon.roof.isDirectionInclineHandleDraged){
|
|
752
|
-
return
|
|
753
|
-
}
|
|
754
761
|
//definition of the material
|
|
755
762
|
let material = this.material.panel['default_'+this.module_texture_version_id]
|
|
756
763
|
if (panelPolygon.moduleField.pvData) {
|