babylon.inspector.d.ts 78 KB

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