Compare commits
No commits in common. "f223ccdda5e677b8cb981843ccb04d7c40679249" and "ff2e93f0a6aa6b0c58c224e6413e4771ba9db90f" have entirely different histories.
f223ccdda5
...
ff2e93f0a6
@ -364,14 +364,6 @@ export function useRoofAllocationSetting(id) {
|
|||||||
let result = false
|
let result = false
|
||||||
|
|
||||||
roofBases.forEach((roof) => {
|
roofBases.forEach((roof) => {
|
||||||
const auxiliaryLines = canvas
|
|
||||||
.getObjects()
|
|
||||||
.filter((obj) => obj.name === 'auxiliaryLine' && roof.inPolygonImproved(obj.startPoint) && roof.inPolygonImproved(obj.endPoint))
|
|
||||||
|
|
||||||
auxiliaryLines.forEach((auxiliaryLine) => {
|
|
||||||
roof.innerLines.push(auxiliaryLine)
|
|
||||||
})
|
|
||||||
|
|
||||||
if (roof.separatePolygon.length === 0) {
|
if (roof.separatePolygon.length === 0) {
|
||||||
roof.innerLines.forEach((line) => {
|
roof.innerLines.forEach((line) => {
|
||||||
if ((!line.attributes.actualSize || line.attributes?.actualSize === 0) && line.length > 1) {
|
if ((!line.attributes.actualSize || line.attributes?.actualSize === 0) && line.length > 1) {
|
||||||
|
|||||||
@ -765,7 +765,13 @@ export const usePolygon = () => {
|
|||||||
const splitPolygonWithLines = (polygon) => {
|
const splitPolygonWithLines = (polygon) => {
|
||||||
polygon.set({ visible: false })
|
polygon.set({ visible: false })
|
||||||
|
|
||||||
const auxiliaryLines = canvas.getObjects().filter((obj) => obj.name === 'auxiliaryLine')
|
const auxiliaryLines = canvas
|
||||||
|
.getObjects()
|
||||||
|
.filter((obj) => obj.name === 'auxiliaryLine' && polygon.inPolygonImproved(obj.startPoint) && polygon.inPolygonImproved(obj.endPoint))
|
||||||
|
|
||||||
|
auxiliaryLines.forEach((auxiliaryLine) => {
|
||||||
|
polygon.innerLines.push(auxiliaryLine)
|
||||||
|
})
|
||||||
|
|
||||||
let innerLines = [...polygon.innerLines].filter((line) => line.visible)
|
let innerLines = [...polygon.innerLines].filter((line) => line.visible)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user