@upsetjs/bundle
TypeScript icon, indicating that this package has built-in type declarations

1.11.0 • Public • Published

UpSet.js Bundle

[![NPM Package][npm-image]][npm-url] [![Github Actions][github-actions-image]][github-actions-url]

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][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 or in a commercial environment, 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. [npm-image]: https://badge.fury.io/js/%40upsetjs%2Fbundle.svg [npm-url]: https://npmjs.org/package/@upsetjs/bundle [github-actions-image]: https://github.com/upsetjs/upsetjs/workflows/nodeci/badge.svg [github-actions-url]: https://github.com/upsetjs/upsetjs/actions [codepen]: https://img.shields.io/badge/CodePen-open-blue?logo=codepen

Readme

Keywords

none

Package Sidebar

Install

npm i @upsetjs/bundle

Weekly Downloads

343

Version

1.11.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

1.99 MB

Total Files

16

Last publish

Collaborators

  • sgratzl