An open API service indexing awesome lists of open source software.

https://github.com/sdq/history-tree

An interactive history tree for undo/redo/reset/revisit in javascript
https://github.com/sdq/history-tree

d3 tree undo-redo

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# history-tree

An interactive history tree for undo/redo/reset/revisit in javascript. [demo Link](https://sdq.github.io/history-tree)

![Demo](./demo.gif)

Interaction design
------
![interaction](./interaction-demo.png)

Installation
------
```

```

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](http://shidanqing.net)

License
-------
[MIT](https://opensource.org/licenses/MIT)