Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.
This repository was 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

Description

@crisilva95

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions