This is a tool to export the urpflanze scene to SVG
Install with npm
npm i -S @urpflanze/svg-exporter
Import GCODEExporter:
import { Scene } from '@urpflanze/core'
import { SVGExporter } from '@urpflanze/svg-exporter'
// or const { SVGExporter } = require('@urpflanze/svg-exporter')
const scene = new Urpflanze.Scene()
// creating a scene
scene.update()
const svg = SVGExporter.parse(scene /*, config*/)
Possible config:
decimals
number default 3background
boolean default true