DECK Frontend v4.6 - EventBus decoupling
Added Events module for inter-component communication:
- Events.on(event, handler) - subscribe
- Events.off(event, handler) - unsubscribe
- Events.emit(event, data) - publish
Decoupled:
- GroupsBar → Events.emit('render') instead of App.renderView()
- LibrariesPanel → Events.emit('render')
- GraphView sidebar → Events.emit('render')
- GraphView node click → Events.emit('detail:show', mrf)
App subscribes to events in init():
- Events.on('render', () => this.renderView())
- Events.on('detail:show', (mrf) => DetailPanel.show(mrf))
Now modules don't know about each other - changes are isolated.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1622
deck-frontend/deck-v4.6.html
Normal file
1622
deck-frontend/deck-v4.6.html
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user