@luceosports/play-rendering 1.18.0 → 1.18.1

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.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "",
5
5
  "main": "dist/play-rendering.js",
6
6
  "scripts": {
@@ -19,7 +19,8 @@ module.exports = {
19
19
  this.ctx.moveTo(cp[0].x, cp[0].y);
20
20
 
21
21
  if (cp.length === 2) {
22
- this.ctx.lineCap = 'round'; // fix last straight line cap segment (needed for dribble lines)
22
+ // TODO refactor next line to avoid access to line/shape model
23
+ if ((this.line || this.shape).type === 'DRIBBLE') this.ctx.lineCap = 'round'; // fix last straight line cap segment
23
24
  this.ctx.lineTo(cp[1].x, cp[1].y);
24
25
  }
25
26
  if (cp.length === 3) {