@fundar/data-chart-telling 1.6.0 → 1.6.1

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [1.6.1] - 2026-11-02
6
+
7
+ ### Fixed
8
+
9
+ - A `delta` marker at a `Date` position no longer turns a date `x` axis into a numeric one: it drew its dots, line and label at the position as a number, which svelteplot read next to the dates of the data as a linear scale, and the axis showed milliseconds.
10
+
5
11
  ## [1.6.0] - 2026-11-02
6
12
 
7
13
  ### Added
@@ -26,7 +26,7 @@
26
26
  return clampRange ? Math.max(clampRange[0], Math.min(clampRange[1], v)) : v;
27
27
  }
28
28
 
29
- function pt(fixed: number, varying: number) {
29
+ function pt(fixed: number | Date, varying: number) {
30
30
  return marker.axis === 'x' ? { x: fixed, y: varying } : { x: varying, y: fixed };
31
31
  }
32
32
 
@@ -44,7 +44,7 @@
44
44
  if (!resolved) return null;
45
45
  const fromVis = clamp(resolved.from ?? 0);
46
46
  const toVis = clamp(resolved.to ?? 0);
47
- const at = resolved.at ?? 0;
47
+ const at = marker.at instanceof Date ? new Date(resolved.at ?? 0) : (resolved.at ?? 0);
48
48
  return {
49
49
  fromPt: pt(at, fromVis),
50
50
  toPt: pt(at, toVis),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundar/data-chart-telling",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Declarative charts, maps and small multiples for Svelte, built on svelteplot.",
5
5
  "license": "MIT",
6
6
  "author": "Ezequiel Puerta",