cytoscape-popper
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "cytoscape-popper", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A Cytoscape.js extension for Popper.js", | ||
@@ -40,3 +40,3 @@ "main": "cytoscape-popper.js", | ||
"cross-env": "^5.0.0", | ||
"eslint": "^3.9.1", | ||
"eslint": "^4.18.2", | ||
"gh-pages": "^1.0.0", | ||
@@ -43,0 +43,0 @@ "mocha": "3.4.2", |
@@ -145,6 +145,8 @@ cytoscape-popper | ||
This extension can also be used to enable [Tippy.js](https://atomiks.github.io/tippyjs/) tooltip functionality with Cytoscape. | ||
This extension can also be used to enable [Tippy.js](https://atomiks.github.io/tippyjs/v5/) tooltip functionality with Cytoscape. Any version of Tippy that is compatible with Popper v1 is compatible with this extension. As of this writing, the latest compatible version of Tippy.js is v5.2.1. | ||
N.B. the creation of many `Tippy` instances at once has performance implications, especially for large graphs. Create each instance on demand, e.g. on `tap`. Use [`destroy()`](https://atomiks.github.io/tippyjs/methods/#destroy) instead of `hide()` where possible. | ||
> :warning: Tippy.js v6+ is **not** compatible with Popper v1 (see [this](https://github.com/atomiks/tippyjs/blob/master/MIGRATION_GUIDE.md#5x-to-6x)). As such, the latest (major) version of Tippy you can use is v5. | ||
The creation of many `Tippy` instances at once has performance implications, especially for large graphs. Create each instance on demand, e.g. on `tap`. Use [`destroy()`](https://atomiks.github.io/tippyjs/v5/methods/#destroy) instead of `hide()` where possible. | ||
```js | ||
@@ -159,3 +161,3 @@ let node = cy.nodes().first(); | ||
// using tippy@^5.1.3 | ||
// using tippy@^5.2.1 | ||
let tip = new Tippy(dummyDomEle, { // tippy options: | ||
@@ -181,3 +183,3 @@ // mandatory: | ||
Refer to [Tippy.js](https://atomiks.github.io/tippyjs) documentation for more details. | ||
Refer to [Tippy.js](https://atomiks.github.io/tippyjs/v5) documentation for more details. | ||
@@ -184,0 +186,0 @@ |
Sorry, the diff of this file is not supported yet
35463
207