@luceosports/play-rendering 2.6.1 → 2.6.2

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.
@@ -1,6 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import Model from './Base/InternalFrameModel';
3
3
  import { AnimationMode, Line as LineData, LinePart } from '../types';
4
+ import { isBallTransferLineType } from '../helpers/common';
4
5
 
5
6
  export type CourtPointAdjusted = { x: number; y: number; time?: number };
6
7
  export type LineAdjusted = LineData;
@@ -82,7 +83,7 @@ export default class LineModel extends Model<LineData, LineAdjusted> {
82
83
  }
83
84
 
84
85
  get isBallTransferLine() {
85
- return ['PASS', 'HANDOFF', 'SHOT'].includes(this.type);
86
+ return isBallTransferLineType(this.type);
86
87
  }
87
88
 
88
89
  get phase() {