hyperprop-charting-library 0.1.97 → 0.1.98
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.
|
@@ -2542,7 +2542,7 @@ function createChart(element, options = {}) {
|
|
|
2542
2542
|
const drawPositionPill = (text, lineY, place, bg) => {
|
|
2543
2543
|
const lines = Array.isArray(text) ? text : [text];
|
|
2544
2544
|
const prevFont = ctx.font;
|
|
2545
|
-
ctx.font = `500 11px
|
|
2545
|
+
ctx.font = `500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace`;
|
|
2546
2546
|
const padding = 6;
|
|
2547
2547
|
const lineH = 14;
|
|
2548
2548
|
const textW = Math.max(...lines.map((line) => ctx.measureText(line).width));
|
|
@@ -2516,7 +2516,7 @@ function createChart(element, options = {}) {
|
|
|
2516
2516
|
const drawPositionPill = (text, lineY, place, bg) => {
|
|
2517
2517
|
const lines = Array.isArray(text) ? text : [text];
|
|
2518
2518
|
const prevFont = ctx.font;
|
|
2519
|
-
ctx.font = `500 11px
|
|
2519
|
+
ctx.font = `500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace`;
|
|
2520
2520
|
const padding = 6;
|
|
2521
2521
|
const lineH = 14;
|
|
2522
2522
|
const textW = Math.max(...lines.map((line) => ctx.measureText(line).width));
|
package/dist/index.cjs
CHANGED
|
@@ -2542,7 +2542,7 @@ function createChart(element, options = {}) {
|
|
|
2542
2542
|
const drawPositionPill = (text, lineY, place, bg) => {
|
|
2543
2543
|
const lines = Array.isArray(text) ? text : [text];
|
|
2544
2544
|
const prevFont = ctx.font;
|
|
2545
|
-
ctx.font = `500 11px
|
|
2545
|
+
ctx.font = `500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace`;
|
|
2546
2546
|
const padding = 6;
|
|
2547
2547
|
const lineH = 14;
|
|
2548
2548
|
const textW = Math.max(...lines.map((line) => ctx.measureText(line).width));
|
package/dist/index.js
CHANGED
|
@@ -2516,7 +2516,7 @@ function createChart(element, options = {}) {
|
|
|
2516
2516
|
const drawPositionPill = (text, lineY, place, bg) => {
|
|
2517
2517
|
const lines = Array.isArray(text) ? text : [text];
|
|
2518
2518
|
const prevFont = ctx.font;
|
|
2519
|
-
ctx.font = `500 11px
|
|
2519
|
+
ctx.font = `500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace`;
|
|
2520
2520
|
const padding = 6;
|
|
2521
2521
|
const lineH = 14;
|
|
2522
2522
|
const textW = Math.max(...lines.map((line) => ctx.measureText(line).width));
|