hyperprop-charting-library 0.1.86 → 0.1.88
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.
|
@@ -2667,11 +2667,14 @@ function createChart(element, options = {}) {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
ctx.fillStyle = drawing.color;
|
|
2669
2669
|
lines.forEach((line, lineIndex) => ctx.fillText(line, ax + padX, ay + padY + lineIndex * lineH));
|
|
2670
|
-
ctx.restore();
|
|
2671
|
-
ctx.font = prevFont;
|
|
2672
2670
|
if (isSelected) {
|
|
2673
|
-
|
|
2671
|
+
ctx.setLineDash([3, 3]);
|
|
2672
|
+
ctx.strokeStyle = hexToRgba(drawing.color, 0.7);
|
|
2673
|
+
ctx.lineWidth = 1;
|
|
2674
|
+
strokeRoundedRect(ax - 2, ay - 2, blockW + 4, blockH + 4, 3);
|
|
2674
2675
|
}
|
|
2676
|
+
ctx.restore();
|
|
2677
|
+
ctx.font = prevFont;
|
|
2675
2678
|
}
|
|
2676
2679
|
}
|
|
2677
2680
|
ctx.restore();
|
|
@@ -2641,11 +2641,14 @@ function createChart(element, options = {}) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
ctx.fillStyle = drawing.color;
|
|
2643
2643
|
lines.forEach((line, lineIndex) => ctx.fillText(line, ax + padX, ay + padY + lineIndex * lineH));
|
|
2644
|
-
ctx.restore();
|
|
2645
|
-
ctx.font = prevFont;
|
|
2646
2644
|
if (isSelected) {
|
|
2647
|
-
|
|
2645
|
+
ctx.setLineDash([3, 3]);
|
|
2646
|
+
ctx.strokeStyle = hexToRgba(drawing.color, 0.7);
|
|
2647
|
+
ctx.lineWidth = 1;
|
|
2648
|
+
strokeRoundedRect(ax - 2, ay - 2, blockW + 4, blockH + 4, 3);
|
|
2648
2649
|
}
|
|
2650
|
+
ctx.restore();
|
|
2651
|
+
ctx.font = prevFont;
|
|
2649
2652
|
}
|
|
2650
2653
|
}
|
|
2651
2654
|
ctx.restore();
|
package/dist/index.cjs
CHANGED
|
@@ -2667,11 +2667,14 @@ function createChart(element, options = {}) {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
ctx.fillStyle = drawing.color;
|
|
2669
2669
|
lines.forEach((line, lineIndex) => ctx.fillText(line, ax + padX, ay + padY + lineIndex * lineH));
|
|
2670
|
-
ctx.restore();
|
|
2671
|
-
ctx.font = prevFont;
|
|
2672
2670
|
if (isSelected) {
|
|
2673
|
-
|
|
2671
|
+
ctx.setLineDash([3, 3]);
|
|
2672
|
+
ctx.strokeStyle = hexToRgba(drawing.color, 0.7);
|
|
2673
|
+
ctx.lineWidth = 1;
|
|
2674
|
+
strokeRoundedRect(ax - 2, ay - 2, blockW + 4, blockH + 4, 3);
|
|
2674
2675
|
}
|
|
2676
|
+
ctx.restore();
|
|
2677
|
+
ctx.font = prevFont;
|
|
2675
2678
|
}
|
|
2676
2679
|
}
|
|
2677
2680
|
ctx.restore();
|
package/dist/index.js
CHANGED
|
@@ -2641,11 +2641,14 @@ function createChart(element, options = {}) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
ctx.fillStyle = drawing.color;
|
|
2643
2643
|
lines.forEach((line, lineIndex) => ctx.fillText(line, ax + padX, ay + padY + lineIndex * lineH));
|
|
2644
|
-
ctx.restore();
|
|
2645
|
-
ctx.font = prevFont;
|
|
2646
2644
|
if (isSelected) {
|
|
2647
|
-
|
|
2645
|
+
ctx.setLineDash([3, 3]);
|
|
2646
|
+
ctx.strokeStyle = hexToRgba(drawing.color, 0.7);
|
|
2647
|
+
ctx.lineWidth = 1;
|
|
2648
|
+
strokeRoundedRect(ax - 2, ay - 2, blockW + 4, blockH + 4, 3);
|
|
2648
2649
|
}
|
|
2650
|
+
ctx.restore();
|
|
2651
|
+
ctx.font = prevFont;
|
|
2649
2652
|
}
|
|
2650
2653
|
}
|
|
2651
2654
|
ctx.restore();
|