{"name":"bubblesets-js","version":"2.0.2","author":{"url":"https://www.sgratzl.com","name":"Samuel Gratzl","email":"sam@sgratzl.com"},"license":"MIT","_id":"bubblesets-js@2.0.2","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":"9b0fdfb6e542c7a218ae84a2fb0c0ae2a7f9c243","tarball":"http://registry-npm.ywwl.com/bubblesets-js/download/bubblesets-js-2.0.2.tgz","fileCount":29,"integrity":"sha512-lmVdFrccmVL0txAbgOvhSHpnzSix1zmvvf52gWwjVmGpddvoR3NVtdjxDDSffjRojjJ+BxTuSYbI5de0vVG2lg==","signatures":[{"sig":"MEQCIHbPAvu5oMiXl7qzGdp/i7uohnxwgL0DxxkEEwCRj17UAiAekRilAhq4S5MunhfedUmk7W3/GZ52in8ItRPVJ+OaSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":599379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2mXtCRA9TVsSAnZWagAAwJ0P/iLeiqaudeBJtE30z3kW\nlyb6INStoeipnq93w3l3dXfz2g9/akpadyn9A+h20dFbjLiUiCvKPhvZVimi\nhjYr9HfMJubJXU7mlE9WssPXaU1Kz3kI7X22MM7/lCgxGbUgFnXhQNKVDNMp\nWqEAIF5IWSOneW1CFLujCco98VfserJl99/9J+6YqzV/xLX5JSFLbTQJerpI\n4F4Jd32nqG8lqSEjeHP/qlKioEDZ4Pbtb3uWILAETsGsV3WLh8aao7cPZDWw\nBMgzpnsTLIj7Ul60k/Tcz2FShLTNlKaN4Q+NcD/bnzor8kCsHH6gBE3sUl1M\ntnsH4stQctjoPhBJlLHoEOWiiOwloIxM/+AVkOYGVCi7s6B8fvWbkIzmpdeG\nmz/QUDXvQPORKvPLLNfBCNniuTGGSO6O7Ulms+XmoTREzFQnb66PT1QT3r48\nKDJxnWaFrReWYyNKAeWCvpAk9JvIm7R0W9Wbc0AlCgWKSxQRdAckOpExxjMT\ngBbJmxSc0OW2pON4+w3i1isu+V3W+CxIPHUR2cvd75K2mTntzxWVcYvF2ayL\nO9pq6TOiBNYUlgEMFiC7Viy9zdjfFLfdEU7qZQ4JejTHDDjHaoex9O5KmWaU\nDhAqC1gSb1RuYfTnuzCr/wY3iSJXDv5LvQrvOTw71qoTnGVOGKDL4fZ5FxTd\nVtj1\r\n=VLoc\r\n-----END PGP SIGNATURE-----\r\n","size":143836,"noattachment":false,"key":"/bubblesets-js/-/bubblesets-js-2.0.2.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":"b96324ab1c52a7aeae3be458a78520da7cd4af91","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.0.2_1591371244906_0.34127297663100054","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":1591371245064,"_cnpm_publish_time":1591371245064,"dist-tags":{"latest":"3.0.1"}}