babylon.inspector.d.ts 78 KB

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