12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- /*Babylon.js Inspector*/
- // Dependencies for this module:
- // ../../../../Tools/Gulp/babylonjs
- declare module 'babylonjs-inspector' {
- export * from "babylonjs-inspector/inspector";
- }
- import { Scene, Observable } from "babylonjs";
- import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
- export interface IExtensibilityOption {
- label: string;
- action: (entity: any) => void;
- }
- export interface IExtensibilityGroup {
- predicate: (entity: any) => boolean;
- entries: IExtensibilityOption[];
- }
- export interface IInspectorOptions {
- overlay?: boolean;
- sceneExplorerRoot?: HTMLElement;
- actionTabsRoot?: HTMLElement;
- embedHostRoot?: HTMLElement;
- showExplorer?: boolean;
- showInspector?: boolean;
- explorerWidth?: string;
- inspectorWidth?: string;
- embedHostWidth?: string;
- embedMode?: boolean;
- handleResize?: boolean;
- enablePopup?: boolean;
- explorerExtensibility?: IExtensibilityGroup[];
- }
- export declare class Inspector {
- static OnSelectionChangeObservable: Observable<string>;
- static OnPropertyChangedObservable: Observable<PropertyChangedEvent>;
- static readonly IsVisible: boolean;
- static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
- static Hide(): void;
- }
- declare module 'babylonjs-inspector/components/propertyChangedEvent' {
- export class PropertyChangedEvent {
- object: any;
- property: string;
- value: any;
- initialValue: any;
- }
- }
- /*Babylon.js Inspector*/
- // Dependencies for this module:
- // ../../../../Tools/Gulp/babylonjs
- declare module INSPECTOR {
- }
- export interface IExtensibilityOption {
- label: string;
- action: (entity: any) => void;
- }
- export interface IExtensibilityGroup {
- predicate: (entity: any) => boolean;
- entries: IExtensibilityOption[];
- }
- export interface IInspectorOptions {
- overlay?: boolean;
- sceneExplorerRoot?: HTMLElement;
- actionTabsRoot?: HTMLElement;
- embedHostRoot?: HTMLElement;
- showExplorer?: boolean;
- showInspector?: boolean;
- explorerWidth?: string;
- inspectorWidth?: string;
- embedHostWidth?: string;
- embedMode?: boolean;
- handleResize?: boolean;
- enablePopup?: boolean;
- explorerExtensibility?: IExtensibilityGroup[];
- }
- export declare class Inspector {
- static OnSelectionChangeObservable: BABYLON.Observable<string>;
- static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
- static readonly IsVisible: boolean;
- static Show(scene: BABYLON.Scene, userOptions: Partial<IInspectorOptions>): void;
- static Hide(): void;
- }
- declare module INSPECTOR {
- export class PropertyChangedEvent {
- object: any;
- property: string;
- value: any;
- initialValue: any;
- }
- }
|