tui.image-editor icon indicating copy to clipboard operation
tui.image-editor copied to clipboard

addShape Bug

Open Ana-wys opened this issue 1 year ago • 0 comments

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 avatar Feb 20 '24 06:02 Ana-wys