Repository navigation
Conversation
VisActor 工作流结论:检查已完成,等待人工合入。
请核对 BugServer 默认全选清单,改选后保存,再手动 Merge;Approve 可选,仅记录操作。 Photo 基准选择尚未保存;不影响三项检查建议或人工合入。 Photo 执行明细Photo 原始执行:completed;结果:passed;缺少基准 0;等待 0;运行中 0;不完整 0;创建未知 0。 Photo 差异解释(非阻断建议)差异共 0 项;已逐项分析 0 项;未分析 0 项。 图片差异解释(8 项)
合入后 Photo 基准更新清单没有已授权的基准更新。 版本与合入后状态当前提交: CN 结果仅证明上述实际范围;完整报告和原始差异继续保留。 |
xile611
force-pushed
the
codex/fix-4354-datazoom-filter-update
branch
from
November 25, 2026 08:07
bc2e8a2 to
30395af
Compare
Keep percent/value endpoint anchors separate from derived filter values and handle positions. Data updates now preserve the selected modes, including mixed windows, while explicit API calls and interactions update the anchors. Delegate independent state-scale domain rules to the associated axis and keep automatic band-size layout out of the interaction update path. Cover empty/refilled data, axis mode, inverse axes, synchronous event updates, and automatic layout with unit and visual regressions.
Use the scale mapping for value-window positions and its inverse for nonlinear interactions. Keep the two-endpoint linear fast path to avoid pixel round-trip errors at filter boundaries, and preserve exact API value anchors when resolving DataZoom and ScrollBar changes. Use the resolved window during initial layout instead of deriving another filter domain from the spec. Cover nonlinear windows, inverse directions, API boundaries and updates with unit and visual regressions.
Preserve field-based filtering when axis mode has no associated axis. Share the effective mode across window resolution, data transforms and change events. Cover initial ranges, data updates, empty refills and interactions for DataZoom and ScrollBar, and migrate the Photo range-column regression.
Use one Electron window to avoid jest-electron 0.1.12 replaying completed suites while another suite shares the same global state. Keep coverage runs on the same Jest worker configuration and document the constraint.
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.
这个分支是
相关 issue
Fixes #4354
问题与修复
DataZoom 默认
filter模式从空数据回填时,没有重新应用筛选域,主图和预览可能保持空白。数据更新现在从未筛选数据恢复状态比例尺,重新计算当前窗口,并在筛选域变化时更新系列过滤和预览。未关联轴的显式数值字段会随统计类型变化重建比例尺。窗口更新按端点的模式保留语义:例如
startValue: 20, endValue: 40,数据域从[0,100]扩张为[0,200]后,仍筛选 20、40,手柄从 20%–40% 调整为 10%–20%;百分比窗口继续保持百分比。普通数据更新也保留交互后的选区。职责收敛
customDomain仍优先。percent/value模式和锚点;百分比、筛选值及筛选域由它派生。初始化/更新配置、公共 API、真实交互和数据更新各自走明确路径,DataZoom 与 ScrollBar 共用。新增 23 项窗口回归测试,覆盖 value/mixed 模式、空数据与回填、域收缩、暂缺分类、零端点、API 模式切换、真实组件交互、反向轴、两种组件的 axis 模式、同步事件回调及横纵向自动布局。补充中英文窗口语义文档和确定性视觉用例。
非线性比例尺窗口
对数轴评审反馈已通过图表级测试复现并修复。轴域
[1,1000]的值窗口[10,100]现在位于1/3–2/3,域扩张到[1,10000]后位于1/4–1/2。值到位置使用
scale.scale();非线性与分段比例尺的反向转换使用scale.invert()。仅保留两端线性映射原有的精确快路径,避免像素往返误差筛掉边界值。API 的 value 端点直接沿用原始锚点,不以反算结果覆盖。初始化复用已解析的窗口状态,移除了重复读取 spec 计算域的旧路径及未使用工具。新增 31 项回归覆盖 log、symlog、时间及分段比例尺、反向 range、DataZoom/ScrollBar 的 filter/axis 模式、API 边界精度、真实组件事件、混合窗口和数据更新。生产代码没有增加 log/symlog 专用计算分支。
无关联轴的字段筛选
Photo 版本
1.0.0.5259、提交5f049fd84c74402e8ed78b3ad271652a03367b33的 state-with-data 报告 显示范围柱由 3 条变成全部 11 条。该批次 2088 项任务中有 1 项截图不匹配,不能以此前本地全量结果认定 Photo 通过。读取平台当前保存的 case 源码(非历史快照)后,在该提交构建上复现了同一问题:显式
field阻止自动绑定轴,旧执行路径会使用字段筛选,但窗口初始化仍按配置的axis模式跳过筛选域计算。两版窗口值均为[1681931520,1681956000],当前提交缺失筛选域,导致全部数据进入主图。现在在关联轴解析完成后统一确定实际筛选模式,窗口解析、数据 transform 和事件共用该模式。DataZoom 与 ScrollBar 均适用;显式关联轴时仍按轴范围缩放。没有添加时间轴、范围柱或具体 case 的运行时分支。新增 10 项图表级测试,覆盖初始混合窗口、域扩张、空数据回填、API 交互、事件标志及显式绑定轴;补充中英文模式说明。
将来源 case 的区间、逆序数据和混合窗口迁入本地视觉清单。修复后只显示
TOP 9、TOP 8、TOP 6,原始 case 在相同浏览器环境下与 develop 的截图逐字节一致。全量单测失败修复
全量测试中发现的以下独立问题已定位并处理:
jest-electron 复用浏览器全局对象,但每个测试文件重新加载模块,导致 VRender 全局 application 引用旧模块的图元注册表。测试环境现在释放遗留图表,并在套件结束后移除套件新增、可配置的全局 Symbol,保留宿主与框架状态。
Compiler 销毁时未取消待执行的增量渲染帧,后续回调可能访问已释放的系列统计。现在在释放图元前复用 clearProgressive 取消帧并释放布局资源。
本次 pre-push 暴露了
jest-electron@0.1.12的多窗口重跑问题:新窗口触发WebContentsReady时会执行已有窗口的runAllTest(),诊断日志捕获了同一窗口内同一套件多次重叠setup。串行全量通过不能证明默认并发稳定。现在通过 Jest 标准maxWorkers: 1固定单窗口,覆盖率脚本也移除-w 16覆盖;保留全部 103 个套件,不修改运行时或依赖源码。贡献指南记录了耗时取舍及恢复并发的条件。隔离回归验证连续两次模块加载和真实图表渲染;生命周期回归验证销毁时取消待执行帧,并在删除图元前释放增量布局。没有跳过失败用例或添加运行时异常兜底。
当前提交验证
提交
e8821370e8fb3cd0e3e62b1b9c6ef33ffd6bf96d的文件树ebd6ca36c3c264974f2a3cfce20c723ac21d8d2f与已验证内容一致,提交钩子没有改写源码。6e633ae207ee594f676a0c71ae28d4cb5ee747cb完成全部 285 个视觉用例:277 个比较通过,0 个报告像素差异、0 个执行错误、0 个未执行。新增datazoom-field-axis-mode的行为断言和像素比较均通过。注入 Stage 用例有 530 像素的轻微色值波动,单通道最大差 5/255;已检查图像,按仓库原有阈值通过,没有放宽阈值。new_baseline:datazoom-filter-update-empty、datazoom-field-statistics-update、datazoom-filter-update-axis-bounds、datazoom-filter-update-axis-zero、datazoom-filter-update-axis-domain、datazoom-filter-update-interactive-window、datazoom-value-window-update、datazoom-log-window-update。旧基线触发业务断言,当前版本全部通过并正常出图;已核对断言及源码,8 项截图与上一提交逐字节一致。没有替换基准或放宽阈值;报告总体状态为diff,并非全绿。5f049fd构建后,断言检出实际仍显示全部 11 条数据,反例有效。1795771523383-7708f808;运行前后源码指纹一致,并已核对提交文件树。Changelog
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough
VisActor 工作流(CN):awaiting_merge
当前提交:
e8821370e8fb3cd0e3e62b1b9c6ef33ffd6bf96d三项检查建议与 BugServer 人工确认