0.0.4 • Published 5 years ago

udt-to-svg v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

UDT to SVG

This project converts UDT samples to SVGs, this makes them viewable in a wide variety of environments without loading the entire Universal Data Tool as a Javascript library.

The main goal of this library is comprehensive support of the UDT format. For the most part, it should remain lightweight.

If you run node example.js, you'll get a file that looks like this.

npm.io

Usage

To install: npm install udt-to-svg

import { sampleToSvg } from "udt-to-svg"

sampleToSvg(udtDataset.samples[0], { width: 400, height: 300 })
// Outputs: <svg width="400" height="300">....</svg>
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago