babylon.inspector.module.d.ts 3.1 KB

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