1.11.0 • Published 2 years ago

@upsetjs/bundle v1.11.0

Weekly downloads
43
License
SEE LICENSE IN LI...
Repository
github
Last release
2 years ago

UpSet.js Bundle

NPM Package Github Actions

UpSet.js is a JavaScript reimplementation of UpSetR which itself is based on UpSet. The library is written in React. This repository contains a bundled version of it that has no dependencies and uses Preact in the background.

A detailed description can be found at the README on the main Github Monorepo.

UpSet.js

Usage

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

const elems = [...];

const sets = UpSetJS.extractSets(elems);
const combinations = UpSetJS.generateIntersections(elems);

UpSetJS.renderUpSet(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.renderUpSet(document.body, props);
}

render();

see also Open in CodePen

License

Commercial license

If you want to use Upset.js for a commercial application the commercial license is the appropriate license. With this option, your source code is kept proprietary. Contact @sgratzl for details

Open-source license

GNU AGPLv3

1.11.0

2 years ago

1.10.10

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.9.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.1.0

4 years ago