|
@@ -94,48 +94,50 @@ declare module 'babylonjs-inspector/treetools' {
|
|
|
export * from 'babylonjs-inspector/treetools/SoundInteractions';
|
|
|
}
|
|
|
|
|
|
-import { AbstractMesh, Nullable, Scene, Observable } from "babylonjs";
|
|
|
-
|
|
|
-export declare class Inspector {
|
|
|
- /** The HTML document relative to this inspector (the window or the popup depending on its mode) */
|
|
|
- static DOCUMENT: HTMLDocument;
|
|
|
- /** The HTML window. In popup mode, it's the popup itself. Otherwise, it's the current tab */
|
|
|
- static WINDOW: Window;
|
|
|
- onGUILoaded: Observable<any>;
|
|
|
- static GUIObject: any;
|
|
|
- /** The inspector is created with the given engine.
|
|
|
- * If the parameter 'popup' is false, the inspector is created as a right panel on the main window.
|
|
|
- * If the parameter 'popup' is true, the inspector is created in another popup.
|
|
|
- */
|
|
|
- constructor(scene: Scene, popup?: boolean, initialTab?: number | string, parentElement?: Nullable<HTMLElement>, newColors?: {
|
|
|
- backgroundColor?: string;
|
|
|
- backgroundColorLighter?: string;
|
|
|
- backgroundColorLighter2?: string;
|
|
|
- backgroundColorLighter3?: string;
|
|
|
- color?: string;
|
|
|
- colorTop?: string;
|
|
|
- colorBot?: string;
|
|
|
- });
|
|
|
- readonly scene: Scene;
|
|
|
- readonly popupMode: boolean;
|
|
|
- /**
|
|
|
- * Filter the list of item present in the tree.
|
|
|
- * All item returned should have the given filter contained in the item id.
|
|
|
- */
|
|
|
- filterItem(filter: string): void;
|
|
|
- /** Display the mesh tab on the given object */
|
|
|
- displayObjectDetails(mesh: AbstractMesh): void;
|
|
|
- /** Clean the whole tree of item and rebuilds it */
|
|
|
- refresh(): void;
|
|
|
- /** Remove the inspector panel when it's built as a right panel:
|
|
|
- * remove the right panel and remove the wrapper
|
|
|
- */
|
|
|
- dispose(): void;
|
|
|
- /** Open the inspector in a new popup
|
|
|
- * Set 'firstTime' to true if there is no inspector created beforehands
|
|
|
- */
|
|
|
- openPopup(firstTime?: boolean): void;
|
|
|
- getActiveTabIndex(): number;
|
|
|
+declare module 'babylonjs-inspector/Inspector' {
|
|
|
+ import { AbstractMesh, Nullable, Scene, Observable } from "babylonjs";
|
|
|
+
|
|
|
+ export class Inspector {
|
|
|
+ /** The HTML document relative to this inspector (the window or the popup depending on its mode) */
|
|
|
+ static DOCUMENT: HTMLDocument;
|
|
|
+ /** The HTML window. In popup mode, it's the popup itself. Otherwise, it's the current tab */
|
|
|
+ static WINDOW: Window;
|
|
|
+ onGUILoaded: Observable<any>;
|
|
|
+ static GUIObject: any;
|
|
|
+ /** The inspector is created with the given engine.
|
|
|
+ * If the parameter 'popup' is false, the inspector is created as a right panel on the main window.
|
|
|
+ * If the parameter 'popup' is true, the inspector is created in another popup.
|
|
|
+ */
|
|
|
+ constructor(scene: Scene, popup?: boolean, initialTab?: number | string, parentElement?: Nullable<HTMLElement>, newColors?: {
|
|
|
+ backgroundColor?: string;
|
|
|
+ backgroundColorLighter?: string;
|
|
|
+ backgroundColorLighter2?: string;
|
|
|
+ backgroundColorLighter3?: string;
|
|
|
+ color?: string;
|
|
|
+ colorTop?: string;
|
|
|
+ colorBot?: string;
|
|
|
+ });
|
|
|
+ readonly scene: Scene;
|
|
|
+ readonly popupMode: boolean;
|
|
|
+ /**
|
|
|
+ * Filter the list of item present in the tree.
|
|
|
+ * All item returned should have the given filter contained in the item id.
|
|
|
+ */
|
|
|
+ filterItem(filter: string): void;
|
|
|
+ /** Display the mesh tab on the given object */
|
|
|
+ displayObjectDetails(mesh: AbstractMesh): void;
|
|
|
+ /** Clean the whole tree of item and rebuilds it */
|
|
|
+ refresh(): void;
|
|
|
+ /** Remove the inspector panel when it's built as a right panel:
|
|
|
+ * remove the right panel and remove the wrapper
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
+ /** Open the inspector in a new popup
|
|
|
+ * Set 'firstTime' to true if there is no inspector created beforehands
|
|
|
+ */
|
|
|
+ openPopup(firstTime?: boolean): void;
|
|
|
+ getActiveTabIndex(): number;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
declare module 'babylonjs-inspector/properties' {
|
|
@@ -1261,46 +1263,48 @@ declare module INSPECTOR {
|
|
|
}
|
|
|
declare module INSPECTOR {
|
|
|
}
|
|
|
-export declare class Inspector {
|
|
|
- /** The HTML document relative to this inspector (the window or the popup depending on its mode) */
|
|
|
- static DOCUMENT: HTMLDocument;
|
|
|
- /** The HTML window. In popup mode, it's the popup itself. Otherwise, it's the current tab */
|
|
|
- static WINDOW: Window;
|
|
|
- onGUILoaded: BABYLON.Observable<any>;
|
|
|
- static GUIObject: any;
|
|
|
- /** The inspector is created with the given engine.
|
|
|
- * If the parameter 'popup' is false, the inspector is created as a right panel on the main window.
|
|
|
- * If the parameter 'popup' is true, the inspector is created in another popup.
|
|
|
- */
|
|
|
- constructor(scene: BABYLON.Scene, popup?: boolean, initialTab?: number | string, parentElement?: BABYLON.Nullable<HTMLElement>, newColors?: {
|
|
|
- backgroundColor?: string;
|
|
|
- backgroundColorLighter?: string;
|
|
|
- backgroundColorLighter2?: string;
|
|
|
- backgroundColorLighter3?: string;
|
|
|
- color?: string;
|
|
|
- colorTop?: string;
|
|
|
- colorBot?: string;
|
|
|
- });
|
|
|
- readonly scene: BABYLON.Scene;
|
|
|
- readonly popupMode: boolean;
|
|
|
- /**
|
|
|
- * Filter the list of item present in the tree.
|
|
|
- * All item returned should have the given filter contained in the item id.
|
|
|
- */
|
|
|
- filterItem(filter: string): void;
|
|
|
- /** Display the mesh tab on the given object */
|
|
|
- displayObjectDetails(mesh: BABYLON.AbstractMesh): void;
|
|
|
- /** Clean the whole tree of item and rebuilds it */
|
|
|
- refresh(): void;
|
|
|
- /** Remove the inspector panel when it's built as a right panel:
|
|
|
- * remove the right panel and remove the wrapper
|
|
|
- */
|
|
|
- dispose(): void;
|
|
|
- /** Open the inspector in a new popup
|
|
|
- * Set 'firstTime' to true if there is no inspector created beforehands
|
|
|
- */
|
|
|
- openPopup(firstTime?: boolean): void;
|
|
|
- getActiveTabIndex(): number;
|
|
|
+declare module INSPECTOR {
|
|
|
+ export class Inspector {
|
|
|
+ /** The HTML document relative to this inspector (the window or the popup depending on its mode) */
|
|
|
+ static DOCUMENT: HTMLDocument;
|
|
|
+ /** The HTML window. In popup mode, it's the popup itself. Otherwise, it's the current tab */
|
|
|
+ static WINDOW: Window;
|
|
|
+ onGUILoaded: BABYLON.Observable<any>;
|
|
|
+ static GUIObject: any;
|
|
|
+ /** The inspector is created with the given engine.
|
|
|
+ * If the parameter 'popup' is false, the inspector is created as a right panel on the main window.
|
|
|
+ * If the parameter 'popup' is true, the inspector is created in another popup.
|
|
|
+ */
|
|
|
+ constructor(scene: BABYLON.Scene, popup?: boolean, initialTab?: number | string, parentElement?: BABYLON.Nullable<HTMLElement>, newColors?: {
|
|
|
+ backgroundColor?: string;
|
|
|
+ backgroundColorLighter?: string;
|
|
|
+ backgroundColorLighter2?: string;
|
|
|
+ backgroundColorLighter3?: string;
|
|
|
+ color?: string;
|
|
|
+ colorTop?: string;
|
|
|
+ colorBot?: string;
|
|
|
+ });
|
|
|
+ readonly scene: BABYLON.Scene;
|
|
|
+ readonly popupMode: boolean;
|
|
|
+ /**
|
|
|
+ * Filter the list of item present in the tree.
|
|
|
+ * All item returned should have the given filter contained in the item id.
|
|
|
+ */
|
|
|
+ filterItem(filter: string): void;
|
|
|
+ /** Display the mesh tab on the given object */
|
|
|
+ displayObjectDetails(mesh: BABYLON.AbstractMesh): void;
|
|
|
+ /** Clean the whole tree of item and rebuilds it */
|
|
|
+ refresh(): void;
|
|
|
+ /** Remove the inspector panel when it's built as a right panel:
|
|
|
+ * remove the right panel and remove the wrapper
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
+ /** Open the inspector in a new popup
|
|
|
+ * Set 'firstTime' to true if there is no inspector created beforehands
|
|
|
+ */
|
|
|
+ openPopup(firstTime?: boolean): void;
|
|
|
+ getActiveTabIndex(): number;
|
|
|
+ }
|
|
|
}
|
|
|
declare module INSPECTOR {
|
|
|
export const PROPERTIES: {
|