보조선 원복
This commit is contained in:
parent
7626a9a0bc
commit
3cacc2dcaa
@ -201,12 +201,7 @@ export default function OuterLineWall(props) {
|
||||
canvas?.add(line)
|
||||
addLineText(line)
|
||||
} else {
|
||||
const nearPoint =
|
||||
distanceBetweenPoints(firstPoint, { x: lastPoint.x, y: firstPoint.y }) <=
|
||||
distanceBetweenPoints(firstPoint, { x: firstPoint.x, y: lastPoint.y })
|
||||
? [lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y]
|
||||
: [lastPoint.x, lastPoint.y, firstPoint.x, lastPoint.y]
|
||||
const guideLine1 = new QLine(nearPoint, {
|
||||
const guideLine1 = new QLine([lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y], {
|
||||
stroke: 'grey',
|
||||
strokeWidth: 1,
|
||||
strokeDashArray: [1, 1, 1],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user