v1.0.5
What's Changed since v1.0.3
✨ Features
-
Multiple Root Nodes Support: YChart now fully supports multiple root nodes (e.g., holding company with subsidiaries). The chart renderer already handled this via virtual root, but the editor linter was incorrectly flagging them as errors. Added a new 'Multiple Roots (Holding Company)' example demonstrating three independent subsidiaries.
-
Version Console Log: Displays
YChart Editor v1.0.5 initialized successfullyin the browser console when the editor loads, with styled branding.
🐛 Bug Fixes
- POI (Person of Interest) Improvements for Multi-Root Scenarios:
- Reset button now clears POI entirely to show all roots (instead of selecting first root)
- Root nodes in multi-root scenarios now show 'expand siblings' button to reveal other root hierarchies
- Root node siblings are properly counted for the expand button
- All roots are visible by default on page load (no auto-selection of first root as POI)
♻️ Refactoring
- CSS Scoping: All YChart library styles are now scoped under
.ychart-containerclass to prevent interference with host page styles when integrating in production. This allows YChart to be embedded in existing pages without affecting or being affected by the host page's CSS.- Created modular SCSS architecture with
_ychart-lib.scss(scoped library styles) and_demo.scss(demo-only styles) - CSS variables remain global (
--yc-*prefix) but all selectors are scoped
- Created modular SCSS architecture with
📁 New Files
src/styles/_ychart-lib.scss- Scoped library stylessrc/styles/_demo.scss- Demo page only stylesexamples/multiple-roots/orgchart.yaml- Multiple roots example data
Full Changelog: v1.0.3...v1.0.5