svgRenderer_http
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
main.tsx
https://dcm31--98d3a754278311f0b46e569c3dd06744.web.val.run
This val provides an HTTP endpoint for the SVG Renderer project. It accepts SVG content via the 'svg' query parameter and renders it using the main svgRenderer function.
- Displays a default SVG if no custom SVG is provided
- Accepts custom SVG via the 'svg' query parameter
- Renders the SVG in a simple, clean interface
- Navigate to the val URL to see the default SVG
- Add a custom SVG by using the 'svg' query parameter
Example: ?svg=<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="red"/></svg>