Skip to main content
Participant
January 27, 2025
Question

JavaScript Code to Convert Line into Curve (Similar to Adobe Illustrator)

  • January 27, 2025
  • 1 reply
  • 191 views

Hi everyone,
I'm looking for a JavaScript solution that can convert a straight line into a smooth curve, similar to the functionality available in Adobe Illustrator.

Does anyone have a code example or suggestions on how to achieve this using JavaScript, possibly with libraries like Canvas API, SVG, or any other approach?

1 reply

Legend
January 27, 2025

Is it enough to use

app.executeMenuCommand('smooth menu item') ;

or

app.executeMenuCommand('simplify menu item') ;

?