Merge branch 'feature/test' of https://git.jetbrains.space/nalpari/q-cast-iii/qcast-front into feature/test
This commit is contained in:
commit
dec99ba674
@ -211,24 +211,10 @@ export function useMode() {
|
|||||||
changeMode(canvas, Mode.EDIT)
|
changeMode(canvas, Mode.EDIT)
|
||||||
|
|
||||||
if (historyPoints.current.length >= 4) {
|
if (historyPoints.current.length >= 4) {
|
||||||
// handleOuterlinesTest() //외곽선 그리기 테스트
|
const wall = drawWallPolygon()
|
||||||
// drawWallPolygon()
|
handleOuterlinesTest2(wall)
|
||||||
//아래 내용 drawWallPolygon()으로 대체
|
/*setWall(wall)
|
||||||
const firstPoint = historyPoints.current[0]
|
roof.drawHelpLine()*/
|
||||||
const lastPoint = historyPoints.current[historyPoints.current.length - 1]
|
|
||||||
historyPoints.current.forEach((point) => {
|
|
||||||
canvas?.remove(point)
|
|
||||||
})
|
|
||||||
drawLineWithLength(lastPoint, firstPoint)
|
|
||||||
points.current = []
|
|
||||||
historyPoints.current = []
|
|
||||||
|
|
||||||
const roof = handleOuterlinesTest()
|
|
||||||
const wall = makePolygon()
|
|
||||||
|
|
||||||
roof.setWall(wall)
|
|
||||||
setWall(wall)
|
|
||||||
roof.drawHelpLine()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -732,6 +718,8 @@ export function useMode() {
|
|||||||
const handleOuterlinesTest = (polygon, offset = 71) => {
|
const handleOuterlinesTest = (polygon, offset = 71) => {
|
||||||
var offsetPoints = []
|
var offsetPoints = []
|
||||||
|
|
||||||
|
debugger
|
||||||
|
|
||||||
const sortedIndex = getStartIndex(polygon.lines)
|
const sortedIndex = getStartIndex(polygon.lines)
|
||||||
let tmpArraySorted = rearrangeArray(polygon.lines, sortedIndex)
|
let tmpArraySorted = rearrangeArray(polygon.lines, sortedIndex)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user