Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 593 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 593 Bytes

SVG-Exporter

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 3
  • background boolean default true