@luceosports/play-rendering 1.10.13 → 1.11.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.
@@ -1,30 +0,0 @@
1
- const InternalShapeLayer = require('../base/InternalShapeLayer');
2
-
3
- class XmarkShapeLayer extends InternalShapeLayer {
4
- drawShapeLogic() {
5
- const { location, scale, shapeControlPoints } = this.shape;
6
- this.ctx.lineWidth = this.courtTypeConstants.COURT_LINE_WIDTH;
7
- this.ctx.translate(location.x, location.y);
8
- this.ctx.scale(scale.x, scale.y);
9
-
10
- this.ctx.beginPath();
11
-
12
- this.ctx.moveTo(shapeControlPoints[0].x, shapeControlPoints[0].y);
13
- this.ctx.lineTo(shapeControlPoints[0].x + 1, shapeControlPoints[0].y);
14
- this.ctx.lineTo(0, -1);
15
- this.ctx.lineTo(shapeControlPoints[1].x - 1, shapeControlPoints[1].y);
16
- this.ctx.lineTo(shapeControlPoints[1].x, shapeControlPoints[1].y);
17
- this.ctx.lineTo(1, 0);
18
- this.ctx.lineTo(shapeControlPoints[2].x, shapeControlPoints[2].y);
19
- this.ctx.lineTo(shapeControlPoints[2].x - 1, shapeControlPoints[2].y);
20
- this.ctx.lineTo(0, 1);
21
- this.ctx.lineTo(shapeControlPoints[3].x + 1, shapeControlPoints[2].y);
22
- this.ctx.lineTo(shapeControlPoints[3].x, shapeControlPoints[3].y);
23
- this.ctx.lineTo(-1, 0);
24
- this.ctx.lineTo(shapeControlPoints[0].x, shapeControlPoints[0].y);
25
-
26
- this.ctx.fill();
27
- }
28
- }
29
-
30
- module.exports = XmarkShapeLayer;
@@ -1,13 +0,0 @@
1
- const Shape = require('../Shape');
2
-
3
- class LineShape extends Shape {
4
- get outerCircleRadius() {
5
- return 10;
6
- }
7
-
8
- get shapeControlPoints() {
9
- return this.rectWrapPointsPure;
10
- }
11
- }
12
-
13
- module.exports = LineShape;