Skip to content

An interactive history tree for undo/redo/reset/revisit in javascript

License

Notifications You must be signed in to change notification settings

sdq/history-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

history-tree

An interactive history tree for undo/redo/reset/revisit in javascript. demo Link

Demo

Interaction design

interaction

Installation

<script src="https://sdq.ai/history-tree/history-tree.js"></script>

Use history-tree structure

var tree = historyTree();
tree.append(state);
tree.undo();
tree.redo();
tree.reset();
tree.revisit(id);
tree.find(id);
tree.log(chart.export());

Use history-tree-view

var chart = historyTreeView();
chart.container("#your-container-id");
chart.append(state);
chart.undo();
chart.redo();
chart.reset();
chart.revisit(id);
chart.find(id);
console.log(chart.export());

Author

sdq

License

MIT

About

An interactive history tree for undo/redo/reset/revisit in javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published