babylon.inspector.d.ts 97 KB

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