Repository navigation
行情条实时末端、焦点框修复与分时图推进(v1.7.2) - #42
Merged
Merged
Conversation
行情条根节点可聚焦,鼠标按下会把 DOM 焦点给它;关闭主窗口或拖拽结束 导致窗口重新激活时,WebView 按键盘焦点重绘 UA 黑色焦点框,表现为整条 行情条四周多出一圈黑边。 左键按下时阻止默认的「按下即聚焦」并清掉已有焦点;键盘 Tab 路径不受 影响,焦点描边改为显式的主题色。
分时接口的最后一根是进行中的分钟,标签是分钟终点;前端按「不画未来 bar」 把它过滤掉后,曲线要等整分钟走完才动,轮询调到几秒都一样。改为把实时 报价追加到下一分钟的横坐标上,末端圆点、线色与红绿数字同步(2s)。 尾点带三道守卫:最后一根与报价都必须属于当天、报价与最后收盘价不能差出 一个量级。顺带复用已算好的坐标、缓存配色令牌,避免 2s 重绘时的重复计算。
首次加载不过滤进行中的 bar,5s 刷新却把它丢掉:图里保留一根冻结的 最后一根,而 klineData 里没有它,纵轴区间与横轴排版都会漏算。 新增 visibleMinuteBars 统一两处口径:按数据自身的中位跨度留 1~5 分钟 未来余量,腾讯 1 分钟与新浪 5 分钟源都能每 5s 推进最后一根,更远的 未来 bar 仍然丢弃。VOL 与均价线用的是源数据的真实 OHLCV,不受影响。
- CHANGELOG 增加 v1.7.2 更新说明 - package.json / package-lock / Cargo.toml / Cargo.lock / tauri.conf.json 同步版本 - README 下载徽章与页脚同步
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
验证
npx vue-tsc --noEmitnpm test:21 个文件、264 个用例通过