fix(web): 分型框竖边 canvas 绘制,换币对强制全量刷新

LWC 折线无法画真竖线;增量刷新时用坐标采样补刷竖边,避免与横边脱节。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-11 17:32:18 +08:00
co-authored by Cursor
parent 9cf625c413
commit 340676bfbd
4 changed files with 188 additions and 72 deletions
+9
View File
@@ -365,6 +365,15 @@ function updateTradingViewData() {
applyPosition('');
setTimeout(function () { applyPosition('@0'); }, 0);
setTimeout(function () { applyPosition('@50'); }, 50);
// 增量 setData 常不触发可见时间范围回调,但价格轴会变:补刷分型竖边
var bumpFxVert = function () {
if (typeof window._redrawFxBoxVerticalOverlay === 'function') {
window._redrawFxBoxVerticalOverlay();
}
};
bumpFxVert();
setTimeout(bumpFxVert, 0);
setTimeout(bumpFxVert, 50);
}
console.log('增量更新图表完成');