@eturnity/eturnity_3d 8.7.0 → 8.10.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 +4 -3
- package/src/store/hydrateData.js +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eturnity/eturnity_3d",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.10.1",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src"
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src`",
|
|
15
|
-
"prettier": "prettier --write \"**/*.{js,vue}\""
|
|
15
|
+
"prettier": "prettier --write \"**/*.{js,vue}\"",
|
|
16
|
+
"merge-remote-master": "node scripts/merge-remote-master.js"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@eturnity/eturnity_maths": "8.
|
|
19
|
+
"@eturnity/eturnity_maths": "8.10.1",
|
|
19
20
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
20
21
|
"core-js": "3.30.2",
|
|
21
22
|
"cors": "2.8.5",
|
package/src/store/hydrateData.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
updateComputedGeometryPolygon,
|
|
5
5
|
getRoofMarginOutline,
|
|
6
6
|
getObstacleMarginOutline,
|
|
7
|
+
midPoint,
|
|
7
8
|
} from '@eturnity/eturnity_maths'
|
|
8
9
|
import OverlayLayer from '../Overlay/OverlayLayer'
|
|
9
10
|
import getLayers from '../utils/layers'
|
|
@@ -187,7 +188,7 @@ export async function hydratePolygons({
|
|
|
187
188
|
const outline = module.outline.map((p) => {
|
|
188
189
|
return { x: p[0], y: p[1], z: p[2] }
|
|
189
190
|
})
|
|
190
|
-
|
|
191
|
+
let panel = new Polygon(outline, '')
|
|
191
192
|
panel.id = module.module_uuid
|
|
192
193
|
panel.row_index = module.row_index
|
|
193
194
|
panel.col_index = module.col_index
|
|
@@ -211,6 +212,7 @@ export async function hydratePolygons({
|
|
|
211
212
|
userDeactivatedPanels.push(panel)
|
|
212
213
|
break
|
|
213
214
|
}
|
|
215
|
+
panel = updateComputedGeometryPolygon(panel)
|
|
214
216
|
})
|
|
215
217
|
|
|
216
218
|
const roof = roofs.find((r) => r.id == moduleFieldResp.roof_uuid)
|