Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

addShape method not available (old version of tui-image-editor) #32

Open
crisilva95 opened this issue Aug 19, 2020 · 1 comment
Open

Comments

@crisilva95
Copy link

Version

latest version

Development Environment

React and Electron app

Current Behavior

The addShape method is not available because toast-ui.react-image-editor is using an old version of tui-image-editor (3.8.0). v3.10 includes the addShape method.

The following code does not work:

const instance = editorRef.current.getInstance()
instance.addShape('rect', {
			fill: '#ff0000',
			stroke: '#ff0000',
			strokeWidth: 0,
			top: 200,
			left: 300,
			rx: 80,
			ry: 80,
			isRegular: true
		})

Expected Behavior

Be able to call addShape in toast-ui.react-image-editor successfully.

@swtalk
Copy link

swtalk commented Aug 19, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants