We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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')
The text was updated successfully, but these errors were encountered: