babylon.inspector.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*Babylon.js Inspector*/
  2. // Dependencies for this module:
  3. // ../../../../Tools/Gulp/babylonjs
  4. declare module INSPECTOR {
  5. }
  6. export interface IExtensibilityOption {
  7. label: string;
  8. action: (entity: any) => void;
  9. }
  10. export interface IExtensibilityGroup {
  11. predicate: (entity: any) => boolean;
  12. entries: IExtensibilityOption[];
  13. }
  14. export interface IInspectorOptions {
  15. overlay?: boolean;
  16. sceneExplorerRoot?: HTMLElement;
  17. actionTabsRoot?: HTMLElement;
  18. embedHostRoot?: HTMLElement;
  19. showExplorer?: boolean;
  20. showInspector?: boolean;
  21. explorerWidth?: string;
  22. inspectorWidth?: string;
  23. embedHostWidth?: string;
  24. embedMode?: boolean;
  25. handleResize?: boolean;
  26. enablePopup?: boolean;
  27. explorerExtensibility?: IExtensibilityGroup[];
  28. }
  29. export declare class Inspector {
  30. static OnSelectionChangeObservable: BABYLON.Observable<string>;
  31. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  32. static readonly IsVisible: boolean;
  33. static Show(scene: BABYLON.Scene, userOptions: Partial<IInspectorOptions>): void;
  34. static Hide(): void;
  35. }
  36. declare module INSPECTOR {
  37. export class PropertyChangedEvent {
  38. object: any;
  39. property: string;
  40. value: any;
  41. initialValue: any;
  42. }
  43. }