@eturnity/eturnity_3d 7.51.1 → 7.51.2-EPDM-13300.0
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 +2 -2
- package/src/store/hydrateData.js +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eturnity/eturnity_3d",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "7.51.
|
|
4
|
+
"version": "7.51.2-EPDM-13300.0",
|
|
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.51.1",
|
|
18
|
+
"@eturnity/eturnity_maths": "7.51.2-EPDM-13300.1",
|
|
19
19
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
20
20
|
"core-js": "3.30.2",
|
|
21
21
|
"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'
|
|
@@ -188,6 +189,7 @@ export async function hydratePolygons({
|
|
|
188
189
|
return { x: p[0], y: p[1], z: p[2] }
|
|
189
190
|
})
|
|
190
191
|
const panel = new Polygon(outline, '')
|
|
192
|
+
panel.center = midPoint(outline[0], outline[1])
|
|
191
193
|
panel.id = module.module_uuid
|
|
192
194
|
panel.row_index = module.row_index
|
|
193
195
|
panel.col_index = module.col_index
|