hyperprop-charting-library 0.1.42 → 0.1.43

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.
@@ -2703,7 +2703,7 @@ function createChart(element, options = {}) {
2703
2703
  setCrosshairPoint(null);
2704
2704
  } else if (dragMode === "x-axis") {
2705
2705
  canvas.style.cursor = "ew-resize";
2706
- zoomXToLatest(Math.exp(-deltaX * 0.01));
2706
+ zoomXToLatest(Math.exp(deltaX * 6e-3));
2707
2707
  setCrosshairPoint(null);
2708
2708
  } else if (dragMode === "y-axis") {
2709
2709
  canvas.style.cursor = "ns-resize";
@@ -2679,7 +2679,7 @@ function createChart(element, options = {}) {
2679
2679
  setCrosshairPoint(null);
2680
2680
  } else if (dragMode === "x-axis") {
2681
2681
  canvas.style.cursor = "ew-resize";
2682
- zoomXToLatest(Math.exp(-deltaX * 0.01));
2682
+ zoomXToLatest(Math.exp(deltaX * 6e-3));
2683
2683
  setCrosshairPoint(null);
2684
2684
  } else if (dragMode === "y-axis") {
2685
2685
  canvas.style.cursor = "ns-resize";
package/dist/index.cjs CHANGED
@@ -2703,7 +2703,7 @@ function createChart(element, options = {}) {
2703
2703
  setCrosshairPoint(null);
2704
2704
  } else if (dragMode === "x-axis") {
2705
2705
  canvas.style.cursor = "ew-resize";
2706
- zoomXToLatest(Math.exp(-deltaX * 0.01));
2706
+ zoomXToLatest(Math.exp(deltaX * 6e-3));
2707
2707
  setCrosshairPoint(null);
2708
2708
  } else if (dragMode === "y-axis") {
2709
2709
  canvas.style.cursor = "ns-resize";
package/dist/index.js CHANGED
@@ -2679,7 +2679,7 @@ function createChart(element, options = {}) {
2679
2679
  setCrosshairPoint(null);
2680
2680
  } else if (dragMode === "x-axis") {
2681
2681
  canvas.style.cursor = "ew-resize";
2682
- zoomXToLatest(Math.exp(-deltaX * 0.01));
2682
+ zoomXToLatest(Math.exp(deltaX * 6e-3));
2683
2683
  setCrosshairPoint(null);
2684
2684
  } else if (dragMode === "y-axis") {
2685
2685
  canvas.style.cursor = "ns-resize";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperprop-charting-library",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Lightweight TypeScript charting core",
5
5
  "type": "module",
6
6
  "main": "./dist/hyperprop-charting-library.cjs",