@urpflanze/svg-importer
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

SVG-Importer

This is a tool import a svg in the urpflanze scene

Install with npm

npm i -S @urpflanze/svg-importer

Import SVGImporter:

import { Scene } from '@urpflanze/core'
import { SVGImporter } from '@urpflanze/svg-importer'
// or const { SVGImporter } = require('@urpflanze/svg-importer')

const scene = new Urpflanze.Scene()

const imported = SVGImporter.parse(`<svg>...</svg>` /*, sideLength: 50, simplify = 0.01*/) // ShapeBuffer or Shape

scene.add(imported)

/@urpflanze/svg-importer/

    Package Sidebar

    Install

    npm i @urpflanze/svg-importer

    Weekly Downloads

    2

    Version

    0.0.8

    License

    GPL-3.0-or-later

    Unpacked Size

    3.38 MB

    Total Files

    51

    Last publish

    Collaborators

    • genbs