hyperprop-charting-library 0.1.56 → 0.1.57

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.
@@ -2044,7 +2044,7 @@ function createChart(element, options = {}) {
2044
2044
  const point = drawing.points[0];
2045
2045
  if (point) {
2046
2046
  const y = clamp(yFromPrice(point.price), chartTop + 1, chartBottom - 1);
2047
- const handleX = chartRight - 14;
2047
+ const handleX = chartRight - 64;
2048
2048
  ctx.beginPath();
2049
2049
  ctx.moveTo(crisp(chartLeft), crisp(y));
2050
2050
  ctx.lineTo(crisp(chartRight), crisp(y));
@@ -3128,7 +3128,7 @@ function createChart(element, options = {}) {
3128
3128
  const point = drawing.points[0];
3129
3129
  if (!point) continue;
3130
3130
  const lineY = canvasYFromDrawingPrice(point.price);
3131
- const handleX = drawState ? drawState.chartRight - 14 : 0;
3131
+ const handleX = drawState ? drawState.chartRight - 64 : 0;
3132
3132
  if (Math.hypot(x - handleX, y - lineY) <= 8) {
3133
3133
  return { drawing, target: "handle", pointIndex: 0 };
3134
3134
  }
@@ -2020,7 +2020,7 @@ function createChart(element, options = {}) {
2020
2020
  const point = drawing.points[0];
2021
2021
  if (point) {
2022
2022
  const y = clamp(yFromPrice(point.price), chartTop + 1, chartBottom - 1);
2023
- const handleX = chartRight - 14;
2023
+ const handleX = chartRight - 64;
2024
2024
  ctx.beginPath();
2025
2025
  ctx.moveTo(crisp(chartLeft), crisp(y));
2026
2026
  ctx.lineTo(crisp(chartRight), crisp(y));
@@ -3104,7 +3104,7 @@ function createChart(element, options = {}) {
3104
3104
  const point = drawing.points[0];
3105
3105
  if (!point) continue;
3106
3106
  const lineY = canvasYFromDrawingPrice(point.price);
3107
- const handleX = drawState ? drawState.chartRight - 14 : 0;
3107
+ const handleX = drawState ? drawState.chartRight - 64 : 0;
3108
3108
  if (Math.hypot(x - handleX, y - lineY) <= 8) {
3109
3109
  return { drawing, target: "handle", pointIndex: 0 };
3110
3110
  }
package/dist/index.cjs CHANGED
@@ -2044,7 +2044,7 @@ function createChart(element, options = {}) {
2044
2044
  const point = drawing.points[0];
2045
2045
  if (point) {
2046
2046
  const y = clamp(yFromPrice(point.price), chartTop + 1, chartBottom - 1);
2047
- const handleX = chartRight - 14;
2047
+ const handleX = chartRight - 64;
2048
2048
  ctx.beginPath();
2049
2049
  ctx.moveTo(crisp(chartLeft), crisp(y));
2050
2050
  ctx.lineTo(crisp(chartRight), crisp(y));
@@ -3128,7 +3128,7 @@ function createChart(element, options = {}) {
3128
3128
  const point = drawing.points[0];
3129
3129
  if (!point) continue;
3130
3130
  const lineY = canvasYFromDrawingPrice(point.price);
3131
- const handleX = drawState ? drawState.chartRight - 14 : 0;
3131
+ const handleX = drawState ? drawState.chartRight - 64 : 0;
3132
3132
  if (Math.hypot(x - handleX, y - lineY) <= 8) {
3133
3133
  return { drawing, target: "handle", pointIndex: 0 };
3134
3134
  }
package/dist/index.js CHANGED
@@ -2020,7 +2020,7 @@ function createChart(element, options = {}) {
2020
2020
  const point = drawing.points[0];
2021
2021
  if (point) {
2022
2022
  const y = clamp(yFromPrice(point.price), chartTop + 1, chartBottom - 1);
2023
- const handleX = chartRight - 14;
2023
+ const handleX = chartRight - 64;
2024
2024
  ctx.beginPath();
2025
2025
  ctx.moveTo(crisp(chartLeft), crisp(y));
2026
2026
  ctx.lineTo(crisp(chartRight), crisp(y));
@@ -3104,7 +3104,7 @@ function createChart(element, options = {}) {
3104
3104
  const point = drawing.points[0];
3105
3105
  if (!point) continue;
3106
3106
  const lineY = canvasYFromDrawingPrice(point.price);
3107
- const handleX = drawState ? drawState.chartRight - 14 : 0;
3107
+ const handleX = drawState ? drawState.chartRight - 64 : 0;
3108
3108
  if (Math.hypot(x - handleX, y - lineY) <= 8) {
3109
3109
  return { drawing, target: "handle", pointIndex: 0 };
3110
3110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperprop-charting-library",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "Lightweight TypeScript charting core",
5
5
  "type": "module",
6
6
  "main": "./dist/hyperprop-charting-library.cjs",