3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Implementing Undo/Redo on Vis.js

3
Last updated at Posted at 2018-03-12

Uploaded the following sample code in Github.
https://github.com/NomuraS/qiita-undo-redo-vis.js

Undo/Redo functions are not natively supported in Vis.js. So, such functions would give us better experiences if we dynamically manipulate a graph of Vis.js. See and try the following example of CodePen (which is based on one of examples in the official site).

See the Pen undo/redo on Vis.js by NomuraS (@NomuraS) on CodePen.

The example depends on jQuery and lodash.js. While I'm not one to avoid using lodash.js, the library is used only for the function "_.differenceBy".

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?