{"name":"bubblesets-js","version":"1.1.0","author":{"name":"Josua Krause"},"license":"ISC","_id":"bubblesets-js@1.1.0","maintainers":[{"name":"sgratzl","email":"samuel_gratzl@gmx.at"}],"contributors":[{"name":"Samuel Gratzl","email":"samuel_gratzl@gmx.at"}],"homepage":"https://github.com/sgratzl/bubblesets-js#readme","bugs":{"url":"https://github.com/sgratzl/bubblesets-js/issues"},"dist":{"shasum":"52aaea7648736df7c3648e7907a436415474f200","tarball":"http://registry-npm.ywwl.com/bubblesets-js/download/bubblesets-js-1.1.0.tgz","fileCount":5,"integrity":"sha512-9tEurEqEP245/qhLNWu6od8sSob0jcsb9RaH95Xe97D6dp2Gsp3X6YJ/Jz0JqiBCyc9bP4J9yD8emf0xhfua2A==","signatures":[{"sig":"MEQCIHL5scqu64xHkzefmsTiVfcWAH0BgMzmzrl7Tog59GCOAiAogMSNhXRtmVOHnifRvgE/HeUpnZFxaOlG1HaZg+Jdlw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUfSOCRA9TVsSAnZWagAA9GgP/0V59+iwlO35hqBj97nH\nauvlzyHiG+Fy/4EQjiWUF7FEzCnMn+1Vt/IwFREA9HgcNGbEtDAfCtnjbIi5\nyA6X3liurShC7X11V8gJO2h1ymlSYY7sxxDA1jXUyAR8zfObzP6yFcTfR8yi\nVpNvnh1M4YXD/0MHU54eRbkzuUWpvqRCUtPcNkEOESIgtA5jzq+0RUYBhbYk\nIVKPBJqIlpx2SUgiZ4BOCViBgXJjKBFW1mSAFk586lQMRhxD9wMvncRLd7lj\n9I0Uv6P232AvgPL7smUr419Ix+brvH4BBIYziD1lJXZFLgLGebSQpS8oLE+A\n4Kf6vaW4T7vUfrt+Rj13P2j97e7zh5i4q34WiytTU4BZaXnfFyZQePmT6al1\nJgcMnQRCHmLPcy3Q44a79/mVjcfNtBh2g1CkQ+WcH+kEL53kfvU+wb/eRBVT\nSgzfhlSTv9czZwympzirNQa+raEk2KJa36ibpad+jXyLKDPMPqkayz4JJW7V\nWvCXv2iNnbxEkD0J7ZNIpZvr7TqGQVggjoQj0TqmxOFWEjP7R3E+fqduhQDz\neeWIXiLKAPq99iDr/0+6uDz0BMoc1jxA/fi5pObYJIzd3ktpgnnb2aoqy94K\nELM7dpxxcQ3LSR7+3niYut/CzsqlQsGwpyv3m2+xb89KgB1HJPvmT9/55JcZ\nNC8w\r\n=1iJw\r\n-----END PGP SIGNATURE-----\r\n","size":14822,"noattachment":false,"key":"/bubblesets-js/-/bubblesets-js-1.1.0.tgz"},"main":"index.js","files":["index.js","typings"],"types":"typings/index.d.ts","gitHead":"bc66915df4b5b7a70681d5b073e6962b8f20eed9","scripts":{"test":"echo \"Error: no test specified\"","build":"cat _header.js bubblesets.js _footer.js > index.js","prepack":"npm run build","preversion":"npm test","release:pre":"npm version prerelease && npm publish --tag=next && git push --follow-tags","release:major":"npm version major && npm publish && git push --follow-tags","release:minor":"npm version minor && npm publish && git push --follow-tags","release:patch":"npm version patch && npm publish && git push --follow-tags"},"_npmUser":{"name":"sgratzl","email":"samuel_gratzl@gmx.at"},"repository":{"url":"git+https://github.com/sgratzl/bubblesets-js.git","type":"git"},"_npmVersion":"6.2.0","description":"A JavaScript implementation of Bubble Sets.","directories":{},"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bubblesets-js_1.1.0_1532097678553_0.5707940179701456","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":1532097678648,"_cnpm_publish_time":1532097678648,"dist-tags":{"latest":"3.0.1"}}