babylon.inspector.d.ts 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694
  1. /// <reference types="react" />
  2. declare module INSPECTOR {
  3. export class PropertyChangedEvent {
  4. object: any;
  5. property: string;
  6. value: any;
  7. initialValue: any;
  8. }
  9. }
  10. declare module INSPECTOR {
  11. export class GlobalState {
  12. onSelectionChangedObservable: BABYLON.Observable<any>;
  13. onPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  14. onInspectorClosedObservable: BABYLON.Observable<BABYLON.Scene>;
  15. onTabChangedObservable: BABYLON.Observable<number>;
  16. onPluginActivatedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.ISceneLoaderPlugin | BABYLON.ISceneLoaderPluginAsync>>;
  17. validationResults: BABYLON.GLTF2.IGLTFValidationResults;
  18. onValidationResultsUpdatedObservable: BABYLON.Observable<BABYLON.GLTF2.IGLTFValidationResults>;
  19. onExtensionLoadedObservable: BABYLON.Observable<BABYLON.IGLTFLoaderExtension>;
  20. glTFLoaderExtensionDefaults: {
  21. [name: string]: {
  22. [key: string]: any;
  23. };
  24. };
  25. glTFLoaderDefaults: {
  26. [key: string]: any;
  27. };
  28. blockMutationUpdates: boolean;
  29. selectedLineContainerTitle: string;
  30. prepareGLTFPlugin(loader: BABYLON.GLTFFileLoader): void;
  31. lightGizmos: Array<BABYLON.LightGizmo>;
  32. enableLightGizmo(light: BABYLON.Light, enable?: boolean): void;
  33. }
  34. }
  35. declare module INSPECTOR {
  36. export interface IPaneComponentProps {
  37. title: string;
  38. scene: BABYLON.Scene;
  39. selectedEntity?: any;
  40. onSelectionChangedObservable?: BABYLON.Observable<any>;
  41. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  42. globalState: GlobalState;
  43. }
  44. export class PaneComponent extends React.Component<IPaneComponentProps, {
  45. tag: any;
  46. }> {
  47. constructor(props: IPaneComponentProps);
  48. render(): JSX.Element | null;
  49. }
  50. }
  51. declare module INSPECTOR {
  52. interface ITabsComponentProps {
  53. children: any[];
  54. selectedIndex: number;
  55. onSelectedIndexChange: (value: number) => void;
  56. }
  57. export class TabsComponent extends React.Component<ITabsComponentProps> {
  58. constructor(props: ITabsComponentProps);
  59. onSelect(index: number): void;
  60. renderLabel(child: PaneComponent, index: number): JSX.Element;
  61. render(): JSX.Element;
  62. }
  63. }
  64. declare module INSPECTOR {
  65. interface ITextLineComponentProps {
  66. label: string;
  67. value: string;
  68. color?: string;
  69. underline?: boolean;
  70. onLink?: () => void;
  71. }
  72. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  73. constructor(props: ITextLineComponentProps);
  74. onLink(): void;
  75. renderContent(): JSX.Element;
  76. render(): JSX.Element;
  77. }
  78. }
  79. declare module INSPECTOR {
  80. interface ILineContainerComponentProps {
  81. globalState: GlobalState;
  82. title: string;
  83. children: any[] | any;
  84. closed?: boolean;
  85. }
  86. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  87. isExpanded: boolean;
  88. isHighlighted: boolean;
  89. }> {
  90. private static _InMemoryStorage;
  91. constructor(props: ILineContainerComponentProps);
  92. switchExpandedState(): void;
  93. componentDidMount(): void;
  94. renderHeader(): JSX.Element;
  95. render(): JSX.Element;
  96. }
  97. }
  98. declare module INSPECTOR {
  99. interface IValueLineComponentProps {
  100. label: string;
  101. value: number;
  102. color?: string;
  103. fractionDigits?: number;
  104. units?: string;
  105. }
  106. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  107. constructor(props: IValueLineComponentProps);
  108. render(): JSX.Element;
  109. }
  110. }
  111. declare module INSPECTOR {
  112. export interface IBooleanLineComponentProps {
  113. label: string;
  114. value: boolean;
  115. }
  116. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  117. constructor(props: IBooleanLineComponentProps);
  118. render(): JSX.Element;
  119. }
  120. }
  121. declare module INSPECTOR {
  122. export class StatisticsTabComponent extends PaneComponent {
  123. private _sceneInstrumentation;
  124. private _engineInstrumentation;
  125. private _timerIntervalId;
  126. constructor(props: IPaneComponentProps);
  127. componentWillMount(): void;
  128. componentWillUnmount(): void;
  129. render(): JSX.Element | null;
  130. }
  131. }
  132. declare module INSPECTOR {
  133. export interface ICheckBoxLineComponentProps {
  134. label: string;
  135. target?: any;
  136. propertyName?: string;
  137. isSelected?: () => boolean;
  138. onSelect?: (value: boolean) => void;
  139. onValueChanged?: () => void;
  140. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  141. }
  142. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  143. isSelected: boolean;
  144. }> {
  145. private static _UniqueIdSeed;
  146. private _uniqueId;
  147. private _localChange;
  148. constructor(props: ICheckBoxLineComponentProps);
  149. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  150. isSelected: boolean;
  151. }): boolean;
  152. onChange(): void;
  153. render(): JSX.Element;
  154. }
  155. }
  156. declare module INSPECTOR {
  157. interface IRenderGridPropertyGridComponentProps {
  158. globalState: GlobalState;
  159. scene: BABYLON.Scene;
  160. }
  161. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  162. isEnabled: boolean;
  163. }> {
  164. private _gridMesh;
  165. constructor(props: IRenderGridPropertyGridComponentProps);
  166. componentWillMount(): void;
  167. addOrRemoveGrid(): void;
  168. render(): JSX.Element;
  169. }
  170. }
  171. declare module INSPECTOR {
  172. export class DebugTabComponent extends PaneComponent {
  173. private _physicsViewersEnabled;
  174. constructor(props: IPaneComponentProps);
  175. componentWillMount(): void;
  176. componentWillUnmount(): void;
  177. switchPhysicsViewers(): void;
  178. render(): JSX.Element | null;
  179. }
  180. }
  181. declare module INSPECTOR {
  182. interface ISliderLineComponentProps {
  183. label: string;
  184. target?: any;
  185. propertyName?: string;
  186. minimum: number;
  187. maximum: number;
  188. step: number;
  189. directValue?: number;
  190. onChange?: (value: number) => void;
  191. onInput?: (value: number) => void;
  192. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  193. decimalCount?: number;
  194. }
  195. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  196. value: number;
  197. }> {
  198. private _localChange;
  199. constructor(props: ISliderLineComponentProps);
  200. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  201. value: number;
  202. }): boolean;
  203. onChange(newValueString: any): void;
  204. onInput(newValueString: any): void;
  205. render(): JSX.Element;
  206. }
  207. }
  208. declare module INSPECTOR {
  209. class ListLineOption {
  210. label: string;
  211. value: number;
  212. }
  213. interface IOptionsLineComponentProps {
  214. label: string;
  215. target: any;
  216. propertyName: string;
  217. options: ListLineOption[];
  218. noDirectUpdate?: boolean;
  219. onSelect?: (value: number) => void;
  220. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  221. }
  222. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  223. value: number;
  224. }> {
  225. private _localChange;
  226. constructor(props: IOptionsLineComponentProps);
  227. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  228. value: number;
  229. }): boolean;
  230. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  231. updateValue(valueString: string): void;
  232. render(): JSX.Element;
  233. }
  234. }
  235. declare module INSPECTOR {
  236. /**
  237. * Class used to provide lock mechanism
  238. */
  239. export class LockObject {
  240. /**
  241. * Gets or set if the lock is engaged
  242. */
  243. lock: boolean;
  244. }
  245. }
  246. declare module INSPECTOR {
  247. interface ICommonMaterialPropertyGridComponentProps {
  248. globalState: GlobalState;
  249. material: BABYLON.Material;
  250. lockObject: LockObject;
  251. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  252. }
  253. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  254. constructor(props: ICommonMaterialPropertyGridComponentProps);
  255. render(): JSX.Element;
  256. }
  257. }
  258. declare module INSPECTOR {
  259. interface IMaterialPropertyGridComponentProps {
  260. globalState: GlobalState;
  261. material: BABYLON.Material;
  262. lockObject: LockObject;
  263. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  264. }
  265. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  266. constructor(props: IMaterialPropertyGridComponentProps);
  267. render(): JSX.Element;
  268. }
  269. }
  270. declare module INSPECTOR {
  271. interface INumericInputComponentProps {
  272. label: string;
  273. value: number;
  274. onChange: (value: number) => void;
  275. }
  276. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  277. value: string;
  278. }> {
  279. private _localChange;
  280. constructor(props: INumericInputComponentProps);
  281. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  282. value: string;
  283. }): boolean;
  284. updateValue(evt: any): void;
  285. render(): JSX.Element;
  286. }
  287. }
  288. declare module INSPECTOR {
  289. export interface IColor3LineComponentProps {
  290. label: string;
  291. target: any;
  292. propertyName: string;
  293. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  294. }
  295. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  296. isExpanded: boolean;
  297. color: BABYLON.Color3;
  298. }> {
  299. private _localChange;
  300. constructor(props: IColor3LineComponentProps);
  301. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  302. color: BABYLON.Color3;
  303. }): boolean;
  304. onChange(newValue: string): void;
  305. switchExpandState(): void;
  306. raiseOnPropertyChanged(previousValue: BABYLON.Color3): void;
  307. updateStateR(value: number): void;
  308. updateStateG(value: number): void;
  309. updateStateB(value: number): void;
  310. copyToClipboard(): void;
  311. render(): JSX.Element;
  312. }
  313. }
  314. declare module INSPECTOR {
  315. export interface ITextureLinkLineComponentProps {
  316. label: string;
  317. texture: BABYLON.Nullable<BABYLON.BaseTexture>;
  318. material?: BABYLON.Material;
  319. onSelectionChangedObservable?: BABYLON.Observable<any>;
  320. onDebugSelectionChangeObservable?: BABYLON.Observable<BABYLON.BaseTexture>;
  321. }
  322. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  323. isDebugSelected: boolean;
  324. }> {
  325. private _onDebugSelectionChangeObserver;
  326. constructor(props: ITextureLinkLineComponentProps);
  327. componentWillMount(): void;
  328. componentWillUnmount(): void;
  329. debugTexture(): void;
  330. onLink(): void;
  331. render(): JSX.Element | null;
  332. }
  333. }
  334. declare module INSPECTOR {
  335. interface IStandardMaterialPropertyGridComponentProps {
  336. globalState: GlobalState;
  337. material: BABYLON.StandardMaterial;
  338. lockObject: LockObject;
  339. onSelectionChangedObservable?: BABYLON.Observable<any>;
  340. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  341. }
  342. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  343. private _onDebugSelectionChangeObservable;
  344. constructor(props: IStandardMaterialPropertyGridComponentProps);
  345. renderTextures(): JSX.Element | null;
  346. render(): JSX.Element;
  347. }
  348. }
  349. declare module INSPECTOR {
  350. interface ITextureLineComponentProps {
  351. texture: BABYLON.BaseTexture;
  352. width: number;
  353. height: number;
  354. globalState: GlobalState;
  355. }
  356. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  357. displayRed: boolean;
  358. displayGreen: boolean;
  359. displayBlue: boolean;
  360. displayAlpha: boolean;
  361. face: number;
  362. }> {
  363. constructor(props: ITextureLineComponentProps);
  364. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  365. displayRed: boolean;
  366. displayGreen: boolean;
  367. displayBlue: boolean;
  368. displayAlpha: boolean;
  369. face: number;
  370. }): boolean;
  371. componentDidMount(): void;
  372. componentDidUpdate(): void;
  373. updatePreview(): void;
  374. render(): JSX.Element;
  375. }
  376. }
  377. declare module INSPECTOR {
  378. interface IFloatLineComponentProps {
  379. label: string;
  380. target: any;
  381. propertyName: string;
  382. lockObject?: LockObject;
  383. onChange?: (newValue: number) => void;
  384. isInteger?: boolean;
  385. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  386. additionalClass?: string;
  387. }
  388. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  389. value: string;
  390. }> {
  391. private _localChange;
  392. private _store;
  393. constructor(props: IFloatLineComponentProps);
  394. componentWillUnmount(): void;
  395. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  396. value: string;
  397. }): boolean;
  398. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  399. updateValue(valueString: string): void;
  400. lock(): void;
  401. unlock(): void;
  402. render(): JSX.Element;
  403. }
  404. }
  405. declare module INSPECTOR {
  406. interface IFileButtonLineComponentProps {
  407. label: string;
  408. onClick: (file: File) => void;
  409. accept: string;
  410. }
  411. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  412. constructor(props: IFileButtonLineComponentProps);
  413. onChange(evt: any): void;
  414. render(): JSX.Element;
  415. }
  416. }
  417. declare module INSPECTOR {
  418. interface ITexturePropertyGridComponentProps {
  419. texture: BABYLON.BaseTexture;
  420. lockObject: LockObject;
  421. globalState: GlobalState;
  422. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  423. }
  424. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps> {
  425. private _adtInstrumentation;
  426. constructor(props: ITexturePropertyGridComponentProps);
  427. componentWillMount(): void;
  428. componentWillUnmount(): void;
  429. updateTexture(file: File): void;
  430. render(): JSX.Element;
  431. }
  432. }
  433. declare module INSPECTOR {
  434. interface IVector2LineComponentProps {
  435. label: string;
  436. target: any;
  437. propertyName: string;
  438. onChange?: (newvalue: BABYLON.Vector2) => void;
  439. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  440. }
  441. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  442. isExpanded: boolean;
  443. value: BABYLON.Vector2;
  444. }> {
  445. private _localChange;
  446. constructor(props: IVector2LineComponentProps);
  447. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  448. isExpanded: boolean;
  449. value: BABYLON.Vector2;
  450. }): boolean;
  451. switchExpandState(): void;
  452. raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
  453. updateStateX(value: number): void;
  454. updateStateY(value: number): void;
  455. render(): JSX.Element;
  456. }
  457. }
  458. declare module INSPECTOR {
  459. interface IPBRMaterialPropertyGridComponentProps {
  460. globalState: GlobalState;
  461. material: BABYLON.PBRMaterial;
  462. lockObject: LockObject;
  463. onSelectionChangedObservable?: BABYLON.Observable<any>;
  464. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  465. }
  466. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  467. private _onDebugSelectionChangeObservable;
  468. constructor(props: IPBRMaterialPropertyGridComponentProps);
  469. renderTextures(onDebugSelectionChangeObservable: BABYLON.Observable<BABYLON.BaseTexture>): JSX.Element | null;
  470. render(): JSX.Element;
  471. }
  472. }
  473. declare module INSPECTOR {
  474. interface IRadioButtonLineComponentProps {
  475. onSelectionChangedObservable: BABYLON.Observable<RadioButtonLineComponent>;
  476. label: string;
  477. isSelected: () => boolean;
  478. onSelect: () => void;
  479. }
  480. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  481. isSelected: boolean;
  482. }> {
  483. private _onSelectionChangedObserver;
  484. constructor(props: IRadioButtonLineComponentProps);
  485. componentWillMount(): void;
  486. componentWillUnmount(): void;
  487. onChange(): void;
  488. render(): JSX.Element;
  489. }
  490. }
  491. declare module INSPECTOR {
  492. interface IFogPropertyGridComponentProps {
  493. globalState: GlobalState;
  494. scene: BABYLON.Scene;
  495. lockObject: LockObject;
  496. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  497. }
  498. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  499. mode: number;
  500. }> {
  501. constructor(props: IFogPropertyGridComponentProps);
  502. render(): JSX.Element;
  503. }
  504. }
  505. declare module INSPECTOR {
  506. interface IVector3LineComponentProps {
  507. label: string;
  508. target: any;
  509. propertyName: string;
  510. onChange?: (newvalue: BABYLON.Vector3) => void;
  511. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  512. }
  513. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  514. isExpanded: boolean;
  515. value: BABYLON.Vector3;
  516. }> {
  517. private _localChange;
  518. constructor(props: IVector3LineComponentProps);
  519. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  520. isExpanded: boolean;
  521. value: BABYLON.Vector3;
  522. }): boolean;
  523. switchExpandState(): void;
  524. raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
  525. updateStateX(value: number): void;
  526. updateStateY(value: number): void;
  527. updateStateZ(value: number): void;
  528. render(): JSX.Element;
  529. }
  530. }
  531. declare module INSPECTOR {
  532. interface IScenePropertyGridComponentProps {
  533. globalState: GlobalState;
  534. scene: BABYLON.Scene;
  535. lockObject: LockObject;
  536. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  537. onSelectionChangedObservable?: BABYLON.Observable<any>;
  538. }
  539. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  540. private _storedEnvironmentTexture;
  541. private _renderingModeGroupObservable;
  542. constructor(props: IScenePropertyGridComponentProps);
  543. setRenderingModes(point: boolean, wireframe: boolean): void;
  544. switchIBL(): void;
  545. updateEnvironmentTexture(file: File): void;
  546. updateGravity(newValue: BABYLON.Vector3): void;
  547. updateTimeStep(newValue: number): void;
  548. render(): JSX.Element;
  549. }
  550. }
  551. declare module INSPECTOR {
  552. interface ICommonLightPropertyGridComponentProps {
  553. globalState: GlobalState;
  554. light: BABYLON.Light;
  555. lockObject: LockObject;
  556. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  557. }
  558. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  559. constructor(props: ICommonLightPropertyGridComponentProps);
  560. render(): JSX.Element;
  561. }
  562. }
  563. declare module INSPECTOR {
  564. interface IHemisphericLightPropertyGridComponentProps {
  565. globalState: GlobalState;
  566. light: BABYLON.HemisphericLight;
  567. lockObject: LockObject;
  568. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  569. }
  570. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  571. constructor(props: IHemisphericLightPropertyGridComponentProps);
  572. render(): JSX.Element;
  573. }
  574. }
  575. declare module INSPECTOR {
  576. interface ICommonShadowLightPropertyGridComponentProps {
  577. globalState: GlobalState;
  578. light: BABYLON.IShadowLight;
  579. lockObject: LockObject;
  580. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  581. }
  582. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  583. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  584. render(): JSX.Element;
  585. }
  586. }
  587. declare module INSPECTOR {
  588. interface IPointLightPropertyGridComponentProps {
  589. globalState: GlobalState;
  590. light: BABYLON.PointLight;
  591. lockObject: LockObject;
  592. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  593. }
  594. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  595. constructor(props: IPointLightPropertyGridComponentProps);
  596. render(): JSX.Element;
  597. }
  598. }
  599. declare module INSPECTOR {
  600. interface ICommonCameraPropertyGridComponentProps {
  601. globalState: GlobalState;
  602. camera: BABYLON.Camera;
  603. lockObject: LockObject;
  604. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  605. }
  606. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  607. mode: number;
  608. }> {
  609. constructor(props: ICommonCameraPropertyGridComponentProps);
  610. render(): JSX.Element;
  611. }
  612. }
  613. declare module INSPECTOR {
  614. interface IFreeCameraPropertyGridComponentProps {
  615. globalState: GlobalState;
  616. camera: BABYLON.FreeCamera;
  617. lockObject: LockObject;
  618. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  619. }
  620. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  621. constructor(props: IFreeCameraPropertyGridComponentProps);
  622. render(): JSX.Element;
  623. }
  624. }
  625. declare module INSPECTOR {
  626. interface IArcRotateCameraPropertyGridComponentProps {
  627. globalState: GlobalState;
  628. camera: BABYLON.ArcRotateCamera;
  629. lockObject: LockObject;
  630. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  631. }
  632. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  633. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  634. render(): JSX.Element;
  635. }
  636. }
  637. declare module INSPECTOR {
  638. interface IQuaternionLineComponentProps {
  639. label: string;
  640. target: any;
  641. propertyName: string;
  642. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  643. }
  644. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  645. isExpanded: boolean;
  646. value: BABYLON.Quaternion;
  647. }> {
  648. private _localChange;
  649. constructor(props: IQuaternionLineComponentProps);
  650. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  651. isExpanded: boolean;
  652. value: BABYLON.Quaternion;
  653. }): boolean;
  654. switchExpandState(): void;
  655. raiseOnPropertyChanged(currentValue: BABYLON.Quaternion, previousValue: BABYLON.Quaternion): void;
  656. updateQuaternion(): void;
  657. updateStateX(value: number): void;
  658. updateStateY(value: number): void;
  659. updateStateZ(value: number): void;
  660. updateStateW(value: number): void;
  661. render(): JSX.Element;
  662. }
  663. }
  664. declare module INSPECTOR {
  665. interface IAxisViewerComponentProps {
  666. node: BABYLON.TransformNode;
  667. globalState: GlobalState;
  668. }
  669. export class AxesViewerComponent extends React.Component<IAxisViewerComponentProps, {
  670. displayAxis: boolean;
  671. }> {
  672. constructor(props: IAxisViewerComponentProps);
  673. shouldComponentUpdate(nextProps: IAxisViewerComponentProps, nextState: {
  674. displayAxis: boolean;
  675. }): boolean;
  676. displayAxes(): void;
  677. render(): JSX.Element;
  678. }
  679. }
  680. declare module INSPECTOR {
  681. interface IMeshPropertyGridComponentProps {
  682. globalState: GlobalState;
  683. mesh: BABYLON.Mesh;
  684. lockObject: LockObject;
  685. onSelectionChangedObservable?: BABYLON.Observable<any>;
  686. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  687. }
  688. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  689. displayNormals: boolean;
  690. renderNormalVectors: boolean;
  691. }> {
  692. constructor(props: IMeshPropertyGridComponentProps);
  693. renderNormalVectors(): void;
  694. displayNormals(): void;
  695. onMaterialLink(): void;
  696. convertPhysicsTypeToString(): string;
  697. render(): JSX.Element;
  698. }
  699. }
  700. declare module INSPECTOR {
  701. interface ITransformNodePropertyGridComponentProps {
  702. globalState: GlobalState;
  703. transformNode: BABYLON.TransformNode;
  704. lockObject: LockObject;
  705. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  706. }
  707. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  708. constructor(props: ITransformNodePropertyGridComponentProps);
  709. render(): JSX.Element;
  710. }
  711. }
  712. declare module INSPECTOR {
  713. interface IBackgroundMaterialPropertyGridComponentProps {
  714. globalState: GlobalState;
  715. material: BABYLON.BackgroundMaterial;
  716. lockObject: LockObject;
  717. onSelectionChangedObservable?: BABYLON.Observable<any>;
  718. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  719. }
  720. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  721. private _onDebugSelectionChangeObservable;
  722. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  723. renderTextures(): JSX.Element;
  724. render(): JSX.Element;
  725. }
  726. }
  727. declare module INSPECTOR {
  728. interface ITextInputLineComponentProps {
  729. label: string;
  730. lockObject: LockObject;
  731. target?: any;
  732. propertyName?: string;
  733. value?: string;
  734. onChange?: (value: string) => void;
  735. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  736. }
  737. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  738. value: string;
  739. }> {
  740. private _localChange;
  741. constructor(props: ITextInputLineComponentProps);
  742. componentWillUnmount(): void;
  743. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  744. value: string;
  745. }): boolean;
  746. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  747. updateValue(value: string): void;
  748. render(): JSX.Element;
  749. }
  750. }
  751. declare module INSPECTOR {
  752. interface ICommonControlPropertyGridComponentProps {
  753. globalState: GlobalState;
  754. control: BABYLON.GUI.Control;
  755. lockObject: LockObject;
  756. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  757. }
  758. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  759. constructor(props: ICommonControlPropertyGridComponentProps);
  760. renderGridInformation(): JSX.Element | null;
  761. render(): JSX.Element;
  762. }
  763. }
  764. declare module INSPECTOR {
  765. interface IControlPropertyGridComponentProps {
  766. globalState: GlobalState;
  767. control: BABYLON.GUI.Control;
  768. lockObject: LockObject;
  769. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  770. }
  771. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  772. constructor(props: IControlPropertyGridComponentProps);
  773. render(): JSX.Element;
  774. }
  775. }
  776. declare module INSPECTOR {
  777. interface ITextBlockPropertyGridComponentProps {
  778. globalState: GlobalState;
  779. textBlock: BABYLON.GUI.TextBlock;
  780. lockObject: LockObject;
  781. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  782. }
  783. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  784. constructor(props: ITextBlockPropertyGridComponentProps);
  785. render(): JSX.Element;
  786. }
  787. }
  788. declare module INSPECTOR {
  789. interface IInputTextPropertyGridComponentProps {
  790. globalState: GlobalState;
  791. inputText: BABYLON.GUI.InputText;
  792. lockObject: LockObject;
  793. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  794. }
  795. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  796. constructor(props: IInputTextPropertyGridComponentProps);
  797. render(): JSX.Element;
  798. }
  799. }
  800. declare module INSPECTOR {
  801. interface IColorPickerPropertyGridComponentProps {
  802. globalState: GlobalState;
  803. colorPicker: BABYLON.GUI.ColorPicker;
  804. lockObject: LockObject;
  805. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  806. }
  807. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  808. constructor(props: IColorPickerPropertyGridComponentProps);
  809. render(): JSX.Element;
  810. }
  811. }
  812. declare module INSPECTOR {
  813. export interface IButtonLineComponentProps {
  814. label: string;
  815. onClick: () => void;
  816. }
  817. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  818. constructor(props: IButtonLineComponentProps);
  819. render(): JSX.Element;
  820. }
  821. }
  822. declare module INSPECTOR {
  823. interface IAnimationGroupGridComponentProps {
  824. globalState: GlobalState;
  825. animationGroup: BABYLON.AnimationGroup;
  826. scene: BABYLON.Scene;
  827. lockObject: LockObject;
  828. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  829. }
  830. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  831. playButtonText: string;
  832. currentFrame: number;
  833. }> {
  834. private _onAnimationGroupPlayObserver;
  835. private _onAnimationGroupPauseObserver;
  836. private _onBeforeRenderObserver;
  837. constructor(props: IAnimationGroupGridComponentProps);
  838. disconnect(animationGroup: BABYLON.AnimationGroup): void;
  839. connect(animationGroup: BABYLON.AnimationGroup): void;
  840. updateCurrentFrame(animationGroup: BABYLON.AnimationGroup): void;
  841. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  842. componentWillMount(): void;
  843. componentWillUnmount(): void;
  844. playOrPause(): void;
  845. onCurrentFrameChange(value: number): void;
  846. render(): JSX.Element;
  847. }
  848. }
  849. declare module INSPECTOR {
  850. interface IImagePropertyGridComponentProps {
  851. globalState: GlobalState;
  852. image: BABYLON.GUI.Image;
  853. lockObject: LockObject;
  854. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  855. }
  856. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  857. constructor(props: IImagePropertyGridComponentProps);
  858. render(): JSX.Element;
  859. }
  860. }
  861. declare module INSPECTOR {
  862. interface ISliderPropertyGridComponentProps {
  863. globalState: GlobalState;
  864. slider: BABYLON.GUI.Slider;
  865. lockObject: LockObject;
  866. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  867. }
  868. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  869. constructor(props: ISliderPropertyGridComponentProps);
  870. render(): JSX.Element;
  871. }
  872. }
  873. declare module INSPECTOR {
  874. interface IImageBasedSliderPropertyGridComponentProps {
  875. globalState: GlobalState;
  876. imageBasedSlider: BABYLON.GUI.ImageBasedSlider;
  877. lockObject: LockObject;
  878. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  879. }
  880. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  881. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  882. render(): JSX.Element;
  883. }
  884. }
  885. declare module INSPECTOR {
  886. interface IRectanglePropertyGridComponentProps {
  887. globalState: GlobalState;
  888. rectangle: BABYLON.GUI.Rectangle;
  889. lockObject: LockObject;
  890. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  891. }
  892. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  893. constructor(props: IRectanglePropertyGridComponentProps);
  894. render(): JSX.Element;
  895. }
  896. }
  897. declare module INSPECTOR {
  898. interface IEllipsePropertyGridComponentProps {
  899. globalState: GlobalState;
  900. ellipse: BABYLON.GUI.Ellipse;
  901. lockObject: LockObject;
  902. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  903. }
  904. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  905. constructor(props: IEllipsePropertyGridComponentProps);
  906. render(): JSX.Element;
  907. }
  908. }
  909. declare module INSPECTOR {
  910. interface ICheckboxPropertyGridComponentProps {
  911. globalState: GlobalState;
  912. checkbox: BABYLON.GUI.Checkbox;
  913. lockObject: LockObject;
  914. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  915. }
  916. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  917. constructor(props: ICheckboxPropertyGridComponentProps);
  918. render(): JSX.Element;
  919. }
  920. }
  921. declare module INSPECTOR {
  922. interface IRadioButtonPropertyGridComponentProps {
  923. globalState: GlobalState;
  924. radioButton: BABYLON.GUI.RadioButton;
  925. lockObject: LockObject;
  926. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  927. }
  928. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  929. constructor(props: IRadioButtonPropertyGridComponentProps);
  930. render(): JSX.Element;
  931. }
  932. }
  933. declare module INSPECTOR {
  934. interface ILinePropertyGridComponentProps {
  935. globalState: GlobalState;
  936. line: BABYLON.GUI.Line;
  937. lockObject: LockObject;
  938. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  939. }
  940. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  941. constructor(props: ILinePropertyGridComponentProps);
  942. onDashChange(value: string): void;
  943. render(): JSX.Element;
  944. }
  945. }
  946. declare module INSPECTOR {
  947. interface IScrollViewerPropertyGridComponentProps {
  948. globalState: GlobalState;
  949. scrollViewer: BABYLON.GUI.ScrollViewer;
  950. lockObject: LockObject;
  951. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  952. }
  953. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  954. constructor(props: IScrollViewerPropertyGridComponentProps);
  955. render(): JSX.Element;
  956. }
  957. }
  958. declare module INSPECTOR {
  959. interface IGridPropertyGridComponentProps {
  960. globalState: GlobalState;
  961. grid: BABYLON.GUI.Grid;
  962. lockObject: LockObject;
  963. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  964. }
  965. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  966. constructor(props: IGridPropertyGridComponentProps);
  967. renderRows(): JSX.Element[];
  968. renderColumns(): JSX.Element[];
  969. render(): JSX.Element;
  970. }
  971. }
  972. declare module INSPECTOR {
  973. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  974. globalState: GlobalState;
  975. material: BABYLON.PBRMetallicRoughnessMaterial;
  976. lockObject: LockObject;
  977. onSelectionChangedObservable?: BABYLON.Observable<any>;
  978. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  979. }
  980. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  981. private _onDebugSelectionChangeObservable;
  982. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  983. renderTextures(): JSX.Element | null;
  984. render(): JSX.Element;
  985. }
  986. }
  987. declare module INSPECTOR {
  988. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  989. globalState: GlobalState;
  990. material: BABYLON.PBRSpecularGlossinessMaterial;
  991. lockObject: LockObject;
  992. onSelectionChangedObservable?: BABYLON.Observable<any>;
  993. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  994. }
  995. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  996. private _onDebugSelectionChangeObservable;
  997. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  998. renderTextures(): JSX.Element | null;
  999. render(): JSX.Element;
  1000. }
  1001. }
  1002. declare module INSPECTOR {
  1003. interface IStackPanelPropertyGridComponentProps {
  1004. globalState: GlobalState;
  1005. stackPanel: BABYLON.GUI.StackPanel;
  1006. lockObject: LockObject;
  1007. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1008. }
  1009. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  1010. constructor(props: IStackPanelPropertyGridComponentProps);
  1011. render(): JSX.Element;
  1012. }
  1013. }
  1014. declare module INSPECTOR {
  1015. interface ICommonPostProcessPropertyGridComponentProps {
  1016. globalState: GlobalState;
  1017. postProcess: BABYLON.PostProcess;
  1018. lockObject: LockObject;
  1019. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1020. }
  1021. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  1022. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  1023. render(): JSX.Element;
  1024. }
  1025. }
  1026. declare module INSPECTOR {
  1027. interface IPostProcessPropertyGridComponentProps {
  1028. globalState: GlobalState;
  1029. postProcess: BABYLON.PostProcess;
  1030. lockObject: LockObject;
  1031. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1032. }
  1033. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  1034. constructor(props: IPostProcessPropertyGridComponentProps);
  1035. render(): JSX.Element;
  1036. }
  1037. }
  1038. declare module INSPECTOR {
  1039. interface ICommonRenderingPipelinePropertyGridComponentProps {
  1040. globalState: GlobalState;
  1041. renderPipeline: BABYLON.PostProcessRenderPipeline;
  1042. lockObject: LockObject;
  1043. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1044. }
  1045. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  1046. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  1047. render(): JSX.Element;
  1048. }
  1049. }
  1050. declare module INSPECTOR {
  1051. interface IRenderingPipelinePropertyGridComponentProps {
  1052. globalState: GlobalState;
  1053. renderPipeline: BABYLON.PostProcessRenderPipeline;
  1054. lockObject: LockObject;
  1055. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1056. }
  1057. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  1058. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  1059. render(): JSX.Element;
  1060. }
  1061. }
  1062. declare module INSPECTOR {
  1063. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  1064. globalState: GlobalState;
  1065. renderPipeline: BABYLON.DefaultRenderingPipeline;
  1066. lockObject: LockObject;
  1067. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1068. }
  1069. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  1070. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  1071. render(): JSX.Element;
  1072. }
  1073. }
  1074. declare module INSPECTOR {
  1075. interface ISSAORenderingPipelinePropertyGridComponentProps {
  1076. globalState: GlobalState;
  1077. renderPipeline: BABYLON.SSAORenderingPipeline;
  1078. lockObject: LockObject;
  1079. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1080. }
  1081. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  1082. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  1083. render(): JSX.Element;
  1084. }
  1085. }
  1086. declare module INSPECTOR {
  1087. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  1088. globalState: GlobalState;
  1089. renderPipeline: BABYLON.SSAO2RenderingPipeline;
  1090. lockObject: LockObject;
  1091. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1092. }
  1093. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  1094. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  1095. render(): JSX.Element;
  1096. }
  1097. }
  1098. declare module INSPECTOR {
  1099. interface IAnimationGridComponentProps {
  1100. globalState: GlobalState;
  1101. animatable: BABYLON.IAnimatable;
  1102. scene: BABYLON.Scene;
  1103. lockObject: LockObject;
  1104. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1105. }
  1106. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  1107. currentFrame: number;
  1108. }> {
  1109. private _animations;
  1110. private _ranges;
  1111. private _animationControl;
  1112. private _runningAnimatable;
  1113. private _onBeforeRenderObserver;
  1114. private _isPlaying;
  1115. constructor(props: IAnimationGridComponentProps);
  1116. playOrPause(): void;
  1117. componentWillMount(): void;
  1118. componentWillUnmount(): void;
  1119. onCurrentFrameChange(value: number): void;
  1120. render(): JSX.Element;
  1121. }
  1122. }
  1123. declare module INSPECTOR {
  1124. interface ISkeletonPropertyGridComponentProps {
  1125. globalState: GlobalState;
  1126. skeleton: BABYLON.Skeleton;
  1127. lockObject: LockObject;
  1128. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1129. }
  1130. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  1131. private _skeletonViewersEnabled;
  1132. private _skeletonViewers;
  1133. constructor(props: ISkeletonPropertyGridComponentProps);
  1134. switchSkeletonViewers(): void;
  1135. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  1136. componentWillMount(): void;
  1137. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  1138. render(): JSX.Element;
  1139. }
  1140. }
  1141. declare module INSPECTOR {
  1142. interface IBonePropertyGridComponentProps {
  1143. globalState: GlobalState;
  1144. bone: BABYLON.Bone;
  1145. lockObject: LockObject;
  1146. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1147. }
  1148. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  1149. constructor(props: IBonePropertyGridComponentProps);
  1150. render(): JSX.Element;
  1151. }
  1152. }
  1153. declare module INSPECTOR {
  1154. interface IDirectionalLightPropertyGridComponentProps {
  1155. globalState: GlobalState;
  1156. light: BABYLON.DirectionalLight;
  1157. lockObject: LockObject;
  1158. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1159. }
  1160. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  1161. constructor(props: IDirectionalLightPropertyGridComponentProps);
  1162. render(): JSX.Element;
  1163. }
  1164. }
  1165. declare module INSPECTOR {
  1166. interface ISpotLightPropertyGridComponentProps {
  1167. globalState: GlobalState;
  1168. light: BABYLON.SpotLight;
  1169. lockObject: LockObject;
  1170. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1171. }
  1172. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  1173. constructor(props: ISpotLightPropertyGridComponentProps);
  1174. render(): JSX.Element;
  1175. }
  1176. }
  1177. declare module INSPECTOR {
  1178. interface ILenstRenderingPipelinePropertyGridComponentProps {
  1179. globalState: GlobalState;
  1180. renderPipeline: BABYLON.LensRenderingPipeline;
  1181. lockObject: LockObject;
  1182. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1183. }
  1184. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  1185. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  1186. render(): JSX.Element;
  1187. }
  1188. }
  1189. declare module INSPECTOR {
  1190. export class PropertyGridTabComponent extends PaneComponent {
  1191. private _timerIntervalId;
  1192. private _lockObject;
  1193. constructor(props: IPaneComponentProps);
  1194. timerRefresh(): void;
  1195. componentWillMount(): void;
  1196. componentWillUnmount(): void;
  1197. render(): JSX.Element | null;
  1198. }
  1199. }
  1200. declare module INSPECTOR {
  1201. export interface IHeaderComponentProps {
  1202. title: string;
  1203. handleBack?: boolean;
  1204. noExpand?: boolean;
  1205. noClose?: boolean;
  1206. noCommands?: boolean;
  1207. onPopup: () => void;
  1208. onClose: () => void;
  1209. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1210. }
  1211. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  1212. isBackVisible: boolean;
  1213. }> {
  1214. private _backStack;
  1215. private _onSelectionChangeObserver;
  1216. constructor(props: IHeaderComponentProps);
  1217. componentWillMount(): void;
  1218. componentWillUnmount(): void;
  1219. goBack(): void;
  1220. renderLogo(): JSX.Element | null;
  1221. render(): JSX.Element;
  1222. }
  1223. }
  1224. declare module INSPECTOR {
  1225. interface IMessageLineComponentProps {
  1226. text: string;
  1227. color?: string;
  1228. }
  1229. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  1230. constructor(props: IMessageLineComponentProps);
  1231. render(): JSX.Element;
  1232. }
  1233. }
  1234. declare module INSPECTOR {
  1235. interface IGLTFComponentProps {
  1236. scene: BABYLON.Scene;
  1237. globalState: GlobalState;
  1238. }
  1239. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  1240. constructor(props: IGLTFComponentProps);
  1241. openValidationDetails(): void;
  1242. prepareText(singularForm: string, count: number): string;
  1243. renderValidation(): JSX.Element;
  1244. render(): JSX.Element;
  1245. }
  1246. }
  1247. declare module INSPECTOR {
  1248. export class ToolsTabComponent extends PaneComponent {
  1249. private _videoRecorder;
  1250. constructor(props: IPaneComponentProps);
  1251. componentWillMount(): void;
  1252. componentWillUnmount(): void;
  1253. captureScreenshot(): void;
  1254. recordVideo(): void;
  1255. shouldExport(node: BABYLON.Node): boolean;
  1256. exportGLTF(): void;
  1257. exportBabylon(): void;
  1258. createEnvTexture(): void;
  1259. render(): JSX.Element | null;
  1260. }
  1261. }
  1262. declare module INSPECTOR {
  1263. interface IActionTabsComponentProps {
  1264. scene: BABYLON.Scene;
  1265. noCommands?: boolean;
  1266. noHeader?: boolean;
  1267. noExpand?: boolean;
  1268. noClose?: boolean;
  1269. popupMode?: boolean;
  1270. onPopup?: () => void;
  1271. onClose?: () => void;
  1272. globalState: GlobalState;
  1273. }
  1274. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  1275. selectedEntity: any;
  1276. selectedIndex: number;
  1277. }> {
  1278. private _onSelectionChangeObserver;
  1279. private _onTabChangedObserver;
  1280. private _once;
  1281. constructor(props: IActionTabsComponentProps);
  1282. componentWillMount(): void;
  1283. componentWillUnmount(): void;
  1284. changeSelectedTab(index: number): void;
  1285. renderContent(): JSX.Element;
  1286. onClose(): void;
  1287. onPopup(): void;
  1288. render(): JSX.Element;
  1289. }
  1290. }
  1291. declare module INSPECTOR {
  1292. interface ITreeItemLabelComponentProps {
  1293. label: string;
  1294. onClick?: () => void;
  1295. color: string;
  1296. }
  1297. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  1298. constructor(props: ITreeItemLabelComponentProps);
  1299. onClick(): void;
  1300. render(): JSX.Element;
  1301. }
  1302. }
  1303. declare module INSPECTOR {
  1304. interface IExtensionsComponentProps {
  1305. target: any;
  1306. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1307. }
  1308. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  1309. popupVisible: boolean;
  1310. }> {
  1311. private _popup;
  1312. constructor(props: IExtensionsComponentProps);
  1313. showPopup(): void;
  1314. componentDidMount(): void;
  1315. componentDidUpdate(): void;
  1316. render(): JSX.Element | null;
  1317. }
  1318. }
  1319. declare module INSPECTOR {
  1320. interface IMeshTreeItemComponentProps {
  1321. mesh: BABYLON.AbstractMesh;
  1322. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1323. onClick: () => void;
  1324. }
  1325. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  1326. isGizmoEnabled: boolean;
  1327. isVisible: boolean;
  1328. }> {
  1329. constructor(props: IMeshTreeItemComponentProps);
  1330. showGizmos(): void;
  1331. switchVisibility(): void;
  1332. render(): JSX.Element;
  1333. }
  1334. }
  1335. declare module INSPECTOR {
  1336. interface ICameraTreeItemComponentProps {
  1337. camera: BABYLON.Camera;
  1338. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1339. onClick: () => void;
  1340. }
  1341. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  1342. isActive: boolean;
  1343. }> {
  1344. private _onActiveCameraObserver;
  1345. constructor(props: ICameraTreeItemComponentProps);
  1346. setActive(): void;
  1347. componentWillMount(): void;
  1348. componentWillUnmount(): void;
  1349. render(): JSX.Element;
  1350. }
  1351. }
  1352. declare module INSPECTOR {
  1353. interface ILightTreeItemComponentProps {
  1354. light: BABYLON.Light;
  1355. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1356. onClick: () => void;
  1357. globalState: GlobalState;
  1358. }
  1359. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  1360. isEnabled: boolean;
  1361. isGizmoEnabled: boolean;
  1362. }> {
  1363. constructor(props: ILightTreeItemComponentProps);
  1364. switchIsEnabled(): void;
  1365. toggleGizmo(): void;
  1366. render(): JSX.Element;
  1367. }
  1368. }
  1369. declare module INSPECTOR {
  1370. interface IMaterialTreeItemComponentProps {
  1371. material: BABYLON.Material;
  1372. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1373. onClick: () => void;
  1374. }
  1375. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  1376. constructor(props: IMaterialTreeItemComponentProps);
  1377. render(): JSX.Element;
  1378. }
  1379. }
  1380. declare module INSPECTOR {
  1381. interface ITextureTreeItemComponentProps {
  1382. texture: BABYLON.Texture;
  1383. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1384. onClick: () => void;
  1385. }
  1386. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  1387. constructor(props: ITextureTreeItemComponentProps);
  1388. render(): JSX.Element;
  1389. }
  1390. }
  1391. declare module INSPECTOR {
  1392. interface ITransformNodeItemComponentProps {
  1393. transformNode: BABYLON.TransformNode;
  1394. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1395. onClick: () => void;
  1396. }
  1397. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  1398. constructor(props: ITransformNodeItemComponentProps);
  1399. render(): JSX.Element;
  1400. }
  1401. }
  1402. declare module INSPECTOR {
  1403. interface IControlTreeItemComponentProps {
  1404. control: BABYLON.GUI.Control;
  1405. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1406. onClick: () => void;
  1407. }
  1408. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  1409. isActive: boolean;
  1410. isVisible: boolean;
  1411. }> {
  1412. constructor(props: IControlTreeItemComponentProps);
  1413. highlight(): void;
  1414. switchVisibility(): void;
  1415. render(): JSX.Element;
  1416. }
  1417. }
  1418. declare module INSPECTOR {
  1419. interface IAdvancedDynamicTextureTreeItemComponentProps {
  1420. texture: BABYLON.GUI.AdvancedDynamicTexture;
  1421. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1422. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1423. onClick: () => void;
  1424. }
  1425. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  1426. isInPickingMode: boolean;
  1427. }> {
  1428. private _onControlPickedObserver;
  1429. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  1430. componentWillUnmount(): void;
  1431. onPickingMode(): void;
  1432. render(): JSX.Element;
  1433. }
  1434. }
  1435. declare module INSPECTOR {
  1436. interface IAnimationGroupItemComponentProps {
  1437. animationGroup: BABYLON.AnimationGroup;
  1438. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1439. onClick: () => void;
  1440. }
  1441. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  1442. constructor(props: IAnimationGroupItemComponentProps);
  1443. render(): JSX.Element;
  1444. }
  1445. }
  1446. declare module INSPECTOR {
  1447. interface IPostProcessItemComponentProps {
  1448. postProcess: BABYLON.PostProcess;
  1449. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1450. onClick: () => void;
  1451. }
  1452. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  1453. constructor(props: IPostProcessItemComponentProps);
  1454. render(): JSX.Element;
  1455. }
  1456. }
  1457. declare module INSPECTOR {
  1458. interface IRenderPipelineItemComponenttProps {
  1459. renderPipeline: BABYLON.PostProcessRenderPipeline;
  1460. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1461. onClick: () => void;
  1462. }
  1463. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  1464. constructor(props: IRenderPipelineItemComponenttProps);
  1465. render(): JSX.Element;
  1466. }
  1467. }
  1468. declare module INSPECTOR {
  1469. interface ISkeletonTreeItemComponentProps {
  1470. skeleton: BABYLON.Skeleton;
  1471. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1472. onClick: () => void;
  1473. }
  1474. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  1475. constructor(props: ISkeletonTreeItemComponentProps);
  1476. render(): JSX.Element;
  1477. }
  1478. }
  1479. declare module INSPECTOR {
  1480. interface IBoneTreeItemComponenttProps {
  1481. bone: BABYLON.Bone;
  1482. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1483. onClick: () => void;
  1484. }
  1485. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  1486. constructor(props: IBoneTreeItemComponenttProps);
  1487. render(): JSX.Element;
  1488. }
  1489. }
  1490. declare module INSPECTOR {
  1491. interface ITreeItemSpecializedComponentProps {
  1492. label: string;
  1493. entity?: any;
  1494. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1495. globalState: GlobalState;
  1496. onClick?: () => void;
  1497. }
  1498. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  1499. constructor(props: ITreeItemSpecializedComponentProps);
  1500. onClick(): void;
  1501. render(): JSX.Element;
  1502. }
  1503. }
  1504. declare module INSPECTOR {
  1505. export class Tools {
  1506. static LookForItem(item: any, selectedEntity: any): boolean;
  1507. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  1508. static SortAndFilter(parent: any, items: any[]): any[];
  1509. }
  1510. }
  1511. declare module INSPECTOR {
  1512. export interface ITreeItemSelectableComponentProps {
  1513. entity: any;
  1514. selectedEntity?: any;
  1515. mustExpand?: boolean;
  1516. offset: number;
  1517. globalState: GlobalState;
  1518. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1519. filter: BABYLON.Nullable<string>;
  1520. }
  1521. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  1522. isExpanded: boolean;
  1523. isSelected: boolean;
  1524. }> {
  1525. private _wasSelected;
  1526. constructor(props: ITreeItemSelectableComponentProps);
  1527. switchExpandedState(): void;
  1528. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  1529. isExpanded: boolean;
  1530. isSelected: boolean;
  1531. }): boolean;
  1532. scrollIntoView(): void;
  1533. componentDidMount(): void;
  1534. componentDidUpdate(): void;
  1535. onSelect(): void;
  1536. renderChildren(): JSX.Element[] | null;
  1537. render(): JSX.Element | null;
  1538. }
  1539. }
  1540. declare module INSPECTOR {
  1541. export interface ITreeItemComponentProps {
  1542. items?: BABYLON.Nullable<any[]>;
  1543. label: string;
  1544. offset: number;
  1545. filter: BABYLON.Nullable<string>;
  1546. globalState: GlobalState;
  1547. entity?: any;
  1548. selectedEntity: any;
  1549. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1550. contextMenuItems?: {
  1551. label: string;
  1552. action: () => void;
  1553. }[];
  1554. }
  1555. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  1556. isExpanded: boolean;
  1557. mustExpand: boolean;
  1558. }> {
  1559. static _ContextMenuUniqueIdGenerator: number;
  1560. constructor(props: ITreeItemComponentProps);
  1561. switchExpandedState(): void;
  1562. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  1563. isExpanded: boolean;
  1564. }): boolean;
  1565. expandAll(expand: boolean): void;
  1566. renderContextMenu(): JSX.Element | null;
  1567. render(): JSX.Element;
  1568. }
  1569. }
  1570. declare module INSPECTOR {
  1571. interface ISceneTreeItemComponentProps {
  1572. scene: BABYLON.Scene;
  1573. onRefresh: () => void;
  1574. selectedEntity?: any;
  1575. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1576. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1577. globalState: GlobalState;
  1578. }
  1579. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  1580. isSelected: boolean;
  1581. isInPickingMode: boolean;
  1582. gizmoMode: number;
  1583. }> {
  1584. private _gizmoLayerOnPointerObserver;
  1585. private _onPointerObserver;
  1586. private _onSelectionChangeObserver;
  1587. private _selectedEntity;
  1588. constructor(props: ISceneTreeItemComponentProps);
  1589. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  1590. isSelected: boolean;
  1591. isInPickingMode: boolean;
  1592. }): boolean;
  1593. componentWillMount(): void;
  1594. componentWillUnmount(): void;
  1595. onSelect(): void;
  1596. onPickingMode(): void;
  1597. setGizmoMode(mode: number): void;
  1598. render(): JSX.Element;
  1599. }
  1600. }
  1601. declare module INSPECTOR {
  1602. interface ISceneExplorerFilterComponentProps {
  1603. onFilter: (filter: string) => void;
  1604. }
  1605. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  1606. constructor(props: ISceneExplorerFilterComponentProps);
  1607. render(): JSX.Element;
  1608. }
  1609. interface ISceneExplorerComponentProps {
  1610. scene: BABYLON.Scene;
  1611. noCommands?: boolean;
  1612. noHeader?: boolean;
  1613. noExpand?: boolean;
  1614. noClose?: boolean;
  1615. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  1616. globalState: GlobalState;
  1617. popupMode?: boolean;
  1618. onPopup?: () => void;
  1619. onClose?: () => void;
  1620. }
  1621. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  1622. filter: BABYLON.Nullable<string>;
  1623. selectedEntity: any;
  1624. scene: BABYLON.Scene;
  1625. }> {
  1626. private _onSelectionChangeObserver;
  1627. private _onNewSceneAddedObserver;
  1628. private _once;
  1629. private sceneMutationFunc;
  1630. constructor(props: ISceneExplorerComponentProps);
  1631. processMutation(): void;
  1632. componentWillMount(): void;
  1633. componentWillUnmount(): void;
  1634. filterContent(filter: string): void;
  1635. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  1636. previousOne?: any;
  1637. found?: boolean;
  1638. }): boolean;
  1639. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  1640. renderContent(): JSX.Element | null;
  1641. onClose(): void;
  1642. onPopup(): void;
  1643. render(): JSX.Element;
  1644. }
  1645. }
  1646. declare module INSPECTOR {
  1647. interface IEmbedHostComponentProps {
  1648. scene: BABYLON.Scene;
  1649. globalState: GlobalState;
  1650. popupMode: boolean;
  1651. noClose?: boolean;
  1652. noExpand?: boolean;
  1653. onClose: () => void;
  1654. onPopup: () => void;
  1655. }
  1656. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  1657. private _once;
  1658. constructor(props: IEmbedHostComponentProps);
  1659. componentDidMount(): void;
  1660. renderContent(): JSX.Element;
  1661. render(): JSX.Element;
  1662. }
  1663. }
  1664. declare module INSPECTOR {
  1665. export class Inspector {
  1666. private static _SceneExplorerHost;
  1667. private static _ActionTabsHost;
  1668. private static _EmbedHost;
  1669. private static _NewCanvasContainer;
  1670. private static _SceneExplorerWindow;
  1671. private static _ActionTabsWindow;
  1672. private static _EmbedHostWindow;
  1673. private static _Scene;
  1674. private static _OpenedPane;
  1675. private static _OnBeforeRenderObserver;
  1676. static OnSelectionChangeObservable: BABYLON.Observable<any>;
  1677. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  1678. private static _GlobalState;
  1679. static MarkLineContainerTitleForHighlighting(title: string): void;
  1680. private static _CopyStyles;
  1681. private static _CreateSceneExplorer;
  1682. private static _CreateActionTabs;
  1683. private static _CreateEmbedHost;
  1684. private static _CreatePopup;
  1685. static readonly IsVisible: boolean;
  1686. static EarlyAttachToLoader(): void;
  1687. static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
  1688. private static _CreateCanvasContainer;
  1689. private static _DestroyCanvasContainer;
  1690. private static _Cleanup;
  1691. private static _RemoveElementFromDOM;
  1692. static Hide(): void;
  1693. }
  1694. }