@celljs/ta-plot 4.28.0 → 4.29.0

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/package.json +3 -3
  2. package/web/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-plot",
3
- "version": "4.28.0",
3
+ "version": "4.29.0",
4
4
  "description": "A pi package for Ta: functions and curves of replies drawn as animated plots, with params to drag",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -26,8 +26,8 @@
26
26
  "watch": "tsc -b -w --preserveWatchOutput"
27
27
  },
28
28
  "devDependencies": {
29
- "@celljs/ta-protocol": "4.28.0",
30
- "@celljs/ta-web": "4.28.0",
29
+ "@celljs/ta-protocol": "4.29.0",
30
+ "@celljs/ta-web": "4.29.0",
31
31
  "@types/react": "^19.3.0"
32
32
  },
33
33
  "publishConfig": {
package/web/index.js CHANGED
@@ -436,9 +436,9 @@ class PlotPainter {
436
436
  return;
437
437
  }
438
438
  const eased = 1 - (1 - shown) ** 3;
439
- if (curve.family) {
439
+ const slider = curve.family && plot.params[curve.family.index].slider;
440
+ if (curve.family && slider) {
440
441
  const { index: param, count } = curve.family;
441
- const slider = plot.params[param].slider;
442
442
  for (let k = 0;k < count; k++) {
443
443
  const others = sliders.slice();
444
444
  others[param] = slider.min + (slider.max - slider.min) * k / (count - 1);