@eturnity/eturnity_maths 7.2.2-qa-7.2.1 → 7.2.2-qa-7.2.3
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/objects/Polygon.js +2 -21
package/package.json
CHANGED
package/src/objects/Polygon.js
CHANGED
|
@@ -166,6 +166,7 @@ export class Polygon {
|
|
|
166
166
|
extraSerialization.mountingData = this.mountingData?{...this.mountingData}:null
|
|
167
167
|
extraSerialization.modules = modules
|
|
168
168
|
extraSerialization.needsOptimisation = this.needsOptimisation
|
|
169
|
+
extraSerialization.priority = this.priority
|
|
169
170
|
|
|
170
171
|
} else if (this.layer == 'panel') {
|
|
171
172
|
extraSerialization.index = this.index
|
|
@@ -210,27 +211,7 @@ export class Polygon {
|
|
|
210
211
|
if (!this.userDeactivatedPanels) {
|
|
211
212
|
this.userDeactivatedPanels = []
|
|
212
213
|
}
|
|
213
|
-
const modules = this.
|
|
214
|
-
return {
|
|
215
|
-
index: p.index,
|
|
216
|
-
outline: p.outline.map((v) => [v.x, v.y, v.z]),
|
|
217
|
-
status: p.status || "active",
|
|
218
|
-
clipped: p.clipped === undefined ? false : p.clipped
|
|
219
|
-
}
|
|
220
|
-
})
|
|
221
|
-
const user_deactivated_modules = this.userDeactivatedPanels.map((p) => {
|
|
222
|
-
return {
|
|
223
|
-
index: p.index,
|
|
224
|
-
outline: p.outline.map((v) => [v.x, v.y, v.z]),
|
|
225
|
-
}
|
|
226
|
-
})
|
|
227
|
-
user_deactivated_modules.forEach(p=>{
|
|
228
|
-
modules.push({
|
|
229
|
-
...p,
|
|
230
|
-
status: p.status || "user_deactivated",
|
|
231
|
-
clipped: p.clipped === undefined ? false : p.clipped
|
|
232
|
-
})
|
|
233
|
-
})
|
|
214
|
+
const modules = this.data.modules
|
|
234
215
|
return {
|
|
235
216
|
module_field_uuid: this.id,
|
|
236
217
|
roof_uuid: this.roof.id,
|