변수명 수정

This commit is contained in:
hyojun.choi 2024-07-10 11:33:51 +09:00
parent 7218f7f9ea
commit c44fa88ed8

View File

@ -15,7 +15,7 @@ export default class QPolygon extends fabric.Group {
canvas canvas
fontSize fontSize
qCells = [] qCells = []
outerPolygon roof
name name
constructor(points, options, canvas) { constructor(points, options, canvas) {
if (!options.fontSize) { if (!options.fontSize) {
@ -333,7 +333,7 @@ export default class QPolygon extends fabric.Group {
offsetPoints.push(offsetPoint) offsetPoints.push(offsetPoint)
} }
const outPolygon = new QPolygon( const roof = new QPolygon(
offsetPoints, offsetPoints,
{ {
stroke: 'black', stroke: 'black',
@ -344,7 +344,7 @@ export default class QPolygon extends fabric.Group {
this.canvas, this.canvas,
) )
this.outerPolygon = outPolygon this.roof = roof
this.addWithUpdate(outPolygon) this.addWithUpdate(outPolygon)
this.canvas.renderAll() this.canvas.renderAll()