layerchart 0.77.0 → 0.78.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.
@@ -241,6 +241,7 @@
241
241
  padding,
242
242
  tooltip,
243
243
  series,
244
+ visibleSeries,
244
245
  getAreaProps,
245
246
  }}
246
247
 
@@ -307,6 +307,7 @@
307
307
  padding,
308
308
  tooltip,
309
309
  series,
310
+ visibleSeries,
310
311
  getBarsProps,
311
312
  }}
312
313
  <slot {...slotProps}>
@@ -183,6 +183,7 @@
183
183
  padding,
184
184
  tooltip,
185
185
  series,
186
+ visibleSeries,
186
187
  getSplineProps,
187
188
  }}
188
189
  <slot {...slotProps}>
@@ -195,6 +195,8 @@
195
195
  height,
196
196
  padding,
197
197
  tooltip,
198
+ series,
199
+ visibleData,
198
200
  }}
199
201
  <slot {...slotProps}>
200
202
  <svelte:component this={renderContext === 'canvas' ? Canvas : Svg} {center}>
@@ -156,7 +156,21 @@
156
156
  let:tooltip
157
157
  let:config
158
158
  >
159
- {@const slotProps = { x, xScale, y, yScale, c, cScale, width, height, padding, tooltip, series }}
159
+ {@const slotProps = {
160
+ x,
161
+ xScale,
162
+ y,
163
+ yScale,
164
+ c,
165
+ cScale,
166
+ width,
167
+ height,
168
+ padding,
169
+ tooltip,
170
+ series,
171
+ visibleSeries,
172
+ getPointsProps,
173
+ }}
160
174
  {@const activeSeries = tooltip.data
161
175
  ? (series.find((s) => s.key === tooltip.data.seriesKey) ?? series[0])
162
176
  : null}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "0.77.0",
7
+ "version": "0.78.0",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.27.10",
10
10
  "@mdi/js": "^7.4.47",