Skip to content

Extract IDF legend into a standalone Web Component - #9

Merged
alexandrecuer merged 7 commits into
mainfrom
refactor/idf-legend-component
Oct 31, 2026
Merged

alexandrecuer merged 7 commits into
mainfrom
refactor/idf-legend-component

Conversation

@alexandrecuer

Copy link
Copy Markdown
Contributor

Summary

  • Extract the legend UI from IdfViewer into a new <idf-legend> Web Component.
  • Keep zone visibility and color/model state owned by IdfViewer; expose legend data through getLegendData() and notify changes with legend-data-changed.
  • Add <idf-legend viewer="building"> to _layouts/default.html and load its module.

Validation

  • Reviewed the changes against the current component API.
  • Browser-level interaction and visual testing have not been performed.

Comment thread lib/modules/components/idf-legend.js Resolved
Comment thread lib/modules/components/idf-legend.js Resolved
Comment thread lib/modules/components/idf-legend.js Resolved
Comment thread lib/modules/components/idf-viewer.js Resolved
Comment thread lib/modules/components/idf-viewer.js Resolved
Comment thread lib/modules/components/idf-viewer.js Resolved
Comment thread _layouts/default.html Resolved
@alexandrecuer
alexandrecuer merged commit 5b82fb8 into main Oct 31, 2026
2 checks passed
@alexandrecuer
alexandrecuer deleted the refactor/idf-legend-component branch November 1, 2026 09: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