Skip to content

v1.0.5

Choose a tag to compare

@pralambomanarivo pralambomanarivo released this 04 Feb 16:25
· 26 commits to main since this release

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 successfully in 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-container class 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

📁 New Files

  • src/styles/_ychart-lib.scss - Scoped library styles
  • src/styles/_demo.scss - Demo page only styles
  • examples/multiple-roots/orgchart.yaml - Multiple roots example data

Full Changelog: v1.0.3...v1.0.5