@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.
- package/2D/controls/control.d.ts +1 -1
- package/2D/controls/control.js +5 -3
- package/2D/controls/control.js.map +1 -1
- package/2D/controls/ellipse.d.ts +4 -0
- package/2D/controls/ellipse.js +18 -3
- package/2D/controls/ellipse.js.map +1 -1
- package/2D/controls/inputText.js +1 -1
- package/2D/controls/inputText.js.map +1 -1
- package/2D/controls/inputTextArea.js +9 -9
- package/2D/controls/inputTextArea.js.map +1 -1
- package/2D/controls/radioButton.js +2 -2
- package/2D/controls/radioButton.js.map +1 -1
- package/package.json +2 -2
package/2D/controls/control.d.ts
CHANGED
@@ -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
|
package/2D/controls/control.js
CHANGED
@@ -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
|
-
|
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
|
}
|