babylonjs-gui 5.0.0-rc.6 → 5.0.0-rc.7
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.
|
@@ -2854,9 +2854,9 @@ export class Rectangle extends Container {
|
|
|
2854
2854
|
constructor(name?: string | undefined);
|
|
2855
2855
|
protected _getTypeName(): string;
|
|
2856
2856
|
/** @hidden */
|
|
2857
|
-
protected _computeAdditionnalOffsetX():
|
|
2857
|
+
protected _computeAdditionnalOffsetX(): 0 | 1;
|
|
2858
2858
|
/** @hidden */
|
|
2859
|
-
protected _computeAdditionnalOffsetY():
|
|
2859
|
+
protected _computeAdditionnalOffsetY(): 0 | 1;
|
|
2860
2860
|
protected _localDraw(context: ICanvasRenderingContext): void;
|
|
2861
2861
|
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
2862
2862
|
private _drawRoundedRect;
|
|
@@ -7850,7 +7850,7 @@ declare module BABYLON.GUI {
|
|
|
7850
7850
|
|
|
7851
7851
|
/**
|
|
7852
7852
|
* Class used to create radio button controls
|
|
7853
7853
|
*/
|
|
7854
7854
|
export class RadioButton extends Control {
|
|
7855
7855
|
name?: string | undefined;
|
|
7856
7856
|
private _isChecked;
|
|
7857
7857
|
private _background;
|
|
7858
7858
|
private _checkSizeRatio;
|
|
7859
7859
|
private _thickness;
|
|
7860
7860
|
/** Gets or sets border thickness */
|
|
7861
7861
|
get thickness(): number;
|
|
7862
7862
|
set thickness(value: number);
|
|
7863
7863
|
/** Gets or sets group name */
|
|
7864
7864
|
group: string;
|
|
7865
7865
|
/** BABYLON.Observable raised when isChecked is changed */
|
|
7866
7866
|
onIsCheckedChangedObservable: BABYLON.Observable<boolean>;
|
|
7867
7867
|
/** Gets or sets a value indicating the ratio between overall size and check size */
|
|
7868
7868
|
get checkSizeRatio(): number;
|
|
7869
7869
|
set checkSizeRatio(value: number);
|
|
7870
7870
|
/** Gets or sets background color */
|
|
7871
7871
|
get background(): string;
|
|
7872
7872
|
set background(value: string);
|
|
7873
7873
|
/** Gets or sets a boolean indicating if the checkbox is checked or not */
|
|
7874
7874
|
get isChecked(): boolean;
|
|
7875
7875
|
set isChecked(value: boolean);
|
|
7876
7876
|
/**
|
|
7877
7877
|
* Creates a new RadioButton
|
|
7878
7878
|
* @param name defines the control name
|
|
7879
7879
|
*/
|
|
7880
7880
|
constructor(name?: string | undefined);
|
|
7881
7881
|
protected _getTypeName(): string;
|
|
7882
7882
|
_draw(context: BABYLON.ICanvasRenderingContext): void;
|
|
7883
7883
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
7884
7884
|
/**
|
|
7885
7885
|
* Utility function to easily create a radio button with a header
|
|
7886
7886
|
* @param title defines the label to use for the header
|
|
7887
7887
|
* @param group defines the group to use for the radio button
|
|
7888
7888
|
* @param isChecked defines the initial state of the radio button
|
|
7889
7889
|
* @param onValueChanged defines the callback to call when value changes
|
|
7890
7890
|
* @returns a StackPanel containing the radio button and a textBlock
|
|
7891
7891
|
*/
|
|
7892
7892
|
static AddRadioButtonWithHeader(title: string, group: string, isChecked: boolean, onValueChanged: (button: RadioButton, value: boolean) => void): StackPanel;
|
|
7893
7893
|
}
|
|
7894
7894
|
|
|
7895
|
-
/** Class used to create rectangle container */
|
|
7896
7895
|
export class Rectangle extends Container {
|
|
7897
7896
|
name?: string | undefined;
|
|
7898
7897
|
private _thickness;
|
|
7899
7898
|
private _cornerRadius;
|
|
7900
7899
|
/** Gets or sets border thickness */
|
|
7901
7900
|
get thickness(): number;
|
|
7902
7901
|
set thickness(value: number);
|
|
7903
7902
|
/** Gets or sets the corner radius angle */
|
|
7904
7903
|
get cornerRadius(): number;
|
|
7905
7904
|
set cornerRadius(value: number);
|
|
7906
7905
|
/**
|
|
7907
7906
|
* Creates a new Rectangle
|
|
7908
7907
|
* @param name defines the control name
|
|
7909
7908
|
*/
|
|
7910
7909
|
constructor(name?: string | undefined);
|
|
7911
7910
|
protected _getTypeName(): string;
|
|
7912
7911
|
/** @hidden */
|
|
7913
7912
|
protected _computeAdditionnalOffsetX(): 1 | 0;
|
|
7914
7913
|
/** @hidden */
|
|
7915
7914
|
protected _computeAdditionnalOffsetY(): 1 | 0;
|
|
7916
7915
|
protected _localDraw(context: BABYLON.ICanvasRenderingContext): void;
|
|
7917
7916
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
|
7918
7917
|
private _drawRoundedRect;
|
|
7919
7918
|
protected _clipForChildren(context: BABYLON.ICanvasRenderingContext): void;
|
|
7920
7919
|
}
|
|
7920
|
+
/** Class used to create rectangle container */
|
|
7921
7921
|
export class Rectangle extends Container {
|
|
7922
7922
|
name?: string | undefined;
|
|
7923
7923
|
private _thickness;
|
|
7924
7924
|
private _cornerRadius;
|
|
7925
7925
|
/** Gets or sets border thickness */
|
|
7926
7926
|
get thickness(): number;
|
|
7927
7927
|
set thickness(value: number);
|
|
7928
7928
|
/** Gets or sets the corner radius angle */
|
|
7929
7929
|
get cornerRadius(): number;
|
|
7930
7930
|
set cornerRadius(value: number);
|
|
7931
7931
|
/**
|
|
7932
7932
|
* Creates a new Rectangle
|
|
7933
7933
|
* @param name defines the control name
|
|
7934
7934
|
*/
|
|
7935
7935
|
constructor(name?: string | undefined);
|
|
7936
7936
|
protected _getTypeName(): string;
|
|
7937
7937
|
/** @hidden */
|
|
7938
7938
|
protected _computeAdditionnalOffsetX(): 0 | 1;
|
|
7939
7939
|
/** @hidden */
|
|
7940
7940
|
protected _computeAdditionnalOffsetY(): 0 | 1;
|
|
7941
7941
|
protected _localDraw(context: BABYLON.ICanvasRenderingContext): void;
|
|
7942
7942
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
|
7943
7943
|
private _drawRoundedRect;
|
|
7944
7944
|
protected _clipForChildren(context: BABYLON.ICanvasRenderingContext): void;
|
|
7945
7945
|
}
|
|
7946
7946
|
|
|
7947
7947
|
/**
|
|
7948
7948
|
* Class used to hold a viewer window and sliders in a grid
|
|
7949
7949
|
*/
|
|
7950
7950
|
export class ScrollViewer extends Rectangle {
|
|
7951
7951
|
private _grid;
|
|
7952
7952
|
private _horizontalBarSpace;
|
|
7953
7953
|
private _verticalBarSpace;
|
|
7954
7954
|
private _dragSpace;
|
|
7955
7955
|
private _horizontalBar;
|
|
7956
7956
|
private _verticalBar;
|
|
7957
7957
|
private _barColor;
|
|
7958
7958
|
private _barBackground;
|
|
7959
7959
|
private _barImage;
|
|
7960
7960
|
private _horizontalBarImage;
|
|
7961
7961
|
private _verticalBarImage;
|
|
7962
7962
|
private _barBackgroundImage;
|
|
7963
7963
|
private _horizontalBarBackgroundImage;
|
|
7964
7964
|
private _verticalBarBackgroundImage;
|
|
7965
7965
|
private _barSize;
|
|
7966
7966
|
private _window;
|
|
7967
7967
|
private _pointerIsOver;
|
|
7968
7968
|
private _wheelPrecision;
|
|
7969
7969
|
private _onWheelObserver;
|
|
7970
7970
|
private _clientWidth;
|
|
7971
7971
|
private _clientHeight;
|
|
7972
7972
|
private _useImageBar;
|
|
7973
7973
|
private _thumbLength;
|
|
7974
7974
|
private _thumbHeight;
|
|
7975
7975
|
private _barImageHeight;
|
|
7976
7976
|
private _horizontalBarImageHeight;
|
|
7977
7977
|
private _verticalBarImageHeight;
|
|
7978
7978
|
private _oldWindowContentsWidth;
|
|
7979
7979
|
private _oldWindowContentsHeight;
|
|
7980
7980
|
/**
|
|
7981
7981
|
* Gets the horizontal scrollbar
|
|
7982
7982
|
*/
|
|
7983
7983
|
get horizontalBar(): ScrollBar | ImageScrollBar;
|
|
7984
7984
|
/**
|
|
7985
7985
|
* Gets the vertical scrollbar
|
|
7986
7986
|
*/
|
|
7987
7987
|
get verticalBar(): ScrollBar | ImageScrollBar;
|
|
7988
7988
|
/**
|
|
7989
7989
|
* Adds a new control to the current container
|
|
7990
7990
|
* @param control defines the control to add
|
|
7991
7991
|
* @returns the current container
|
|
7992
7992
|
*/
|
|
7993
7993
|
addControl(control: BABYLON.Nullable<Control>): Container;
|
|
7994
7994
|
/**
|
|
7995
7995
|
* Removes a control from the current container
|
|
7996
7996
|
* @param control defines the control to remove
|
|
7997
7997
|
* @returns the current container
|
|
7998
7998
|
*/
|
|
7999
7999
|
removeControl(control: Control): Container;
|
|
8000
8000
|
/** Gets the list of children */
|
|
8001
8001
|
get children(): Control[];
|
|
8002
8002
|
_flagDescendantsAsMatrixDirty(): void;
|
|
8003
8003
|
/**
|
|
8004
8004
|
* Freezes or unfreezes the controls in the window.
|
|
8005
8005
|
* When controls are frozen, the scroll viewer can render a lot more quickly but updates to positions/sizes of controls
|
|
8006
8006
|
* are not taken into account. If you want to change positions/sizes, unfreeze, perform the changes then freeze again
|
|
8007
8007
|
*/
|
|
8008
8008
|
get freezeControls(): boolean;
|
|
8009
8009
|
set freezeControls(value: boolean);
|
|
8010
8010
|
/** Gets the bucket width */
|
|
8011
8011
|
get bucketWidth(): number;
|
|
8012
8012
|
/** Gets the bucket height */
|
|
8013
8013
|
get bucketHeight(): number;
|
|
8014
8014
|
/**
|
|
8015
8015
|
* Sets the bucket sizes.
|
|
8016
8016
|
* When freezeControls is true, setting a non-zero bucket size will improve performances by updating only
|
|
8017
8017
|
* controls that are visible. The bucket sizes is used to subdivide (internally) the window area to smaller areas into which
|
|
8018
8018
|
* controls are dispatched. So, the size should be roughly equals to the mean size of all the controls of
|
|
8019
8019
|
* the window. To disable the usage of buckets, sets either width or height (or both) to 0.
|
|
8020
8020
|
* Please note that using this option will raise the memory usage (the higher the bucket sizes, the less memory
|
|
8021
8021
|
* used), that's why it is not enabled by default.
|
|
8022
8022
|
* @param width width of the bucket
|
|
8023
8023
|
* @param height height of the bucket
|
|
8024
8024
|
*/
|
|
8025
8025
|
setBucketSizes(width: number, height: number): void;
|
|
8026
8026
|
private _forceHorizontalBar;
|
|
8027
8027
|
private _forceVerticalBar;
|
|
8028
8028
|
/**
|
|
8029
8029
|
* Forces the horizontal scroll bar to be displayed
|
|
8030
8030
|
*/
|
|
8031
8031
|
get forceHorizontalBar(): boolean;
|
|
8032
8032
|
set forceHorizontalBar(value: boolean);
|
|
8033
8033
|
/**
|
|
8034
8034
|
* Forces the vertical scroll bar to be displayed
|
|
8035
8035
|
*/
|
|
8036
8036
|
get forceVerticalBar(): boolean;
|
|
8037
8037
|
set forceVerticalBar(value: boolean);
|
|
8038
8038
|
/**
|
|
8039
8039
|
* Creates a new ScrollViewer
|
|
8040
8040
|
* @param name of ScrollViewer
|
|
8041
8041
|
* @param isImageBased
|
|
8042
8042
|
*/
|
|
8043
8043
|
constructor(name?: string, isImageBased?: boolean);
|
|
8044
8044
|
/** Reset the scroll viewer window to initial size */
|
|
8045
8045
|
resetWindow(): void;
|
|
8046
8046
|
protected _getTypeName(): string;
|
|
8047
8047
|
private _buildClientSizes;
|
|
8048
8048
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
|
8049
8049
|
protected _postMeasure(): void;
|
|
8050
8050
|
/**
|
|
8051
8051
|
* Gets or sets the mouse wheel precision
|
|
8052
8052
|
* from 0 to 1 with a default value of 0.05
|
|
8053
8053
|
* */
|
|
8054
8054
|
get wheelPrecision(): number;
|
|
8055
8055
|
set wheelPrecision(value: number);
|
|
8056
8056
|
/** Gets or sets the scroll bar container background color */
|
|
8057
8057
|
get scrollBackground(): string;
|
|
8058
8058
|
set scrollBackground(color: string);
|
|
8059
8059
|
/** Gets or sets the bar color */
|
|
8060
8060
|
get barColor(): string;
|
|
8061
8061
|
set barColor(color: string);
|
|
8062
8062
|
/** Gets or sets the bar image */
|
|
8063
8063
|
get thumbImage(): Image;
|
|
8064
8064
|
set thumbImage(value: Image);
|
|
8065
8065
|
/** Gets or sets the horizontal bar image */
|
|
8066
8066
|
get horizontalThumbImage(): Image;
|
|
8067
8067
|
set horizontalThumbImage(value: Image);
|
|
8068
8068
|
/** Gets or sets the vertical bar image */
|
|
8069
8069
|
get verticalThumbImage(): Image;
|
|
8070
8070
|
set verticalThumbImage(value: Image);
|
|
8071
8071
|
/** Gets or sets the size of the bar */
|
|
8072
8072
|
get barSize(): number;
|
|
8073
8073
|
set barSize(value: number);
|
|
8074
8074
|
/** Gets or sets the length of the thumb */
|
|
8075
8075
|
get thumbLength(): number;
|
|
8076
8076
|
set thumbLength(value: number);
|
|
8077
8077
|
/** Gets or sets the height of the thumb */
|
|
8078
8078
|
get thumbHeight(): number;
|
|
8079
8079
|
set thumbHeight(value: number);
|
|
8080
8080
|
/** Gets or sets the height of the bar image */
|
|
8081
8081
|
get barImageHeight(): number;
|
|
8082
8082
|
set barImageHeight(value: number);
|
|
8083
8083
|
/** Gets or sets the height of the horizontal bar image */
|
|
8084
8084
|
get horizontalBarImageHeight(): number;
|
|
8085
8085
|
set horizontalBarImageHeight(value: number);
|
|
8086
8086
|
/** Gets or sets the height of the vertical bar image */
|
|
8087
8087
|
get verticalBarImageHeight(): number;
|
|
8088
8088
|
set verticalBarImageHeight(value: number);
|
|
8089
8089
|
/** Gets or sets the bar background */
|
|
8090
8090
|
get barBackground(): string;
|
|
8091
8091
|
set barBackground(color: string);
|
|
8092
8092
|
/** Gets or sets the bar background image */
|
|
8093
8093
|
get barImage(): Image;
|
|
8094
8094
|
set barImage(value: Image);
|
|
8095
8095
|
/** Gets or sets the horizontal bar background image */
|
|
8096
8096
|
get horizontalBarImage(): Image;
|
|
8097
8097
|
set horizontalBarImage(value: Image);
|
|
8098
8098
|
/** Gets or sets the vertical bar background image */
|
|
8099
8099
|
get verticalBarImage(): Image;
|
|
8100
8100
|
set verticalBarImage(value: Image);
|
|
8101
8101
|
private _setWindowPosition;
|
|
8102
8102
|
/** @hidden */
|
|
8103
8103
|
private _updateScroller;
|
|
8104
8104
|
_link(host: AdvancedDynamicTexture): void;
|
|
8105
8105
|
/**
|
|
8106
8106
|
* @param barControl
|
|
8107
8107
|
* @param barContainer
|
|
8108
8108
|
* @param isVertical
|
|
8109
8109
|
* @param rotation
|
|
8110
8110
|
* @hidden
|
|
8111
8111
|
*/
|
|
8112
8112
|
private _addBar;
|
|
8113
8113
|
/** @hidden */
|
|
8114
8114
|
private _attachWheel;
|
|
8115
8115
|
_renderHighlightSpecific(context: BABYLON.ICanvasRenderingContext): void;
|
|
8116
8116
|
/** Releases associated resources */
|
|
8117
8117
|
dispose(): void;
|
|
8118
8118
|
}
|
|
8119
8119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.7",
|
|
4
4
|
"main": "dist/babylon.gui.js",
|
|
5
5
|
"types": "dist/babylon.gui.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"clean": "rimraf dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"babylonjs": "^5.0.0-rc.
|
|
18
|
+
"babylonjs": "^5.0.0-rc.7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|