expressive-charts 0.1.0 → 0.3.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.
- package/CHANGELOG.md +47 -0
- package/README.md +14 -13
- package/dist/{chunk-N5IF2RO2.js → chunk-7A7LXXT4.js} +6 -2
- package/dist/chunk-7A7LXXT4.js.map +1 -0
- package/dist/{chunk-ZIGBM4NY.js → chunk-CJUQHEX6.js} +92 -28
- package/dist/chunk-CJUQHEX6.js.map +1 -0
- package/dist/{chunk-CVXP2L2J.js → chunk-N2BLUETM.js} +17 -5
- package/dist/chunk-N2BLUETM.js.map +1 -0
- package/dist/{drawing-Du6DAgrW.d.cts → drawing-CdTgixMY.d.cts} +20 -2
- package/dist/{drawing-Du6DAgrW.d.ts → drawing-CdTgixMY.d.ts} +20 -2
- package/dist/{effect-dPmXiWlL.d.cts → effect-Bu3MHHeg.d.ts} +4 -2
- package/dist/{effect-OcyvtfZi.d.ts → effect-D4vmdYP4.d.cts} +4 -2
- package/dist/expressive-charts.css +11 -6
- package/dist/expressive-charts.css.d.cts +2 -0
- package/dist/expressive-charts.css.d.ts +2 -0
- package/dist/expressive-charts.global.js +29 -24
- package/dist/expressive-charts.global.js.map +1 -1
- package/dist/icons/sport.cjs +5 -1
- package/dist/icons/sport.cjs.map +1 -1
- package/dist/icons/sport.js +2 -2
- package/dist/index.cjs +1610 -669
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +143 -18
- package/dist/index.d.ts +143 -18
- package/dist/index.js +1448 -591
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +93 -42
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +6 -8
- package/dist/testing.js.map +1 -1
- package/package.json +16 -4
- package/dist/chunk-CVXP2L2J.js.map +0 -1
- package/dist/chunk-N5IF2RO2.js.map +0 -1
- package/dist/chunk-ZIGBM4NY.js.map +0 -1
|
@@ -89,27 +89,29 @@
|
|
|
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; }
|
|
95
96
|
:where(.ec-chart .ec-focus-ring) { fill: none; stroke: var(--ec-focus, #2a78d6); }
|
|
96
97
|
:where(.ec-chart .ec-focus-gap) { fill: var(--ec-surface, #fcfcfb); stroke: var(--ec-surface, #fcfcfb); }
|
|
97
|
-
:where(.ec-chart .ec-
|
|
98
|
-
:where(.ec-chart .ec-segment) { fill: var(--ec-mark); transition: fill var(--ec-hover-duration, 100ms) ease-out; }
|
|
98
|
+
:where(.ec-chart .ec-body > *) { transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
|
|
99
|
+
:where(.ec-chart .ec-segment) { fill: var(--ec-mark); transition: fill var(--ec-hover-duration, 100ms) ease-out, opacity var(--ec-hover-duration, 100ms) ease-out; }
|
|
99
100
|
:where(.ec-chart .ec-hot .ec-segment) { fill: var(--ec-mark-strong); }
|
|
100
|
-
:where(.ec-chart .ec-stroke) { fill: none; stroke: var(--ec-mark); stroke-linejoin: round; transition: stroke var(--ec-hover-duration, 100ms) ease-out; }
|
|
101
|
+
:where(.ec-chart .ec-stroke) { fill: none; stroke: var(--ec-mark); stroke-linejoin: round; transition: stroke var(--ec-hover-duration, 100ms) ease-out, opacity var(--ec-hover-duration, 100ms) ease-out; }
|
|
101
102
|
:where(.ec-chart .ec-hot .ec-stroke) { stroke: var(--ec-mark-strong); }
|
|
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; }
|
|
108
|
-
:where(.ec-chart .ec-slice) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; stroke-linejoin: round; transition: fill var(--ec-hover-duration, 100ms) ease-out; }
|
|
110
|
+
:where(.ec-chart .ec-slice) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; stroke-linejoin: round; transition: fill var(--ec-hover-duration, 100ms) ease-out, opacity var(--ec-hover-duration, 100ms) ease-out; }
|
|
109
111
|
:where(.ec-chart .ec-hot .ec-slice) { fill: var(--ec-mark-strong); }
|
|
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
|
-
:where(.ec-chart.ec-hovering .ec-mark:not(.ec-hot)) { opacity: var(--ec-dim-opacity, 0.3); }
|
|
114
|
+
:where(.ec-chart.ec-hovering .ec-mark:not(.ec-hot) > .ec-body > *) { opacity: var(--ec-dim-opacity, 0.3); }
|
|
113
115
|
:where(.ec-chart.ec-morphing .ec-marks) { visibility: hidden; }
|
|
114
116
|
:where(.ec-switch) { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
|
|
115
117
|
:where(.ec-switch-view) { grid-area: 1 / 1; min-width: 0; }
|
|
@@ -136,7 +138,10 @@
|
|
|
136
138
|
: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
139
|
:where(.ec-tooltip-layer) { position: relative; height: 0; }
|
|
138
140
|
: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; }
|
|
141
|
+
:where(.ec-tooltip.ec-tooltip-shown) { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
|
|
142
|
+
:where(.ec-tooltip-bridge) { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
|
|
143
|
+
:where(.ec-tooltip-shown + .ec-tooltip-bridge) { pointer-events: auto; }
|
|
144
|
+
:where(.ec-tooltip-through > .ec-tooltip, .ec-tooltip-through > .ec-tooltip-bridge) { pointer-events: none; }
|
|
140
145
|
:where(.ec-tooltip-title) { font-weight: 600; }
|
|
141
146
|
: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
147
|
:where(.ec-legend-item) { display: inline-flex; align-items: center; gap: 6px; }
|