{"name":"bubblesets-js","version":"2.1.0","author":{"url":"https://www.sgratzl.com","name":"Samuel Gratzl","email":"sam@sgratzl.com"},"license":"MIT","_id":"bubblesets-js@2.1.0","maintainers":[{"name":"sgratzl","email":"samuel_gratzl@gmx.at"}],"homepage":"https://github.com/sgratzl/bubblesets-js","bugs":{"url":"https://github.com/sgratzl/bubblesets-js/issues"},"dist":{"shasum":"ff7d358feaf694a2dc4ee554b654bdbd7a607216","tarball":"http://registry-npm.ywwl.com/bubblesets-js/download/bubblesets-js-2.1.0.tgz","fileCount":30,"integrity":"sha512-KyROG1RxnUApHOzU0ytnIncZmYfzZReiUlWWK33whaQwRnBNfqp8d1h/FjA6d6uDUvor51/9swZhjttUn3QN3A==","signatures":[{"sig":"MEUCIQCkyo+wbqBvuuIwXs7b7VoJ3BJfgUw2ukm96Mb8SpJbvQIgUFpSQd1vy3/8BaPxgtGXRCWZPNFFpK7fzvsCmhgG2qk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":614456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3LJmCRA9TVsSAnZWagAA0/wP/0kSizgnWv2WS6sNYS/4\nagYIPaILiJm0cJYTc3qDyCsGxUFI8vH0qzUmhyMIy1mAwmkxJeXu4+oaqDiw\nU5BNrlNBs9Xxm0B7lHhC1AAfWuj2HzD43Ha2JZKE8F98veA0OC4mFhFdiXHy\nwJJ4MmcCvg3XuyLGxzsEyPVljrXmCyr4f1abfmBxYDHHRA8c8nIHNXz4McNV\ns46NNbxhG4Zfuj5/v+KB1ZLRiY9DvrTQPJbRrE03C8gjTnV1OAQtT3FnB4YB\nj+g4ULKPtiezkD8KYzmxAQQ/XEVetxZXGZijOayYG/9cszDWiUH+rSrRSEYo\nwhcTnFSI/N+DiBA19fXVsj/BkJS7fTrmq2ebsOxI/MA87r9kflZazGFJpVbB\nTFqoWYLOMgkZp9I9PAXwbOGU064e7r8MNjPWv8FIq3qIWJZ9ZmwHE3J9qzan\nP7wA9l0mDXa8hJJT58Vj7oqOuxgL05VrBVAwj5vPS4JFMxQZKRh9dxHyyyhV\nTxZdJHj66zlAtOEkTyyOiWFwhVIRA3E7zWTcQ2AzIn9ORj6rg5tX2bM4jjrB\ne/WqoOTdxIgCs9CQTH+CJ6sAiBcL9mBzuTmc3NSfh2IlcbQ8Vu1KYOE/GyOL\nFY0rBTqzdCSoOkDCOTJBDNAHFk7Mnhsn1SK14FJ6PMcwUPD0AdU7P+2WXHhC\nO+cs\r\n=Dwxc\r\n-----END PGP SIGNATURE-----\r\n","size":147192,"noattachment":false,"key":"/bubblesets-js/-/bubblesets-js-2.1.0.tgz"},"main":"dist/bubblesets.umd.development.js","types":"dist/index.d.ts","unpkg":"dist/bubblesets.umd.production.min.js","module":"dist/bubblesets.esm.js","gitHead":"bb6609b985078b3c4a3623188234e9b733c6e1e3","scripts":{"fix":"npm run eslint:fix && npm run prettier:write","docs":"typedoc","lint":"npm run eslint && npm run prettier","test":"tsdx test --passWithNoTests","build":"npm run clean && tsdx build --name BubbleSets --format esm,umd && npm run typings","clean":"rimraf dist .tmp node_modules","start":"npm run watch","watch":"tsdx watch --noClean --name BubbleSets --format esm,umd","eslint":"tsdx lint src --ext .ts,.tsx","compile":"tsc -p tsconfig.json --noEmit","prepare":"npm run build","release":"release-it --disable-metrics --npm.skipChecks","typings":"tsc -p tsconfig.dts.json && rollup -c rollup.dts.config.js","prettier":"npm run prettier:impl -- --check","eslint:fix":"npm run eslint -- --fix","test:watch":"tsdx test --passWithNoTests --watch","release:pre":"release-it --disable-metrics --npm.skipChecks --preRelease=alpha --npm.tag=next","prettier:impl":"prettier \"*.{md,json,js,yml}\" \"{.github,src,samples}/**\"","test:coverage":"tsdx test --passWithNoTests --coverage","prettier:write":"npm run prettier:impl -- --write"},"_npmUser":{"name":"sgratzl","email":"sam@sgratzl.com"},"jsdelivr":"dist/bubblesets.umd.production.min.js","repository":{"url":"git+https://github.com/sgratzl/bubblesets-js.git","type":"git"},"_npmVersion":"6.14.4","description":"JavaScript implementation of bubble sets by Christopher Collins","directories":{},"sideEffects":false,"_nodeVersion":"12.16.3","browserslist":["last 2 Chrome versions","Firefox ESR"],"dependencies":{"d3-contour":"^1.3.2","@types/d3-contour":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"~0.13.2","tslib":"^2.0.0","eslint":"^7.1.0","rimraf":"^3.0.2","rollup":"^2.12.0","typedoc":"^0.17.7","prettier":"^2.0.5","release-it":"^13.6.1","typescript":"^3.9.3","@types/jest":"^25.2.3","@yarnpkg/pnpify":"^2.0.0-rc.22","rollup-plugin-dts":"^1.4.7","eslint-plugin-react":"^7.20.0","eslint-plugin-import":"^2.20.2","rollup-plugin-cleanup":"^3.1.1","eslint-config-prettier":"^6.11.0","eslint-plugin-flowtype":"^5.1.3","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.3","@rollup/plugin-commonjs":"^12.0.0","eslint-config-react-app":"^5.2.1","@typescript-eslint/parser":"^3.0.2","eslint-plugin-react-hooks":"^4.0.4","rollup-plugin-pnp-resolve":"^2.0.0","@typescript-eslint/eslint-plugin":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/bubblesets-js_2.1.0_1591521894072_0.12464162706284454","host":"s3://npm-registry-packages"},"readme":"# BubbleSets for JavaScript\n\n[![NPM Package][npm-image]][npm-url] [![Github Actions][github-actions-image]][github-actions-url]\n\nFork of http://github.com/josuakrause/bubblesets-js/ - a JavaScript implementation of Christopher Collins' [bubble sets](http://vialab.science.uoit.ca/portfolio/bubblesets) without the use of external libraries.\nA Java implementation can be found [here](https://github.com/JosuaKrause/Bubble-Sets).\n\nA [Cytoscape](https://js.cytoscape.org/#extensions/ui-extensions) plugin is located at [Cytoscape.js-Bubblesets](https://github.com/upsetjs/cytoscape.js-bubblesets).\n\n![bubblesets](https://user-images.githubusercontent.com/4129778/83879077-60607800-a73d-11ea-9d1d-4f76752280ee.png)\n\n## Install\n\n```sh\nnpm install --save bubblesets-js\n```\n\n## Usage\n\n```js\nconst bubbleSets = new BubbleSets.BubbleSets();\nbubbleSets.pushMember(BubbleSets.rect(30, 30, 50, 20));\nbubbleSets.pushMember(BubbleSets.rect(200, 100, 50, 20));\nbubbleSets.pushMember(BubbleSets.circle(240, 40, 10));\n\nconst pointPath = bubbleSets.compute();\nconst cleanPath = pointPath.sample(8).simplify(0).bSplines().simplify(0);\n\nconst canvas = document.createElement('canvas');\ncanvas.width = 400;\ncanvas.height = 200;\ndocument.body.appendChild(canvas);\nconst ctx = canvas.getContext('2d');\n\n// svg path\n//const path = document.createElement('path');\n//path.setAttribute('d', cleanPath.toString());\n\n// canvas\nctx.beginPath();\ncleanPath.draw(ctx);\nctx.strokeStyle = 'black';\nctx.fillStyle = 'rgba(0,0,255,0.2)';\nctx.fill();\nctx.stroke();\n\nctx.beginPath();\nbubbleSets.drawMembers(ctx);\nctx.fillStyle = 'steelblue';\nctx.fill();\n```\n\n![sample](https://user-images.githubusercontent.com/4129778/83879033-52aaf280-a73d-11ea-9a19-d803718fec17.png)\n\nsee [Samples](https://github.com/upsetjs/bubblesets-js/tree/master/samples) on Github\n\nor at this [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/MWKYRWo)\n\n## Development Environment\n\n```sh\nnpm i -g yarn\nyarn set version latest\ncat .yarnrc_patch.yml >> .yarnrc.yml\nyarn\nyarn pnpify --sdk vscode\n```\n\n### Common commands\n\n```sh\nyarn compile\nyarn test\nyarn lint\nyarn fix\nyarn build\nyarn docs\nyarn release\nyarn release:pre\n```\n\n[npm-image]: https://badge.fury.io/js/bubblesets-js.svg\n[npm-url]: https://npmjs.org/package/bubblesets-js\n[github-actions-image]: https://github.com/upsetjs/bubblesets-js/workflows/ci/badge.svg\n[github-actions-url]: https://github.com/upsetjs/bubblesets-js/actions\n[codepen]: https://img.shields.io/badge/CodePen-open-blue?logo=codepen\n","publish_time":1591521894273,"_cnpm_publish_time":1591521894273,"dist-tags":{"latest":"3.0.1"}}