expressive-charts 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +69 -1
  2. package/README.md +10 -10
  3. package/dist/define-DeZLs1h7.js +95 -0
  4. package/dist/define-DeZLs1h7.js.map +1 -0
  5. package/dist/drawing-Dz_IvJPB.d.cts +208 -0
  6. package/dist/drawing-Dz_IvJPB.d.ts +208 -0
  7. package/dist/effect-CdH5449m.d.ts +232 -0
  8. package/dist/effect-uYC8Vs6_.d.cts +232 -0
  9. package/dist/expressive-charts.css +8 -1
  10. package/dist/expressive-charts.css.d.cts +1 -0
  11. package/dist/expressive-charts.css.d.ts +1 -0
  12. package/dist/expressive-charts.global.js +50 -47
  13. package/dist/expressive-charts.global.js.map +1 -1
  14. package/dist/icons/sport.cjs +211 -152
  15. package/dist/icons/sport.cjs.map +1 -1
  16. package/dist/icons/sport.d.cts +5 -7
  17. package/dist/icons/sport.d.ts +5 -7
  18. package/dist/icons/sport.js +122 -71
  19. package/dist/icons/sport.js.map +1 -1
  20. package/dist/index.cjs +12647 -9513
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +929 -859
  23. package/dist/index.d.ts +929 -859
  24. package/dist/index.js +10452 -7822
  25. package/dist/index.js.map +1 -1
  26. package/dist/path-data-DnEckjY8.js +123 -0
  27. package/dist/path-data-DnEckjY8.js.map +1 -0
  28. package/dist/testing.cjs +2034 -1222
  29. package/dist/testing.cjs.map +1 -1
  30. package/dist/testing.d.cts +137 -141
  31. package/dist/testing.d.ts +137 -141
  32. package/dist/testing.js +696 -501
  33. package/dist/testing.js.map +1 -1
  34. package/dist/transition-DSRt2DH3.js +2053 -0
  35. package/dist/transition-DSRt2DH3.js.map +1 -0
  36. package/package.json +18 -6
  37. package/dist/chunk-CVXP2L2J.js +0 -1182
  38. package/dist/chunk-CVXP2L2J.js.map +0 -1
  39. package/dist/chunk-N5IF2RO2.js +0 -66
  40. package/dist/chunk-N5IF2RO2.js.map +0 -1
  41. package/dist/chunk-V5IUTXRW.js +0 -571
  42. package/dist/chunk-V5IUTXRW.js.map +0 -1
  43. package/dist/drawing-DWZIXIeR.d.cts +0 -194
  44. package/dist/drawing-DWZIXIeR.d.ts +0 -194
  45. package/dist/effect-CZUckY0l.d.ts +0 -245
  46. package/dist/effect-CcGdU41j.d.cts +0 -245
@@ -89,6 +89,7 @@
89
89
  :where(.ec-chart .ec-tick) { fill: var(--ec-text-muted, #75736d); font-size: 11px; }
90
90
  :where(.ec-chart .ec-label) { fill: var(--ec-text, #0b0b0b); font-size: 12.5px; }
91
91
  :where(.ec-chart .ec-value, .ec-chart .ec-text) { fill: var(--ec-text, #0b0b0b); font-size: 12.5px; font-weight: 600; }
92
+ :where(.ec-overlay .ec-text) { fill: var(--ec-text, #0b0b0b); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
92
93
  :where(.ec-chart .ec-hit) { fill: transparent; }
93
94
  :where(.ec-chart .ec-mark:focus) { outline: none; }
94
95
  :where(.ec-chart .ec-focus) { pointer-events: none; }
@@ -102,6 +103,7 @@
102
103
  :where(.ec-chart .ec-end) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; }
103
104
  :where(.ec-chart .ec-dot) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; opacity: 0; transition: opacity var(--ec-hover-duration, 100ms) ease-out, fill var(--ec-hover-duration, 100ms) ease-out; }
104
105
  :where(.ec-chart .ec-hot .ec-dot) { fill: var(--ec-mark-strong); opacity: 1; }
106
+ :where(.ec-chart .ec-alone .ec-dot) { opacity: 1; }
105
107
  :where(.ec-chart .ec-crosshair) { stroke: var(--ec-axis, #c3c2b7); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
106
108
  :where(.ec-chart .ec-column:focus) { outline: none; }
107
109
  :where(.ec-chart .ec-lines, .ec-chart .ec-points) { pointer-events: none; }
@@ -110,6 +112,8 @@
110
112
  :where(.ec-chart .ec-center-value) { fill: var(--ec-text, #0b0b0b); font-size: 26px; font-weight: 600; }
111
113
  :where(.ec-chart .ec-center-label) { fill: var(--ec-text-muted, #75736d); font-size: 12.5px; }
112
114
  :where(.ec-chart.ec-hovering .ec-mark:not(.ec-hot) > .ec-body > *) { opacity: var(--ec-dim-opacity, 0.3); }
115
+ :where(.ec-hovering .ec-run:not(.ec-hot) > .ec-follow) { opacity: var(--ec-dim-opacity, 0.3); }
116
+ :where(.ec-follow) { transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
113
117
  :where(.ec-chart.ec-morphing .ec-marks) { visibility: hidden; }
114
118
  :where(.ec-switch) { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
115
119
  :where(.ec-switch-view) { grid-area: 1 / 1; min-width: 0; }
@@ -136,7 +140,10 @@
136
140
  :where(.ec-attached) { transition: opacity var(--ec-hover-duration, 100ms) ease-out, fill var(--ec-hover-duration, 100ms) ease-out, stroke var(--ec-hover-duration, 100ms) ease-out; }
137
141
  :where(.ec-tooltip-layer) { position: relative; height: 0; }
138
142
  :where(.ec-tooltip) { position: absolute; left: 0; top: 0; z-index: 3; box-sizing: border-box; width: max-content; max-width: 24em; padding: 8px 10px; border: 1px solid var(--ec-ring, color-mix(in srgb, currentColor 12%, transparent)); border-radius: 8px; background: var(--ec-surface, #fcfcfb); color: var(--ec-text, #0b0b0b); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); font-size: 13px; line-height: 1.35; white-space: pre-line; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity var(--ec-hover-duration, 100ms) ease-out, visibility 0s linear var(--ec-hover-duration, 100ms); }
139
- :where(.ec-tooltip.ec-tooltip-shown) { opacity: 1; visibility: visible; transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
143
+ :where(.ec-tooltip.ec-tooltip-shown) { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
144
+ :where(.ec-tooltip-bridge) { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
145
+ :where(.ec-tooltip-shown + .ec-tooltip-bridge) { pointer-events: auto; }
146
+ :where(.ec-tooltip-through > .ec-tooltip, .ec-tooltip-through > .ec-tooltip-bridge) { pointer-events: none; }
140
147
  :where(.ec-tooltip-title) { font-weight: 600; }
141
148
  :where(.ec-legend) { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; color: var(--ec-text, #0b0b0b); }
142
149
  :where(.ec-legend-item) { display: inline-flex; align-items: center; gap: 6px; }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1 @@
1
+ export {}