All Projects → upsetjs → cytoscape.js-bubblesets

upsetjs / cytoscape.js-bubblesets

Licence: MIT license
Cytoscape.js Bubblesets plugin

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

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

cytoscape.js-qtip
A Cytoscape.js extension that wraps the QTip jQuery library
Stars: ✭ 39 (+116.67%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-panzoom
Panzoom extension for Cytoscape.js
Stars: ✭ 62 (+244.44%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-context-menus
A Cytoscape.js extension to provide context menu around elements and core instance
Stars: ✭ 63 (+250%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-graphml
A Cytoscape.js extension to import from and export to GraphML format
Stars: ✭ 26 (+44.44%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytoscape.js-spread
The speedy Spread physics simulation layout for Cytoscape.js
Stars: ✭ 20 (+11.11%)
Mutual labels:  cytoscapejs, cytoscapejs-extension
cytosnap
A Node.js package that renders images of Cytoscape.js graphs on the server using Puppeteer
Stars: ✭ 48 (+166.67%)
Mutual labels:  cytoscapejs
react-cytoscape
react component for cytoscape
Stars: ✭ 31 (+72.22%)
Mutual labels:  cytoscapejs
Cloudmapper
CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
Stars: ✭ 4,783 (+26472.22%)
Mutual labels:  cytoscape
gun-scape
GunDB Cytoscape Graph Visualizer + Live Editor
Stars: ✭ 49 (+172.22%)
Mutual labels:  cytoscape
EnrichmentMapApp
The EnrichmentMap Cytoscape App allows you to visualize the results of gene-set enrichment as a network.
Stars: ✭ 26 (+44.44%)
Mutual labels:  cytoscape
cytoscape-sbgn-stylesheet
View biological networks via Cytoscape.js and sbgn-ml
Stars: ✭ 47 (+161.11%)
Mutual labels:  cytoscape
py4cytoscape
Python library for calling Cytoscape Automation via CyREST
Stars: ✭ 36 (+100%)
Mutual labels:  cytoscape
cytoscapeneo4j
Cytoscape plugin for neo4j
Stars: ✭ 18 (+0%)
Mutual labels:  cytoscape
Cytoscape.js
Graph theory (network) library for visualisation and analysis
Stars: ✭ 8,107 (+44938.89%)
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 (-5.56%)
Mutual labels:  cytoscapejs

Cytoscape.js BubbleSets Plugin

NPM Package Github Actions Cytoscape Plugin

A Cytoscape.js plugin for rendering Bubblesets.

Euler Example

Install

npm install cytoscape cytoscape-layers cytoscape-bubblesets

Usage

see Samples on Github

or at this Open in CodePen

import cytoscape from 'cytoscape';
import BubbleSets from 'cytoscape-bubblesets';
cytoscape.use(BubbleSets);

const cy = cytoscape({
  container: document.getElementById('app'),
  elements: [
    { data: { id: 'a' } },
    { data: { id: 'b' } },
    {
      data: {
        id: 'ab',
        source: 'a',
        target: 'b',
      },
    },
  ],
});
cy.ready(() => {
  const bb = cy.bubbleSets();
  bb.addPath(cy.nodes(), cy.edges(), null);
});

image

Alternative without registration

import cytoscape from 'cytoscape';
import { BubbleSetsPlugin } from 'cytoscape-bubblesets';

const cy = cytoscape({
  container: document.getElementById('app'),
  elements: [
    { data: { id: 'a' } },
    { data: { id: 'b' } },
    {
      data: {
        id: 'ab',
        source: 'a',
        target: 'b',
      },
    },
  ],
});
cy.ready(() => {
  const bb = new BubbleSetsPlugin(cy);
  bb.addPath(cy.nodes(), cy.edges(), null);
});

API

  • addPath(nodes: NodeCollection, edges?: EdgeCollection | null, avoidNodes?: NodeCollection | null, options?: IBubbleSetPathOptions): BubbleSetPath

    creates a new BubbleSetPath instance. The nodes is a node collection that should be linked. edges an edge collection to include edges. avoidNodes is an optional node collection of nodes that should be avoided when generating the outline and any virtual edge between the nodes.

  • removePath(path: BubbleSetPath)

    removes a path again

  • getPaths(): readonly BubbleSetPath[]

    returns the list of active paths

Development Environment

npm i -g yarn
yarn set version latest
cat .yarnrc_patch.yml >> .yarnrc.yml
yarn
yarn pnpify --sdk vscode

Common commands

yarn compile
yarn test
yarn lint
yarn fix
yarn build
yarn docs
yarn release
yarn release:pre
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].