LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
704 stars 190 forks source link

Loading SVG from memroy(generated in the web application) #597

Open mfadel85 opened 4 years ago

mfadel85 commented 4 years ago

Hello everyone, I want to generate an SVG file inside the application and load it directly to generate gcode, I can use lw.svg-parser to parse my XML string in the SVG file, any clues on how to start?

Many thanks

cprezzi commented 4 years ago

The best would probably be to add a new tab "creator" after the "files" tab, in which you load the XML, create the SVG and add the SVG to the workspace. This has to be done the same way like the other tabs (with React & Redux).

mfadel85 commented 4 years ago

Thank you , I implemented it, I used MakerJS to generate svg from text, I just have to clean and organize it.

easytarget commented 4 years ago

I'm intrigued: Being able to generate Text, (and outlines/borders? consider this a feature request), directly in LW would be awesome. One less reason to bang my head on the desk while using Inkscape.