Skip to content

feat: upgrade to v1.5.3 with lazy export plugins - #7

Merged
mlightcad merged 2 commits into
mainfrom
feat/upgrade
Jun 4, 2026
Merged

mlightcad merged 2 commits into
mainfrom
feat/upgrade

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Upgrade to @mlightcad/cad-simple-viewer v1.5.3 and register lazy HTML, PDF, and SVG export plugins from @mlightcad/cad-html-plugin, @mlightcad/cad-pdf-plugin, and @mlightcad/cad-svg-plugin.
  • Add export toolbar (HTML / PDF / SVG) after a DXF/DWG file is opened successfully; hide export buttons on the home screen.
  • Hide Open and New controls while a file is loading; restore them if open fails.
  • Copy viewer-runtime.iife.js from cad-html-plugin for offline HTML export.
  • Rewrite README with plugin integration docs and switch the build script to tsc.

Test plan

  • pnpm install && pnpm build succeeds
  • pnpm dev — home page shows only Open and New
  • Open a .dxf or .dwg — Open/New hide during load; export buttons appear after success
  • Export HTML, PDF, and SVG (first run may load plugin chunks)
  • New drawing still works; export buttons stay hidden until a file is opened
  • Failed file open restores Open and New on the home screen

mlightcad and others added 2 commits June 3, 2026 23:26
Register HTML, PDF, and SVG export via official plugin packages with lazy loading. Add export controls after file open, hide Open/New while loading, and update README and dependencies for the v1.5.3 plugin model.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mlightcad
mlightcad merged commit 258b2cd into main Jun 4, 2026
2 checks passed
@mlightcad mlightcad self-assigned this Jun 4, 2026
@mlightcad mlightcad added the enhancement New feature or request label Jun 4, 2026
@mlightcad
mlightcad deleted the feat/upgrade branch June 4, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant