{"name":"bubblesets-js","version":"2.0.0","author":{"url":"https://www.sgratzl.com","name":"Samuel Gratzl","email":"sam@sgratzl.com"},"license":"MIT","_id":"bubblesets-js@2.0.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":"0c9a51ce56ce09c5fe08067928d4a2d742f149f0","tarball":"http://registry-npm.ywwl.com/bubblesets-js/download/bubblesets-js-2.0.0.tgz","fileCount":29,"integrity":"sha512-e1drkJZr5sgWpBpqFByEPLLvcequiCcIkt7smrNKXzkfkgGHkY/uF4kXW1DLMqcCq7+zlmPbdQXWyLkGadnu9w==","signatures":[{"sig":"MEYCIQClJNd8/UJ7OS0355XV72I2if3eS16FM4lkaUFZEjEALgIhAOopnHF0jHnrbfB74rINlhgd1GAAftxIptyKv5SuQnss","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":592290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2kUTCRA9TVsSAnZWagAAmykP/jageiGQAc2wzN3jC5hy\nPEKF2hAU3TofBOhnU+HzXqXwPR4H54slcrsnOz/K203+bgWMq+CKC9aRxGHR\nr3CenzijE1j31yaAxHuxYC7ChHqBOoNkO8Eg1jeXvWC0nBmonHzmRXY7LH1t\nRG/2sl+yygKzCf3VqdTRnFbpIFGCiUzEk8C6OLPojK2GiCo2iyMdo02lb0qY\nJ7d1Vl0JYIHDaG0kJaKJGFux5ea3eClr6LiNxBumc4qtCtfgMeBb7nvlCMGX\notZhI+lt5vwlWQ9Rm2rHIDXoIOvgg7JJl2DHUbDfA8awo/CpZjVycGtAIPrk\nA+Xjd0aLKWv53zIatg5LiiQOLxIt0kT/JDVvWt4Lnx4/z66KCtwH3//srOqF\n0ye4kxRP007ZylTq8x35LGNhdrdUoSDiZdAJZPJWkHeJ39UMaUIeggFyKX3o\nuelFgPQCnHfrjtubo2OdeFDP7hR1qDjYtGfRkJex3uN3qo4Z/baTINDblp5D\n633jlFiU9C4II5x63JrYSJXkQW4aELrHheOJHP0Ha9f2K/G9yYCxTZWvkR6e\ntYl5nF0JrpbiwH6V1daC1N6dKHMhoTqMNDsnJYeh0bwfo0lEUpcXP6dMBvFu\nmF8xXIOMRzf+inwgFb5xHFg0sK4YrbgzMHpdJY0wfdNSPpWfJvhJGdmA7aGS\nI39W\r\n=O8lI\r\n-----END PGP SIGNATURE-----\r\n","size":143081,"noattachment":false,"key":"/bubblesets-js/-/bubblesets-js-2.0.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":"94bfabc92929d85231fc3fecc79159b8b191f18a","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":"tsdx 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"},"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.0_1591362835228_0.08077503161148525","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":1591362835411,"_cnpm_publish_time":1591362835411,"dist-tags":{"latest":"3.0.1"}}