All Projects → cytoscape → cytoscape.js-qtip

cytoscape / cytoscape.js-qtip

Licence: MIT license
A Cytoscape.js extension that wraps the QTip jQuery library

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to cytoscape.js-qtip

cytoscape.js-panzoom
Panzoom extension for Cytoscape.js
Stars: ✭ 62 (+58.97%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-context-menus
A Cytoscape.js extension to provide context menu around elements and core instance
Stars: ✭ 63 (+61.54%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-graphml
A Cytoscape.js extension to import from and export to GraphML format
Stars: ✭ 26 (-33.33%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-spread
The speedy Spread physics simulation layout for Cytoscape.js
Stars: ✭ 20 (-48.72%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-bubblesets
Cytoscape.js Bubblesets plugin
Stars: ✭ 18 (-53.85%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytosnap
A Node.js package that renders images of Cytoscape.js graphs on the server using Puppeteer
Stars: ✭ 48 (+23.08%)
Mutual labels:  cytoscapejs
react-cytoscape
react component for cytoscape
Stars: ✭ 31 (-20.51%)
Mutual labels:  cytoscapejs
Cytoscape.js
Graph theory (network) library for visualisation and analysis
Stars: ✭ 8,107 (+20687.18%)
Mutual labels:  cytoscapejs
CoNekT
CoNekT (short for Co-expression Network Toolkit) is a platform to browse co-expression data and enable cross-species comparisons.
Stars: ✭ 17 (-56.41%)
Mutual labels:  cytoscapejs

cytoscape-qtip

DOI

Preview

Description

A Cytoscape.js extension that wraps the qTip jQuery library

It is recommended that, where possible, you use cytoscape-popper with tippy.js instead of cytoscape-qtip.

  • The 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 ^3.0 || ^2.0 || ^1.10.0, as qTip requires it
  • qTip ^3.0 || ^2.2.0
  • Cytoscape.js ^2.2.0 || ^3.0.0

Usage instructions

Download the library:

  • via npm: npm install cytoscape-qtip,
  • via bower: bower install cytoscape-qtip, or
  • via direct download in the repository (probably from a tag).

require() the library as appropriate for your project:

CommonJS:

var cytoscape = require('cytoscape');
var cyqtip = require('cytoscape-qtip');

cyqtip( cytoscape ); // register extension

AMD:

require(['cytoscape', 'cytoscape-qtip', 'jquery'], function( cytoscape, cyqtip, jquery ){
  cyqtip( cytoscape, jquery ); // register extension
});

Note that jquery must point to a jQuery object with .qtip() registered if AMD is used.

Plain HTML/JS has the extension registered for you automatically, because no require() is needed.

API

This extension wraps the qTip API so it can be used on Cytoscape.js graph elements instead of HTML DOM elements.

You can call qTip on graph elements:

eles.qtip({ /* options ... */ });

You can call qTip on the core:

cy.qtip({ /* options ... */ });

See the qTip API for details on configuration.

If you want to access the qTip API for an element:

var api = ele.qtip('api');

If you want to access the qTip API for the core:

var api = cy.qtip('api');

See the qTip docs for details on the 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.

API restrictions

You 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.

API additions

These 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.

  • 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.

  • options.show.cyBgOnly : When true, shows core qTips only for events originated on the core (not bubbled). Useful for "background" events.

  • options.hide.cyBgOnly : When true, hides core qTips only for events originated on the core (not bubbled). Useful for "background" events.

  • options.hide.cyViewport : When true, hides qTips when the viewport is manipulated (i.e. zoom/pan).

Publishing instructions

  1. Set the version number env var: export VERSION=1.2.3
  2. Publish: gulp
  3. Make a release on GitHub to automatically register a new Zenodo DOI
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].