Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

addShape Bug #907

Open
Ana-wys opened this issue Feb 20, 2024 · 0 comments
Open

addShape Bug #907

Ana-wys opened this issue Feb 20, 2024 · 0 comments
Labels

Comments

@Ana-wys
Copy link

Ana-wys commented Feb 20, 2024

use next + js
addLabel() {
this.step = 'label'
const width = this.imageSize.width / 3
const height = this.imageSize.height / 3
const options = {
...this.shapeOption,
width,
height,
}
this.editorInstance
.addShape('rect', options)
.then((objectProps) => {
console.log('Added label with ID:', objectProps.id)
})
.catch((err) => {
console.error('Error adding label:', err)
})
},

Error adding label: TypeError: Cannot read properties of undefined (reading 'stopDrawingMode')
微信图片_20240220140658

@Ana-wys Ana-wys added the Bug label Feb 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant