texts 추가
This commit is contained in:
parent
c8e18bee17
commit
11d9d16ff8
@ -48,6 +48,7 @@ export const usePolygon = () => {
|
||||
canvas.remove(text)
|
||||
})
|
||||
const lines = polygon.lines
|
||||
polygon.texts = []
|
||||
|
||||
lines.forEach((line, i) => {
|
||||
const length = line.getLength()
|
||||
@ -102,7 +103,7 @@ export const usePolygon = () => {
|
||||
parent: polygon,
|
||||
name: 'lengthText',
|
||||
})
|
||||
|
||||
polygon.texts.push(text)
|
||||
canvas.add(text)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user