{"_id":"@bardit/cytoscape-qtip","_rev":"2-bb8715d4a8a65ba48e37aa5e4f1322c1","name":"@bardit/cytoscape-qtip","description":"A Cytoscape.js extension that wraps the qTip jQuery library","dist-tags":{"latest":"2.5.1"},"versions":{"2.5.1":{"name":"@bardit/cytoscape-qtip","version":"2.5.1","description":"A Cytoscape.js extension that wraps the qTip jQuery library","main":"cytoscape-qtip.js","spm":{"main":"cytoscape-qtip.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bardit/cytoscape.js-qtip.git"},"keywords":["cytoscape","qtip","extension","popup","tooltip","cyext"],"license":"MIT","devDependencies":{"gulp":"^3.8.8","gulp-jshint":"^1.8.5","gulp-prompt":"^0.1.1","gulp-replace":"^0.4.0","gulp-shell":"^0.2.9","jshint-stylish":"^1.0.0","run-sequence":"^1.0.0"},"peerDependencies":{"jquery":"^1.10.0 || ^2.0","qtip2":"^2.2.0 || ^3.0","cytoscape":"^2.2.0"},"gitHead":"3da695ba1a64ad904636662d7af8f27fd2234157","bugs":{"url":"https://github.com/bardit/cytoscape.js-qtip/issues"},"homepage":"https://github.com/bardit/cytoscape.js-qtip#readme","_id":"@bardit/cytoscape-qtip@2.5.1","_shasum":"ebc1db2eff115cb6ddf9c677e0f4d4ffe2592451","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"bardit","email":"bardit4040@gmail.com"},"dist":{"shasum":"ebc1db2eff115cb6ddf9c677e0f4d4ffe2592451","tarball":"https://registry.npmjs.org/@bardit/cytoscape-qtip/-/cytoscape-qtip-2.5.1.tgz","integrity":"sha512-krxyJ01yQZ964L4jq8XA+DrWXlM+EJOjUPdYEQGo0/0pJB6Rdagss/d4DWzxJq+x1z0JvO8AfQLMXfJYqZJE+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgF5j8WyXDUJE2oGUeSboDtyViFYpFb7o1X4Djqy2RzAiBSbeu/Fp/91WJ/+SSKuJ/ftVuAl3BjOovD2PIV56hNpQ=="}]},"maintainers":[{"name":"bardit","email":"bardit4040@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cytoscape-qtip-2.5.1.tgz_1497428487207_0.2965105993207544"}}},"readme":"cytoscape-qtip\r\n==============\r\n\r\nThis is a fork from ccytoscape.js-qtip with some bug fixes.\r\n\r\n![Preview](https://raw.githubusercontent.com/cytoscape/cytoscape.js-qtip/master/img/preview.png)\r\n\r\n\r\n## Description\r\n\r\nA Cytoscape.js extension that wraps the [qTip jQuery library](http://qtip2.com)\r\n\r\n\r\n\r\n## Dependencies\r\n\r\n * jQuery ^1.10.0 || ^2.0, as qTip requires it\r\n * qTip ^2.2.0\r\n * Cytoscape.js ^2.2.0\r\n\r\n\r\n## Usage instructions\r\n\r\nDownload the library:\r\n * via npm: `npm install cytoscape-qtip`,\r\n * via bower: `bower install cytoscape-qtip`, or\r\n * via direct download in the repository (probably from a tag).\r\n\r\n`require()` the library as appropriate for your project:\r\n\r\nCommonJS:\r\n```js\r\nvar cytoscape = require('cytoscape');\r\nvar jquery = require('jquery');\r\nvar cyqtip = require('cytoscape-qtip');\r\n\r\ncyqtip( cytoscape, jquery ); // register extension\r\n```\r\n\r\nAMD:\r\n```js\r\nrequire(['cytoscape', 'cytoscape-qtip', 'jquery'], function( cytoscape, cyqtip, jquery ){\r\n  cyqtip( cytoscape, jquery ); // register extension\r\n});\r\n```\r\n\r\nNote that `jquery` must point to a jQuery object with `.qtip()` registered if any sort of `require()` is used.\r\n\r\nPlain HTML/JS has the extension registered for you automatically, because no `require()` is needed.\r\n\r\n\r\n## API\r\n\r\nThis extension wraps the qTip API so it can be used on Cytoscape.js graph elements instead of HTML DOM elements.\r\n\r\nYou can call qTip on graph elements:\r\n```js\r\neles.qtip({ /* options ... */ });\r\n```\r\n\r\nYou can call qTip on the core:\r\n```js\r\ncy.qtip({ /* options ... */ });\r\n```\r\n\r\nSee the [qTip API for details on configuration](http://qtip2.com/options).\r\n\r\nIf you want to access the qTip API for an element:\r\n```js\r\nvar api = ele.qtip('api');\r\n```\r\n\r\nIf you want to access the qTip API for the core:\r\n```js\r\nvar api = cy.qtip('api');\r\n```\r\n\r\nSee the [qTip docs for details on the API](http://qtip2.com/api).  If you create more than one qTip on an element and use its API, you'll have to cache the `api` references after creating each qTip.\r\n\r\n\r\n## API restrictions\r\n\r\nYou may not use `options.position.target`.  If you require a different value, like `'body'` or `'mouse'`, you don't need this extenstion -- you can simply use the qTip APIs directly on a DOM element.\r\n\r\n\r\n## API additions\r\n\r\nThese are additional options you can use for convenience.  Remember: This extension is just a wrapper to qTip.  If you require more complex behaviour, you should manually use the [qTip API](http://qtip2.com/api).\r\n\r\n * `options.position.adjust.cyViewport` : When `true`, updates element qTip position on zoom and pan.  Note you'll need your own mechanism to hide out-of-bounds qTips, such as customising the parent container.\r\n\r\n * `options.show.cyBgOnly` : When `true`, shows core qTips only for events originated on the core (not bubbled).  Useful for \"background\" events.\r\n\r\n * `options.hide.cyBgOnly` : When `true`, hides core qTips only for events originated on the core (not bubbled).  Useful for \"background\" events.\r\n\r\n * `options.hide.cyViewport` : When `true`, hides qTips when the viewport is manipulated (i.e. zoom/pan).\r\n\r\n## Publishing instructions\r\n\r\n1. Set the version number env var: `export VERSION=1.2.3`\r\n1. Publish: `gulp`\r\n","maintainers":[{"name":"bardit","email":"bardit4040@gmail.com"}],"time":{"modified":"2022-06-12T15:02:37.623Z","created":"2017-06-14T08:21:28.272Z","2.5.1":"2017-06-14T08:21:28.272Z"},"homepage":"https://github.com/bardit/cytoscape.js-qtip#readme","keywords":["cytoscape","qtip","extension","popup","tooltip","cyext"],"repository":{"type":"git","url":"git+https://github.com/bardit/cytoscape.js-qtip.git"},"bugs":{"url":"https://github.com/bardit/cytoscape.js-qtip/issues"},"license":"MIT","readmeFilename":"README.md"}