파워콘 작업
This commit is contained in:
parent
dcff818c56
commit
ddb0d36e74
@ -501,10 +501,12 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
||||
const allPointsInside = rectPoints.every((point) => this.inPolygonABType(point.x, point.y, points))
|
||||
|
||||
if (allPointsInside) {
|
||||
const text = new fabric.Text(`col ${i}, row ${j}`, {
|
||||
//먼저 그룹화를 시켜놓고 뒤에서 글씨를 넣어서 변경한다
|
||||
const text = new fabric.Text(``, {
|
||||
fontFamily: 'serif',
|
||||
fontSize: 10,
|
||||
fontSize: 30,
|
||||
fill: 'black',
|
||||
type: 'cellText',
|
||||
})
|
||||
|
||||
const rect = new fabric.Rect({
|
||||
@ -523,6 +525,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
||||
opacity: 0.8,
|
||||
name: 'cell',
|
||||
idx: idx,
|
||||
type: 'cellRect',
|
||||
})
|
||||
|
||||
var group = new fabric.Group([rect, text], {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user