@babylonjs/gui 7.11.0 → 7.11.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }