{"_id":"@svgdotjs/svg.draggable.js","_rev":"9-23510cd14c8d61133a8e606744654745","name":"@svgdotjs/svg.draggable.js","dist-tags":{"latest":"3.0.7"},"versions":{"3.0.0":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.0","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.0","maintainers":[{"name":"wout","email":"wout@mick-wout.com"},{"name":"fuzzyma","email":"ulima.ums@googlemail.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"67262fe96db368043824ce1d00a40b13b049cc66","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.0.tgz","fileCount":7,"integrity":"sha512-9iuI/ApXug8YQBxzKw9j5CV8+c+FruUbwx2LXYPZV0NCw3Ethozf18RGxDQZKdyvNZq9ecoIPT9ViWiOZg736g==","signatures":[{"sig":"MEQCICISa//ZxWO7tiHpE/3VnB+3TNNQ51cHhg7Te8sUuOL9AiAijjiDyR/6gu5NSUZy3yVKHZ5LxbxWk4bZMNDGyJ32mQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVB0uCRA9TVsSAnZWagAAr2sP/RoLqHSg8uiHtmCltJpv\nWuEqtXk4BlLpP/05VzZdnaNml7jxWoMgl+qcRUrfdpkGGiKfOUEtB5d3qFZH\niGW1Dibt/Bq2z6VennWFpKzrTxlyd6mIsVzvtlWmTKXbcCiAuoQAXl7qjUfo\nPGLym9O14cXjC4KNrfnn2BsQBRyB8C9h038/j8eNcvIFCMQCiMepmmkFgxuR\nwUgzSm+eUeXva+olDJzTrTOTbzDeP5ueAdAO7ROJU/NdpVvOp6p+3sinV9bA\nONqByZt0WY8HJXHdYv4wMZ8VxNLV/4JDN98Y7Nfxs+7T6XbGf3ydfzB9sUVe\nRJIO4VGZTYq9IXdrCsrDZGsN51LbcmMoRoW88yYc+NZBU3KwC5NJJc8Qou+H\nxFs4NlJ2wM30NyNB//3o/xRBAp4mKPlnyctb0JPNIwtv+8YHv519x+I7yfMI\nKnIuWuUDx5gxbOIUkRPW0+aiaEoWf+KtTavZWozIqepUP0vdRYy6fagG907y\nXkhEx5X+/fhejxXY8ntyqbSgc27ZROHikG3li9FPU81lvSbl70IiXycuOexz\nG99JwYuUjMeKbcv1xd4scIhgn87vupDGblsLXuJaOTZxznKVd4ZoC4H7K4fO\nzLMB+GZ11/pX+e4Q608P5RrSeEYY2Gpf3eSjfJisi/H+1wd7paMgbRpA8czD\nwCtf\r\n=Ggdi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/svg.draggable.js","unpkg":"dist/svg.draggable.min.js","module":"src/svg.draggable.js","browser":"dist/svg.draggable.min.js","engines":{"node":">= 0.8.0"},"gitHead":"491636725b7af2cb4d081687ef74f09bd9ae26a1","scripts":{"fix":"npx eslint ./src --fix","zip":"zip -j dist/svg.draggable.js.zip -- LICENSE README.md dist/svg.draggable.js dist/svg.draggable.js.map dist/svg.draggable.min.js dist/svg.draggable.min.js.map","lint":"npx eslint ./src","build":"npm run fix && npm run rollup","rollup":"npx rollup -c .config/rollup.config.js","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.min.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"6.1.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"10.4.1","dependencies":{"@svgdotjs/svg.js":"^3.0.10"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.12.1","rollup":"^1.1.0","@babel/core":"^7.2.2","babel-eslint":"^10.0.1","@babel/runtime":"^7.2.0","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.2.3","eslint-plugin-node":"^8.0.1","rollup-plugin-babel":"^4.3.1","eslint-plugin-import":"^2.14.0","rollup-plugin-terser":"^4.0.2","rollup-plugin-uglify":"^6.0.1","eslint-plugin-promise":"^4.0.1","@babel/runtime-corejs2":"^7.2.0","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-filesize":"^6.0.0","rollup-plugin-uglify-es":"0.0.1","rollup-plugin-multi-entry":"^2.1.0","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-transform-runtime":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.0_1549016365912_0.8350517677661364","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.1","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.1","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"13171aecf8093dd37be99f5e4c7c7fc76a187ac3","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.1.tgz","fileCount":11,"integrity":"sha512-pkGeGMsn4pRNuKTFmTEzuvVeUZvBk58hpo0G9bisJtwgp9KfwXo8XklLibNyXm7d3p0op0JshHp5zmFYdRo/ow==","signatures":[{"sig":"MEQCICESo4KhjUNS00tFQVFMn9I8a8X4udxX7Fex7pG9AAlcAiBO/GyqPZ529M38ZYebaILyQiMEj8crfWTpta6BzKk6LA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWKvRCRA9TVsSAnZWagAAqXkP/1i3CesG0lB7Ag1jqkuB\namRHExBCxj9+1hN2R3wSAqDCIGpvM4Su1zj6W5PBJ8+evy8gL26tOrn904RW\n5Ps258K8z5Zk1laPYUdDDPXs5MlPeU0L2h+O4kjfoDHsC1K4WbujzzRl1UxD\nE/swIzlCxrsgZSmn6zREWm2T/2tkU8pkGadYTi35ujAEBOMuYnhrzYmoY0er\n9pn/mg54FO+lEDvNDNBB3Boq5zg8HU2h3JMcbgN/kVQ++Ew/gNARPwmKd4Om\nE05Zh0RoHZH47Lr3fWbMFp/IVE8ae6qYjz85BwMBpJh1q18F0e9vqCfelJcn\njDjq6/YoRrNNoCt2YuJmp8ZzW/s+b9GSqkV+mHr28+3V42lG5upnPgXg35lx\nED//Z4F01MkrLIksJ8G7et2DR7BYIH+p8eib2IyUFQiiN4fKU6bQosL5EgkN\nJZYJNlq0LP28V8r5/9bdEBr6qlu0obdNqWkEbABoUI7RKvGahvwWAcBbBIbj\nYvmO31xO7uUJHHgtF0IFaj6K9kMnmnw87RETkYAsWsL9Ive9U7FGzsLaf+BJ\nqio2FnK3/ujT9z9U72Bm1AdOTsH3T36dzbdjfl7v66IDfoRg2A+sDZG7JOQh\n5oehpoV/gnJlEXz/FZh7TMmQuT+hYhMSYoSEbYVPW4jyT4CglJO/i71CMy9I\nW2/l\r\n=tO7x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/svg.draggable.js","unpkg":"dist/svg.draggable.min.js","module":"src/svg.draggable.js","browser":"dist/svg.draggable.min.js","engines":{"node":">= 0.8.0"},"gitHead":"33720a509c3b6667c418fe673c764f2cd52795ce","scripts":{"fix":"npx eslint ./src --fix","zip":"zip -j dist/svg.draggable.js.zip -- LICENSE README.md dist/svg.draggable.js dist/svg.draggable.js.map dist/svg.draggable.min.js dist/svg.draggable.min.js.map","lint":"npx eslint ./src","build":"npm run fix && npm run rollup","rollup":"npx rollup -c .config/rollup.config.js","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.min.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"6.1.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"10.4.1","dependencies":{"@svgdotjs/svg.js":"^3.0.10"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.12.1","rollup":"^1.1.0","@babel/core":"^7.2.2","babel-eslint":"^10.0.1","@babel/runtime":"^7.2.0","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.2.3","eslint-plugin-node":"^8.0.1","rollup-plugin-babel":"^4.3.1","eslint-plugin-import":"^2.14.0","rollup-plugin-terser":"^4.0.2","rollup-plugin-uglify":"^6.0.1","eslint-plugin-promise":"^4.0.1","@babel/runtime-corejs2":"^7.2.0","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-filesize":"^6.0.0","rollup-plugin-uglify-es":"0.0.1","rollup-plugin-multi-entry":"^2.1.0","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-transform-runtime":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.1_1549315024957_0.46874791309673514","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.2","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.2","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"a8d935ce495a40ab575e8bc11406ae61ebb4f455","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.2.tgz","fileCount":12,"integrity":"sha512-yqCJe/w1q3IK51zRiqB42rsvQHyX5oqg/Eck02TDRhRv+pQ7sSHJfdyljiGkqoFW4i/1sIpnqYmiLDeM12Nhsw==","signatures":[{"sig":"MEQCID7sLO+L4zLVYaerGXKG6FbyrzaNfEmNSAZ5tgvxuSX2AiBqNN03MLc3jMOCZOVansCx+LS/ajaHXcRXxM9T8++LCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbCrpCRA9TVsSAnZWagAAejoP/1Y+2s8+ikV6ZwU+ojqJ\nWpk/PPU71yLxKmt9ka1PnIL28lBNSFdVCH9MXqHT2Aiw7jMzgMO3IBxkJqlV\nycab4upX/Mdp7IIPrMSfTicFGPumnVxmxuEYVT739nLYY5borGAAZPR6TjRr\nBWrTXESzEW2IJR/zbkQTJkD5coxMVQhokn6mb7bFiKZvwRJTWpxYBpxpNxrB\ngKDTK4gVfnZkyYxKhYYW2EIYhkoZOY/oZ665tWOvZJPvcgK7OYjgPNaEeLcA\ngsg3PSBrcuEAb4ht9YotedJcZrf5KjXg0jnpTWSKLhwWMxNOlat5mvlzGKRR\nrbEA+FtlAh0yPolqR2LLM+AWzcce+/kTBEGxp/Qr2RMPlrQ5q/jrN6/3yyFU\nVy8hePXhd0K+Ckij72jfMZY6CNQMVbV6/4Cq0f3W5/deUrddqa6jOGOEiGNc\n3zogCr1Wab/g1giFuG1/acQTuvo534RQJAUmVjEyL/w6q6ycc6aOnKCnX2nC\npHAYG0J80HVoK0OWrsVHyAmiQQKd5cXfAnFQpFAagU5Dzt8mlnHkOEayMVjz\njSzB6nYf2qJ/j/vk9xHY03VwSkTaTAfCega94VVUoENuD5Kn8evREdKk65qa\nM01Mqoit81j4csJtcgA8UO6RBG11TBMUip4WiJAJ+V5yXdjCx2I6ff5eO8+1\nTUex\r\n=NGSQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/svg.draggable.js","unpkg":"dist/svg.draggable.min.js","module":"src/svg.draggable.js","browser":"src/svg.draggable.js","engines":{"node":">= 0.8.0"},"gitHead":"27df029a8ff5fe4602bef8ee1efdb5537b307083","scripts":{"fix":"npx eslint ./src --fix","zip":"zip -j dist/svg.draggable.js.zip -- LICENSE README.md dist/svg.draggable.js dist/svg.draggable.js.map dist/svg.draggable.min.js dist/svg.draggable.min.js.map","lint":"npx eslint ./src","build":"npm run fix && npm run rollup","rollup":"npx rollup -c .config/rollup.config.js","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.draggable.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.min.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"6.1.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"10.4.1","dependencies":{"@svgdotjs/svg.js":"^3.0.10"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.12.1","rollup":"^1.1.0","@babel/core":"^7.2.2","babel-eslint":"^10.0.1","@babel/runtime":"^7.2.0","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.2.3","eslint-plugin-node":"^8.0.1","rollup-plugin-babel":"^4.3.1","eslint-plugin-import":"^2.14.0","rollup-plugin-terser":"^4.0.2","rollup-plugin-uglify":"^6.0.1","eslint-plugin-promise":"^4.0.1","@babel/runtime-corejs2":"^7.2.0","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-filesize":"^6.0.0","rollup-plugin-uglify-es":"0.0.1","rollup-plugin-multi-entry":"^2.1.0","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-transform-runtime":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.2_1550592744813_0.45913965027111336","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.3","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.3","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"f8d1cf46dac9df440106e5fc940855f05897e274","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.3.tgz","fileCount":11,"integrity":"sha512-gvktGsIe/hhU3hX7VJaB8maOV3dKLwQHtjUJN+B/4EahPBI8QWPLt3uuCUeP7sRujaOtrckZxLFhZUeQ5nK4Qw==","signatures":[{"sig":"MEUCIQDGyi3VKgMUVjiqDGQcVm9pCseNr4cs5MYrrfcAnEjrdwIgOQvrKj6M4emzM4P/mwd3pEdpRYs3FleyDxM4+qixzfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGJ5VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTRw//XlrJh4idDWJMUab+thf2DeV3D+fgqo3/J/rT8Sp+dIrLjl7J\r\ncWGqzlYGaAr5juyFZypGDNhH6I0pUOTorHnLq0vbf+oEHFL45M+qM53dEdm+\r\n0JvmoYria0+QtyOtHEsx+TgUGPC9Qy5VpzkcRygIl1nZJJe9KO5/QC5usakO\r\nBbMzs0hjUQEQFtmWhtY1mus+FyAcyXzKtLUlb3QZzNYsxs8l7CqnfLK/RlAW\r\nU000+2Vg0Br4pf9H3L69/tgAs5sNgpwmAZsxBnfG7w8jLEMQND+De8khZy+T\r\nwLRqJlBnkimSyVBiZC/Vof9YgkQpAm2UjutoQZe+yg3H4dYf7HSGFjsCMzHv\r\ntPRA2TVrN82zgaCKrbvVuoVyTe8PS/GR5kVe50dXNdux/h2+erbh0FbYb3Gv\r\nt3BZcQly3xUE2DMrydouCEoGNRYMoX3AOlkg3A4jMko+1nVFZMJSEv4f+3NC\r\nYXPGRT0zUl1ggPx+447S0Dx4PmvwPqxP2trffBvE1dfviHLSmpQE1ksDZtVd\r\nEBF3slVQV4sY1rZ/G13QZoMeIjM43+Dhhlj6uaNuSoCdNEi9uyn8oLe5eSRS\r\nuchgCxM6Gsyd2PHWI/UbuGKOQqbVHvSkFLvSdg2sdAJEsjPLeR+WhjzjEWUr\r\nzE+9LcP3gXDaovmnzfLEfl9XwV4UyBOFmBg=\r\n=GUeM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/svg.draggable.js","unpkg":"dist/svg.draggable.min.js","module":"src/svg.draggable.js","browser":"dist/svg.draggable.esm.js","engines":{"node":">= 0.8.0"},"gitHead":"7fd1998bccdc4fddd0ea0dd08f8695eaa86ea5ae","scripts":{"fix":"npx eslint ./src --fix","zip":"zip -j dist/svg.draggable.js.zip -- LICENSE README.md dist/svg.draggable.js dist/svg.draggable.js.map dist/svg.draggable.min.js dist/svg.draggable.min.js.map","lint":"npx eslint ./src","build":"npm run fix && npm run rollup","format":"prettier-standard --format","rollup":"npx rollup -c .config/rollup.config.js","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.draggable.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.min.js","prettier":{"printWidth":120},"repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"9.2.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"19.4.0","dependencies":{"@svgdotjs/svg.js":"^3.0.16"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^13.0.2","eslint":"^8.14.0","rollup":"^2.70.2","typescript":"^4.6.4","@babel/core":"^7.8.4","@babel/runtime":"^7.8.4","@babel/polyfill":"^7.8.3","@babel/preset-env":"^7.8.4","prettier-standard":"^15.0.1","eslint-plugin-node":"^11.0.0","rollup-plugin-babel":"^4.4.0","eslint-plugin-import":"^2.20.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-uglify":"^5.0.2","eslint-plugin-promise":"^6.0.0","@babel/runtime-corejs3":"^7.8.4","eslint-config-standard":"^17.0.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-filesize":"^9.1.2","rollup-plugin-uglify-es":"0.0.1","rollup-plugin-multi-entry":"^2.1.0","rollup-plugin-node-resolve":"^5.2.0","@babel/plugin-external-helpers":"^7.8.3","@babel/plugin-transform-runtime":"^7.8.3"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.3_1679334997123_0.6934183904296762","host":"s3://npm-registry-packages"}},"3.0.4":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.4","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.4","contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"505430e86b5e73b5b5abba12ac6002633897324e","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.4.tgz","fileCount":7,"integrity":"sha512-vWi/Col5Szo74HJVBgMHz23kLVljt3jvngmh0DzST45iO2ubIZ487uUAHIxSZH2tVRyiaaTL+Phaasgp4gUD2g==","signatures":[{"sig":"MEQCIHUr6IzmthXhNXmraWpiUqAwpMd1sppYdFa/NqZ87xzlAiBh5qd06P/2q1GfSXkppEMRFazMzxapQ14IWgRhBJLgkQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17641},"main":"dist/svg.draggable.js","type":"module","unpkg":"dist/svg.draggable.js","module":"src/svg.draggable.js","exports":{"import":"./src/svg.draggable.js","require":"./dist/svg.draggable.js"},"gitHead":"dee6fa732e267ff7382916e38b62b4352d31eb95","scripts":{"fix":"npx eslint --fix","build":"npm run fix && vite build","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.draggable.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.2.1","eslint":"^8.36.0","prettier":"^2.8.5","typescript":"^5.0.2","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.4_1719482661644_0.36142062538341646","host":"s3://npm-registry-packages"}},"3.0.5":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.5","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.5","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"804fa627cbe850a137350009bd03d2c8423b39a7","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.5.tgz","fileCount":8,"integrity":"sha512-ljL/fB0tAjRfFOJGhXpr7rEx9DJ6D7Pxt3AXvgxjEM17g6wK3Ho9nXhntraOMx8JLZdq4NBMjokeXMvnQzJVYA==","signatures":[{"sig":"MEUCIQC6rCtkajViow2SWGiUovW1cJGix//6BnPrR45trkw5RAIgURVQjh/P95Fqvuuobu1570VKytz94cu28qKEEK9VtvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18107},"main":"dist/svg.draggable.js","type":"module","unpkg":"dist/svg.draggable.js","module":"src/svg.draggable.js","exports":{".":{"import":{"types":"./svg.draggable.js.d.ts","default":"./src/svg.draggable.js"},"browser":{"types":"./svg.draggable.js.d.ts","default":"./src/svg.draggable.js"},"require":{"types":"./svg.draggable.js.d.cts","default":"./src/svg.draggable.js"}}},"gitHead":"008fba0a80312f813fd61fbaab7158a0033b7bf0","scripts":{"fix":"npx eslint --fix","build":"npm run fix && vite build","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.draggable.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.2.1","eslint":"^8.36.0","prettier":"^2.8.5","typescript":"^5.0.2","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.5_1736535397769_0.6660787186438888","host":"s3://npm-registry-packages-npm-production"}},"3.0.6":{"name":"@svgdotjs/svg.draggable.js","version":"3.0.6","keywords":["svg.js","draggable","mouse"],"author":{"name":"Wout Fierens"},"license":"MIT","_id":"@svgdotjs/svg.draggable.js@3.0.6","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"homepage":"https://github.com/svgdotjs/svg.draggable.js","bugs":{"url":"https://github.com/svgdotjs/svg.draggable.js/issues"},"dist":{"shasum":"bca1065ec27b1dbae5a92a0558777ed964a395cb","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.6.tgz","fileCount":8,"integrity":"sha512-7iJFm9lL3C40HQcqzEfezK2l+dW2CpoVY3b77KQGqc8GXWa6LhhmX5Ckv7alQfUXBuZbjpICZ+Dvq1czlGx7gA==","signatures":[{"sig":"MEYCIQDm/zVK6UqMz+OAhBE7/D7iEksEx/ZxN9ckJlcIbL4z1gIhANxQTVf1bpq5Wz13gBabodEBi7Fc4gx/7l0GO3X/X369","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18274},"main":"dist/svg.draggable.js","type":"module","unpkg":"dist/svg.draggable.js","module":"src/svg.draggable.js","exports":{".":{"import":{"types":"./svg.draggable.js.d.ts","default":"./src/svg.draggable.js"},"browser":{"types":"./svg.draggable.js.d.ts","default":"./src/svg.draggable.js"},"require":{"types":"./svg.draggable.js.d.cts","default":"./src/svg.draggable.js"}}},"gitHead":"94447deeb00c19495c9c58b19b909e2490352483","scripts":{"fix":"npx eslint --fix","build":"npm run fix && vite build","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.draggable.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.draggable.js","repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.2.1","eslint":"^8.36.0","prettier":"^2.8.5","typescript":"^5.0.2","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/svg.draggable.js_3.0.6_1739003492291_0.7606105926281663","host":"s3://npm-registry-packages-npm-production"}},"3.0.7":{"_id":"@svgdotjs/svg.draggable.js@3.0.7","bugs":"https://github.com/svgdotjs/svg.draggable.js/issues","dist":{"shasum":"49e8caa54d86346df6fd3f1b2a79d7222be3f50a","tarball":"https://registry.npmjs.org/@svgdotjs/svg.draggable.js/-/svg.draggable.js-3.0.7.tgz","integrity":"sha512-yL2BZ2TSMNm2e8GXteXPjgd65bg0k0zJYyzRgeqcIRrpJd9GkesUFXqoLvtv9PLFH0AkTLfMXWUMUkUbTKFlVQ==","fileCount":8,"unpackedSize":12089,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svgdotjs%2fsvg.draggable.js@3.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDluELc9RQSo3ypXWtnpVJ2Plycdjhm+b/keudbct59FAIgWyOaZof4B+gqziRkpuJao4vCGpAqWJOmOq/1lTOslu8="}]},"main":"dist/svg.draggable.js","name":"@svgdotjs/svg.draggable.js","type":"module","unpkg":"dist/svg.draggable.js","author":{"name":"Wout Fierens"},"module":"dist/svg.draggable.mjs","exports":{".":{"import":{"types":"./dist/svg.draggable.d.mts","default":"./dist/svg.draggable.mjs"},"browser":{"types":"./dist/svg.draggable.d.mts","default":"./dist/svg.draggable.mjs"},"require":{"types":"./dist/svg.draggable.d.ts","default":"./dist/svg.draggable.js"}},"./package.json":"./package.json"},"license":"MIT","scripts":{"fix":"oxfmt --write . && oxlint -D correctness --fix .","zip":"zip -j dist/svg.draggable.js.zip -- LICENSE README.md dist/svg.draggable.js","demo":"vite demo","lint":"oxfmt --check . && oxlint -D correctness .","build":"tsc && vite build","demo:build":"vite build demo --outDir ../demo-dist --emptyOutDir"},"typings":"./dist/svg.draggable.d.ts","version":"3.0.7","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8956e95b-d21a-4c59-a616-c9be52c20d1f"},"approver":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"}},"homepage":"https://github.com/svgdotjs/svg.draggable.js","jsdelivr":"dist/svg.draggable.js","keywords":["svg.js","draggable","mouse"],"repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"description":"An extension for svg.js which allows to drag elements with your mouse","directories":{},"maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"_nodeVersion":"22.23.2","contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"devDependencies":{"vite":"^8.2.2","oxfmt":"^0.67.0","oxlint":"^1.82.0","typescript":"^7.0.2","@svgdotjs/svg.js":"^3.2.8"},"peerDependencies":{"@svgdotjs/svg.js":"^3.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svg.draggable.js_3.0.7_1789459415664_0.5364515174889195"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-01T10:19:25.742Z","modified":"2026-09-15T08:03:36.044Z","3.0.0":"2019-02-01T10:19:26.040Z","3.0.1":"2019-02-04T21:17:05.068Z","3.0.2":"2019-02-19T16:12:24.988Z","3.0.3":"2023-03-20T17:56:37.309Z","3.0.4":"2024-06-27T10:04:21.794Z","3.0.5":"2025-01-10T18:56:37.932Z","3.0.6":"2025-02-08T08:31:32.482Z","3.0.7":"2026-09-15T08:03:35.751Z"},"bugs":"https://github.com/svgdotjs/svg.draggable.js/issues","author":{"name":"Wout Fierens"},"license":"MIT","homepage":"https://github.com/svgdotjs/svg.draggable.js","keywords":["svg.js","draggable","mouse"],"repository":{"url":"git+https://github.com/svgdotjs/svg.draggable.js.git","type":"git"},"description":"An extension for svg.js which allows to drag elements with your mouse","contributors":[{"name":"Wout Fierens"},{"name":"Ulrich-Matthias Schäfer"}],"maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"readme":"# svg.draggable.js\n\nA plugin for the [svgdotjs.github.io](https://svgdotjs.github.io/) library to make elements draggable.\n\nsvg.draggable.js is licensed under the terms of the MIT License.\n\n## Usage\n\nInstall the plugin:\n\n```sh\nnpm install @svgdotjs/svg.js @svgdotjs/svg.draggable.js\n```\n\nInclude this plugin after including the svg.js library in your html document.\n\n```html\n<script src=\"node_modules/@svgdotjs/svg.js/dist/svg.js\"></script>\n<script src=\"node_modules/@svgdotjs/svg.draggable.js/dist/svg.draggable.js\"></script>\n```\n\nA bundle is also attached to every [release](https://github.com/svgdotjs/svg.draggable.js/releases).\n\nOr for esm just require it:\n\n```js\nimport { SVG } from '@svgdotjs/svg.js'\nimport '@svgdotjs/svg.draggable.js'\n```\n\nTo make an element draggable just call `draggable()` on the element\n\n```javascript\nvar draw = SVG().addTo('#canvas').size(400, 400)\nvar rect = draw.rect(100, 100)\n\nrect.draggable()\n```\n\nYes indeed, that's it! Now the `rect` is draggable.\n\n## Events\n\nThe Plugin fires 4 different events\n\n- beforedrag (cancelable)\n- dragstart\n- dragmove (cancelable)\n- dragend\n\nYou can bind/unbind listeners to this events:\n\n```javascript\n// bind\nrect.on('dragstart.namespace', function (event) {\n  // event.detail.event hold the given data explained below\n  // this == rect\n})\n\n// unbind\nrect.off('dragstart.namespace')\n```\n\n### event.detail\n\n`beforedrag`, `dragstart`, `dragmove` and `dragend` gives you the mouse / touch `event` and the `handler` which calculates the drag. The `dragmove` event also gives you the `dx` and `dy` values for your convenience.\nExcept for `beforedrag` the events also give you `detail.box` which holds the initial or new bbox of the element before or after the drag.\n\nYou can use this property to implement custom drag behavior as seen below.\n\nPlease note that the bounding box is not what you would expect for nested svgs because those calculate their bbox based on their content and not their x, y, width and height values. Therefore stuff like constraints needs to be implemented a bit differently.\n\n### Cancelable Events\n\nYou can prevent the default action of `beforedrag` and `dragmove` with a call to `event.preventDefault()` in the callback function.\nThe shape won't be dragged in this case. That is helpfull if you want to implement your own drag handling.\n\n```javascript\nrect.draggable().on('beforedrag', (e) => {\n  e.preventDefault()\n  // no other events are bound\n  // drag was completely prevented\n})\n\nrect.draggable().on('dragmove', (e) => {\n  e.preventDefault()\n  e.detail.handler.move(100, 200)\n  // events are still bound e.g. dragend will fire anyway\n})\n```\n\n### Custom Drag Behavior\n\n#### Constraints\n\n```js\n// Some constraints (x, y, width, height)\nconst constraints = new SVG.Box(100, 100, 400, 400)\n\nrect.on('dragmove.namespace', (e) => {\n  const { handler, box } = e.detail\n  e.preventDefault()\n\n  let { x, y } = box\n\n  // In case your dragged element is a nested element,\n  // you are better off using the rbox() instead of bbox()\n\n  if (x < constraints.x) {\n    x = constraints.x\n  }\n\n  if (y < constraints.y) {\n    y = constraints.y\n  }\n\n  if (box.x2 > constraints.x2) {\n    x = constraints.x2 - box.w\n  }\n\n  if (box.y2 > constraints.y2) {\n    y = constraints.y2 - box.h\n  }\n\n  handler.move(x - (x % 50), y - (y % 50))\n})\n```\n\n#### Snap to grid\n\n```js\nrect.on('dragmove.namespace', (e) => {\n  const { handler, box } = e.detail\n  e.preventDefault()\n\n  handler.move(box.x - (box.x % 50), box.y - (box.y % 50))\n})\n```\n\n## Remove\n\nThe draggable functionality can be removed calling draggable again with false as argument:\n\n```javascript\nrect.draggable(false)\n```\n\n## Restrictions\n\n- If your root-svg is transformed this plugin won't work properly in Firefox. Viewbox however is not affected.\n\n## Dependencies\n\nThis module requires svg.js >= v3.0.10\n\n## Demo\n\n```bash\n$ pnpm demo\n```\n\nStarts a vite dev server with the demo from `demo/`.\n","readmeFilename":""}