refactor: extract viewer2d workspace package

This commit is contained in:
2026-07-29 09:03:41 +09:00
parent 95fa6a452b
commit 5e10bb1be4
27 changed files with 1588 additions and 704 deletions
+13 -7
View File
@@ -4,20 +4,26 @@
"version": "0.1.0",
"description": "Standalone sample: compose acadrust-dwg + dxf-parser + Viewer2D (sibling of hmwebviewer)",
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"dev": "vite --port 5173 --strictPort",
"build": "tsc --noEmit && vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:unit": "vitest run tests/viewer2d.contract.test.ts"
},
"dependencies": {
"dxf-parser": "^1.1.2",
"opentype.js": "^2.0.0",
"three": "^0.185.1"
"@hmwebviewer/viewer2d": "workspace:*",
"three": "0.185.1"
},
"devDependencies": {
"@types/three": "^0.185.1",
"typescript": "^5.6.0",
"vite": "^5.4.0"
"@playwright/test": "1.62.0",
"@types/three": "0.185.1",
"typescript": "7.0.2",
"vite": "8.1.5",
"vitest": "4.1.10"
}
}