feat(slider): 思考强度滑条重做为 dsh-reasoning-effort 同款连续拖动条 - #2
Merged
Merged
Conversation
- 轨道 1:1 复刻 HanaAyane/dsh-reasoning-effort(MIT):胶囊轨道渐变 + canvas 像素辐射 + 白色旋钮,--re-progress 百分比驱动 - 手感同上游:raw 浮点连续跟手,松手吸附最近档位;提交中 is-busy,失败回弹 - 移除分段概念,setSegments 仅兼容保留;SKILL.md 样式规格同步
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.
背景
原滑条为「分段轨道」样式(每档一段胶囊)。本 PR 将其 1:1 复刻为 HanaAyane/dsh-reasoning-effort(MIT)的思考强度拖动条样式。
改动(仅 2 个文件:滑条脚本 + SKILL.md,不碰任何提交/解析逻辑)
linear-gradient(100deg,#03040a…#5d35a0))+ 内高光;浅色为浅蓝底(#e5f0ff)+::before渐变进度填充。类名与 CSS 数值与上游styles.ts逐字一致,便于对照;主题条件body[data-ds-dark-theme]映射为面板zs-dark类。drawRadiation(4px 像素格能量柱 + 14 条拖尾粒子 + 旋钮处径向辉光;深色 screen / 浅色 multiply,prefers-reduced-motion只画一帧)。Math.round吸附最近档提交;is-dragging(跟手增辉/粒子加速 2.8×)、is-busy(提交中 opacity .72)、is-error(未知档位描边)、data-top(顶端呼吸动画,深浅两套 keyframes)。__zsliderCtl.setSegments因连续轨道无段数概念已废弃(接口保留防报错)。验证
node --check+tests/slider_smoke.js通过(接口成员齐全)。基于 0.6.4(b621bc5)之上,无冲突。