@eturnity/eturnity_3d 7.48.3 → 7.51.1

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": "7.48.3",
4
+ "version": "7.51.1",
5
5
  "files": [
6
6
  "dist",
7
7
  "src"
@@ -15,7 +15,7 @@
15
15
  "prettier": "prettier --write \"**/*.{js,vue}\""
16
16
  },
17
17
  "dependencies": {
18
- "@eturnity/eturnity_maths": "7.48.2",
18
+ "@eturnity/eturnity_maths": "7.51.1",
19
19
  "@originjs/vite-plugin-commonjs": "1.0.3",
20
20
  "core-js": "3.30.2",
21
21
  "cors": "2.8.5",
@@ -27,6 +27,10 @@ export default class EventManager {
27
27
  })
28
28
  }
29
29
 
30
+ removeAllListeners() {
31
+ this.listeners = {}
32
+ }
33
+
30
34
  // Dispatch an event and bubble it up to parent components
31
35
  emit(event, eventData) {
32
36
  //Check if event is available
@@ -130,7 +130,8 @@ export async function hydratePolygons({
130
130
  moduleField.data = {}
131
131
  moduleField.data.texture_img_url = moduleFieldResp.texture_img_url
132
132
  moduleField.data.col_spacing_mm = moduleFieldResp.col_spacing_mm
133
- moduleField.data.is_row_spacing_automatic = moduleFieldResp.is_row_spacing_automatic
133
+ moduleField.data.is_row_spacing_automatic =
134
+ moduleFieldResp.is_row_spacing_automatic
134
135
  moduleField.data.row_spacing_mm = moduleFieldResp.row_spacing_mm
135
136
  moduleField.data.row_spacing_hill_mm = moduleFieldResp.row_spacing_hill_mm
136
137
  moduleField.data.row_spacing_valley_mm =
@@ -187,10 +188,17 @@ export async function hydratePolygons({
187
188
  return { x: p[0], y: p[1], z: p[2] }
188
189
  })
189
190
  const panel = new Polygon(outline, '')
190
- panel.index = module.index
191
+ panel.id = module.module_uuid
192
+ panel.row_index = module.row_index
193
+ panel.col_index = module.col_index
191
194
  panel.status = module.status
192
195
  panel.clipped = module.clipped
193
196
  panel.moduleField = moduleField
197
+ panel.poolGroupUuid = module.project_variant_pool_group_uuid
198
+ if (panel.poolGroupUuid) {
199
+ panel.poolGroupUuidColor = `#${panel.poolGroupUuid.slice(0, 6)}`
200
+ }
201
+ panel.available = true
194
202
  switch (module.status) {
195
203
  case 'active':
196
204
  panel.layer = 'panel'