@luceosports/play-rendering 2.2.8 → 2.2.9

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": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "main": "dist/play-rendering.js",
5
5
  "types": "dist/play-rendering.d.ts",
6
6
  "scripts": {
@@ -489,8 +489,9 @@ export default class FrameModel {
489
489
  prepareCourtPoint(courtPoint: CourtPoint) {
490
490
  const { mirror } = this.play.options;
491
491
  const { width } = this.play.playData.court.courtRect.size;
492
+ const { origin } = this.play.playData.court.courtRect;
492
493
  return {
493
- x: mirror ? width - courtPoint.x : courtPoint.x,
494
+ x: mirror ? width + origin.x - (courtPoint.x - origin.x) : courtPoint.x,
494
495
  y: courtPoint.y
495
496
  };
496
497
  }