tui.image-editor
tui.image-editor copied to clipboard
addShape Bug
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')