@babylonjs/gui 7.11.1 → 7.11.3

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.
@@ -881,7 +881,7 @@ export declare class Control implements IAnimatable {
881
881
  /**
882
882
  * @internal
883
883
  */
884
- protected static drawEllipse(x: number, y: number, width: number, height: number, context: ICanvasRenderingContext): void;
884
+ protected static drawEllipse(x: number, y: number, width: number, height: number, arc: number, context: ICanvasRenderingContext): void;
885
885
  /**
886
886
  * Returns true if the control is ready to be used
887
887
  * @returns
@@ -2142,12 +2142,14 @@ export class Control {
2142
2142
  /**
2143
2143
  * @internal
2144
2144
  */
2145
- static drawEllipse(x, y, width, height, context) {
2145
+ static drawEllipse(x, y, width, height, arc, context) {
2146
2146
  context.translate(x, y);
2147
2147
  context.scale(width, height);
2148
2148
  context.beginPath();
2149
- context.arc(0, 0, 1, 0, 2 * Math.PI);
2150
- context.closePath();
2149
+ context.arc(0, 0, 1, 0, 2 * Math.PI * arc, arc < 0);
2150
+ if (arc >= 1) {
2151
+ context.closePath();
2152
+ }
2151
2153
  context.scale(1 / width, 1 / height);
2152
2154
  context.translate(-x, -y);
2153
2155
  }