Options
All
  • Public
  • Public/Protected
  • All
Menu

UpSet.js Bundle - v1.9.1

UpSet.js Bundle

NPM Package Github Actions

This package is part of the UpSet.js ecosystem located at the main Github Monorepo.

Usage

npm install @upsetjs/bundle
import * as UpSetJS from '@upsetjs/bundle';

const elems = [...];

const { sets, combinations } = UpSetJS.extractCombinations(elems);

UpSetJS.render(document.body, {sets, combinations, width: 500, height: 300});

with stored selection

let selection = null;

function onHover(set) {
  selection = set;
  render();
}

function render() {
  const props = { sets, combinations, width: 500, height: 300, selection, onHover };
  UpSetJS.render(document.body, props);
}

render();

see also Open in CodePen

Privacy Policy

UpSet.js is a client only library. The library or any of its integrations doesn't track you or transfers your data to any server. The uploaded data in the app are stored in your browser only using IndexedDB. The Tableau extension can run in a sandbox environment prohibiting any server requests. However, as soon as you export your session within the app to an external service (e.g., Codepen.io) your data will be transferred.

License / Terms of Service

Commercial license

If you want to use UpSet.js for a commercial application the commercial license is the appropriate license. Contact @sgratzl for details.

Open-source license

This library is released under the GNU AGPLv3 version to be used for private and academic purposes. In case of a commercial use, please get in touch regarding a commercial license.