Skip to content

feat: opt into LibreDWG DWG parsing and upgrade to v1.6.0 - #11

Merged
mlightcad merged 2 commits into
mainfrom
feat/libredwg-opt-in-v1.6.0
Aug 15, 2026
Merged

mlightcad merged 2 commits into
mainfrom
feat/libredwg-opt-in-v1.6.0

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Upgrade @mlightcad/cad-simple-viewer stack to 1.6.0 / data-model 1.13.0, and rename applyUiTheme → acedApplyUiTheme.
  • Make DWG support an explicit GPL opt-in: depend on @mlightcad/libredwg-converter, register via src/registerLibreDwg.ts before createInstance, and copy LibreDWG worker + wasm into dist/assets/.
  • Bump vite-plugin-static-copy to v4 (rename: { stripBase: true }) and document the new worker/wasm deployment pattern in README.

Test plan

  • pnpm install && pnpm build — confirm 4 static assets copied (mtext worker, libredwg worker, wasm, viewer-runtime)
  • pnpm dev — open DXF on both index.html and no-plugin.html
  • Open a DWG and confirm LibreDWG worker + wasm load (no missing .wasm errors)
  • With-plugins page: toolbar / Layer Manager / export still work
  • Spot-check README snippets against vite.config.ts and registerLibreDwg.ts

Made with Cursor

mlight lee and others added 2 commits August 15, 2026 20:37
DWG is GPL opt-in via registerLibreDwg; copy worker+wasm from libredwg-converter and align with cad-simple-viewer 1.6.0 APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep converter out of the app entry via dynamic import (+ preload), and align README with vite-plugin-static-copy v4 engines.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mlightcad
mlightcad merged commit d4fa547 into main Aug 15, 2026
2 checks passed
@mlightcad
mlightcad deleted the feat/libredwg-opt-in-v1.6.0 branch August 15, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant