tvcharts 0.8.67 → 0.8.68
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.
|
@@ -146,7 +146,7 @@ var TooltipHTMLContent = /** @class */function () {
|
|
|
146
146
|
title = formatAmount(totalSize_1) + " @ " + (totalPrice_1 / orders.length).toFixed(precision) + " avg price";
|
|
147
147
|
}
|
|
148
148
|
var primaryColor = isUp ? "--primary-color" : "--color-kl-red";
|
|
149
|
-
el.innerHTML = "<div style=\"padding-left: 4px;border-left: 4px solid var(" + primaryColor + ");width: 290px;z-index: 10;border-radius: 6px;background: var(--container-bg);box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px 0px;color: var(--title-color);\">\n <div style=\"padding: 16px 12px;\"><div style=\"display: flex; align-items: center; margin-bottom: 12px;\">\n <div style=\"height: 20px; border-radius: 50px; min-width: 20px; margin-right: 8px; text-align: center; background-color: var(" + primaryColor + "); font-size: 12px; color: #fff;line-height:20px;\">" + orders.length + "</div>\n <div style=\"font-weight: 600; font-size: 18px;\"
|
|
149
|
+
el.innerHTML = "<div style=\"padding-left: 4px;border-left: 4px solid var(" + primaryColor + ");width: 290px;z-index: 10;border-radius: 6px;background: var(--container-bg);box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px 0px;color: var(--title-color);\">\n <div style=\"padding: 16px 12px;\"><div style=\"display: flex; align-items: center; margin-bottom: 12px;\">\n <div style=\"height: 20px; border-radius: 50px; min-width: 20px; margin-right: 8px; text-align: center; background-color: var(" + primaryColor + "); font-size: 12px; color: #fff;line-height:20px;\">" + orders.length + "</div>\n <div style=\"font-weight: 600; font-size: 18px;\">" + (isUp ? '买入' : '卖出') + "</div></div><div style=\"font-size: 13px; margin-bottom: 12px;\">" + title + "</div>\n " + ordersHtml + "\n </div>\n </div>\n ";
|
|
150
150
|
console.log("====", el.clientHeight, el.clientWidth);
|
|
151
151
|
if (x + el.clientWidth > this._container.clientWidth) {
|
|
152
152
|
style.left = x - el.clientWidth - margin + 'px';
|