dsh-thinking-slider 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +16 -3
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -333,7 +333,10 @@ body[data-ds-dark-theme] .tsl-seg{background:linear-gradient(var(--dsw-alias-int
|
|
|
333
333
|
// as belonging to the selected level rather than the whole track.
|
|
334
334
|
const limit = limitOf(width, height, lookRef.current.fillFraction)
|
|
335
335
|
particle.x = atStart === true ? Math.random() * limit : -4
|
|
336
|
-
|
|
336
|
+
// Spread over the whole rail, not a middle strip: confining the field to
|
|
337
|
+
// 28%..72% of the height reads as a horizontal band across the track, and
|
|
338
|
+
// with a wallpaper behind the panel that band is impossible to unsee.
|
|
339
|
+
particle.y = height * (0.12 + Math.random() * 0.76)
|
|
337
340
|
particle.vx = (0.22 + Math.random() * 0.55) * (0.35 + energy)
|
|
338
341
|
particle.vy = (Math.random() - 0.5) * 0.3
|
|
339
342
|
particle.radius = 0.7 + Math.random() * 1.35
|
|
@@ -461,9 +464,13 @@ body[data-ds-dark-theme] .tsl-seg{background:linear-gradient(var(--dsw-alias-int
|
|
|
461
464
|
// A constant cell size in CSS pixels: the lattice must not reflow when
|
|
462
465
|
// the rail changes width, and the front keeps a pixel speed.
|
|
463
466
|
cellW = 4
|
|
464
|
-
|
|
467
|
+
// Derive the row count from the height and then divide it back, so the
|
|
468
|
+
// rows cover the rail exactly. Rounding a fixed cell height (height / 6)
|
|
469
|
+
// leaves a remainder that shows up as empty margins above and below the
|
|
470
|
+
// lattice — which reads as a band inside the track.
|
|
471
|
+
const rows = Math.max(1, Math.round(height / 4.33))
|
|
472
|
+
cellH = height / rows
|
|
465
473
|
const columns = Math.max(1, Math.round(width / cellW))
|
|
466
|
-
const rows = Math.max(1, Math.round(height / cellH))
|
|
467
474
|
cells = []
|
|
468
475
|
for (let row = 0; row < rows; row += 1) {
|
|
469
476
|
for (let column = 0; column < columns; column += 1) {
|
|
@@ -1200,6 +1207,12 @@ body[data-ds-dark-theme] .tsl-seg{background:linear-gradient(var(--dsw-alias-int
|
|
|
1200
1207
|
className: 'tsl-card',
|
|
1201
1208
|
role: 'dialog',
|
|
1202
1209
|
'aria-label': '模型与推理强度',
|
|
1210
|
+
// Opt out of decoration plugins that re-skin `[role="dialog"]` popups.
|
|
1211
|
+
// The wallpaper plugin honours `data-we-surface-runtime` on its own
|
|
1212
|
+
// selectors, meaning "this surface manages its own look"; without it, it
|
|
1213
|
+
// paints a white readability panel behind the dialog that peeks out as a
|
|
1214
|
+
// light strip at the card's edge. Harmless when the plugin is absent.
|
|
1215
|
+
'data-we-surface-runtime': '',
|
|
1203
1216
|
style: placement === null ? { left: 0, bottom: 0, visibility: 'hidden' } : placement,
|
|
1204
1217
|
children: pane === 'model' ? modelPane : effortPane,
|
|
1205
1218
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-thinking-slider",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Three visual modes for picking a model's reasoning level in the DeepSeek Harness composer: hand back to the native selector, a gradient particle rail, or an energy-charging track. The levels themselves come from DSH.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|