dev #364
@ -330,7 +330,6 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
||||
} else if (isGableRoof(types)) {
|
||||
// A형, B형 박공 지붕
|
||||
console.log('패턴 지붕')
|
||||
isGableRoof(types)
|
||||
} else if (isShedRoof(types, this.lines)) {
|
||||
console.log('한쪽흐름 지붕')
|
||||
drawShedRoof(this.id, this.canvas, textMode)
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
* 용마루 지붕
|
||||
* @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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user