Skip to content

feat: layer-aware entity display and full geometry HTML export#346

Merged
mlightcad merged 2 commits into
mainfrom
feat/layer-aware-entity-display-and-html-export
Jun 12, 2026
Merged

feat: layer-aware entity display and full geometry HTML export#346
mlightcad merged 2 commits into
mainfrom
feat/layer-aware-entity-display-and-html-export

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Add AcTrEntityDisplayController to skip entity conversion on off/frozen layers during interactive viewing, with lazy conversion when layers become visible again.
  • Add ensureEntitiesConvertedForExport() and prepareAcTrView2dForHtmlExport() so HTML export includes full geometry (including off-layer entities) for the exported layer panel.
  • Add alwaysBatchDrawPolicy and alwaysUnbatchDrawPolicy helpers in three-renderer, with unit tests for the new display and export paths.

Test plan

  • Open a drawing with entities on off/frozen layers; verify they are not converted until the layer is turned on.
  • Export to HTML and confirm off-layer geometry appears and can be toggled via the layer panel.
  • Run cad-html-exporter-cli export path and verify snapshot completeness.
  • Run unit tests: AcTrEntityDisplayController.spec.ts, AcApHtmlConvertor.spec.ts, AcTrBatchDrawPolicy.spec.ts.

…ry in HTML export

Layer visibility now gates entity conversion during viewing for performance, with lazy conversion when layers turn on and a dedicated export path that materializes off-layer entities for HTML snapshots.
Co-authored-by: Cursor <cursoragent@cursor.com>
@mlightcad mlightcad self-assigned this Jun 11, 2026
@mlightcad mlightcad added the enhancement New feature or request label Jun 11, 2026
@mlightcad mlightcad merged commit abf7385 into main Jun 12, 2026
2 checks passed
@mlightcad mlightcad deleted the feat/layer-aware-entity-display-and-html-export branch June 12, 2026 00:07
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