{"_id":"@svgdotjs/svg.resize.js","_rev":"8-762b44800a752c6926fe2258e1fb0e08","name":"@svgdotjs/svg.resize.js","dist-tags":{"latest":"2.0.7"},"versions":{"2.0.0":{"name":"@svgdotjs/svg.resize.js","version":"2.0.0","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.0","homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"74a6c1597d37c45f8ccfa42d92a13ecc26f70707","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.0.tgz","fileCount":14,"integrity":"sha512-OjrVtCEMzxfT9xV6FeOVjAMtnbmX1hM58BzWAwPGPgzgAQL8TIOjxdq5j2dj0UC+H8dsWO54bJbSVqvzoB08PQ==","signatures":[{"sig":"MEUCIQCjfcsqZXnUA+Z9XPs1PMZ9PAqjzygZeNNO+b6KrdtHjwIgZZ8SlInYpF5aQZfEhxlgzzVoC4kUgI9WSsLgU6roRfk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145161},"main":"dist/svg.resize.umd.js","type":"module","unpkg":"dist/svg.resize.iife.js","module":"src/svg.resize.js","browser":"src/svg.resize.js","engines":{"node":">= 14.18"},"gitHead":"5971f45c9b017e7a4fea0b49feec1f7407618afc","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.0","eslint":"^9.6.0","terser":"^5.31.1","prettier":"^3.3.2","typescript":"^5.2.2","@types/node":"^20.14.7","@vitejs/plugin-vue":"^5.0.5","eslint-plugin-import-x":"^0.5.2"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.0_1719774359162_0.31658398615070205","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@svgdotjs/svg.resize.js","version":"2.0.1","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.1","homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"fafa4c8aadb25f83c0ffadacbcb6d3f0ef87cb42","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.1.tgz","fileCount":14,"integrity":"sha512-hjUbc9kXg5NE4Cc9DvOWSf3l4EPei61cKS99stu0CZp/ptIykxBv0O0GCC16QJNWrk0s052d4fVEZ85N6L8PVQ==","signatures":[{"sig":"MEYCIQCTAi001p8RJgPu2isP0Zp+ch8QgxGqyeG3T8yotvVJNQIhAN/ijAeZ5WMzYxcQkM1tC9eCtt8oNDwQtsLmO33z0mo2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145719},"main":"dist/svg.resize.umd.js","type":"module","unpkg":"dist/svg.resize.iife.js","module":"src/svg.resize.js","browser":"src/svg.resize.js","engines":{"node":">= 14.18"},"gitHead":"86662f3255c088ff31a7a091eab71190db7b7346","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.0","eslint":"^9.6.0","terser":"^5.31.1","prettier":"^3.3.2","typescript":"^5.2.2","@types/node":"^20.14.7","@vitejs/plugin-vue":"^5.0.5","eslint-plugin-import-x":"^0.5.2"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.1_1719834166355_0.1960287515214587","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@svgdotjs/svg.resize.js","version":"2.0.2","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.2","homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"13427f5dd1759719efe86693c49880ae9ff9b213","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.2.tgz","fileCount":14,"integrity":"sha512-dwhKsadWBwN061Ki1v/A+tPIOTPVfovN/SHFBKb+nlUs5vX8OwYj6ImI7CkWquxnyLUyftjoNOYM8f01OjqQXA==","signatures":[{"sig":"MEQCIFRhC2ULugaUroNRE/TKmD2vIBlNqmPpEldRIR4+S1XMAiAdLrLY75NBYVjoxdrUIxEYnKNtMxN28UgV2mFJeTZGIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":144773},"main":"dist/svg.resize.umd.cjs","type":"module","unpkg":"dist/svg.resize.iife.js","module":"dist/svg.resize.js","browser":"dist/svg.resize.js","engines":{"node":">= 14.18"},"exports":{".":{"types":"./svg.resize.js.d.ts","import":"./dist/svg.resize.js","require":"./dist/svg.resize.umd.cjs"}},"gitHead":"ad595f47083fb92814d1a82656eabc57121e244b","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.0","eslint":"^9.6.0","terser":"^5.31.1","prettier":"^3.3.2","typescript":"^5.2.2","@types/node":"^20.14.7","@vitejs/plugin-vue":"^5.0.5","eslint-plugin-import-x":"^0.5.2"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.2_1719839178098_0.7299543909553055","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@svgdotjs/svg.resize.js","version":"2.0.3","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.3","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"b4289e7cc81a6f724bcc12c51fdf016633ebafe8","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.3.tgz","fileCount":14,"integrity":"sha512-TPzo8h3jIycDC5rlZl3oPtluXtM30ygI7/nv8FnWrYp8pBEQ/kHfWJlB29P9FdBSzAwEsI5qgvJVb27yuiFF5g==","signatures":[{"sig":"MEQCID3COkWrkPaKPV3AsWCdxGK3DqGhvwQwhI/waPZcO4CtAiA6yt1ylysJ7k4s2TYrTDmAU9qTNbdCJyH7D1c+NLUL1A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":144416},"main":"dist/svg.resize.umd.cjs","type":"module","unpkg":"dist/svg.resize.iife.js","module":"dist/svg.resize.js","browser":"dist/svg.resize.js","engines":{"node":">= 14.18"},"exports":{".":{"types":"./svg.resize.js.d.ts","import":"./dist/svg.resize.js","require":"./dist/svg.resize.umd.cjs"}},"gitHead":"d4c526711945a6e745b0c176f1ab9bb473c44e31","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.3.4","eslint":"^9.7.0","terser":"^5.31.2","prettier":"^3.3.3","typescript":"^5.5.3","@types/node":"^20.14.10","eslint-plugin-import-x":"^3.0.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.3_1725703113033_0.8060606638480468","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@svgdotjs/svg.resize.js","version":"2.0.4","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.4","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"a23b2d815d453bccb7a5c38ad547153df7cfa6db","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.4.tgz","fileCount":14,"integrity":"sha512-TRzYv0xh/eF7dOsse/asi/Bn+O8vvNRPlVUvYwTje2lKpGvT65ncXuqNWDNnhxJKlp5NcgMxfM5VMKL8c1WNTQ==","signatures":[{"sig":"MEUCIHrQBPYRiW+wiPwtCGsoOveAViCfxObIfZQRRIfZWfaRAiEA/cl3BVvnk94UQ4yAvFghJuOmCuVRQ6lZSGmxlGOVnd8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":146446},"main":"dist/svg.resize.umd.cjs","type":"module","unpkg":"dist/svg.resize.iife.js","module":"dist/svg.resize.js","engines":{"node":">= 14.18"},"exports":{".":{"import":{"types":"./svg.resize.js.d.ts","default":"./dist/svg.resize.js"},"browser":{"types":"./svg.resize.js.d.ts","default":"./dist/svg.resize.js"},"require":{"types":"./svg.resize.js.d.cts","default":"./dist/svg.resize.umd.cjs"}}},"gitHead":"aeeca6ef8c8798f08cb7d9885aa2e03d2957a598","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.3.4","eslint":"^9.7.0","terser":"^5.31.2","prettier":"^3.3.3","typescript":"^5.5.3","@types/node":"^20.14.10","eslint-plugin-import-x":"^3.0.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.4_1726224219392_0.3295328125887558","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@svgdotjs/svg.resize.js","version":"2.0.5","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.5","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":{"url":"https://github.com/svgdotjs/svg.resize.js/issues"},"dist":{"shasum":"732e4cae15d09ad3021adeac63bc9fad0dc7255a","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.5.tgz","fileCount":14,"integrity":"sha512-4heRW4B1QrJeENfi7326lUPYBCevj78FJs8kfeDxn5st0IYPIRXoTtOSYvTzFWgaWWXd3YCDE6ao4fmv91RthA==","signatures":[{"sig":"MEUCIQC41eDtsM5m2enifgklDpFlkvi0sQ33QRZENF77UIs2TwIgYhU2X+tYVXNio7c7LrnyXl8p/hp9G+T2Ij9/XEpAmSg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82459},"main":"dist/svg.resize.umd.cjs","type":"module","unpkg":"dist/svg.resize.iife.js","module":"dist/svg.resize.js","engines":{"node":">= 14.18"},"exports":{".":{"import":{"types":"./svg.resize.js.d.ts","default":"./dist/svg.resize.js"},"browser":{"types":"./svg.resize.js.d.ts","default":"./dist/svg.resize.js"},"require":{"types":"./svg.resize.js.d.cts","default":"./dist/svg.resize.umd.cjs"}}},"gitHead":"540aae9e61fa92802acdafc30a8b502256658899","scripts":{"dev":"vite","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.iife.js  dist/svg.resize.iife.js.map  dist/svg.resize.js  dist/svg.resize.js.map  dist/svg.resize.umd.cjs  dist/svg.resize.umd.cjs.map","build":"tsc && prettier --write . && eslint ./src && vite build","postpublish":"npm run zip","prepublishOnly":"rm -rf ./dist && npm run build"},"typings":"./svg.resize.js.d.ts","_npmUser":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"jsdelivr":"dist/svg.resize.iife.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"_npmVersion":"10.7.0","description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.3.4","eslint":"^9.7.0","terser":"^5.31.2","prettier":"^3.3.3","typescript":"^5.5.3","@types/node":"^20.14.10","eslint-plugin-import-x":"^3.0.1"},"peerDependencies":{"@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.5_1732140982859_0.696528977469395","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"@svgdotjs/svg.resize.js","version":"2.0.6","keywords":["svg.js","resize","mouse"],"author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","_id":"@svgdotjs/svg.resize.js@2.0.6","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"homepage":"https://github.com/svgdotjs/svg.resize.js","bugs":"https://github.com/svgdotjs/svg.resize.js/issues","dist":{"shasum":"3fc516f23097eb12b621aa682172a20ddf41eb66","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.6.tgz","fileCount":8,"integrity":"sha512-R00kDofN69b2RrJyz6ghpOiuFrPc+NCu6XrSubPSpmnTW5KMxMjS8AfFWVyRjjQMxCDOFmyV0TKUSLhCBzde3g==","signatures":[{"sig":"MEUCICY3pgX52O8jmg1UsBmtRpnK6B/5e4ZIdHw4W554mN1eAiEAs35MeWz8OYHVAzoHHMmZ6jzGpJvJYtLt5Y3xdNZcx6g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svgdotjs%2fsvg.resize.js@2.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21052},"main":"dist/svg.resize.js","type":"module","unpkg":"dist/svg.resize.js","module":"dist/svg.resize.mjs","exports":{".":{"import":{"types":"./dist/svg.resize.d.mts","default":"./dist/svg.resize.mjs"},"browser":{"types":"./dist/svg.resize.d.mts","default":"./dist/svg.resize.mjs"},"require":{"types":"./dist/svg.resize.d.ts","default":"./dist/svg.resize.js"}},"./package.json":"./package.json"},"scripts":{"fix":"oxfmt --write . && oxlint -D correctness --fix .","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.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.resize.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:3e95610a-791c-4386-9185-c241d9ac4439"}},"jsdelivr":"dist/svg.resize.js","repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","oxfmt":"^0.67.0","oxlint":"^1.82.0","typescript":"^7.0.2","@svgdotjs/svg.js":"^3.2.8","@svgdotjs/svg.select.js":"^4.0.3"},"peerDependencies":{"@svgdotjs/svg.js":"^3.1.0","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/svg.resize.js_2.0.6_1789459378430_0.4668581072709044","host":"s3://npm-registry-packages-npm-production"}},"2.0.7":{"_id":"@svgdotjs/svg.resize.js@2.0.7","bugs":"https://github.com/svgdotjs/svg.resize.js/issues","dist":{"shasum":"f9c254271a35c18371564b4a782464fc6870f854","tarball":"https://registry.npmjs.org/@svgdotjs/svg.resize.js/-/svg.resize.js-2.0.7.tgz","integrity":"sha512-6zTGBB6WXA2AO+b27U5++smxqN0DCsJD86gQV3ae8dC3E0twBdMcFa1HxBoq/f03F1xWus1ErF9BelhENnw9Lw==","fileCount":8,"unpackedSize":21018,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svgdotjs%2fsvg.resize.js@2.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD3s8BKpz/R9RHA4+mU+dPApPtZUeLVAQ+R5OTsH6g1dwIhAOrQRoCnhk1rPvbSI0GqneEkcIsz4sbh+ZH51pDzy8K6"}]},"main":"dist/svg.resize.js","name":"@svgdotjs/svg.resize.js","type":"module","unpkg":"dist/svg.resize.js","author":{"name":"Ulrich-Matthias Schäfer"},"module":"dist/svg.resize.mjs","exports":{".":{"import":{"types":"./dist/svg.resize.d.mts","default":"./dist/svg.resize.mjs"},"browser":{"types":"./dist/svg.resize.d.mts","default":"./dist/svg.resize.mjs"},"require":{"types":"./dist/svg.resize.d.ts","default":"./dist/svg.resize.js"}},"./package.json":"./package.json"},"license":"MIT","scripts":{"fix":"oxfmt --write . && oxlint -D correctness --fix .","zip":"zip -j dist/svg.resize.js.zip -- LICENSE README.md dist/svg.resize.js","demo":"vite demo","lint":"oxfmt --check . && oxlint -D correctness .","build":"tsc && vite build","demo:build":"vite build demo --outDir ../demo-dist --emptyOutDir","test:package":"node test/browser-bundle.mjs"},"typings":"./dist/svg.resize.d.ts","version":"2.0.7","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3e95610a-791c-4386-9185-c241d9ac4439"},"approver":{"name":"fuzzyma","email":"ulima.ums@googlemail.com"}},"homepage":"https://github.com/svgdotjs/svg.resize.js","jsdelivr":"dist/svg.resize.js","keywords":["svg.js","resize","mouse"],"repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"description":"An extension for svg.js which allows to resize elements which are selected","directories":{},"maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"_nodeVersion":"22.23.2","devDependencies":{"vite":"^8.2.2","oxfmt":"^0.67.0","oxlint":"^1.82.0","typescript":"^7.0.2","@svgdotjs/svg.js":"^3.2.8","@svgdotjs/svg.select.js":"^4.0.3"},"peerDependencies":{"@svgdotjs/svg.js":"^3.1.0","@svgdotjs/svg.select.js":"^4.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svg.resize.js_2.0.7_1790757887926_0.52460555115564"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-30T19:05:59.007Z","modified":"2026-09-30T08:44:48.298Z","2.0.0":"2024-06-30T19:05:59.306Z","2.0.1":"2024-07-01T11:42:46.484Z","2.0.2":"2024-07-01T13:06:18.235Z","2.0.3":"2024-09-07T09:58:33.179Z","2.0.4":"2024-09-13T10:43:39.555Z","2.0.5":"2024-11-20T22:16:23.046Z","2.0.6":"2026-09-15T08:02:58.526Z","2.0.7":"2026-09-30T08:44:48.004Z"},"bugs":"https://github.com/svgdotjs/svg.resize.js/issues","author":{"name":"Ulrich-Matthias Schäfer"},"license":"MIT","homepage":"https://github.com/svgdotjs/svg.resize.js","keywords":["svg.js","resize","mouse"],"repository":{"url":"git+https://github.com/svgdotjs/svg.resize.js.git","type":"git"},"description":"An extension for svg.js which allows to resize elements which are selected","maintainers":[{"name":"fuzzyma","email":"ulima.ums@googlemail.com"},{"name":"wout","email":"wout@mick-wout.com"}],"readme":"# svg.resize.js\n\nAn extension of [svg.js](https://github.com/svgdotjs/svg.js) which allows to resize elements which are selected with [svg.select.js](https://github.com/svgdotjs/svg.select.js)\n\n# Demo\n\nFor a demo see http://svgdotjs.github.io/svg.resize.js/ or run `pnpm demo`,\nwhich starts a vite dev server with the demo from `demo/`.\n\n# Get Started\n\nInstall `svg.js`, `svg.select.js` and `svg.resize.js` using npm:\n\n```bash\nnpm i @svgdotjs/svg.js @svgdotjs/svg.select.js @svgdotjs/svg.resize.js\n```\n\nOr get it from a cnd:\n\n```html\n<link\n  rel=\"stylesheet\"\n  href=\"https://unpkg.com/@svgdotjs/svg.select.js@latest/dist/svg.select.css\"\n/>\n<script src=\"https://unpkg.com/@svgdotjs/svg.js\"></script>\n<script src=\"https://unpkg.com/@svgdotjs/svg.select.js\"></script>\n<script src=\"https://unpkg.com/@svgdotjs/svg.resize.js\"></script>\n```\n\nSelect and resize a rectangle using this simple piece of code:\n\n```ts\nvar canvas = new SVG().addTo('body').size(500, 500)\ncanvas.rect(50, 50).fill('red').select().resize()\n```\n\n# Usage\n\nActivate resizing\n\n```ts\nrect.select().resize()\n```\n\nDeactivate resizing\n\n```ts\nrect.resize(false)\n```\n\nPreserve aspect ratio, resize around center and snap to grid:\n\n```ts\nrect.resize({\n  preserveAspectRatio: true,\n  aroundCenter: true,\n  grid: 10,\n  degree: 0.1\n})\n```\n\n# Options\n\n- `preserveAspectRatio`: Preserve the aspect ratio of the element while resizing\n- `aroundCenter`: Resize around the center of the element\n- `grid`: Snaps the shape to a virtual grid while resizing\n- `degree`: Snaps to an angle when rotating\n\n# Events\n\nWhile resizing, a `resize` event is fired. It contains the following properties (in `event.detail`):\n\n- `box`: The resulting bounding box after the resize operation\n- `angle`: The resulting rotation angle after the resize operation\n- `eventType`: The type of resize operation (the event fired by the select plugin)\n- `event`: The original event\n- `handler`: The resize handler\n\n```ts\nrect.on('resize', (event) => {\n  console.log(event.detail)\n})\n```\n\n# Limiting resize / constraints\n\nThe old `constraint` option was removed in v3. To enforce minimum/maximum\nsizes or keep elements inside a boundary, listen for the `resize` event and\ncall `preventDefault()` to reject the pending resize. The event is dispatched\nwith the proposed `box` before it is applied (see `src/ResizeHandler.js:204-214`),\nso preventing the default leaves the element at its current size.\n\nMax size:\n\n```ts\nrect.on('resize', (e) => {\n  if (e.detail.box.width > 300) e.preventDefault()\n})\n```\n\nMin size:\n\n```ts\nrect.on('resize', (e) => {\n  if (e.detail.box.width < 50 || e.detail.box.height < 50) e.preventDefault()\n})\n```\n\nKeep inside a boundary (e.g. a 500x500 canvas):\n\n```ts\nrect.on('resize', (e) => {\n  const box = e.detail.box\n  if (box.x < 0 || box.y < 0 || box.x2 > 500 || box.y2 > 500) e.preventDefault()\n})\n```\n\n# Contributing\n\n```bash\ngit clone https://github.com/svgdotjs/svg.resize.js.git\ncd svg.resize.js\nnpm install\nnpm run dev\n```\n\n# Migration from svg.js v2\n\n- The option naming changed a bit. Please double check\n- The former events were removed. The resize event now serves the same purpose\n","readmeFilename":""}