hyperprop-charting-library 0.1.130 → 0.1.131
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.
|
@@ -5084,18 +5084,17 @@ function createChart(element, options = {}) {
|
|
|
5084
5084
|
legendTitle,
|
|
5085
5085
|
...legendValues.map((value) => value.text ?? (value.value === void 0 ? "" : formatPaneValue(value.value))).filter(Boolean)
|
|
5086
5086
|
].filter(Boolean);
|
|
5087
|
-
const legendText = legendParts.join(" ");
|
|
5088
|
-
if (legendParts.length > 0) {
|
|
5089
|
-
drawText(legendText, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5090
|
-
}
|
|
5091
5087
|
if (hoveredPaneId === indicator.id) {
|
|
5088
|
+
drawText(legendTitle, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5092
5089
|
drawPaneButtons(
|
|
5093
5090
|
indicator.id,
|
|
5094
5091
|
indicator.type,
|
|
5095
5092
|
true,
|
|
5096
|
-
chartLeft + 10 + Math.ceil(measureTextWidth(
|
|
5093
|
+
chartLeft + 10 + Math.ceil(measureTextWidth(legendTitle)) + 10,
|
|
5097
5094
|
paneTop + 8 + legendFontSize / 2
|
|
5098
5095
|
);
|
|
5096
|
+
} else if (legendParts.length > 0) {
|
|
5097
|
+
drawText(legendParts.join(" "), chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5099
5098
|
}
|
|
5100
5099
|
for (const label of paneInfo?.valueLabels ?? []) {
|
|
5101
5100
|
if (!labels.showIndicatorValueLabels) {
|
|
@@ -5058,18 +5058,17 @@ function createChart(element, options = {}) {
|
|
|
5058
5058
|
legendTitle,
|
|
5059
5059
|
...legendValues.map((value) => value.text ?? (value.value === void 0 ? "" : formatPaneValue(value.value))).filter(Boolean)
|
|
5060
5060
|
].filter(Boolean);
|
|
5061
|
-
const legendText = legendParts.join(" ");
|
|
5062
|
-
if (legendParts.length > 0) {
|
|
5063
|
-
drawText(legendText, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5064
|
-
}
|
|
5065
5061
|
if (hoveredPaneId === indicator.id) {
|
|
5062
|
+
drawText(legendTitle, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5066
5063
|
drawPaneButtons(
|
|
5067
5064
|
indicator.id,
|
|
5068
5065
|
indicator.type,
|
|
5069
5066
|
true,
|
|
5070
|
-
chartLeft + 10 + Math.ceil(measureTextWidth(
|
|
5067
|
+
chartLeft + 10 + Math.ceil(measureTextWidth(legendTitle)) + 10,
|
|
5071
5068
|
paneTop + 8 + legendFontSize / 2
|
|
5072
5069
|
);
|
|
5070
|
+
} else if (legendParts.length > 0) {
|
|
5071
|
+
drawText(legendParts.join(" "), chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5073
5072
|
}
|
|
5074
5073
|
for (const label of paneInfo?.valueLabels ?? []) {
|
|
5075
5074
|
if (!labels.showIndicatorValueLabels) {
|
package/dist/index.cjs
CHANGED
|
@@ -5084,18 +5084,17 @@ function createChart(element, options = {}) {
|
|
|
5084
5084
|
legendTitle,
|
|
5085
5085
|
...legendValues.map((value) => value.text ?? (value.value === void 0 ? "" : formatPaneValue(value.value))).filter(Boolean)
|
|
5086
5086
|
].filter(Boolean);
|
|
5087
|
-
const legendText = legendParts.join(" ");
|
|
5088
|
-
if (legendParts.length > 0) {
|
|
5089
|
-
drawText(legendText, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5090
|
-
}
|
|
5091
5087
|
if (hoveredPaneId === indicator.id) {
|
|
5088
|
+
drawText(legendTitle, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5092
5089
|
drawPaneButtons(
|
|
5093
5090
|
indicator.id,
|
|
5094
5091
|
indicator.type,
|
|
5095
5092
|
true,
|
|
5096
|
-
chartLeft + 10 + Math.ceil(measureTextWidth(
|
|
5093
|
+
chartLeft + 10 + Math.ceil(measureTextWidth(legendTitle)) + 10,
|
|
5097
5094
|
paneTop + 8 + legendFontSize / 2
|
|
5098
5095
|
);
|
|
5096
|
+
} else if (legendParts.length > 0) {
|
|
5097
|
+
drawText(legendParts.join(" "), chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5099
5098
|
}
|
|
5100
5099
|
for (const label of paneInfo?.valueLabels ?? []) {
|
|
5101
5100
|
if (!labels.showIndicatorValueLabels) {
|
package/dist/index.js
CHANGED
|
@@ -5058,18 +5058,17 @@ function createChart(element, options = {}) {
|
|
|
5058
5058
|
legendTitle,
|
|
5059
5059
|
...legendValues.map((value) => value.text ?? (value.value === void 0 ? "" : formatPaneValue(value.value))).filter(Boolean)
|
|
5060
5060
|
].filter(Boolean);
|
|
5061
|
-
const legendText = legendParts.join(" ");
|
|
5062
|
-
if (legendParts.length > 0) {
|
|
5063
|
-
drawText(legendText, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5064
|
-
}
|
|
5065
5061
|
if (hoveredPaneId === indicator.id) {
|
|
5062
|
+
drawText(legendTitle, chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5066
5063
|
drawPaneButtons(
|
|
5067
5064
|
indicator.id,
|
|
5068
5065
|
indicator.type,
|
|
5069
5066
|
true,
|
|
5070
|
-
chartLeft + 10 + Math.ceil(measureTextWidth(
|
|
5067
|
+
chartLeft + 10 + Math.ceil(measureTextWidth(legendTitle)) + 10,
|
|
5071
5068
|
paneTop + 8 + legendFontSize / 2
|
|
5072
5069
|
);
|
|
5070
|
+
} else if (legendParts.length > 0) {
|
|
5071
|
+
drawText(legendParts.join(" "), chartLeft + 10, paneTop + 8, "left", "top", labels.indicatorTextColor);
|
|
5073
5072
|
}
|
|
5074
5073
|
for (const label of paneInfo?.valueLabels ?? []) {
|
|
5075
5074
|
if (!labels.showIndicatorValueLabels) {
|