railmapgen / rmp

Design your own rail map by freely dragging stations from different cities and connecting them with 135-degree rounded corners or perpendicular lines!
https://railmapgen.github.io/?app=rmp
GNU General Public License v3.0
85 stars 16 forks source link

Master node #580

Open thekingofcity opened 6 months ago

thekingofcity commented 6 months ago

Give users the full ability to use the svg grammar in this misc-node :)

thekingofcity commented 3 months ago

Stage 1: user uploads an svg -> sanitize & fix -> store xml in save -> user downloads the save Stage 2: user uploads a rasterized image -> convert it to vector -> store xml in save -> user downloads the save Stage 3: user adds variables -> show/hide elements based on variables -> loop elements based on variables -> store jsx in another place -> transform to svg -> return back to user

thekingofcity commented 1 month ago

Hi, we're currently testing the master node in the test environment.

The Master Node can help you add any SVG content such as stations, icons, etc., that are not yet implemented in RMP.

Here's how to use it:

  1. Log in to https://uat-railmapgen.github.com/rmp-designer/ to draw or upload SVG content generated from Ai. Note: All parameters should be enclosed in double quotes.
  2. Click the Export button and copy the JSON text.
  3. Go to the drawer test environment at https://uat-railmapgen.github.io/?app=rmp.
  4. In the drawer, add a Master Node (found at the bottom of the miscellaneous nodes), and paste the copied JSON content.

As this is still in the testing phase, it may crash... Please do not create important works in the test environment. Feel free to reply here with any questions or improvement suggestions :)