Skip to content

urpflanze-org/svg-exporter

Repository files navigation

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

Releases

No releases published

Packages

No packages published