babylon.inspector.d.ts 82 KB

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