nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.84k stars 1.26k forks source link

How to programmatically free drawing (line) #849

Open stefanvd opened 1 year ago

stefanvd commented 1 year ago

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.

stale[bot] commented 1 year ago

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!

stefanvd commented 1 year ago

Friendly reminder to keep this bug open.