|
@@ -1670,6 +1670,7 @@ declare module 'babylonjs-gui/2D/controls/radioButton' {
|
|
import { Control } from "babylonjs-gui/2D/controls/control";
|
|
import { Control } from "babylonjs-gui/2D/controls/control";
|
|
import { Observable, Vector2 } from "babylonjs";
|
|
import { Observable, Vector2 } from "babylonjs";
|
|
import { Measure } from "babylonjs-gui/2D/measure";
|
|
import { Measure } from "babylonjs-gui/2D/measure";
|
|
|
|
+ import { StackPanel } from "babylonjs-gui/2D/controls";
|
|
/**
|
|
/**
|
|
* Class used to create radio button controls
|
|
* Class used to create radio button controls
|
|
*/
|
|
*/
|
|
@@ -1695,6 +1696,15 @@ declare module 'babylonjs-gui/2D/controls/radioButton' {
|
|
protected _getTypeName(): string;
|
|
protected _getTypeName(): string;
|
|
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Utility function to easily create a radio button with a header
|
|
|
|
+ * @param title defines the label to use for the header
|
|
|
|
+ * @param group defines the group to use for the radio button
|
|
|
|
+ * @param isChecked defines the initial state of the radio button
|
|
|
|
+ * @param onValueChanged defines the callback to call when value changes
|
|
|
|
+ * @returns a StackPanel containing the radio button and a textBlock
|
|
|
|
+ */
|
|
|
|
+ static AddRadioButtonWithHeader(title: string, group: string, isChecked: boolean, onValueChanged: (button: RadioButton, value: boolean) => void): StackPanel;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2510,6 +2520,7 @@ declare module 'babylonjs-gui/3D/materials/fluentMaterial' {
|
|
INNERGLOW: boolean;
|
|
INNERGLOW: boolean;
|
|
BORDER: boolean;
|
|
BORDER: boolean;
|
|
HOVERLIGHT: boolean;
|
|
HOVERLIGHT: boolean;
|
|
|
|
+ TEXTURE: boolean;
|
|
constructor();
|
|
constructor();
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
@@ -2564,6 +2575,7 @@ declare module 'babylonjs-gui/3D/materials/fluentMaterial' {
|
|
* Gets or sets the hover light position in world space (default is Vector3.Zero())
|
|
* Gets or sets the hover light position in world space (default is Vector3.Zero())
|
|
*/
|
|
*/
|
|
hoverPosition: Vector3;
|
|
hoverPosition: Vector3;
|
|
|
|
+ albedoTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Creates a new Fluent material
|
|
* Creates a new Fluent material
|
|
* @param name defines the name of the material
|
|
* @param name defines the name of the material
|
|
@@ -2763,18 +2775,28 @@ declare module 'babylonjs-gui/3D/charting/barGraph' {
|
|
|
|
|
|
declare module 'babylonjs-gui/3D/charting/mapGraph' {
|
|
declare module 'babylonjs-gui/3D/charting/mapGraph' {
|
|
import { Chart } from "babylonjs-gui/3D/charting";
|
|
import { Chart } from "babylonjs-gui/3D/charting";
|
|
- import { Scene, Nullable, Mesh } from "babylonjs";
|
|
|
|
|
|
+ import { Scene, Nullable, Mesh, Material } from "babylonjs";
|
|
/**
|
|
/**
|
|
* Class used to render bar graphs
|
|
* Class used to render bar graphs
|
|
* @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
* @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
*/
|
|
*/
|
|
export class MapGraph extends Chart {
|
|
export class MapGraph extends Chart {
|
|
|
|
+ /** Gets or sets the offset (in world unit) on X axis to apply to all elements */
|
|
|
|
+ xOffset: number;
|
|
|
|
+ /** Gets or sets the offset (in world unit) on Y axis to apply to all elements */
|
|
|
|
+ yOffset: number;
|
|
/** Gets or sets the tesselation used to build the cylinders */
|
|
/** Gets or sets the tesselation used to build the cylinders */
|
|
cylinderTesselation: number;
|
|
cylinderTesselation: number;
|
|
/** Gets or sets the size of the world map (this will define the width) */
|
|
/** Gets or sets the size of the world map (this will define the width) */
|
|
worldMapSize: number;
|
|
worldMapSize: number;
|
|
updateHoverLabel: (meshLabel: Mesh) => void;
|
|
updateHoverLabel: (meshLabel: Mesh) => void;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the material used to render the world map
|
|
|
|
+ */
|
|
|
|
+ readonly worldMapMaterial: Nullable<Material>;
|
|
|
|
+ /** Sets the texture url to use for the world map */
|
|
|
|
+ worldMapUrl: string;
|
|
|
|
+ /**
|
|
* Creates a new MapGraph
|
|
* Creates a new MapGraph
|
|
* @param name defines the name of the graph
|
|
* @param name defines the name of the graph
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
@@ -2783,6 +2805,7 @@ declare module 'babylonjs-gui/3D/charting/mapGraph' {
|
|
protected _createCylinderMesh(name: string, scene: Scene): Mesh;
|
|
protected _createCylinderMesh(name: string, scene: Scene): Mesh;
|
|
refresh(): MapGraph;
|
|
refresh(): MapGraph;
|
|
protected _clean(): void;
|
|
protected _clean(): void;
|
|
|
|
+ dispose(): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4344,6 +4367,15 @@ declare module BABYLON.GUI {
|
|
protected _getTypeName(): string;
|
|
protected _getTypeName(): string;
|
|
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Utility function to easily create a radio button with a header
|
|
|
|
+ * @param title defines the label to use for the header
|
|
|
|
+ * @param group defines the group to use for the radio button
|
|
|
|
+ * @param isChecked defines the initial state of the radio button
|
|
|
|
+ * @param onValueChanged defines the callback to call when value changes
|
|
|
|
+ * @returns a StackPanel containing the radio button and a textBlock
|
|
|
|
+ */
|
|
|
|
+ static AddRadioButtonWithHeader(title: string, group: string, isChecked: boolean, onValueChanged: (button: RadioButton, value: boolean) => void): StackPanel;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON.GUI {
|
|
declare module BABYLON.GUI {
|
|
@@ -5088,6 +5120,7 @@ declare module BABYLON.GUI {
|
|
INNERGLOW: boolean;
|
|
INNERGLOW: boolean;
|
|
BORDER: boolean;
|
|
BORDER: boolean;
|
|
HOVERLIGHT: boolean;
|
|
HOVERLIGHT: boolean;
|
|
|
|
+ TEXTURE: boolean;
|
|
constructor();
|
|
constructor();
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
@@ -5142,6 +5175,7 @@ declare module BABYLON.GUI {
|
|
* Gets or sets the hover light position in world space (default is BABYLON.Vector3.Zero())
|
|
* Gets or sets the hover light position in world space (default is BABYLON.Vector3.Zero())
|
|
*/
|
|
*/
|
|
hoverPosition: BABYLON.Vector3;
|
|
hoverPosition: BABYLON.Vector3;
|
|
|
|
+ albedoTexture: BABYLON.Nullable<BABYLON.BaseTexture>;
|
|
/**
|
|
/**
|
|
* Creates a new Fluent material
|
|
* Creates a new Fluent material
|
|
* @param name defines the name of the material
|
|
* @param name defines the name of the material
|
|
@@ -5336,12 +5370,22 @@ declare module BABYLON.GUI {
|
|
* @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
* @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
*/
|
|
*/
|
|
export class MapGraph extends Chart {
|
|
export class MapGraph extends Chart {
|
|
|
|
+ /** Gets or sets the offset (in world unit) on X axis to apply to all elements */
|
|
|
|
+ xOffset: number;
|
|
|
|
+ /** Gets or sets the offset (in world unit) on Y axis to apply to all elements */
|
|
|
|
+ yOffset: number;
|
|
/** Gets or sets the tesselation used to build the cylinders */
|
|
/** Gets or sets the tesselation used to build the cylinders */
|
|
cylinderTesselation: number;
|
|
cylinderTesselation: number;
|
|
/** Gets or sets the size of the world map (this will define the width) */
|
|
/** Gets or sets the size of the world map (this will define the width) */
|
|
worldMapSize: number;
|
|
worldMapSize: number;
|
|
updateHoverLabel: (meshLabel: BABYLON.Mesh) => void;
|
|
updateHoverLabel: (meshLabel: BABYLON.Mesh) => void;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the material used to render the world map
|
|
|
|
+ */
|
|
|
|
+ readonly worldMapMaterial: BABYLON.Nullable<BABYLON.Material>;
|
|
|
|
+ /** Sets the texture url to use for the world map */
|
|
|
|
+ worldMapUrl: string;
|
|
|
|
+ /**
|
|
* Creates a new MapGraph
|
|
* Creates a new MapGraph
|
|
* @param name defines the name of the graph
|
|
* @param name defines the name of the graph
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
@@ -5350,5 +5394,6 @@ declare module BABYLON.GUI {
|
|
protected _createCylinderMesh(name: string, scene: BABYLON.Scene): BABYLON.Mesh;
|
|
protected _createCylinderMesh(name: string, scene: BABYLON.Scene): BABYLON.Mesh;
|
|
refresh(): MapGraph;
|
|
refresh(): MapGraph;
|
|
protected _clean(): void;
|
|
protected _clean(): void;
|
|
|
|
+ dispose(): void;
|
|
}
|
|
}
|
|
}
|
|
}
|