JSPM

vmap-svg

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q37145F
  • License MIT

formform module to visualize vmaps in SVG format

Package Exports

  • vmap-svg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vmap-svg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vmap-svg


formform module to draw vmap trees in SVG format for visualization in the browser, in PDFs, etc.

Usage

Install formform if you haven't already.

Then install the module:

npm install vmap_svg
// ES6:
import vmap_svg from 'vmap-svg';

// CommonJS:
let vmap_svg = require('vmap-svg');

You can then use the module like this:

const vmap = formform.dna.vmap('((a)b)');
const vmapSVG = vmap_svg.draw(vmap.tree, vmap.input, vmap.varorder, vmap.options);

document.body.appendChild(document.createElement('div')).innerHTML = vmapSVG.elem;

Documentation

Coming soon…