Commit graph

4 commits

Author SHA1 Message Date
waaraawa
482b458370 feat(core): add automatic color assignment for fields
- Add autoColor option (default: true)
    - true: Auto-assign colors to fields without explicit colors
    - false: Use gray for fields without explicit colors
  - Auto color sequence: blue, cyan, yellow, green, orange, purple, mint, pink
  - Padding/reserved fields always use gray
  - Explicit colors always take precedence

  Examples & Documentation:
  - Add 4 example files (basic, manual, mixed, interactive guide)
  - Update examples/README.md with Auto Color section
  - Add Color Options explanation

  Tests:
  - Add 8 new tests (5 layoutEngine, 3 parser)
  - Update existing test for autoColor: false
2025-10-22 22:24:24 +09:00
waaraawa
cbba30bb72 feat(core): improve legendColumns with row-major order
- Change legend layout from column-major to row-major order
  - Fields now fill left-to-right, then top-to-bottom
  - More intuitive for users (e.g., 4 fields + 3 cols = 3-1 layout)
  - Fix bottom position width calculation for multi-column legends
  - totalWidth now accounts for legend width (200px per column)
  - Add tests for 3-column layout with 6 fields
2025-10-14 13:16:36 +09:00
waaraawa
4d5cd4e289 feat(core): add legend position and footer control options
- Add legendPosition option (right, left, bottom, none) to control legend placement
  - Add showFooter option to show/hide footer info
  - Support both config (YAML) and render options for flexibility
  - Fix legend overlapping issue when positioned at bottom
  - Maintain backward compatibility with showLegend option
2025-10-14 11:19:33 +09:00
waaraawa
43ae040047 feat(core): add bitfield grid visualization
- Add uniformRowHeight option to RenderOptions
  - Render bit grid (8 vertical lines) inside bitfield cells
  - Show bit numbers (7-0, MSB first) below byte numbers
  - Increase row height to 45px for rows with bitfields
  - Increase default cellWidth to 40px for readability
  - Add 6 new tests for bitfield visualization
2025-10-13 18:54:15 +09:00