보조선 todo 추가
This commit is contained in:
parent
745c07f5ec
commit
1805383ce0
@ -301,6 +301,10 @@ export default class QPolygon extends fabric.Group {
|
|||||||
drawHelpLine(chon = 4) {
|
drawHelpLine(chon = 4) {
|
||||||
if (this.lines.length === 4) {
|
if (this.lines.length === 4) {
|
||||||
this.#drawHelpLineInRect(chon)
|
this.#drawHelpLineInRect(chon)
|
||||||
|
} else if (this.lines.length === 6) {
|
||||||
|
this.#drawHelpLineInHexagon(chon)
|
||||||
|
} else if (this.lines.length === 8) {
|
||||||
|
this.#drawHelpLineInOctagon(chon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -523,4 +527,8 @@ export default class QPolygon extends fabric.Group {
|
|||||||
this.canvas.add(ridge)
|
this.canvas.add(ridge)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#drawHelpLineInHexagon(chon) {}
|
||||||
|
|
||||||
|
#drawHelpLineInOctagon(chon) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user