babylon.inspector.module.d.ts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*Babylon.js Inspector*/
  2. // Dependencies for this module:
  3. // ../../../../Tools/Gulp/babylonjs
  4. declare module 'babylonjs-inspector' {
  5. export * from "babylonjs-inspector/inspector";
  6. }
  7. import { Scene, Observable } from "babylonjs";
  8. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  9. export interface IExtensibilityOption {
  10. label: string;
  11. action: (entity: any) => void;
  12. }
  13. export interface IExtensibilityGroup {
  14. predicate: (entity: any) => boolean;
  15. entries: IExtensibilityOption[];
  16. }
  17. export interface IInspectorOptions {
  18. overlay?: boolean;
  19. sceneExplorerRoot?: HTMLElement;
  20. actionTabsRoot?: HTMLElement;
  21. embedHostRoot?: HTMLElement;
  22. showExplorer?: boolean;
  23. showInspector?: boolean;
  24. explorerWidth?: string;
  25. inspectorWidth?: string;
  26. embedHostWidth?: string;
  27. embedMode?: boolean;
  28. handleResize?: boolean;
  29. enablePopup?: boolean;
  30. explorerExtensibility?: IExtensibilityGroup[];
  31. }
  32. export declare class Inspector {
  33. static OnSelectionChangeObservable: Observable<string>;
  34. static OnPropertyChangedObservable: Observable<PropertyChangedEvent>;
  35. static readonly IsVisible: boolean;
  36. static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
  37. static Hide(): void;
  38. }
  39. declare module 'babylonjs-inspector/components/propertyChangedEvent' {
  40. export class PropertyChangedEvent {
  41. object: any;
  42. property: string;
  43. value: any;
  44. initialValue: any;
  45. }
  46. }
  47. /*Babylon.js Inspector*/
  48. // Dependencies for this module:
  49. // ../../../../Tools/Gulp/babylonjs
  50. declare module INSPECTOR {
  51. }
  52. export interface IExtensibilityOption {
  53. label: string;
  54. action: (entity: any) => void;
  55. }
  56. export interface IExtensibilityGroup {
  57. predicate: (entity: any) => boolean;
  58. entries: IExtensibilityOption[];
  59. }
  60. export interface IInspectorOptions {
  61. overlay?: boolean;
  62. sceneExplorerRoot?: HTMLElement;
  63. actionTabsRoot?: HTMLElement;
  64. embedHostRoot?: HTMLElement;
  65. showExplorer?: boolean;
  66. showInspector?: boolean;
  67. explorerWidth?: string;
  68. inspectorWidth?: string;
  69. embedHostWidth?: string;
  70. embedMode?: boolean;
  71. handleResize?: boolean;
  72. enablePopup?: boolean;
  73. explorerExtensibility?: IExtensibilityGroup[];
  74. }
  75. export declare class Inspector {
  76. static OnSelectionChangeObservable: BABYLON.Observable<string>;
  77. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  78. static readonly IsVisible: boolean;
  79. static Show(scene: BABYLON.Scene, userOptions: Partial<IInspectorOptions>): void;
  80. static Hide(): void;
  81. }
  82. declare module INSPECTOR {
  83. export class PropertyChangedEvent {
  84. object: any;
  85. property: string;
  86. value: any;
  87. initialValue: any;
  88. }
  89. }