cytoscape-qtip
Advanced tools
Comparing version
@@ -55,2 +55,6 @@ /*! | ||
var fixDomContainer = function(ele) { | ||
return ele && ( ele[0] === window ) ? undefined : ele; | ||
}; | ||
var throttle = function(func, wait, options) { | ||
@@ -200,4 +204,4 @@ var leading = true, | ||
opts.position = opts.position || {}; | ||
opts.position.container = opts.position.container || $( document.body ); | ||
opts.position.viewport = opts.position.viewport || $( document.body ); | ||
opts.position.container = fixDomContainer(opts.position.container) || $( document.body ); | ||
opts.position.viewport = fixDomContainer(opts.position.viewport) || $( document.body ); | ||
opts.position.target = [0, 0]; | ||
@@ -294,3 +298,4 @@ opts.position.my = opts.position.my || 'top center'; | ||
if( passedOpts === 'api' ){ | ||
return this.scratch().qtip.api; | ||
var qtip = this.scratch().qtip; | ||
return qtip ? qtip.api : null; | ||
} | ||
@@ -348,3 +353,4 @@ | ||
if( passedOpts === 'api' ){ | ||
return this.scratch().qtip.api; | ||
var qtip = this.scratch().qtip; | ||
return qtip ? qtip.api : null; | ||
} | ||
@@ -351,0 +357,0 @@ |
{ | ||
"name": "cytoscape-qtip", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "A Cytoscape.js extension that wraps the qTip jQuery library", | ||
@@ -39,3 +39,3 @@ "main": "cytoscape-qtip.js", | ||
"dependencies": { | ||
"jquery": "^2.0 || ^1.10.0", | ||
"jquery": "^3.0.0 || ^2.0 || ^1.10.0", | ||
"qtip2": "^3.0 || ^2.2.0" | ||
@@ -42,0 +42,0 @@ }, |
cytoscape-qtip | ||
============== | ||
[](https://zenodo.org/badge/latestdoi/6343804) | ||
@@ -11,7 +12,13 @@  | ||
**It is recommended that, where possible, you use [`cytoscape-popper`](https://github.com/cytoscape/cytoscape.js-popper) with `tippy.js` instead of `cytoscape-qtip`.** | ||
- The [`qtip2`](https://github.com/qTip2/qTip2) library that this extension wraps is no longer maintained by its author. | ||
- `qtip2` does not have proper support for npm+webpack and npm+browserify, whereas `cytoscape-popper` does -- as do `popper.js` and `tippy.js`. | ||
- `cytoscape-popper` does not require `jquery`. | ||
- `qtip2` requires the use of `jquery@1` or `jquery@2`, which are both no longer maintained. | ||
## Dependencies | ||
* jQuery ^2.0 || ^1.10.0, as qTip requires it | ||
* jQuery ^3.0 || ^2.0 || ^1.10.0, as qTip requires it | ||
* qTip ^3.0 || ^2.2.0 | ||
@@ -100,1 +107,2 @@ * Cytoscape.js ^2.2.0 || ^3.0.0 | ||
1. Publish: `gulp` | ||
1. Make a release on GitHub to automatically register a new Zenodo DOI |
Sorry, the diff of this file is not supported yet
37929
2.48%452
1.12%107
8.08%8
-11.11%+ Added
- Removed