Skip to content

phylocanvas/phylocanvas-plugin-history

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

Phylocanvas History Plugin

Visual History for Phylocanvas.

Usage

npm install phylocanvas phylocanvas-plugin-history
import Phylocanvas from 'phylocanvas';
import historyPlugin from 'phylocanvas-plugin-history';

Phylocanvas.plugin(historyPlugin);

Phylocanvas.createTree('id', {
  // config defaults
  history: {
    parent: tree.containerElement,
    zIndex: 1,
  }
})

N.B. It is the responsibility of the developer to ensure that the overflow of the parent element is hidden.

Style

An unstyled bundle is also available:

import historyPlugin from 'phylocanvas-plugin-history/unstyled';

Events

A historytoggle event is fired when the history is opened or closed, with an isOpen flag in the event data.

About

Visual history for Phylocanvas

Resources

License

Stars

Watchers

Forks

Packages

No packages published