@eturnity/eturnity_maths
Advanced tools
Comparing version 7.42.1-EPDM-11570.0 to 7.42.1-EPDM-11570.1
{ | ||
"name": "@eturnity/eturnity_maths", | ||
"version": "7.42.1-EPDM-11570.0", | ||
"version": "7.42.1-EPDM-11570.1", | ||
"author": "Eturnity Team", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -229,27 +229,27 @@ import { translate2D, getDegree } from '../geometry' | ||
} else if (this.layer == 'moduleField') { | ||
// const modules = [] | ||
// if (this.panels) { | ||
// this.panels.forEach((p) => { | ||
// modules.push({ | ||
// id: p.id, | ||
// row_index: p.row_index, | ||
// col_index: p.col_index, | ||
// outline: p.outline, | ||
// status: p.status || 'active', | ||
// clipped: p.clipped || false, | ||
// }) | ||
// }) | ||
// } | ||
// if (this.userDeactivatedPanels) { | ||
// this.userDeactivatedPanels.forEach((p) => { | ||
// modules.push({ | ||
// id: p.id, | ||
// row_index: p.row_index, | ||
// col_index: p.col_index, | ||
// outline: p.outline, | ||
// status: p.status || 'user_deactivated', | ||
// clipped: p.clipped || false, | ||
// }) | ||
// }) | ||
// } | ||
const modules = [] | ||
if (this.panels) { | ||
this.panels.forEach((p) => { | ||
modules.push({ | ||
id: p.id, | ||
row_index: p.row_index, | ||
col_index: p.col_index, | ||
outline: p.outline, | ||
status: p.status || 'active', | ||
clipped: p.clipped || false, | ||
}) | ||
}) | ||
} | ||
if (this.userDeactivatedPanels) { | ||
this.userDeactivatedPanels.forEach((p) => { | ||
modules.push({ | ||
id: p.id, | ||
row_index: p.row_index, | ||
col_index: p.col_index, | ||
outline: p.outline, | ||
status: p.status || 'user_deactivated', | ||
clipped: p.clipped || false, | ||
}) | ||
}) | ||
} | ||
extraSerialization.data = { | ||
@@ -264,3 +264,3 @@ ...this.data, | ||
: null | ||
// extraSerialization.modules = modules // needed? | ||
extraSerialization.modules = modules | ||
extraSerialization.needsOptimisation = this.needsOptimisation | ||
@@ -267,0 +267,0 @@ extraSerialization.priority = this.priority |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192574