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

How to programmatically free drawing (line)

Open stefanvd opened this issue 2 years ago • 2 comments

I see that you can programmatically can draw a circle, rectangle, and triangle. That with a single click on a custom button. That with the http://nhn.github.io/tui.image-editor/latest/ImageEditor#setDrawingShape

instance.startDrawingMode('SHAPE');
                instance.setDrawingShape('circle', {
                fill: 'transparent',
                stroke: '#D70339',
                strokeWidth: 12,
                rx: 10,
                ry: 100
                });

However, how can I do this with a free drawing? Since I do not see this in the documentation. And how to get these point coordinates (x, y) to export later in a JSON object.

stefanvd avatar Mar 13 '23 09:03 stefanvd

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Jun 18 '23 11:06 stale[bot]

Friendly reminder to keep this bug open.

stefanvd avatar Jun 18 '23 11:06 stefanvd