dsh-thinking-slider 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/lib/client.js +10 -3
  2. 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
- particle.y = height * (0.28 + Math.random() * 0.44)
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
- cellH = Math.max(3, height / 6)
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-thinking-slider",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
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",