@upsetjs/bundle v1.11.0
UpSet.js Bundle
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.
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();
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
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago