SUMMARY: Fixed interactive diagram click handlers not working. The SVG was loaded via <object> tag, which creates an isolated document that requires special access via contentDocument. ISSUE: - Clicks on service nodes had no effect - JavaScript was looking for SVG in main document - SVG loaded via <object> creates separate document context - document.getElementById() couldn't access elements inside object FIX: 1. Updated setup() to access object.contentDocument 2. Wait for object load event before initializing 3. Store SVG reference (this.svg) for later use 4. Updated all methods to use this.svg instead of document.getElementById() Methods updated: - setup(): Access SVG via objectElement.contentDocument - highlightService(): Use this.svg reference - unhighlightService(): Use this.svg reference - showServiceDetails(): Use this.svg reference - closePanel(): Use this.svg reference IMPACT: Interactive diagram now fully functional: ✓ Click any service node → detail panel appears ✓ Hover → connection lines highlight ✓ Close button → panel closes with animation ✓ Keyboard navigation works (Tab, Enter, Space) 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| code-copy-button.js | ||
| coming-soon-overlay.js | ||
| currency-selector.js | ||
| document-cards.js | ||
| document-viewer.js | ||
| footer.js | ||
| interactive-diagram.js | ||
| language-selector.js | ||
| navbar.js | ||
| toc.js | ||