babylonjs-gui 6.4.1 → 6.5.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.
@@ -3198,12 +3198,25 @@ export class Rectangle extends Container {
3198
3198
  name?: string | undefined;
3199
3199
  private _thickness;
3200
3200
  private _cornerRadius;
3201
+ private _cachedRadius;
3201
3202
  /** Gets or sets border thickness */
3202
3203
  get thickness(): number;
3203
3204
  set thickness(value: number);
3204
- /** Gets or sets the corner radius angle */
3205
+ /** Gets or sets the corner radius of all angles */
3205
3206
  get cornerRadius(): number;
3206
3207
  set cornerRadius(value: number);
3208
+ /** Gets or sets the corner radius top left angle */
3209
+ get cornerRadiusX(): number;
3210
+ set cornerRadiusX(value: number);
3211
+ /** Gets or sets the corner radius top right angle */
3212
+ get cornerRadiusY(): number;
3213
+ set cornerRadiusY(value: number);
3214
+ /** Gets or sets the corner radius bottom left angle */
3215
+ get cornerRadiusZ(): number;
3216
+ set cornerRadiusZ(value: number);
3217
+ /** Gets or sets the corner radius bottom right angle */
3218
+ get cornerRadiusW(): number;
3219
+ set cornerRadiusW(value: number);
3207
3220
  /**
3208
3221
  * Creates a new Rectangle
3209
3222
  * @param name defines the control name
@@ -4122,6 +4135,7 @@ export class TextBlock extends Control {
4122
4135
  private _lineThrough;
4123
4136
  private _wordDivider;
4124
4137
  private _forceResizeWidth;
4138
+ private _applyOutlineToUnderline;
4125
4139
  /**
4126
4140
  * An event triggered after the text is changed
4127
4141
  */
@@ -4210,6 +4224,11 @@ export class TextBlock extends Control {
4210
4224
  * Gets or sets an boolean indicating that text must be crossed out
4211
4225
  */
4212
4226
  set lineThrough(value: boolean);
4227
+ /**
4228
+ * If the outline should be applied to the underline/strike-through too. Has different behavior in Edge/Chrome vs Firefox.
4229
+ */
4230
+ get applyOutlineToUnderline(): boolean;
4231
+ set applyOutlineToUnderline(value: boolean);
4213
4232
  /**
4214
4233
  * Gets or sets outlineColor of the text to display
4215
4234
  */
@@ -4246,6 +4265,7 @@ export class TextBlock extends Control {
4246
4265
  protected _getTypeName(): string;
4247
4266
  protected _processMeasures(parentMeasure: Measure, context: ICanvasRenderingContext): void;
4248
4267
  private _drawText;
4268
+ private _drawLine;
4249
4269
  /**
4250
4270
  * @internal
4251
4271
  */
@@ -11751,12 +11771,25 @@ declare module BABYLON.GUI {
11751
11771
  name?: string | undefined;
11752
11772
  private _thickness;
11753
11773
  private _cornerRadius;
11774
+ private _cachedRadius;
11754
11775
  /** Gets or sets border thickness */
11755
11776
  get thickness(): number;
11756
11777
  set thickness(value: number);
11757
- /** Gets or sets the corner radius angle */
11778
+ /** Gets or sets the corner radius of all angles */
11758
11779
  get cornerRadius(): number;
11759
11780
  set cornerRadius(value: number);
11781
+ /** Gets or sets the corner radius top left angle */
11782
+ get cornerRadiusX(): number;
11783
+ set cornerRadiusX(value: number);
11784
+ /** Gets or sets the corner radius top right angle */
11785
+ get cornerRadiusY(): number;
11786
+ set cornerRadiusY(value: number);
11787
+ /** Gets or sets the corner radius bottom left angle */
11788
+ get cornerRadiusZ(): number;
11789
+ set cornerRadiusZ(value: number);
11790
+ /** Gets or sets the corner radius bottom right angle */
11791
+ get cornerRadiusW(): number;
11792
+ set cornerRadiusW(value: number);
11760
11793
  /**
11761
11794
  * Creates a new Rectangle
11762
11795
  * @param name defines the control name
@@ -12611,6 +12644,7 @@ declare module BABYLON.GUI {
12611
12644
  private _lineThrough;
12612
12645
  private _wordDivider;
12613
12646
  private _forceResizeWidth;
12647
+ private _applyOutlineToUnderline;
12614
12648
  /**
12615
12649
  * An event triggered after the text is changed
12616
12650
  */
@@ -12699,6 +12733,11 @@ declare module BABYLON.GUI {
12699
12733
  * Gets or sets an boolean indicating that text must be crossed out
12700
12734
  */
12701
12735
  set lineThrough(value: boolean);
12736
+ /**
12737
+ * If the outline should be applied to the underline/strike-through too. Has different behavior in Edge/Chrome vs Firefox.
12738
+ */
12739
+ get applyOutlineToUnderline(): boolean;
12740
+ set applyOutlineToUnderline(value: boolean);
12702
12741
  /**
12703
12742
  * Gets or sets outlineColor of the text to display
12704
12743
  */
@@ -12735,6 +12774,7 @@ declare module BABYLON.GUI {
12735
12774
  protected _getTypeName(): string;
12736
12775
  protected _processMeasures(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
12737
12776
  private _drawText;
12777
+ private _drawLine;
12738
12778
  /**
12739
12779
  * @internal
12740
12780
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "6.4.1",
3
+ "version": "6.5.0",
4
4
  "main": "babylon.gui.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.4.1"
17
+ "babylonjs": "^6.5.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",