Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
dev
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Phylocanvas Export SVG Plugin

Export Phylocanvas trees as SVG.

Usage

npm install phylocanvas phylocanvas-plugin-export-svg
import Phylocanvas from 'phylocanvas';
import exportSvgPlugin from 'phylocanvas-plugin-export-svg';

Phylocanvas.plugin(exportSvgPlugin);

const tree = Phylocanvas.createTree('id');

tree.exportSVG.getSVG();
// or
tree.exportSVG.getSerialisedSVG();

Methods

  • getSVG(): returns the detached SVG DOM element.
  • getSerialisedSVG(fixNamedEntities = false): returns SVG serialised as a string. Pass fixNamedEntities as true to convert named entities to numbered entities.

About

Export Phylocanvas trees as SVG

Resources

License

Packages

No packages published
You can’t perform that action at this time.