|
@@ -11,7 +11,7 @@ declare module BABYLON.GUI {
|
|
|
private _originalUnit;
|
|
|
/**
|
|
|
* Gets or sets a value indicating that this value will not scale accordingly with adaptive scaling property
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
*/
|
|
|
ignoreAdaptiveScaling: boolean;
|
|
|
/**
|
|
@@ -281,14 +281,24 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Computes the axis aligned bounding box of the measure after it is modified by a given transform
|
|
|
* @param transform the matrix to transform the measure before computing the AABB
|
|
|
+ * @param addX number to add to left
|
|
|
+ * @param addY number to add to top
|
|
|
+ * @param addWidth number to add to width
|
|
|
+ * @param addHeight number to add to height
|
|
|
* @param result the resulting AABB
|
|
|
*/
|
|
|
- transformToRef(transform: Matrix2D, result: Measure): void;
|
|
|
+ addAndTransformToRef(transform: Matrix2D, addX: number, addY: number, addWidth: number, addHeight: number, result: Measure): void;
|
|
|
/**
|
|
|
- * Check equality between this measure and another one
|
|
|
- * @param other defines the other measures
|
|
|
- * @returns true if both measures are equals
|
|
|
+ * Computes the axis aligned bounding box of the measure after it is modified by a given transform
|
|
|
+ * @param transform the matrix to transform the measure before computing the AABB
|
|
|
+ * @param result the resulting AABB
|
|
|
*/
|
|
|
+ transformToRef(transform: Matrix2D, result: Measure): void;
|
|
|
+ /**
|
|
|
+ * Check equality between this measure and another one
|
|
|
+ * @param other defines the other measures
|
|
|
+ * @returns true if both measures are equals
|
|
|
+ */
|
|
|
isEqualsTo(other: Measure): boolean;
|
|
|
/**
|
|
|
* Creates an empty measure
|
|
@@ -323,7 +333,7 @@ declare module BABYLON.GUI {
|
|
|
}
|
|
|
/**
|
|
|
* Class used to create texture to support 2D GUI elements
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui
|
|
|
*/
|
|
|
export class AdvancedDynamicTexture extends BABYLON.DynamicTexture {
|
|
|
private _isDirty;
|
|
@@ -333,6 +343,7 @@ declare module BABYLON.GUI {
|
|
|
private _pointerMoveObserver;
|
|
|
private _pointerObserver;
|
|
|
private _canvasPointerOutObserver;
|
|
|
+ private _canvasBlurObserver;
|
|
|
private _background;
|
|
|
/** @hidden */
|
|
|
_rootContainer: Container;
|
|
@@ -410,6 +421,10 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
premulAlpha: boolean;
|
|
|
/**
|
|
|
+ * Gets or sets a boolean indicating that the canvas must be reverted on Y when updating the texture
|
|
|
+ */
|
|
|
+ applyYInversionOnUpdate: boolean;
|
|
|
+ /**
|
|
|
* Gets or sets a number used to scale rendering size (2 means that the texture will be twice bigger).
|
|
|
* Useful when you want more antialiasing
|
|
|
*/
|
|
@@ -421,32 +436,32 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Gets or sets the ideal width used to design controls.
|
|
|
* The GUI will then rescale everything accordingly
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
*/
|
|
|
get idealWidth(): number;
|
|
|
set idealWidth(value: number);
|
|
|
/**
|
|
|
* Gets or sets the ideal height used to design controls.
|
|
|
* The GUI will then rescale everything accordingly
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
*/
|
|
|
get idealHeight(): number;
|
|
|
set idealHeight(value: number);
|
|
|
/**
|
|
|
* Gets or sets a boolean indicating if the smallest ideal value must be used if idealWidth and idealHeight are both set
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
*/
|
|
|
get useSmallestIdeal(): boolean;
|
|
|
set useSmallestIdeal(value: boolean);
|
|
|
/**
|
|
|
* Gets or sets a boolean indicating if adaptive scaling must be used
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
*/
|
|
|
get renderAtIdealSize(): boolean;
|
|
|
set renderAtIdealSize(value: boolean);
|
|
|
/**
|
|
|
* Gets the ratio used when in "ideal mode"
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
|
* */
|
|
|
get idealRatio(): number;
|
|
|
/**
|
|
@@ -493,8 +508,9 @@ declare module BABYLON.GUI {
|
|
|
* @param scene defines the hosting scene
|
|
|
* @param generateMipMaps defines a boolean indicating if mipmaps must be generated (false by default)
|
|
|
* @param samplingMode defines the texture sampling mode (Texture.NEAREST_SAMPLINGMODE by default)
|
|
|
+ * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
|
*/
|
|
|
- constructor(name: string, width: number | undefined, height: number | undefined, scene: BABYLON.Nullable<BABYLON.Scene>, generateMipMaps?: boolean, samplingMode?: number);
|
|
|
+ constructor(name: string, width: number | undefined, height: number | undefined, scene: BABYLON.Nullable<BABYLON.Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
|
|
|
/**
|
|
|
* Get the current class name of the texture useful for serialization or dynamic coding.
|
|
|
* @returns "AdvancedDynamicTexture"
|
|
@@ -528,7 +544,7 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Helper function used to create a new style
|
|
|
* @returns a new style
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#styles
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#styles
|
|
|
*/
|
|
|
createStyle(): Style;
|
|
|
/**
|
|
@@ -557,6 +573,13 @@ declare module BABYLON.GUI {
|
|
|
* @returns the projected position
|
|
|
*/
|
|
|
getProjectedPosition(position: BABYLON.Vector3, worldMatrix: BABYLON.Matrix): BABYLON.Vector2;
|
|
|
+ /**
|
|
|
+ * Get screen coordinates for a vector3
|
|
|
+ * @param position defines the position to project
|
|
|
+ * @param worldMatrix defines the world matrix to use
|
|
|
+ * @returns the projected position with Z
|
|
|
+ */
|
|
|
+ getProjectedPositionWithZ(position: BABYLON.Vector3, worldMatrix: BABYLON.Matrix): BABYLON.Vector3;
|
|
|
private _checkUpdate;
|
|
|
private _clearMeasure;
|
|
|
private _render;
|
|
@@ -600,6 +623,7 @@ declare module BABYLON.GUI {
|
|
|
moveFocusToControl(control: IFocusableControl): void;
|
|
|
private _manageFocus;
|
|
|
private _attachToOnPointerOut;
|
|
|
+ private _attachToOnBlur;
|
|
|
/**
|
|
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh)
|
|
|
* @param mesh defines the mesh which will receive the texture
|
|
@@ -607,9 +631,20 @@ declare module BABYLON.GUI {
|
|
|
* @param height defines the texture height (1024 by default)
|
|
|
* @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
|
|
|
* @param onlyAlphaTesting defines a boolean indicating that alpha blending will not be used (only alpha testing) (false by default)
|
|
|
+ * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
|
* @returns a new AdvancedDynamicTexture
|
|
|
*/
|
|
|
- static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean): AdvancedDynamicTexture;
|
|
|
+ static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean): AdvancedDynamicTexture;
|
|
|
+ /**
|
|
|
+ * Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
|
|
|
+ * @param mesh defines the mesh which will receive the texture
|
|
|
+ * @param width defines the texture width (1024 by default)
|
|
|
+ * @param height defines the texture height (1024 by default)
|
|
|
+ * @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
|
|
|
+ * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
|
+ * @returns a new AdvancedDynamicTexture
|
|
|
+ */
|
|
|
+ static CreateForMeshTexture(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, invertY?: boolean): AdvancedDynamicTexture;
|
|
|
/**
|
|
|
* Creates a new AdvancedDynamicTexture in fullscreen mode.
|
|
|
* In this mode the texture will rely on a layer for its rendering.
|
|
@@ -628,7 +663,7 @@ declare module BABYLON.GUI {
|
|
|
declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Root class used for all 2D controls
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#controls
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#controls
|
|
|
*/
|
|
|
export class Control {
|
|
|
/** defines the name of the control */
|
|
@@ -703,7 +738,7 @@ declare module BABYLON.GUI {
|
|
|
private _isVisible;
|
|
|
private _isHighlighted;
|
|
|
/** @hidden */
|
|
|
- _linkedMesh: BABYLON.Nullable<BABYLON.AbstractMesh>;
|
|
|
+ _linkedMesh: BABYLON.Nullable<BABYLON.TransformNode>;
|
|
|
private _fontSet;
|
|
|
private _dummyVector2;
|
|
|
private _downCount;
|
|
@@ -822,6 +857,10 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
onAfterDrawObservable: BABYLON.Observable<Control>;
|
|
|
/**
|
|
|
+ * An event triggered when the control has been disposed
|
|
|
+ */
|
|
|
+ onDisposeObservable: BABYLON.Observable<Control>;
|
|
|
+ /**
|
|
|
* Get the hosting AdvancedDynamicTexture
|
|
|
*/
|
|
|
get host(): AdvancedDynamicTexture;
|
|
@@ -845,63 +884,71 @@ declare module BABYLON.GUI {
|
|
|
get isHighlighted(): boolean;
|
|
|
set isHighlighted(value: boolean);
|
|
|
/** Gets or sets a value indicating the scale factor on X axis (1 by default)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
*/
|
|
|
get scaleX(): number;
|
|
|
set scaleX(value: number);
|
|
|
/** Gets or sets a value indicating the scale factor on Y axis (1 by default)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
*/
|
|
|
get scaleY(): number;
|
|
|
set scaleY(value: number);
|
|
|
/** Gets or sets the rotation angle (0 by default)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
*/
|
|
|
get rotation(): number;
|
|
|
set rotation(value: number);
|
|
|
/** Gets or sets the transformation center on Y axis (0 by default)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
*/
|
|
|
get transformCenterY(): number;
|
|
|
set transformCenterY(value: number);
|
|
|
/** Gets or sets the transformation center on X axis (0 by default)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#rotation-and-scaling
|
|
|
*/
|
|
|
get transformCenterX(): number;
|
|
|
set transformCenterX(value: number);
|
|
|
/**
|
|
|
* Gets or sets the horizontal alignment
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#alignments
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#alignments
|
|
|
*/
|
|
|
get horizontalAlignment(): number;
|
|
|
set horizontalAlignment(value: number);
|
|
|
/**
|
|
|
* Gets or sets the vertical alignment
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#alignments
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#alignments
|
|
|
*/
|
|
|
get verticalAlignment(): number;
|
|
|
set verticalAlignment(value: number);
|
|
|
/**
|
|
|
+ * Gets or sets a fixed ratio for this control.
|
|
|
+ * When different from 0, the ratio is used to compute the "second" dimension.
|
|
|
+ * The first dimension used in the computation is the last one set (by setting width / widthInPixels or height / heightInPixels), and the
|
|
|
+ * second dimension is computed as first dimension * fixedRatio
|
|
|
+ */
|
|
|
+ fixedRatio: number;
|
|
|
+ private _fixedRatioMasterIsWidth;
|
|
|
+ /**
|
|
|
* Gets or sets control width
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get width(): string | number;
|
|
|
set width(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets the control width in pixel
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get widthInPixels(): number;
|
|
|
set widthInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets control height
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get height(): string | number;
|
|
|
set height(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets control height in pixel
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get heightInPixels(): number;
|
|
|
set heightInPixels(value: number);
|
|
@@ -916,7 +963,7 @@ declare module BABYLON.GUI {
|
|
|
set fontWeight(value: string);
|
|
|
/**
|
|
|
* Gets or sets style
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#styles
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#styles
|
|
|
*/
|
|
|
get style(): BABYLON.Nullable<Style>;
|
|
|
set style(value: BABYLON.Nullable<Style>);
|
|
@@ -945,100 +992,100 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Gets the current linked mesh (or null if none)
|
|
|
*/
|
|
|
- get linkedMesh(): BABYLON.Nullable<BABYLON.AbstractMesh>;
|
|
|
+ get linkedMesh(): BABYLON.Nullable<BABYLON.TransformNode>;
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding to use on the left of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingLeft(): string | number;
|
|
|
set paddingLeft(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding in pixels to use on the left of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingLeftInPixels(): number;
|
|
|
set paddingLeftInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding to use on the right of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingRight(): string | number;
|
|
|
set paddingRight(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding in pixels to use on the right of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingRightInPixels(): number;
|
|
|
set paddingRightInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding to use on the top of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingTop(): string | number;
|
|
|
set paddingTop(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding in pixels to use on the top of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingTopInPixels(): number;
|
|
|
set paddingTopInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingBottom(): string | number;
|
|
|
set paddingBottom(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the padding in pixels to use on the bottom of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get paddingBottomInPixels(): number;
|
|
|
set paddingBottomInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the left coordinate of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get left(): string | number;
|
|
|
set left(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the left coordinate in pixels of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get leftInPixels(): number;
|
|
|
set leftInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the top coordinate of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get top(): string | number;
|
|
|
set top(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the top coordinate in pixels of the control
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get topInPixels(): number;
|
|
|
set topInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the offset on X axis to the linked mesh
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
get linkOffsetX(): string | number;
|
|
|
set linkOffsetX(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the offset in pixels on X axis to the linked mesh
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
get linkOffsetXInPixels(): number;
|
|
|
set linkOffsetXInPixels(value: number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the offset on Y axis to the linked mesh
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
get linkOffsetY(): string | number;
|
|
|
set linkOffsetY(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets a value indicating the offset in pixels on Y axis to the linked mesh
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
get linkOffsetYInPixels(): number;
|
|
|
set linkOffsetYInPixels(value: number);
|
|
@@ -1120,9 +1167,9 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Link current control with a target mesh
|
|
|
* @param mesh defines the mesh to link with
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
- linkWithMesh(mesh: BABYLON.Nullable<BABYLON.AbstractMesh>): void;
|
|
|
+ linkWithMesh(mesh: BABYLON.Nullable<BABYLON.TransformNode>): void;
|
|
|
/** @hidden */
|
|
|
_moveToProjectedPosition(projectedPosition: BABYLON.Vector3): void;
|
|
|
/** @hidden */
|
|
@@ -1181,23 +1228,25 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
contains(x: number, y: number): boolean;
|
|
|
/** @hidden */
|
|
|
- _processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ _processPicking(x: number, y: number, pi: BABYLON.PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number): void;
|
|
|
+ _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
|
/** @hidden */
|
|
|
- _onPointerEnter(target: Control): boolean;
|
|
|
+ _onPointerEnter(target: Control, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerOut(target: Control, force?: boolean): void;
|
|
|
+ _onPointerOut(target: Control, pi: BABYLON.Nullable<BABYLON.PointerInfoBase>, force?: boolean): void;
|
|
|
/** @hidden */
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
|
+ _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi?: BABYLON.PointerInfoBase): void;
|
|
|
/** @hidden */
|
|
|
_forcePointerUp(pointerId?: BABYLON.Nullable<number>): void;
|
|
|
/** @hidden */
|
|
|
_onWheelScroll(deltaX?: number, deltaY?: number): void;
|
|
|
/** @hidden */
|
|
|
- _processObservables(type: number, x: number, y: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ _onCanvasBlur(): void;
|
|
|
+ /** @hidden */
|
|
|
+ _processObservables(type: number, x: number, y: number, pi: BABYLON.PointerInfoBase, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
private _prepareFont;
|
|
|
/** Releases associated resources */
|
|
|
dispose(): void;
|
|
@@ -1247,7 +1296,7 @@ declare module BABYLON.GUI {
|
|
|
declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Root class for 2D containers
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#containers
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#containers
|
|
|
*/
|
|
|
export class Container extends Control {
|
|
|
name?: string | undefined;
|
|
@@ -1346,7 +1395,7 @@ declare module BABYLON.GUI {
|
|
|
_draw(context: CanvasRenderingContext2D, invalidatedRectangle?: Measure): void;
|
|
|
getDescendantsToRef(results: Control[], directDescendantsOnly?: boolean, predicate?: (control: Control) => boolean): void;
|
|
|
/** @hidden */
|
|
|
- _processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ _processPicking(x: number, y: number, pi: BABYLON.PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
/** @hidden */
|
|
|
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
/** Releases associated resources */
|
|
@@ -1412,15 +1461,21 @@ declare module BABYLON.GUI {
|
|
|
private _lineSpacing;
|
|
|
private _outlineWidth;
|
|
|
private _outlineColor;
|
|
|
+ private _underline;
|
|
|
+ private _lineThrough;
|
|
|
/**
|
|
|
- * An event triggered after the text is changed
|
|
|
- */
|
|
|
+ * An event triggered after the text is changed
|
|
|
+ */
|
|
|
onTextChangedObservable: BABYLON.Observable<TextBlock>;
|
|
|
/**
|
|
|
- * An event triggered after the text was broken up into lines
|
|
|
- */
|
|
|
+ * An event triggered after the text was broken up into lines
|
|
|
+ */
|
|
|
onLinesReadyObservable: BABYLON.Observable<TextBlock>;
|
|
|
/**
|
|
|
+ * Function used to split a string into words. By default, a string is split at each space character found
|
|
|
+ */
|
|
|
+ wordSplittingFunction: BABYLON.Nullable<(line: string) => string[]>;
|
|
|
+ /**
|
|
|
* Return the line list (you may need to use the onLinesReadyObservable to make sure the list is ready)
|
|
|
*/
|
|
|
get lines(): any[];
|
|
@@ -1481,6 +1536,22 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
set outlineWidth(value: number);
|
|
|
/**
|
|
|
+ * Gets or sets a boolean indicating that text must have underline
|
|
|
+ */
|
|
|
+ get underline(): boolean;
|
|
|
+ /**
|
|
|
+ * Gets or sets a boolean indicating that text must have underline
|
|
|
+ */
|
|
|
+ set underline(value: boolean);
|
|
|
+ /**
|
|
|
+ * Gets or sets an boolean indicating that text must be crossed out
|
|
|
+ */
|
|
|
+ get lineThrough(): boolean;
|
|
|
+ /**
|
|
|
+ * Gets or sets an boolean indicating that text must be crossed out
|
|
|
+ */
|
|
|
+ set lineThrough(value: boolean);
|
|
|
+ /**
|
|
|
* Gets or sets outlineColor of the text to display
|
|
|
*/
|
|
|
get outlineColor(): string;
|
|
@@ -1546,6 +1617,7 @@ declare module BABYLON.GUI {
|
|
|
private _sliceTop;
|
|
|
private _sliceBottom;
|
|
|
private _detectPointerOnOpaqueOnly;
|
|
|
+ private _imageDataCache;
|
|
|
/**
|
|
|
* BABYLON.Observable notified when the content is loaded
|
|
|
*/
|
|
@@ -1615,7 +1687,7 @@ declare module BABYLON.GUI {
|
|
|
get svgAttributesComputationCompleted(): boolean;
|
|
|
/**
|
|
|
* Gets or sets a boolean indicating if the image can force its container to adapt its size
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#image
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#image
|
|
|
*/
|
|
|
get autoScale(): boolean;
|
|
|
set autoScale(value: boolean);
|
|
@@ -1648,19 +1720,19 @@ declare module BABYLON.GUI {
|
|
|
private _getSVGAttribs;
|
|
|
/**
|
|
|
* Gets or sets the cell width to use when animation sheet is enabled
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#image
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#image
|
|
|
*/
|
|
|
get cellWidth(): number;
|
|
|
set cellWidth(value: number);
|
|
|
/**
|
|
|
* Gets or sets the cell height to use when animation sheet is enabled
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#image
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#image
|
|
|
*/
|
|
|
get cellHeight(): number;
|
|
|
set cellHeight(value: number);
|
|
|
/**
|
|
|
* Gets or sets the cell id to use (this will turn on the animation sheet mode)
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#image
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#image
|
|
|
*/
|
|
|
get cellId(): number;
|
|
|
set cellId(value: number);
|
|
@@ -1742,15 +1814,15 @@ declare module BABYLON.GUI {
|
|
|
constructor(name?: string | undefined);
|
|
|
protected _getTypeName(): string;
|
|
|
/** @hidden */
|
|
|
- _processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ _processPicking(x: number, y: number, pi: BABYLON.PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerEnter(target: Control): boolean;
|
|
|
+ _onPointerEnter(target: Control, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerOut(target: Control, force?: boolean): void;
|
|
|
+ _onPointerOut(target: Control, pi: BABYLON.PointerInfoBase, force?: boolean): void;
|
|
|
/** @hidden */
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/** @hidden */
|
|
|
- _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
|
+ _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: BABYLON.PointerInfoBase): void;
|
|
|
/**
|
|
|
* Creates a new button made with an image and a text
|
|
|
* @param name defines the name of the button
|
|
@@ -1859,7 +1931,7 @@ declare module BABYLON.GUI {
|
|
|
/** @hidden */
|
|
|
_draw(context: CanvasRenderingContext2D, invalidatedRectangle?: BABYLON.Nullable<Measure>): void;
|
|
|
/** @hidden */
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/**
|
|
|
* Utility function to easily create a checkbox with a header
|
|
|
* @param title defines the label to use for the header
|
|
@@ -1964,12 +2036,27 @@ declare module BABYLON.GUI {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
|
+ /** @hidden */
|
|
|
+ export class TextWrapper {
|
|
|
+ private _text;
|
|
|
+ private _characters;
|
|
|
+ get text(): string;
|
|
|
+ set text(txt: string);
|
|
|
+ get length(): number;
|
|
|
+ removePart(idxStart: number, idxEnd: number, insertTxt?: string): void;
|
|
|
+ charAt(idx: number): string;
|
|
|
+ substr(from: number, length?: number): string;
|
|
|
+ substring(from: number, to?: number): string;
|
|
|
+ isWord(index: number): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Class used to create input text control
|
|
|
*/
|
|
|
export class InputText extends Control implements IFocusableControl {
|
|
|
name?: string | undefined;
|
|
|
- private _text;
|
|
|
+ private _textWrapper;
|
|
|
private _placeholderText;
|
|
|
private _background;
|
|
|
private _focusedBackground;
|
|
@@ -2079,6 +2166,7 @@ declare module BABYLON.GUI {
|
|
|
/** Gets or sets the text displayed in the control */
|
|
|
get text(): string;
|
|
|
set text(value: string);
|
|
|
+ private _textHasChanged;
|
|
|
/** Gets or sets control width */
|
|
|
get width(): string | number;
|
|
|
set width(value: string | number);
|
|
@@ -2118,10 +2206,10 @@ declare module BABYLON.GUI {
|
|
|
/** @hidden */
|
|
|
private _onPasteText;
|
|
|
_draw(context: CanvasRenderingContext2D, invalidatedRectangle?: BABYLON.Nullable<Measure>): void;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
- _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number): void;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
+ _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
|
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
|
- protected _beforeRenderText(text: string): string;
|
|
|
+ protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
|
dispose(): void;
|
|
|
}
|
|
|
}
|
|
@@ -2272,13 +2360,13 @@ declare module BABYLON.GUI {
|
|
|
set value(value: BABYLON.Color3);
|
|
|
/**
|
|
|
* Gets or sets control width
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get width(): string | number;
|
|
|
set width(value: string | number);
|
|
|
/**
|
|
|
* Gets or sets control height
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
*/
|
|
|
get height(): string | number;
|
|
|
/** Gets or sets control height */
|
|
@@ -2304,9 +2392,10 @@ declare module BABYLON.GUI {
|
|
|
private _updateValueFromPointer;
|
|
|
private _isPointOnSquare;
|
|
|
private _isPointOnWheel;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
- _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number): void;
|
|
|
- _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
+ _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
|
+ _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: BABYLON.PointerInfoBase): void;
|
|
|
+ _onCanvasBlur(): void;
|
|
|
/**
|
|
|
* This function expands the color picker by creating a color picker dialog with manual
|
|
|
* color value input and the ability to save colors into an array to be used later in
|
|
@@ -2353,7 +2442,7 @@ declare module BABYLON.GUI {
|
|
|
* Class used to create a password control
|
|
|
*/
|
|
|
export class InputPassword extends InputText {
|
|
|
- protected _beforeRenderText(text: string): string;
|
|
|
+ protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -2433,7 +2522,7 @@ declare module BABYLON.GUI {
|
|
|
private _controlObserver;
|
|
|
private _meshObserver;
|
|
|
/** @hidden */
|
|
|
- _point: BABYLON.Vector2;
|
|
|
+ _point: BABYLON.Vector3;
|
|
|
/**
|
|
|
* Creates a new MultiLinePoint
|
|
|
* @param multiLine defines the source MultiLine object
|
|
@@ -2454,10 +2543,10 @@ declare module BABYLON.GUI {
|
|
|
/** Resets links */
|
|
|
resetLinks(): void;
|
|
|
/**
|
|
|
- * Gets a translation vector
|
|
|
+ * Gets a translation vector with Z component
|
|
|
* @returns the translation vector
|
|
|
*/
|
|
|
- translate(): BABYLON.Vector2;
|
|
|
+ translate(): BABYLON.Vector3;
|
|
|
private _translatePoint;
|
|
|
/** Release associated resources */
|
|
|
dispose(): void;
|
|
@@ -2569,7 +2658,7 @@ declare module BABYLON.GUI {
|
|
|
constructor(name?: string | undefined);
|
|
|
protected _getTypeName(): string;
|
|
|
_draw(context: CanvasRenderingContext2D): void;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
/**
|
|
|
* Utility function to easily create a radio button with a header
|
|
|
* @param title defines the label to use for the header
|
|
@@ -2650,9 +2739,10 @@ declare module BABYLON.GUI {
|
|
|
private _pointerIsDown;
|
|
|
/** @hidden */
|
|
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
- _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number): void;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
+ _onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
|
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
|
+ _onCanvasBlur(): void;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -2663,6 +2753,7 @@ declare module BABYLON.GUI {
|
|
|
name?: string | undefined;
|
|
|
private _background;
|
|
|
private _borderColor;
|
|
|
+ private _thumbColor;
|
|
|
private _isThumbCircle;
|
|
|
protected _displayValueBar: boolean;
|
|
|
/** Gets or sets a boolean indicating if the value bar must be rendered */
|
|
@@ -2674,6 +2765,9 @@ declare module BABYLON.GUI {
|
|
|
/** Gets or sets background color */
|
|
|
get background(): string;
|
|
|
set background(value: string);
|
|
|
+ /** Gets or sets thumb's color */
|
|
|
+ get thumbColor(): string;
|
|
|
+ set thumbColor(value: string);
|
|
|
/** Gets or sets a boolean indicating if the thumb should be round or square */
|
|
|
get isThumbCircle(): boolean;
|
|
|
set isThumbCircle(value: boolean);
|
|
@@ -2783,7 +2877,7 @@ declare module BABYLON.GUI {
|
|
|
_setSelectorButtonBackground(selectorNb: number, color: string): void;
|
|
|
}
|
|
|
/** Class used to hold the controls for the checkboxes, radio buttons and sliders
|
|
|
- * @see http://doc.babylonjs.com/how_to/selector
|
|
|
+ * @see https://doc.babylonjs.com/how_to/selector
|
|
|
*/
|
|
|
export class SelectionPanel extends Rectangle {
|
|
|
/** name of SelectionPanel */
|
|
@@ -2811,6 +2905,8 @@ declare module BABYLON.GUI {
|
|
|
/** an array of SelectionGroups */
|
|
|
groups?: SelectorGroup[]);
|
|
|
protected _getTypeName(): string;
|
|
|
+ /** Gets the (stack) panel of the SelectionPanel */
|
|
|
+ get panel(): StackPanel;
|
|
|
/** Gets or sets the headerColor */
|
|
|
get headerColor(): string;
|
|
|
set headerColor(color: string);
|
|
@@ -2919,6 +3015,7 @@ declare module BABYLON.GUI {
|
|
|
private _dispatchInBuckets;
|
|
|
private _updateMeasures;
|
|
|
private _updateChildrenMeasures;
|
|
|
+ private _restoreMeasures;
|
|
|
/**
|
|
|
* Creates a new ScrollViewerWindow
|
|
|
* @param name of ScrollViewerWindow
|
|
@@ -2964,7 +3061,7 @@ declare module BABYLON.GUI {
|
|
|
private _originY;
|
|
|
/** @hidden */
|
|
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -3021,7 +3118,7 @@ declare module BABYLON.GUI {
|
|
|
private _originY;
|
|
|
/** @hidden */
|
|
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
|
- _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -3056,6 +3153,8 @@ declare module BABYLON.GUI {
|
|
|
private _barImageHeight;
|
|
|
private _horizontalBarImageHeight;
|
|
|
private _verticalBarImageHeight;
|
|
|
+ private _oldWindowContentsWidth;
|
|
|
+ private _oldWindowContentsHeight;
|
|
|
/**
|
|
|
* Gets the horizontal scrollbar
|
|
|
*/
|
|
@@ -3457,7 +3556,7 @@ declare module BABYLON.GUI {
|
|
|
declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Class used to manage 3D user interface
|
|
|
- * @see http://doc.babylonjs.com/how_to/gui3d
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui3d
|
|
|
*/
|
|
|
export class GUI3DManager implements BABYLON.IDisposable {
|
|
|
private _scene;
|
|
@@ -3599,19 +3698,19 @@ declare module BABYLON.GUI {
|
|
|
private _behaviors;
|
|
|
/**
|
|
|
* Gets the list of attached behaviors
|
|
|
- * @see http://doc.babylonjs.com/features/behaviour
|
|
|
+ * @see https://doc.babylonjs.com/features/behaviour
|
|
|
*/
|
|
|
get behaviors(): BABYLON.Behavior<Control3D>[];
|
|
|
/**
|
|
|
* Attach a behavior to the control
|
|
|
- * @see http://doc.babylonjs.com/features/behaviour
|
|
|
+ * @see https://doc.babylonjs.com/features/behaviour
|
|
|
* @param behavior defines the behavior to attach
|
|
|
* @returns the current control
|
|
|
*/
|
|
|
addBehavior(behavior: BABYLON.Behavior<Control3D>): Control3D;
|
|
|
/**
|
|
|
* Remove an attached behavior
|
|
|
- * @see http://doc.babylonjs.com/features/behaviour
|
|
|
+ * @see https://doc.babylonjs.com/features/behaviour
|
|
|
* @param behavior defines the behavior to attach
|
|
|
* @returns the current control
|
|
|
*/
|
|
@@ -3619,7 +3718,7 @@ declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Gets an attached behavior by name
|
|
|
* @param name defines the name of the behavior to look for
|
|
|
- * @see http://doc.babylonjs.com/features/behaviour
|
|
|
+ * @see https://doc.babylonjs.com/features/behaviour
|
|
|
* @returns null if behavior was not found else the requested behavior
|
|
|
*/
|
|
|
getBehaviorByName(name: string): BABYLON.Nullable<BABYLON.Behavior<Control3D>>;
|
|
@@ -3856,10 +3955,6 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
innerGlowColor: BABYLON.Color3;
|
|
|
/**
|
|
|
- * Gets or sets alpha value (default is 1.0)
|
|
|
- */
|
|
|
- alpha: number;
|
|
|
- /**
|
|
|
* Gets or sets the albedo color (Default is BABYLON.Color3(0.3, 0.35, 0.4))
|
|
|
*/
|
|
|
albedoColor: BABYLON.Color3;
|