@luceosports/play-rendering 1.9.39 → 1.9.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luceosports/play-rendering",
3
- "version": "1.9.39",
3
+ "version": "1.9.40",
4
4
  "description": "",
5
5
  "main": "dist/play-rendering.js",
6
6
  "scripts": {
@@ -63,7 +63,7 @@ class DribbleLineLayer extends InternalLineLayer {
63
63
  }
64
64
  }
65
65
 
66
- let alpha = lp.alpha || 1;
66
+ let alpha = lp.alpha || this.line.color.alpha;
67
67
  if (this.options.animationGlobalProgress) {
68
68
  const [start, end] = this.line.animationKeyTimeChunks[lpIndex];
69
69
  if (_.inRange(this.options.animationGlobalProgress, start, end)) {
@@ -150,7 +150,7 @@ class Frame {
150
150
  this.animationProgress(start, end)
151
151
  );
152
152
  linePartsAdjusted.push({ controlPoints: linePathSplitted[0], alpha: 0.1 });
153
- linePartsAdjusted.push({ controlPoints: linePathSplitted[1], alpha: 1 });
153
+ linePartsAdjusted.push({ controlPoints: linePathSplitted[1], alpha: line.color.alpha });
154
154
  } else if (this.animationGlobalProgress > end) {
155
155
  linePartsAdjusted.push({ ...line.getLineParts()[index], alpha: 0.1 });
156
156
  } else {