@keneth80/k-chart 1.26.1 → 1.28.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 (48) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +131 -1100
  3. package/docs/code-graph-handoff.md +19 -37
  4. package/docs/configuration-reference.md +16 -1
  5. package/docs/functional-api.md +87 -0
  6. package/docs/react-nextjs.md +62 -8
  7. package/docs/refactor-plan.md +39 -23
  8. package/docs/release.md +9 -4
  9. package/examples/stackblitz-simple-api-basic/package-lock.json +96 -4
  10. package/examples/stackblitz-simple-api-basic/package.json +1 -1
  11. package/examples/stackblitz-subcell-heatmap-basic/README.md +48 -0
  12. package/examples/stackblitz-subcell-heatmap-basic/index.html +13 -0
  13. package/examples/stackblitz-subcell-heatmap-basic/package-lock.json +1788 -0
  14. package/examples/stackblitz-subcell-heatmap-basic/package.json +23 -0
  15. package/examples/stackblitz-subcell-heatmap-basic/src/app.ts +212 -0
  16. package/examples/stackblitz-subcell-heatmap-basic/src/component.css +169 -0
  17. package/examples/stackblitz-subcell-heatmap-basic/src/heatmap-demo-core.ts +505 -0
  18. package/examples/stackblitz-subcell-heatmap-basic/src/heatmap-demo.ts +23 -0
  19. package/examples/stackblitz-subcell-heatmap-basic/src/main.ts +15 -0
  20. package/examples/stackblitz-subcell-heatmap-basic/src/maplibre-compat.ts +6 -0
  21. package/examples/stackblitz-subcell-heatmap-basic/src/model.ts +242 -0
  22. package/examples/stackblitz-subcell-heatmap-basic/src/raster.ts +121 -0
  23. package/examples/stackblitz-subcell-heatmap-basic/src/style.css +15 -0
  24. package/examples/stackblitz-subcell-heatmap-basic/src/synthetic.ts +72 -0
  25. package/examples/stackblitz-subcell-heatmap-basic/src/vendor.d.ts +3 -0
  26. package/examples/stackblitz-subcell-heatmap-basic/src/vite-env.d.ts +1 -0
  27. package/examples/stackblitz-topology-basic/package-lock.json +96 -4
  28. package/examples/stackblitz-topology-basic/package.json +1 -1
  29. package/examples/stackblitz-webgl-line-basic/package-lock.json +96 -4
  30. package/examples/stackblitz-webgl-line-basic/package.json +1 -1
  31. package/examples/stackblitz-world-activity-map/package.json +1 -1
  32. package/lib/core/contracts.d.ts +14 -2
  33. package/lib/core/contracts.d.ts.map +1 -1
  34. package/lib/internal/map-move-end.d.ts +8 -0
  35. package/lib/internal/map-move-end.d.ts.map +1 -0
  36. package/lib/internal/map-move-end.js +33 -0
  37. package/lib/internal/map-move-end.js.map +1 -0
  38. package/lib/series/svg-globe.d.ts.map +1 -1
  39. package/lib/series/svg-globe.js +66 -8
  40. package/lib/series/svg-globe.js.map +1 -1
  41. package/lib/series/svg-graph.d.ts +29 -0
  42. package/lib/series/svg-graph.d.ts.map +1 -1
  43. package/lib/series/svg-graph.js +509 -80
  44. package/lib/series/svg-graph.js.map +1 -1
  45. package/lib/series/svg-region-map.d.ts.map +1 -1
  46. package/lib/series/svg-region-map.js +72 -1
  47. package/lib/series/svg-region-map.js.map +1 -1
  48. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.28.0 - 2026-11-23
4
+
5
+ ### Added
6
+
7
+ - Added optional `onMoveEnd` callbacks to SVG globe and region maps,
8
+ `@keneth80/k-chart-maplibre` 0.3.0, and
9
+ `@keneth80/k-chart-cesium` 0.2.0.
10
+ - Added a consistent move-end payload containing the geographic center
11
+ (`lon`, `lat`) and center screen coordinates (`x`, `y`) after
12
+ changed user pan, zoom, touch, or navigation-control interactions.
13
+ - Added the published [KChart Panel for Grafana](https://grafana.com/grafana/plugins/keneth80-kchart-panel/)
14
+ to the optional integrations and project resources in the root README.
15
+
16
+ ### Changed
17
+
18
+ - Kept initialization, resize-only work, route tracking, and application-driven
19
+ camera moves from emitting user move-end callbacks.
20
+ - Coalesced settled user interaction reporting across SVG, MapLibre, and Cesium
21
+ while preserving each renderer's existing interaction behavior.
22
+
23
+ ### Tests
24
+
25
+ - Added MapLibre and Cesium runtime coverage for user movement, unchanged views,
26
+ programmatic movement exclusion, navigation controls, geographic picking, and
27
+ listener cleanup.
28
+ - Added shared projection tests and verified the root unit suite, package builds,
29
+ production demo build, package contents, and desktop/mobile playground examples.
30
+
31
+ ## 1.27.0 - 2026-09-27
32
+
33
+ ### Added
34
+
35
+ - Added a MapLibre subcell scalar-field example that bilinearly interpolates
36
+ 51 x 51 node samples inside each 0.5-degree cell, preserves missing values,
37
+ and keeps the fixed 0-100 color scale across time and zoom.
38
+ - Added standalone field tests and a StackBlitz-ready project covering frame
39
+ changes, grid-only visibility toggling, map lifecycle cleanup, and the
40
+ distinction between numeric zero and unobserved data.
41
+ - Added a top-down `layered` graph layout with explicit or topology-derived
42
+ node ranks, strongly connected component handling, and dense-row wrapping.
43
+ - Added graph callbacks for node colors, edge colors, edge dash patterns, and
44
+ optional force-layout gravity while preserving existing force defaults.
45
+
46
+ ### Changed
47
+
48
+ - Reorganized the README around a concise value proposition, four primary trust
49
+ badges, four first-step links, an early Quick Start, and a small representative
50
+ StackBlitz set.
51
+ - Moved detailed renderer, adapter, AI, import-surface, custom-tooltip, and
52
+ advanced API guidance into focused documentation, leaving the root README as
53
+ a concise onboarding and navigation page.
54
+ - Updated the four representative StackBlitz projects to use KChart 1.26.1.
55
+ - Corrected development-port, React-wrapper, release-package, security-reporting,
56
+ architecture-snapshot, and public API compatibility wording across contributor
57
+ and integration documentation.
58
+ - Made layered graph packing account for label bounds and scale labels, nodes,
59
+ and spacing together in constrained panels.
60
+
61
+ ### Fixed
62
+
63
+ - Invalidated graph data and layout caches for same-array row replacement,
64
+ in-place source/target/value/category changes, and dynamic rank changes.
65
+ - Preserved callback edge styling and active node-selection emphasis after
66
+ tooltip cleanup.
67
+
68
+ ### Tests
69
+
70
+ - Added graph regression coverage for force-layout compatibility, layered
71
+ ordering and cycles, dense label packing, callback indexes and styles,
72
+ tooltip colors, selection restoration, and in-place data updates.
73
+ - Verified the graph demo at desktop and 820px widths with no label overlap,
74
+ clipping, horizontal overflow, or graph runtime errors.
75
+
76
+ ### Removed
77
+
78
+ - Removed the unconfigured coverage badge and the obsolete duplicate
79
+ `README 2.md` after confirming that it was unreferenced and described the former
80
+ package name, port, and class-based API.
81
+
3
82
  ## 1.26.1 - 2026-09-07
4
83
 
5
84
  ### Added