|
@@ -20,7 +20,6 @@ declare module 'babylonjs-gui/2D' {
|
|
|
declare module 'babylonjs-gui/3D' {
|
|
|
export * from "babylonjs-gui/3D/controls";
|
|
|
export * from "babylonjs-gui/3D/materials";
|
|
|
- export * from "babylonjs-gui/3D/charting";
|
|
|
export * from "babylonjs-gui/3D/gui3DManager";
|
|
|
export * from "babylonjs-gui/3D/vector3WithInfo";
|
|
|
}
|
|
@@ -558,13 +557,6 @@ declare module 'babylonjs-gui/3D/materials' {
|
|
|
export * from "babylonjs-gui/3D/materials/fluentMaterial";
|
|
|
}
|
|
|
|
|
|
-declare module 'babylonjs-gui/3D/charting' {
|
|
|
- export * from "babylonjs-gui/3D/charting/dataSeries";
|
|
|
- export * from "babylonjs-gui/3D/charting/chart";
|
|
|
- export * from "babylonjs-gui/3D/charting/barGraph";
|
|
|
- export * from "babylonjs-gui/3D/charting/mapGraph";
|
|
|
-}
|
|
|
-
|
|
|
declare module 'babylonjs-gui/3D/gui3DManager' {
|
|
|
import { IDisposable, Scene, Nullable, UtilityLayerRenderer, Observable, Vector3, Material } from "babylonjs";
|
|
|
import { Container3D } from "babylonjs-gui/3D/controls/container3D";
|
|
@@ -2601,220 +2593,6 @@ declare module 'babylonjs-gui/3D/materials/fluentMaterial' {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-declare module 'babylonjs-gui/3D/charting/dataSeries' {
|
|
|
- import { Color3 } from "babylonjs";
|
|
|
- /**
|
|
|
- * Class used to store data to display
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d
|
|
|
- */
|
|
|
- export class DataSeries {
|
|
|
- /** Gets or sets the label of the series */
|
|
|
- label: string;
|
|
|
- /** Gets or sets the color associated with the series */
|
|
|
- color: Color3;
|
|
|
- /** Gets or sets the list of dimensions (used to filter data) */
|
|
|
- dimensions: Array<string>;
|
|
|
- /** Gets or sets the list of values (data to display) */
|
|
|
- data: Array<any>;
|
|
|
- /**
|
|
|
- * Apply a list of filters to the data and return a list
|
|
|
- * @param filters defines the filters to apply
|
|
|
- * @returns an array containing the filtered data
|
|
|
- */
|
|
|
- getFilteredData(filters: {
|
|
|
- [key: string]: string;
|
|
|
- }): Array<any>;
|
|
|
- /**
|
|
|
- * Get the different values of a dimension
|
|
|
- * @param key defines the dimension name
|
|
|
- * @returns An array of values
|
|
|
- */
|
|
|
- getDimensionValues(key: string): Array<any>;
|
|
|
- /**
|
|
|
- * Create a new DataSeries containing testing values
|
|
|
- * @returns the new DataSeries
|
|
|
- */
|
|
|
- static CreateFakeData(): DataSeries;
|
|
|
- /**
|
|
|
- * Create a new DataSeries containing testing spatial values
|
|
|
- * @returns the new DataSeries
|
|
|
- */
|
|
|
- static CreateFakeSpatialData(): DataSeries;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module 'babylonjs-gui/3D/charting/chart' {
|
|
|
- import { Nullable, TransformNode, Scene, Vector3, Observable, Mesh, AbstractMesh, Material } from "babylonjs";
|
|
|
- import { DataSeries } from "babylonjs-gui/3D/charting";
|
|
|
- /**
|
|
|
- * Base class for all chart controls
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#charts
|
|
|
- */
|
|
|
- export abstract class Chart {
|
|
|
- protected _dataSource: Nullable<DataSeries>;
|
|
|
- protected _rootNode: TransformNode;
|
|
|
- protected _dataFilters: {
|
|
|
- [key: string]: string;
|
|
|
- };
|
|
|
- protected _scene: Scene;
|
|
|
- protected _blockRefresh: boolean;
|
|
|
- protected _elementWidth: number;
|
|
|
- protected _defaultMaterial: Nullable<Material>;
|
|
|
- /** Observable raised when a refresh was done */
|
|
|
- onRefreshObservable: Observable<Chart>;
|
|
|
- /** Observable raised when a new element is created */
|
|
|
- onElementCreatedObservable: Observable<AbstractMesh>;
|
|
|
- /**
|
|
|
- * Observable raised when the point picked by the pointer events changed
|
|
|
- */
|
|
|
- onPickedPointChangedObservable: Observable<Nullable<Vector3>>;
|
|
|
- /**
|
|
|
- * Observable raised when the pointer enters an element of the chart
|
|
|
- */
|
|
|
- onElementEnterObservable: Observable<AbstractMesh>;
|
|
|
- /**
|
|
|
- * Observable raised when the pointer leaves an element of the chart
|
|
|
- */
|
|
|
- onElementOutObservable: Observable<AbstractMesh>;
|
|
|
- /** User defined callback used to create labels */
|
|
|
- labelCreationFunction: Nullable<(label: string, width: number, includeBackground: boolean) => Mesh>;
|
|
|
- /** User defined callback used to apply specific setup to hover labels */
|
|
|
- updateHoverLabel: Nullable<(meshLabel: Mesh) => void>;
|
|
|
- /** Gets or sets the width of each element */
|
|
|
- elementWidth: number;
|
|
|
- /** Gets or sets the rotation of the entire chart */
|
|
|
- rotation: Vector3;
|
|
|
- /** Gets or sets the position of the entire chart */
|
|
|
- position: Vector3;
|
|
|
- /** Gets or sets the scaling of the entire chart */
|
|
|
- scaling: Vector3;
|
|
|
- /** Gets or sets the data source used by the graph */
|
|
|
- dataSource: Nullable<DataSeries>;
|
|
|
- /** Gets or sets the filters applied to data source */
|
|
|
- dataFilters: {
|
|
|
- [key: string]: string;
|
|
|
- };
|
|
|
- /** Gets the root node associated with this graph */
|
|
|
- readonly rootNode: TransformNode;
|
|
|
- /** Gets or sets a value indicating if refresh function should be executed (useful when multiple changes will happen and you want to run refresh only at the end) */
|
|
|
- blockRefresh: boolean;
|
|
|
- /** Gets or sets the material used by element meshes */
|
|
|
- defaultMaterial: Nullable<Material>;
|
|
|
- /** Gets or sets a boolean indicating if labels must be displayed */
|
|
|
- displayLabels: boolean;
|
|
|
- /** Gets or sets the dimension used for the labels */
|
|
|
- labelDimension: string;
|
|
|
- /** Gets or sets a boolean indicating if glow should be used to highlight element hovering */
|
|
|
- glowHover: boolean;
|
|
|
- /** Gets or sets the name of the graph */
|
|
|
- name: string;
|
|
|
- /**
|
|
|
- * Creates a new Chart
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, scene?: Nullable<Scene>);
|
|
|
- protected _createDefaultMaterial(scene: Scene): Material;
|
|
|
- /**
|
|
|
- * Function called by the chart objects when they need a label. Could be user defined if you set this.labelCreationFunction to a custom callback
|
|
|
- * @param label defines the text of the label
|
|
|
- * @param width defines the expected width (height is supposed to be 1)
|
|
|
- * @param includeBackground defines if a background rectangle must be added (default is true)
|
|
|
- * @returns a mesh used to host the label
|
|
|
- */
|
|
|
- protected _addLabel(label: string, width: number, includeBackground?: boolean): Mesh;
|
|
|
- /**
|
|
|
- * Remove specific label mesh
|
|
|
- * @param label defines the label mesh to remove
|
|
|
- */
|
|
|
- protected _removeLabel(label: Mesh): void;
|
|
|
- /** Remove all created labels */
|
|
|
- protected _removeLabels(): void;
|
|
|
- /**
|
|
|
- * Force the chart to redraw itself
|
|
|
- * @returns the current chart
|
|
|
- */
|
|
|
- abstract refresh(): Chart;
|
|
|
- /** Release all associated resources */
|
|
|
- dispose(): void;
|
|
|
- protected _clean(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module 'babylonjs-gui/3D/charting/barGraph' {
|
|
|
- import { Nullable, Scene, Mesh } from "babylonjs";
|
|
|
- import { Chart } from "babylonjs-gui/3D/charting";
|
|
|
- /**
|
|
|
- * Class used to render bar graphs
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#bargraph
|
|
|
- */
|
|
|
- export class BarGraph extends Chart {
|
|
|
- /** Gets or sets a boolean indicating if the background must be displayed */
|
|
|
- displayBackground: boolean;
|
|
|
- /** Gets or sets the margin between bars */
|
|
|
- margin: number;
|
|
|
- /** Gets or sets the maximum height of a bar */
|
|
|
- maxBarHeight: number;
|
|
|
- /**
|
|
|
- * Creates a new BarGraph
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, scene?: Nullable<Scene>);
|
|
|
- /**
|
|
|
- * Children class can override this function to provide a new mesh (as long as it stays inside a 1x1x1 box)
|
|
|
- * @param name defines the mesh name
|
|
|
- * @param scene defines the hosting scene
|
|
|
- * @returns a new mesh used to represent the current bar
|
|
|
- */
|
|
|
- protected _createBarMesh(name: string, scene: Scene): Mesh;
|
|
|
- /**
|
|
|
- * Force the graph to redraw itself
|
|
|
- * @returns the current BarGraph
|
|
|
- */
|
|
|
- refresh(): BarGraph;
|
|
|
- protected _clean(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module 'babylonjs-gui/3D/charting/mapGraph' {
|
|
|
- import { Chart } from "babylonjs-gui/3D/charting";
|
|
|
- import { Scene, Nullable, Mesh, Material } from "babylonjs";
|
|
|
- /**
|
|
|
- * Class used to render bar graphs
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
|
- */
|
|
|
- export class MapGraph extends Chart {
|
|
|
- /** Gets or sets the maximum height of a cylinder */
|
|
|
- maxCylinderHeight: number;
|
|
|
- /** 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 */
|
|
|
- cylinderTesselation: number;
|
|
|
- /** Gets or sets the size of the world map (this will define the width of the supporting plane) */
|
|
|
- worldMapSize: number;
|
|
|
- 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
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, mapUrl: string, scene?: Nullable<Scene>);
|
|
|
- protected _createCylinderMesh(name: string, scene: Scene): Mesh;
|
|
|
- refresh(): MapGraph;
|
|
|
- protected _clean(): void;
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
/*BabylonJS GUI*/
|
|
|
// Dependencies for this module:
|
|
@@ -3305,8 +3083,6 @@ declare module BABYLON.GUI {
|
|
|
declare module BABYLON.GUI {
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
|
-}
|
|
|
-declare module BABYLON.GUI {
|
|
|
/**
|
|
|
* Class used to manage 3D user interface
|
|
|
* @see http://doc.babylonjs.com/how_to/gui3d
|
|
@@ -5206,207 +4982,4 @@ declare module BABYLON.GUI {
|
|
|
getClassName(): string;
|
|
|
static Parse(source: any, scene: BABYLON.Scene, rootUrl: string): FluentMaterial;
|
|
|
}
|
|
|
-}
|
|
|
-declare module BABYLON.GUI {
|
|
|
- /**
|
|
|
- * Class used to store data to display
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d
|
|
|
- */
|
|
|
- export class DataSeries {
|
|
|
- /** Gets or sets the label of the series */
|
|
|
- label: string;
|
|
|
- /** Gets or sets the color associated with the series */
|
|
|
- color: BABYLON.Color3;
|
|
|
- /** Gets or sets the list of dimensions (used to filter data) */
|
|
|
- dimensions: Array<string>;
|
|
|
- /** Gets or sets the list of values (data to display) */
|
|
|
- data: Array<any>;
|
|
|
- /**
|
|
|
- * Apply a list of filters to the data and return a list
|
|
|
- * @param filters defines the filters to apply
|
|
|
- * @returns an array containing the filtered data
|
|
|
- */
|
|
|
- getFilteredData(filters: {
|
|
|
- [key: string]: string;
|
|
|
- }): Array<any>;
|
|
|
- /**
|
|
|
- * Get the different values of a dimension
|
|
|
- * @param key defines the dimension name
|
|
|
- * @returns An array of values
|
|
|
- */
|
|
|
- getDimensionValues(key: string): Array<any>;
|
|
|
- /**
|
|
|
- * Create a new DataSeries containing testing values
|
|
|
- * @returns the new DataSeries
|
|
|
- */
|
|
|
- static CreateFakeData(): DataSeries;
|
|
|
- /**
|
|
|
- * Create a new DataSeries containing testing spatial values
|
|
|
- * @returns the new DataSeries
|
|
|
- */
|
|
|
- static CreateFakeSpatialData(): DataSeries;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON.GUI {
|
|
|
- /**
|
|
|
- * Base class for all chart controls
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#charts
|
|
|
- */
|
|
|
- export abstract class Chart {
|
|
|
- protected _dataSource: BABYLON.Nullable<DataSeries>;
|
|
|
- protected _rootNode: BABYLON.TransformNode;
|
|
|
- protected _dataFilters: {
|
|
|
- [key: string]: string;
|
|
|
- };
|
|
|
- protected _scene: BABYLON.Scene;
|
|
|
- protected _blockRefresh: boolean;
|
|
|
- protected _elementWidth: number;
|
|
|
- protected _defaultMaterial: BABYLON.Nullable<BABYLON.Material>;
|
|
|
- /** BABYLON.Observable raised when a refresh was done */
|
|
|
- onRefreshObservable: BABYLON.Observable<Chart>;
|
|
|
- /** BABYLON.Observable raised when a new element is created */
|
|
|
- onElementCreatedObservable: BABYLON.Observable<BABYLON.AbstractMesh>;
|
|
|
- /**
|
|
|
- * BABYLON.Observable raised when the point picked by the pointer events changed
|
|
|
- */
|
|
|
- onPickedPointChangedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector3>>;
|
|
|
- /**
|
|
|
- * BABYLON.Observable raised when the pointer enters an element of the chart
|
|
|
- */
|
|
|
- onElementEnterObservable: BABYLON.Observable<BABYLON.AbstractMesh>;
|
|
|
- /**
|
|
|
- * BABYLON.Observable raised when the pointer leaves an element of the chart
|
|
|
- */
|
|
|
- onElementOutObservable: BABYLON.Observable<BABYLON.AbstractMesh>;
|
|
|
- /** User defined callback used to create labels */
|
|
|
- labelCreationFunction: BABYLON.Nullable<(label: string, width: number, includeBackground: boolean) => BABYLON.Mesh>;
|
|
|
- /** User defined callback used to apply specific setup to hover labels */
|
|
|
- updateHoverLabel: BABYLON.Nullable<(meshLabel: BABYLON.Mesh) => void>;
|
|
|
- /** Gets or sets the width of each element */
|
|
|
- elementWidth: number;
|
|
|
- /** Gets or sets the rotation of the entire chart */
|
|
|
- rotation: BABYLON.Vector3;
|
|
|
- /** Gets or sets the position of the entire chart */
|
|
|
- position: BABYLON.Vector3;
|
|
|
- /** Gets or sets the scaling of the entire chart */
|
|
|
- scaling: BABYLON.Vector3;
|
|
|
- /** Gets or sets the data source used by the graph */
|
|
|
- dataSource: BABYLON.Nullable<DataSeries>;
|
|
|
- /** Gets or sets the filters applied to data source */
|
|
|
- dataFilters: {
|
|
|
- [key: string]: string;
|
|
|
- };
|
|
|
- /** Gets the root node associated with this graph */
|
|
|
- readonly rootNode: BABYLON.TransformNode;
|
|
|
- /** Gets or sets a value indicating if refresh function should be executed (useful when multiple changes will happen and you want to run refresh only at the end) */
|
|
|
- blockRefresh: boolean;
|
|
|
- /** Gets or sets the material used by element meshes */
|
|
|
- defaultMaterial: BABYLON.Nullable<BABYLON.Material>;
|
|
|
- /** Gets or sets a boolean indicating if labels must be displayed */
|
|
|
- displayLabels: boolean;
|
|
|
- /** Gets or sets the dimension used for the labels */
|
|
|
- labelDimension: string;
|
|
|
- /** Gets or sets a boolean indicating if glow should be used to highlight element hovering */
|
|
|
- glowHover: boolean;
|
|
|
- /** Gets or sets the name of the graph */
|
|
|
- name: string;
|
|
|
- /**
|
|
|
- * Creates a new Chart
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, scene?: BABYLON.Nullable<BABYLON.Scene>);
|
|
|
- protected _createDefaultMaterial(scene: BABYLON.Scene): BABYLON.Material;
|
|
|
- /**
|
|
|
- * Function called by the chart objects when they need a label. Could be user defined if you set this.labelCreationFunction to a custom callback
|
|
|
- * @param label defines the text of the label
|
|
|
- * @param width defines the expected width (height is supposed to be 1)
|
|
|
- * @param includeBackground defines if a background rectangle must be added (default is true)
|
|
|
- * @returns a mesh used to host the label
|
|
|
- */
|
|
|
- protected _addLabel(label: string, width: number, includeBackground?: boolean): BABYLON.Mesh;
|
|
|
- /**
|
|
|
- * Remove specific label mesh
|
|
|
- * @param label defines the label mesh to remove
|
|
|
- */
|
|
|
- protected _removeLabel(label: BABYLON.Mesh): void;
|
|
|
- /** Remove all created labels */
|
|
|
- protected _removeLabels(): void;
|
|
|
- /**
|
|
|
- * Force the chart to redraw itself
|
|
|
- * @returns the current chart
|
|
|
- */
|
|
|
- abstract refresh(): Chart;
|
|
|
- /** Release all associated resources */
|
|
|
- dispose(): void;
|
|
|
- protected _clean(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON.GUI {
|
|
|
- /**
|
|
|
- * Class used to render bar graphs
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#bargraph
|
|
|
- */
|
|
|
- export class BarGraph extends Chart {
|
|
|
- /** Gets or sets a boolean indicating if the background must be displayed */
|
|
|
- displayBackground: boolean;
|
|
|
- /** Gets or sets the margin between bars */
|
|
|
- margin: number;
|
|
|
- /** Gets or sets the maximum height of a bar */
|
|
|
- maxBarHeight: number;
|
|
|
- /**
|
|
|
- * Creates a new BarGraph
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, scene?: BABYLON.Nullable<BABYLON.Scene>);
|
|
|
- /**
|
|
|
- * Children class can override this function to provide a new mesh (as long as it stays inside a 1x1x1 box)
|
|
|
- * @param name defines the mesh name
|
|
|
- * @param scene defines the hosting scene
|
|
|
- * @returns a new mesh used to represent the current bar
|
|
|
- */
|
|
|
- protected _createBarMesh(name: string, scene: BABYLON.Scene): BABYLON.Mesh;
|
|
|
- /**
|
|
|
- * Force the graph to redraw itself
|
|
|
- * @returns the current BarGraph
|
|
|
- */
|
|
|
- refresh(): BarGraph;
|
|
|
- protected _clean(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON.GUI {
|
|
|
- /**
|
|
|
- * Class used to render bar graphs
|
|
|
- * @see http://doc.babylonjs.com/how_to/chart3d#mapgraph
|
|
|
- */
|
|
|
- export class MapGraph extends Chart {
|
|
|
- /** Gets or sets the maximum height of a cylinder */
|
|
|
- maxCylinderHeight: number;
|
|
|
- /** 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 */
|
|
|
- cylinderTesselation: number;
|
|
|
- /** Gets or sets the size of the world map (this will define the width of the supporting plane) */
|
|
|
- worldMapSize: number;
|
|
|
- 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
|
|
|
- * @param name defines the name of the graph
|
|
|
- * @param scene defines the hosting scene
|
|
|
- */
|
|
|
- constructor(name: string, mapUrl: string, scene?: BABYLON.Nullable<BABYLON.Scene>);
|
|
|
- protected _createCylinderMesh(name: string, scene: BABYLON.Scene): BABYLON.Mesh;
|
|
|
- refresh(): MapGraph;
|
|
|
- protected _clean(): void;
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
}
|