용마루, 박공 지붕 추가.

This commit is contained in:
Jaeyoung Lee 2025-08-13 13:23:29 +09:00
parent 7175cd0485
commit 8c153430cd
2 changed files with 20 additions and 1 deletions

View File

@ -330,7 +330,6 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
} else if (isGableRoof(types)) { } else if (isGableRoof(types)) {
// A형, B형 박공 지붕 // A형, B형 박공 지붕
console.log('패턴 지붕') console.log('패턴 지붕')
isGableRoof(types)
} else if (isShedRoof(types, this.lines)) { } else if (isShedRoof(types, this.lines)) {
console.log('한쪽흐름 지붕') console.log('한쪽흐름 지붕')
drawShedRoof(this.id, this.canvas, textMode) drawShedRoof(this.id, this.canvas, textMode)

View File

@ -489,6 +489,26 @@ export const isSamePoint = (a, b) => {
return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2 return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2
} }
/**
* 용마루 지붕
* @param roofId
* @param canvas
* @param textMode
*/
export const drawEavesRoof = (roofId, canvas, textMode) => {
}
/**
* 박공지붕(A,B 패턴)
* @param roofId
* @param canvas
* @param textMode
*/
export const drawGableRoof = (roofId, canvas, textMode) => {
}
/** /**
* 한쪽흐름 지붕 * 한쪽흐름 지붕
* @param roofId * @param roofId