{"_id":"@cadview/vue","_rev":"5-fe86a03e78b73ae592c3d6d1dba50858","name":"@cadview/vue","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@cadview/vue","version":"0.1.0","keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"author":{"name":"Wisnu Wicaksono"},"license":"MIT","_id":"@cadview/vue@0.1.0","maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"dist":{"shasum":"043a7b55c547ef0043fb95b1b4ad41e14850e16f","tarball":"https://registry.npmjs.org/@cadview/vue/-/vue-0.1.0.tgz","fileCount":9,"integrity":"sha512-qLzST6Ja1keYk4r/+3+T+wo3yMB9IJAZjOnzBnUiMXONk5unGySwtVFR8ZO8CR4A9Iw6jxPwneCCOzw/a9VzOQ==","signatures":[{"sig":"MEUCIQDDNEqoMUfvnn1D1qbY/5wbrmu5KQTMUP+qFRuBPBeNkwIgagEce5H4Nko6sWpWWf4GGLkIw5dZmBk906ttZKxzl70=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40960},"main":"./dist/index.cjs","type":"module","_from":"file:cadview-vue-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"vue-tsc --noEmit"},"_npmUser":{"name":"wiscaksono","email":"wwicaksono96@gmail.com"},"_resolved":"/private/var/folders/f5/xw5sr47j5219d25575_d19lm0000gn/T/4be4ed702327c2da032dcecbcd7c01c5/cadview-vue-0.1.0.tgz","_integrity":"sha512-qLzST6Ja1keYk4r/+3+T+wo3yMB9IJAZjOnzBnUiMXONk5unGySwtVFR8ZO8CR4A9Iw6jxPwneCCOzw/a9VzOQ==","repository":{"url":"git+https://github.com/wiscaksono/cadview.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.6.1","description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.0.0","vue-tsc":"^2.0.0","typescript":"^5.7.0","@cadview/core":"0.1.0"},"peerDependencies":{"vue":"^3.5.0","@cadview/core":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.1.0_1771486410881_0.7226326965373253","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@cadview/vue","version":"0.2.0","keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"author":{"name":"Wisnu Wicaksono"},"license":"MIT","_id":"@cadview/vue@0.2.0","maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"dist":{"shasum":"72f65072ff894dd6545772bd296313a6cb7eaf71","tarball":"https://registry.npmjs.org/@cadview/vue/-/vue-0.2.0.tgz","fileCount":9,"integrity":"sha512-PiaSYxxJNiDEAZs5GAS52KKM40RKq96ulHvGmRtntbsbSzNB5PjJNocboMwJTO3wNRvu0u9VHoEWpdfpEnx1SA==","signatures":[{"sig":"MEUCIBNUzo4Jh53gU8T9RTK44Emn5wlWYXu5TY0lR2TX8oa8AiEApXE8A/X5uUZ7SpTVanm638DnQF81ErqTxyxlJcI5oe0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45763},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"b81f32d35423fcc3255588c27e72ac577bf05fcf","scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"vue-tsc --noEmit"},"_npmUser":{"name":"wiscaksono","email":"wwicaksono96@gmail.com"},"repository":{"url":"git+https://github.com/wiscaksono/cadview.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.6.1","description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.0.0","vue-tsc":"^2.0.0","typescript":"^5.7.0","@cadview/core":"workspace:*"},"peerDependencies":{"vue":"^3.5.0","@cadview/core":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.2.0_1771508780747_0.7684048364108411","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@cadview/vue","version":"0.3.0","keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"author":{"name":"Wisnu Wicaksono"},"license":"MIT","_id":"@cadview/vue@0.3.0","maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"dist":{"shasum":"ee1ab760ed52f0e9aaa404ed47290ee2054ce1cb","tarball":"https://registry.npmjs.org/@cadview/vue/-/vue-0.3.0.tgz","fileCount":9,"integrity":"sha512-KvXgKk8rCEBiuPE2hVWT3z8t2QAicYxuPo6mJU3VmNcoWWzDiSguuzzYyjkv04y4/4jp2LnharYV3Oj5X+BFJA==","signatures":[{"sig":"MEQCIDAApT3nluxo7klH1zaU0VXZ8CLXDvaPHJeRJNE4Da47AiANdo/zwysyD4+rA8EnKf6yzduEthe72fR6LaEpmm6feg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48737},"main":"./dist/index.cjs","type":"module","_from":"file:cadview-vue-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"vue-tsc --noEmit"},"_npmUser":{"name":"wiscaksono","email":"wwicaksono96@gmail.com"},"_resolved":"/private/var/folders/f5/xw5sr47j5219d25575_d19lm0000gn/T/43ece3acc77807333559dd109c4bcafb/cadview-vue-0.3.0.tgz","_integrity":"sha512-KvXgKk8rCEBiuPE2hVWT3z8t2QAicYxuPo6mJU3VmNcoWWzDiSguuzzYyjkv04y4/4jp2LnharYV3Oj5X+BFJA==","repository":{"url":"git+https://github.com/wiscaksono/cadview.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.6.1","description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","directories":{},"sideEffects":false,"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.0.0","vue-tsc":"^2.0.0","typescript":"^5.7.0","@cadview/core":"0.3.0"},"peerDependencies":{"vue":"^3.5.0","@cadview/core":"0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.3.0_1771522993085_0.5120843941142803","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@cadview/vue","version":"0.4.0","keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"author":{"name":"Wisnu Wicaksono"},"license":"MIT","_id":"@cadview/vue@0.4.0","maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"dist":{"shasum":"57da0af36ab441407dc6b666d603fc3e794486d0","tarball":"https://registry.npmjs.org/@cadview/vue/-/vue-0.4.0.tgz","fileCount":9,"integrity":"sha512-sIs/i97n6/o0OMjC7gYlrYH0SCUDXXMFGq0iIyoGNxTsi8RfcG5BuppwO6Ew1ksQf2eR5Caet3QXBvSd3Fvnug==","signatures":[{"sig":"MEQCIGCEG/+yJPs2Kpc3NRUrZV/XIBH2cAngUTI1QNz9kljpAiBbLzQgn+LYKM6VIF6PdGuC8ksf58dMI3LLszWK49xteg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48702},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"2c1148f28d2f0cf2abfe3907a8274f5f834fb053","scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"vue-tsc --noEmit"},"_npmUser":{"name":"wiscaksono","email":"wwicaksono96@gmail.com"},"repository":{"url":"git+https://github.com/wiscaksono/cadview.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.9.0","description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","directories":{},"sideEffects":false,"_nodeVersion":"25.6.1","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.0.0","vue-tsc":"^2.0.0","typescript":"^5.7.0","@cadview/core":"workspace:*"},"peerDependencies":{"vue":"^3.5.0","@cadview/core":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.4.0_1771561739528_0.41646863590858874","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@cadview/vue","version":"0.5.0","type":"module","license":"MIT","description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","author":{"name":"Wisnu Wicaksono"},"keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"repository":{"type":"git","url":"git+https://github.com/wiscaksono/cadview.git","directory":"packages/vue"},"homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"engines":{"node":">=18"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"peerDependencies":{"vue":"^3.5.0","@cadview/core":"0.5.0"},"devDependencies":{"vue":"^3.5.0","vue-tsc":"^2.0.0","tsup":"^8.0.0","typescript":"^5.7.0","@cadview/core":"0.5.0"},"sideEffects":false,"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"vue-tsc --noEmit"},"_id":"@cadview/vue@0.5.0","_integrity":"sha512-NIEso1wu2AWlsXDUI6JouCfGIEdUbYhZeKhMJUZhRsZoIqYGP/8/05SGpA1RUJ3uid1ATD6UHiVW09VRzKZ2Lw==","_resolved":"/private/var/folders/f5/xw5sr47j5219d25575_d19lm0000gn/T/1201e0aef2644640901b3c7d90540869/cadview-vue-0.5.0.tgz","_from":"file:cadview-vue-0.5.0.tgz","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-NIEso1wu2AWlsXDUI6JouCfGIEdUbYhZeKhMJUZhRsZoIqYGP/8/05SGpA1RUJ3uid1ATD6UHiVW09VRzKZ2Lw==","shasum":"1525396e0bcaf14fe3c6028738c02ca8e46ee25d","tarball":"https://registry.npmjs.org/@cadview/vue/-/vue-0.5.0.tgz","fileCount":9,"unpackedSize":49491,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC0eczebEKeBxdD20S1vodf4RGZJMO9S09SQQPqh2qjygIhANgmz9BNb1xsrexwEwcP+UHr5SnabFRDvVZZfaEntCT9"}]},"_npmUser":{"name":"wiscaksono","email":"wwicaksono96@gmail.com"},"directories":{},"maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue_0.5.0_1771563967526_0.10911374811441577"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-19T07:33:30.767Z","modified":"2026-02-20T05:06:07.818Z","0.1.0":"2026-02-19T07:33:31.018Z","0.2.0":"2026-02-19T13:46:20.899Z","0.3.0":"2026-02-19T17:43:13.256Z","0.4.0":"2026-02-20T04:28:59.664Z","0.5.0":"2026-02-20T05:06:07.661Z"},"bugs":{"url":"https://github.com/wiscaksono/cadview/issues"},"author":{"name":"Wisnu Wicaksono"},"license":"MIT","homepage":"https://github.com/wiscaksono/cadview/tree/main/packages/vue#readme","keywords":["cad","dxf","viewer","vue","vue3","component","canvas"],"repository":{"type":"git","url":"git+https://github.com/wiscaksono/cadview.git","directory":"packages/vue"},"description":"Vue 3 wrapper for @cadview/core — CAD/DXF file viewer component","maintainers":[{"name":"wiscaksono","email":"wwicaksono96@gmail.com"}],"readme":"# @cadview/vue\n\nVue 3 wrapper for `@cadview/core` — a CAD/DXF file viewer.\n\n## Installation\n\n```bash\nnpm install @cadview/core @cadview/vue\n```\n\n## Usage\n\n```vue\n<template>\n  <input type=\"file\" accept=\".dxf\" @change=\"onFileChange\" />\n  <CadViewer\n    :file=\"file\"\n    theme=\"dark\"\n    tool=\"pan\"\n    @select=\"onSelect\"\n    @measure=\"onMeasure\"\n  />\n</template>\n\n<script setup>\nimport { ref } from 'vue';\nimport { CadViewer } from '@cadview/vue';\n\nconst file = ref(null);\n\nfunction onFileChange(e) {\n  file.value = e.target.files?.[0] ?? null;\n}\n\nfunction onSelect(e) {\n  console.log('Selected:', e.entity.type);\n}\n\nfunction onMeasure(e) {\n  console.log('Distance:', e.distance);\n}\n</script>\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `file` | `File \\| null` | — | DXF file to load |\n| `theme` | `'dark' \\| 'light'` | `'dark'` | Color theme |\n| `tool` | `'pan' \\| 'select' \\| 'measure'` | `'pan'` | Active tool |\n| `options` | `CadViewerOptions` | — | Additional viewer options |\n\n## Events\n\n| Event | Payload | Description |\n|-------|---------|-------------|\n| `select` | `SelectEvent` | Entity selected |\n| `measure` | `MeasureEvent` | Measurement completed |\n| `viewchange` | `ViewTransform` | View panned/zoomed |\n| `layersloaded` | `DxfLayer[]` | Layers loaded from DXF |\n\n## Composable\n\n```ts\nimport { useCadViewer } from '@cadview/vue';\n\nconst { canvasRef, viewer } = useCadViewer({ theme: 'dark' });\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}