feat(vseed): 支持静态图例与饼环图样式,保持既有默认行为 - #554
Merged
Merged
Conversation
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.
🤔 This is a ...
💡 Background and solution
轻量 dashboard 的静态图例、饼环图几何与样式、固定中心文本此前依赖调用方覆盖 VChart spec。本次将这些能力下沉到 VSeed DSL 和主题,通过独立 pipe 组合,dashboard 直接使用公开配置。
legend.interactive: false关闭图例交互;原有标记尺寸、间距、最大宽度、padding 和默认筛选行为保持不变。pieStyle。默认继续悬停放大,边框沿用 ≤30 条数据时 1px、>30 条时隐藏的规则;未配置角度时继续由 VChart 及其主题决定。centerText.titleText/subTitleText提供固定中心内容,字号、字重、间距等由主题提供默认值;不配置内容时不显示。示例:在现有环图 DSL 中增加以下配置即可,无需覆盖 VChart spec:
更新配套配置文档、示例、patch changeset 与覆盖率门槛;同时整理开发规范,统一能力归属、原子 pipeline、兼容性与覆盖率要求。
Validation
pnpm --filter @visactor/vseed run g:通过。lint:check、typecheck:通过;提交钩子的格式与 lint 检查通过。62f73ac10f:205 个已有示例分别使用 light/dark 主题,另加 96 个普通/透视、稠密数据和旧主题场景,共 506 组输出 spec 一致。全量覆盖率 S/B/F/L:90.98% / 82.17% / 84.52% / 90.98%。未降低门槛或调整统计范围,未更新测试快照。
☑️ Self-Check before Merge