@eturnity/eturnity_3d 7.24.0 → 7.24.2
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.24.
|
|
4
|
+
"version": "7.24.2",
|
|
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.24.
|
|
18
|
+
"@eturnity/eturnity_maths": "7.24.1",
|
|
19
19
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
20
20
|
"core-js": "2.6.12",
|
|
21
21
|
"cors": "2.8.5",
|
|
@@ -31,13 +31,15 @@ export function UpdateRoofObstacleRelations(state, updateVersionEnable = true) {
|
|
|
31
31
|
obstacle.roofs = []
|
|
32
32
|
|
|
33
33
|
let roofsWithObstacle = roofPolygons.filter((roof) => {
|
|
34
|
+
if (roof.id == obstacle.id) {
|
|
35
|
+
return false
|
|
36
|
+
}
|
|
34
37
|
let intersection =
|
|
35
38
|
intersectOutlines(obstacle.outline, roof.outline)[0] || []
|
|
36
39
|
if (intersection.length == 0) return false
|
|
37
40
|
if (obstacle.layer == 'obstacle') return true
|
|
38
|
-
|
|
39
41
|
let deltaArea = calculateArea(roof.outline) - calculateArea(intersection)
|
|
40
|
-
if (deltaArea < 100) return false
|
|
42
|
+
if (deltaArea < 100 || calculateArea(intersection) < 100) return false
|
|
41
43
|
return true
|
|
42
44
|
})
|
|
43
45
|
|
|
@@ -56,14 +56,7 @@ export function generateNodes2D(polygons) {
|
|
|
56
56
|
nodes2D.forEach((node2D) => {
|
|
57
57
|
if (node2D.masterHandle) {
|
|
58
58
|
node2D.masterHandle.open = node2D.belongsTo.some(
|
|
59
|
-
(item) =>
|
|
60
|
-
item.index == null ||
|
|
61
|
-
item.polygon.outline[item.index].open ||
|
|
62
|
-
item.polygon.outline[item.index].hasWarning
|
|
63
|
-
)
|
|
64
|
-
node2D.masterHandle.hasWarning = node2D.belongsTo.some(
|
|
65
|
-
(item) =>
|
|
66
|
-
item.index == null || item.polygon.outline[item.index].hasWarning
|
|
59
|
+
(item) => item.index == null || item.polygon.outline[item.index].open
|
|
67
60
|
)
|
|
68
61
|
node2D.masterHandle.selected = node2D.belongsTo.every(
|
|
69
62
|
(item) =>
|