babylon.inspector.module.d.ts 231 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364
  1. /// <reference types="react" />
  2. declare module "babylonjs-inspector/components/propertyChangedEvent" {
  3. export class PropertyChangedEvent {
  4. object: any;
  5. property: string;
  6. value: any;
  7. initialValue: any;
  8. allowNullValue?: boolean;
  9. }
  10. }
  11. declare module "babylonjs-inspector/components/codeChangedEvent" {
  12. export class CodeChangedEvent {
  13. object: any;
  14. code: string;
  15. }
  16. }
  17. declare module "babylonjs-inspector/components/replayRecorder" {
  18. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  19. import { CodeChangedEvent } from "babylonjs-inspector/components/codeChangedEvent";
  20. export class ReplayRecorder {
  21. private _recordedCodeLines;
  22. private _previousObject;
  23. private _previousProperty;
  24. reset(): void;
  25. private _getIndirectData;
  26. recordCode(event: CodeChangedEvent): void;
  27. record(event: PropertyChangedEvent): void;
  28. export(): void;
  29. }
  30. }
  31. declare module "babylonjs-inspector/components/globalState" {
  32. import { GLTFFileLoader, IGLTFLoaderExtension } from "babylonjs-loaders/glTF/index";
  33. import { IGLTFValidationResults } from "babylonjs-gltf2interface";
  34. import { Nullable } from "babylonjs/types";
  35. import { Observable, Observer } from "babylonjs/Misc/observable";
  36. import { ISceneLoaderPlugin, ISceneLoaderPluginAsync } from "babylonjs/Loading/sceneLoader";
  37. import { Scene } from "babylonjs/scene";
  38. import { Light } from "babylonjs/Lights/light";
  39. import { LightGizmo } from "babylonjs/Gizmos/lightGizmo";
  40. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  41. import { ReplayRecorder } from "babylonjs-inspector/components/replayRecorder";
  42. import { CodeChangedEvent } from "babylonjs-inspector/components/codeChangedEvent";
  43. export class GlobalState {
  44. onSelectionChangedObservable: Observable<any>;
  45. onPropertyChangedObservable: Observable<PropertyChangedEvent>;
  46. onCodeChangedObservable: Observable<CodeChangedEvent>;
  47. onInspectorClosedObservable: Observable<Scene>;
  48. onTabChangedObservable: Observable<number>;
  49. onSelectionRenamedObservable: Observable<void>;
  50. onPluginActivatedObserver: Nullable<Observer<ISceneLoaderPlugin | ISceneLoaderPluginAsync>>;
  51. onNewSceneObservable: Observable<Scene>;
  52. sceneImportDefaults: {
  53. [key: string]: any;
  54. };
  55. validationResults: Nullable<IGLTFValidationResults>;
  56. onValidationResultsUpdatedObservable: Observable<Nullable<IGLTFValidationResults>>;
  57. onExtensionLoadedObservable: Observable<IGLTFLoaderExtension>;
  58. glTFLoaderExtensionDefaults: {
  59. [name: string]: {
  60. [key: string]: any;
  61. };
  62. };
  63. glTFLoaderDefaults: {
  64. [key: string]: any;
  65. };
  66. blockMutationUpdates: boolean;
  67. selectedLineContainerTitle: string;
  68. recorder: ReplayRecorder;
  69. private _onlyUseEulers;
  70. get onlyUseEulers(): boolean;
  71. set onlyUseEulers(value: boolean);
  72. private _ignoreBackfacesForPicking;
  73. get ignoreBackfacesForPicking(): boolean;
  74. set ignoreBackfacesForPicking(value: boolean);
  75. init(propertyChangedObservable: Observable<PropertyChangedEvent>): void;
  76. prepareGLTFPlugin(loader: GLTFFileLoader): void;
  77. lightGizmos: Array<LightGizmo>;
  78. enableLightGizmo(light: Light, enable?: boolean): void;
  79. }
  80. }
  81. declare module "babylonjs-inspector/components/actionTabs/paneComponent" {
  82. import * as React from "react";
  83. import { Observable } from "babylonjs/Misc/observable";
  84. import { Scene } from "babylonjs/scene";
  85. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  86. import { GlobalState } from "babylonjs-inspector/components/globalState";
  87. export interface IPaneComponentProps {
  88. title: string;
  89. scene: Scene;
  90. selectedEntity?: any;
  91. onSelectionChangedObservable?: Observable<any>;
  92. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  93. globalState: GlobalState;
  94. }
  95. export class PaneComponent extends React.Component<IPaneComponentProps, {
  96. tag: any;
  97. }> {
  98. constructor(props: IPaneComponentProps);
  99. render(): JSX.Element | null;
  100. }
  101. }
  102. declare module "babylonjs-inspector/components/actionTabs/tabsComponent" {
  103. import * as React from "react";
  104. import { PaneComponent } from "babylonjs-inspector/components/actionTabs/paneComponent";
  105. interface ITabsComponentProps {
  106. children: any[];
  107. selectedIndex: number;
  108. onSelectedIndexChange: (value: number) => void;
  109. }
  110. export class TabsComponent extends React.Component<ITabsComponentProps> {
  111. constructor(props: ITabsComponentProps);
  112. onSelect(index: number): void;
  113. renderLabel(child: PaneComponent, index: number): JSX.Element;
  114. render(): JSX.Element;
  115. }
  116. }
  117. declare module "babylonjs-inspector/components/actionTabs/lines/textLineComponent" {
  118. import * as React from "react";
  119. interface ITextLineComponentProps {
  120. label: string;
  121. value?: string;
  122. color?: string;
  123. underline?: boolean;
  124. onLink?: () => void;
  125. url?: string;
  126. ignoreValue?: boolean;
  127. additionalClass?: string;
  128. }
  129. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  130. constructor(props: ITextLineComponentProps);
  131. onLink(): void;
  132. renderContent(): JSX.Element | null;
  133. render(): JSX.Element;
  134. }
  135. }
  136. declare module "babylonjs-inspector/components/actionTabs/lineContainerComponent" {
  137. import * as React from "react";
  138. import { GlobalState } from "babylonjs-inspector/components/globalState";
  139. interface ILineContainerComponentProps {
  140. globalState?: GlobalState;
  141. title: string;
  142. children: any[] | any;
  143. closed?: boolean;
  144. }
  145. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  146. isExpanded: boolean;
  147. isHighlighted: boolean;
  148. }> {
  149. constructor(props: ILineContainerComponentProps);
  150. switchExpandedState(): void;
  151. componentDidMount(): void;
  152. renderHeader(): JSX.Element;
  153. render(): JSX.Element;
  154. }
  155. }
  156. declare module "babylonjs-inspector/components/actionTabs/lines/valueLineComponent" {
  157. import * as React from "react";
  158. interface IValueLineComponentProps {
  159. label: string;
  160. value: number;
  161. color?: string;
  162. fractionDigits?: number;
  163. units?: string;
  164. }
  165. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  166. constructor(props: IValueLineComponentProps);
  167. render(): JSX.Element;
  168. }
  169. }
  170. declare module "babylonjs-inspector/components/actionTabs/lines/booleanLineComponent" {
  171. import * as React from "react";
  172. export interface IBooleanLineComponentProps {
  173. label: string;
  174. value: boolean;
  175. }
  176. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  177. constructor(props: IBooleanLineComponentProps);
  178. render(): JSX.Element;
  179. }
  180. }
  181. declare module "babylonjs-inspector/components/actionTabs/tabs/statisticsTabComponent" {
  182. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  183. export class StatisticsTabComponent extends PaneComponent {
  184. private _sceneInstrumentation;
  185. private _engineInstrumentation;
  186. private _timerIntervalId;
  187. constructor(props: IPaneComponentProps);
  188. componentWillUnmount(): void;
  189. render(): JSX.Element | null;
  190. }
  191. }
  192. declare module "babylonjs-inspector/components/actionTabs/lines/checkBoxLineComponent" {
  193. import * as React from "react";
  194. import { Observable } from "babylonjs/Misc/observable";
  195. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  196. export interface ICheckBoxLineComponentProps {
  197. label: string;
  198. target?: any;
  199. propertyName?: string;
  200. isSelected?: () => boolean;
  201. onSelect?: (value: boolean) => void;
  202. onValueChanged?: () => void;
  203. replaySourceReplacement?: string;
  204. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  205. }
  206. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  207. isSelected: boolean;
  208. }> {
  209. private static _UniqueIdSeed;
  210. private _uniqueId;
  211. private _localChange;
  212. constructor(props: ICheckBoxLineComponentProps);
  213. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  214. isSelected: boolean;
  215. }): boolean;
  216. onChange(): void;
  217. render(): JSX.Element;
  218. }
  219. }
  220. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent" {
  221. import * as React from "react";
  222. import { Scene } from "babylonjs/scene";
  223. import { GlobalState } from "babylonjs-inspector/components/globalState";
  224. interface IRenderGridPropertyGridComponentProps {
  225. globalState: GlobalState;
  226. scene: Scene;
  227. }
  228. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  229. isEnabled: boolean;
  230. }> {
  231. private _gridMesh;
  232. constructor(props: IRenderGridPropertyGridComponentProps);
  233. componentDidMount(): void;
  234. addOrRemoveGrid(): void;
  235. render(): JSX.Element;
  236. }
  237. }
  238. declare module "babylonjs-inspector/components/actionTabs/tabs/debugTabComponent" {
  239. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  240. export class DebugTabComponent extends PaneComponent {
  241. private _physicsViewersEnabled;
  242. constructor(props: IPaneComponentProps);
  243. switchPhysicsViewers(): void;
  244. render(): JSX.Element | null;
  245. }
  246. }
  247. declare module "babylonjs-inspector/components/actionTabs/lines/sliderLineComponent" {
  248. import * as React from "react";
  249. import { Observable } from "babylonjs/Misc/observable";
  250. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  251. interface ISliderLineComponentProps {
  252. label: string;
  253. target?: any;
  254. propertyName?: string;
  255. minimum: number;
  256. maximum: number;
  257. step: number;
  258. directValue?: number;
  259. useEuler?: boolean;
  260. onChange?: (value: number) => void;
  261. onInput?: (value: number) => void;
  262. replaySourceReplacement?: string;
  263. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  264. decimalCount?: number;
  265. }
  266. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  267. value: number;
  268. }> {
  269. private _localChange;
  270. constructor(props: ISliderLineComponentProps);
  271. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  272. value: number;
  273. }): boolean;
  274. onChange(newValueString: any): void;
  275. onInput(newValueString: any): void;
  276. prepareDataToRead(value: number): number;
  277. render(): JSX.Element;
  278. }
  279. }
  280. declare module "babylonjs-inspector/components/actionTabs/lines/optionsLineComponent" {
  281. import * as React from "react";
  282. import { Observable } from "babylonjs/Misc/observable";
  283. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  284. export const Null_Value: number;
  285. class ListLineOption {
  286. label: string;
  287. value: number;
  288. }
  289. interface IOptionsLineComponentProps {
  290. label: string;
  291. target: any;
  292. propertyName: string;
  293. options: ListLineOption[];
  294. noDirectUpdate?: boolean;
  295. onSelect?: (value: number) => void;
  296. extractValue?: () => number;
  297. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  298. allowNullValue?: boolean;
  299. }
  300. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  301. value: number;
  302. }> {
  303. private _localChange;
  304. private remapValueIn;
  305. private remapValueOut;
  306. constructor(props: IOptionsLineComponentProps);
  307. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  308. value: number;
  309. }): boolean;
  310. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  311. updateValue(valueString: string): void;
  312. render(): JSX.Element;
  313. }
  314. }
  315. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject" {
  316. /**
  317. * Class used to provide lock mechanism
  318. */
  319. export class LockObject {
  320. /**
  321. * Gets or set if the lock is engaged
  322. */
  323. lock: boolean;
  324. }
  325. }
  326. declare module "babylonjs-inspector/components/actionTabs/lines/numericInputComponent" {
  327. import * as React from "react";
  328. interface INumericInputComponentProps {
  329. label: string;
  330. value: number;
  331. step?: number;
  332. onChange: (value: number) => void;
  333. precision?: number;
  334. }
  335. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  336. value: string;
  337. }> {
  338. static defaultProps: {
  339. step: number;
  340. };
  341. private _localChange;
  342. constructor(props: INumericInputComponentProps);
  343. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  344. value: string;
  345. }): boolean;
  346. updateValue(evt: any): void;
  347. render(): JSX.Element;
  348. }
  349. }
  350. declare module "babylonjs-inspector/components/actionTabs/lines/colorPickerComponent" {
  351. import * as React from "react";
  352. import { Color4, Color3 } from 'babylonjs/Maths/math.color';
  353. export interface IColorPickerComponentProps {
  354. value: Color4 | Color3;
  355. onColorChanged: (newOne: string) => void;
  356. disableAlpha?: boolean;
  357. }
  358. interface IColorPickerComponentState {
  359. pickerEnabled: boolean;
  360. color: {
  361. r: number;
  362. g: number;
  363. b: number;
  364. a?: number;
  365. };
  366. hex: string;
  367. }
  368. export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
  369. private _floatRef;
  370. private _floatHostRef;
  371. constructor(props: IColorPickerComponentProps);
  372. syncPositions(): void;
  373. shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
  374. componentDidUpdate(): void;
  375. componentDidMount(): void;
  376. render(): JSX.Element;
  377. }
  378. }
  379. declare module "babylonjs-inspector/components/actionTabs/lines/color3LineComponent" {
  380. import * as React from "react";
  381. import { Observable } from "babylonjs/Misc/observable";
  382. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  383. import { Color3 } from 'babylonjs/Maths/math.color';
  384. export interface IColor3LineComponentProps {
  385. label: string;
  386. target: any;
  387. propertyName: string;
  388. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  389. isLinear?: boolean;
  390. }
  391. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  392. isExpanded: boolean;
  393. color: Color3;
  394. }> {
  395. private _localChange;
  396. constructor(props: IColor3LineComponentProps);
  397. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  398. color: Color3;
  399. }): boolean;
  400. setPropertyValue(newColor: Color3): void;
  401. onChange(newValue: string): void;
  402. switchExpandState(): void;
  403. raiseOnPropertyChanged(previousValue: Color3): void;
  404. updateStateR(value: number): void;
  405. updateStateG(value: number): void;
  406. updateStateB(value: number): void;
  407. copyToClipboard(): void;
  408. render(): JSX.Element;
  409. }
  410. }
  411. declare module "babylonjs-inspector/components/actionTabs/lines/vector3LineComponent" {
  412. import * as React from "react";
  413. import { Vector3 } from "babylonjs/Maths/math.vector";
  414. import { Observable } from "babylonjs/Misc/observable";
  415. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  416. interface IVector3LineComponentProps {
  417. label: string;
  418. target: any;
  419. propertyName: string;
  420. step?: number;
  421. onChange?: (newvalue: Vector3) => void;
  422. useEuler?: boolean;
  423. replaySourceReplacement?: string;
  424. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  425. }
  426. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  427. isExpanded: boolean;
  428. value: Vector3;
  429. }> {
  430. static defaultProps: {
  431. step: number;
  432. };
  433. private _localChange;
  434. constructor(props: IVector3LineComponentProps);
  435. getCurrentValue(): any;
  436. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  437. isExpanded: boolean;
  438. value: Vector3;
  439. }): boolean;
  440. switchExpandState(): void;
  441. raiseOnPropertyChanged(previousValue: Vector3): void;
  442. updateVector3(): void;
  443. updateStateX(value: number): void;
  444. updateStateY(value: number): void;
  445. updateStateZ(value: number): void;
  446. render(): JSX.Element;
  447. }
  448. }
  449. declare module "babylonjs-inspector/components/actionTabs/lines/quaternionLineComponent" {
  450. import * as React from "react";
  451. import { Observable } from "babylonjs/Misc/observable";
  452. import { Quaternion, Vector3 } from "babylonjs/Maths/math.vector";
  453. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  454. interface IQuaternionLineComponentProps {
  455. label: string;
  456. target: any;
  457. useEuler?: boolean;
  458. propertyName: string;
  459. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  460. }
  461. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  462. isExpanded: boolean;
  463. value: Quaternion;
  464. eulerValue: Vector3;
  465. }> {
  466. private _localChange;
  467. constructor(props: IQuaternionLineComponentProps);
  468. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  469. isExpanded: boolean;
  470. value: Quaternion;
  471. }): boolean;
  472. switchExpandState(): void;
  473. raiseOnPropertyChanged(currentValue: Quaternion, previousValue: Quaternion): void;
  474. updateQuaternion(): void;
  475. updateStateX(value: number): void;
  476. updateStateY(value: number): void;
  477. updateStateZ(value: number): void;
  478. updateStateW(value: number): void;
  479. updateQuaternionFromEuler(): void;
  480. updateStateEulerX(value: number): void;
  481. updateStateEulerY(value: number): void;
  482. updateStateEulerZ(value: number): void;
  483. render(): JSX.Element;
  484. }
  485. }
  486. declare module "babylonjs-inspector/components/actionTabs/lines/textInputLineComponent" {
  487. import * as React from "react";
  488. import { Observable } from "babylonjs/Misc/observable";
  489. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  490. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  491. interface ITextInputLineComponentProps {
  492. label: string;
  493. lockObject: LockObject;
  494. target?: any;
  495. propertyName?: string;
  496. value?: string;
  497. onChange?: (value: string) => void;
  498. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  499. }
  500. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  501. value: string;
  502. }> {
  503. private _localChange;
  504. constructor(props: ITextInputLineComponentProps);
  505. componentWillUnmount(): void;
  506. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  507. value: string;
  508. }): boolean;
  509. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  510. updateValue(value: string): void;
  511. render(): JSX.Element;
  512. }
  513. }
  514. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/customPropertyGridComponent" {
  515. import * as React from "react";
  516. import { Observable } from "babylonjs/Misc/observable";
  517. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  518. import { GlobalState } from "babylonjs-inspector/components/globalState";
  519. import { IInspectable } from 'babylonjs/Misc/iInspectable';
  520. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  521. interface ICustomPropertyGridComponentProps {
  522. globalState: GlobalState;
  523. target: any;
  524. lockObject: LockObject;
  525. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  526. }
  527. export class CustomPropertyGridComponent extends React.Component<ICustomPropertyGridComponentProps, {
  528. mode: number;
  529. }> {
  530. constructor(props: ICustomPropertyGridComponentProps);
  531. renderInspectable(inspectable: IInspectable): JSX.Element | null;
  532. render(): JSX.Element | null;
  533. }
  534. }
  535. declare module "babylonjs-inspector/components/actionTabs/lines/buttonLineComponent" {
  536. import * as React from "react";
  537. export interface IButtonLineComponentProps {
  538. label: string;
  539. onClick: () => void;
  540. }
  541. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  542. constructor(props: IButtonLineComponentProps);
  543. render(): JSX.Element;
  544. }
  545. }
  546. declare module "babylonjs-inspector/components/actionTabs/lines/floatLineComponent" {
  547. import * as React from "react";
  548. import { Observable } from "babylonjs/Misc/observable";
  549. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  550. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  551. interface IFloatLineComponentProps {
  552. label: string;
  553. target: any;
  554. propertyName: string;
  555. lockObject?: LockObject;
  556. onChange?: (newValue: number) => void;
  557. isInteger?: boolean;
  558. replaySourceReplacement?: string;
  559. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  560. additionalClass?: string;
  561. step?: string;
  562. digits?: number;
  563. useEuler?: boolean;
  564. }
  565. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  566. value: string;
  567. }> {
  568. private _localChange;
  569. private _store;
  570. constructor(props: IFloatLineComponentProps);
  571. componentWillUnmount(): void;
  572. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  573. value: string;
  574. }): boolean;
  575. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  576. updateValue(valueString: string): void;
  577. lock(): void;
  578. unlock(): void;
  579. render(): JSX.Element;
  580. }
  581. }
  582. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/anchorSvgPoint" {
  583. import * as React from "react";
  584. import { Vector2 } from 'babylonjs/Maths/math.vector';
  585. interface IAnchorSvgPointProps {
  586. control: Vector2;
  587. anchor: Vector2;
  588. active: boolean;
  589. type: string;
  590. index: string;
  591. }
  592. export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
  593. constructor(props: IAnchorSvgPointProps);
  594. render(): JSX.Element;
  595. }
  596. }
  597. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint" {
  598. import * as React from "react";
  599. import { Vector2 } from 'babylonjs/Maths/math.vector';
  600. export interface IKeyframeSvgPoint {
  601. keyframePoint: Vector2;
  602. rightControlPoint: Vector2 | null;
  603. leftControlPoint: Vector2 | null;
  604. id: string;
  605. }
  606. interface IKeyframeSvgPointProps {
  607. keyframePoint: Vector2;
  608. leftControlPoint: Vector2 | null;
  609. rightControlPoint: Vector2 | null;
  610. id: string;
  611. }
  612. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps> {
  613. constructor(props: IKeyframeSvgPointProps);
  614. render(): JSX.Element;
  615. }
  616. }
  617. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea" {
  618. import * as React from "react";
  619. import { Vector2 } from 'babylonjs/Maths/math.vector';
  620. import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
  621. interface ISvgDraggableAreaProps {
  622. keyframeSvgPoints: IKeyframeSvgPoint[];
  623. updatePosition: (updatedKeyframe: IKeyframeSvgPoint, index: number) => void;
  624. }
  625. export class SvgDraggableArea extends React.Component<ISvgDraggableAreaProps> {
  626. private _active;
  627. private _isCurrentPointControl;
  628. private _currentPointIndex;
  629. private _draggableArea;
  630. constructor(props: ISvgDraggableAreaProps);
  631. dragStart(e: React.TouchEvent<SVGSVGElement>): void;
  632. dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  633. drag(e: React.TouchEvent<SVGSVGElement>): void;
  634. drag(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  635. dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
  636. dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  637. getMousePosition(e: React.TouchEvent<SVGSVGElement>): Vector2 | undefined;
  638. getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): Vector2 | undefined;
  639. render(): JSX.Element;
  640. }
  641. }
  642. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent" {
  643. import * as React from "react";
  644. import { Animation } from 'babylonjs/Animations/animation';
  645. import { Vector2 } from 'babylonjs/Maths/math.vector';
  646. import { EasingFunction } from 'babylonjs/Animations/easing';
  647. import { IAnimationKey } from 'babylonjs/Animations/animationKey';
  648. import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
  649. import { Scene } from "babylonjs/scene";
  650. import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
  651. interface IAnimationCurveEditorComponentProps {
  652. close: (event: any) => void;
  653. playOrPause: () => void;
  654. title: string;
  655. animations: Animation[];
  656. entityName: string;
  657. scene: Scene;
  658. entity: IAnimatable;
  659. }
  660. export class AnimationCurveEditorComponent extends React.Component<IAnimationCurveEditorComponentProps, {
  661. animations: Animation[];
  662. animationName: string;
  663. animationTargetProperty: string;
  664. isOpen: boolean;
  665. selected: Animation;
  666. currentPathData: string | undefined;
  667. svgKeyframes: IKeyframeSvgPoint[] | undefined;
  668. }> {
  669. readonly _heightScale: number;
  670. private _newAnimations;
  671. private _svgKeyframes;
  672. private _frames;
  673. private _isPlaying;
  674. constructor(props: IAnimationCurveEditorComponentProps);
  675. handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
  676. handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
  677. addAnimation(event: React.MouseEvent<HTMLDivElement>): void;
  678. addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
  679. updateKeyframe(keyframe: Vector2, index: number): void;
  680. getAnimationProperties(animation: Animation): {
  681. easingType: string | undefined;
  682. easingMode: number | undefined;
  683. };
  684. getPathData(animation: Animation): string;
  685. drawAllFrames(initialKey: IAnimationKey, endKey: IAnimationKey, easingFunction: EasingFunction): void;
  686. curvePath(keyframes: IAnimationKey[], data: string, middle: number, easingFunction: EasingFunction): string;
  687. renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, index: number): void;
  688. linearInterpolation(keyframes: IAnimationKey[], data: string, middle: number): string;
  689. setKeyframePointLinear(point: Vector2, index: number): void;
  690. setKeyframePoint(controlPoints: Vector2[], index: number, keyframesCount: number): void;
  691. isAnimationPlaying(): void;
  692. selectAnimation(animation: Animation): void;
  693. interpolateControlPoints(p0: Vector2, p1: Vector2, u: number, p2: Vector2, v: number, p3: Vector2): Vector2[] | undefined;
  694. render(): JSX.Element;
  695. }
  696. }
  697. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/popupComponent" {
  698. import * as React from "react";
  699. interface IPopupComponentProps {
  700. id: string;
  701. title: string;
  702. size: {
  703. width: number;
  704. height: number;
  705. };
  706. onOpen: (window: Window) => void;
  707. onClose: (window: Window) => void;
  708. }
  709. export class PopupComponent extends React.Component<IPopupComponentProps, {
  710. isComponentMounted: boolean;
  711. blockedByBrowser: boolean;
  712. }> {
  713. private _container;
  714. private _window;
  715. constructor(props: IPopupComponentProps);
  716. componentDidMount(): void;
  717. openPopup(): void;
  718. componentWillUnmount(): void;
  719. render(): React.ReactPortal | null;
  720. }
  721. }
  722. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent" {
  723. import * as React from "react";
  724. import { Observable } from "babylonjs/Misc/observable";
  725. import { Scene } from "babylonjs/scene";
  726. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  727. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  728. import { GlobalState } from "babylonjs-inspector/components/globalState";
  729. import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
  730. interface IAnimationGridComponentProps {
  731. globalState: GlobalState;
  732. animatable: IAnimatable;
  733. scene: Scene;
  734. lockObject: LockObject;
  735. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  736. }
  737. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  738. currentFrame: number;
  739. }> {
  740. private _animations;
  741. private _ranges;
  742. private _mainAnimatable;
  743. private _onBeforeRenderObserver;
  744. private _isPlaying;
  745. private timelineRef;
  746. private _isCurveEditorOpen;
  747. private _animationControl;
  748. constructor(props: IAnimationGridComponentProps);
  749. playOrPause(): void;
  750. componentDidMount(): void;
  751. componentWillUnmount(): void;
  752. onCurrentFrameChange(value: number): void;
  753. onChangeFromOrTo(): void;
  754. onOpenAnimationCurveEditor(): void;
  755. onCloseAnimationCurveEditor(window: Window | null): void;
  756. render(): JSX.Element;
  757. }
  758. }
  759. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent" {
  760. import * as React from "react";
  761. import { Observable } from "babylonjs/Misc/observable";
  762. import { Material } from "babylonjs/Materials/material";
  763. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  764. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  765. import { GlobalState } from "babylonjs-inspector/components/globalState";
  766. interface ICommonMaterialPropertyGridComponentProps {
  767. globalState: GlobalState;
  768. material: Material;
  769. lockObject: LockObject;
  770. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  771. }
  772. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  773. constructor(props: ICommonMaterialPropertyGridComponentProps);
  774. render(): JSX.Element;
  775. }
  776. }
  777. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent" {
  778. import * as React from "react";
  779. import { Observable } from "babylonjs/Misc/observable";
  780. import { Material } from "babylonjs/Materials/material";
  781. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  782. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  783. import { GlobalState } from "babylonjs-inspector/components/globalState";
  784. interface IMaterialPropertyGridComponentProps {
  785. globalState: GlobalState;
  786. material: Material;
  787. lockObject: LockObject;
  788. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  789. }
  790. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  791. constructor(props: IMaterialPropertyGridComponentProps);
  792. render(): JSX.Element;
  793. }
  794. }
  795. declare module "babylonjs-inspector/components/actionTabs/lines/fileButtonLineComponent" {
  796. import * as React from "react";
  797. interface IFileButtonLineComponentProps {
  798. label: string;
  799. onClick: (file: File) => void;
  800. accept: string;
  801. }
  802. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  803. private static _IDGenerator;
  804. private _id;
  805. private uploadInputRef;
  806. constructor(props: IFileButtonLineComponentProps);
  807. onChange(evt: any): void;
  808. render(): JSX.Element;
  809. }
  810. }
  811. declare module "babylonjs-inspector/components/actionTabs/lines/textureLinkLineComponent" {
  812. import * as React from "react";
  813. import { Nullable } from "babylonjs/types";
  814. import { Observable } from "babylonjs/Misc/observable";
  815. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  816. import { Material } from "babylonjs/Materials/material";
  817. export interface ITextureLinkLineComponentProps {
  818. label: string;
  819. texture: Nullable<BaseTexture>;
  820. material?: Material;
  821. onSelectionChangedObservable?: Observable<any>;
  822. onDebugSelectionChangeObservable?: Observable<TextureLinkLineComponent>;
  823. propertyName?: string;
  824. onTextureCreated?: (texture: BaseTexture) => void;
  825. customDebugAction?: (state: boolean) => void;
  826. onTextureRemoved?: () => void;
  827. }
  828. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  829. isDebugSelected: boolean;
  830. }> {
  831. private _onDebugSelectionChangeObserver;
  832. constructor(props: ITextureLinkLineComponentProps);
  833. componentDidMount(): void;
  834. componentWillUnmount(): void;
  835. debugTexture(): void;
  836. onLink(): void;
  837. updateTexture(file: File): void;
  838. removeTexture(): void;
  839. render(): JSX.Element | null;
  840. }
  841. }
  842. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent" {
  843. import * as React from "react";
  844. import { Observable } from "babylonjs/Misc/observable";
  845. import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
  846. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  847. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  848. import { GlobalState } from "babylonjs-inspector/components/globalState";
  849. interface IStandardMaterialPropertyGridComponentProps {
  850. globalState: GlobalState;
  851. material: StandardMaterial;
  852. lockObject: LockObject;
  853. onSelectionChangedObservable?: Observable<any>;
  854. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  855. }
  856. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  857. private _onDebugSelectionChangeObservable;
  858. constructor(props: IStandardMaterialPropertyGridComponentProps);
  859. renderTextures(): JSX.Element;
  860. render(): JSX.Element;
  861. }
  862. }
  863. declare module "babylonjs-inspector/components/actionTabs/lines/textureLineComponent" {
  864. import * as React from "react";
  865. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  866. import { GlobalState } from "babylonjs-inspector/components/globalState";
  867. interface ITextureLineComponentProps {
  868. texture: BaseTexture;
  869. width: number;
  870. height: number;
  871. globalState?: GlobalState;
  872. hideChannelSelect?: boolean;
  873. }
  874. enum ChannelToDisplay {
  875. R = 0,
  876. G = 1,
  877. B = 2,
  878. A = 3,
  879. All = 4
  880. }
  881. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  882. channel: ChannelToDisplay;
  883. face: number;
  884. }> {
  885. private canvasRef;
  886. constructor(props: ITextureLineComponentProps);
  887. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  888. channel: ChannelToDisplay;
  889. face: number;
  890. }): boolean;
  891. componentDidMount(): void;
  892. componentDidUpdate(): void;
  893. updatePreview(): void;
  894. render(): JSX.Element;
  895. }
  896. }
  897. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent" {
  898. import * as React from "react";
  899. import { Observable } from "babylonjs/Misc/observable";
  900. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  901. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  902. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  903. import { GlobalState } from "babylonjs-inspector/components/globalState";
  904. interface ITexturePropertyGridComponentProps {
  905. texture: BaseTexture;
  906. lockObject: LockObject;
  907. globalState: GlobalState;
  908. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  909. }
  910. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps> {
  911. private _adtInstrumentation;
  912. private textureLineRef;
  913. constructor(props: ITexturePropertyGridComponentProps);
  914. componentWillUnmount(): void;
  915. updateTexture(file: File): void;
  916. foreceRefresh(): void;
  917. render(): JSX.Element;
  918. }
  919. }
  920. declare module "babylonjs-inspector/components/actionTabs/lines/vector2LineComponent" {
  921. import * as React from "react";
  922. import { Vector2 } from "babylonjs/Maths/math.vector";
  923. import { Observable } from "babylonjs/Misc/observable";
  924. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  925. interface IVector2LineComponentProps {
  926. label: string;
  927. target: any;
  928. propertyName: string;
  929. step?: number;
  930. onChange?: (newvalue: Vector2) => void;
  931. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  932. }
  933. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  934. isExpanded: boolean;
  935. value: Vector2;
  936. }> {
  937. static defaultProps: {
  938. step: number;
  939. };
  940. private _localChange;
  941. constructor(props: IVector2LineComponentProps);
  942. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  943. isExpanded: boolean;
  944. value: Vector2;
  945. }): boolean;
  946. switchExpandState(): void;
  947. raiseOnPropertyChanged(previousValue: Vector2): void;
  948. updateStateX(value: number): void;
  949. updateStateY(value: number): void;
  950. render(): JSX.Element;
  951. }
  952. }
  953. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent" {
  954. import * as React from "react";
  955. import { Observable } from "babylonjs/Misc/observable";
  956. import { PBRMaterial } from "babylonjs/Materials/PBR/pbrMaterial";
  957. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  958. import { TextureLinkLineComponent } from "babylonjs-inspector/components/actionTabs/lines/textureLinkLineComponent";
  959. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  960. import { GlobalState } from "babylonjs-inspector/components/globalState";
  961. interface IPBRMaterialPropertyGridComponentProps {
  962. globalState: GlobalState;
  963. material: PBRMaterial;
  964. lockObject: LockObject;
  965. onSelectionChangedObservable?: Observable<any>;
  966. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  967. }
  968. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  969. private _onDebugSelectionChangeObservable;
  970. constructor(props: IPBRMaterialPropertyGridComponentProps);
  971. switchAmbientMode(state: boolean): void;
  972. switchMetallicMode(state: boolean): void;
  973. switchRoughnessMode(state: boolean): void;
  974. renderTextures(onDebugSelectionChangeObservable: Observable<TextureLinkLineComponent>): JSX.Element;
  975. render(): JSX.Element;
  976. }
  977. }
  978. declare module "babylonjs-inspector/components/actionTabs/lines/radioLineComponent" {
  979. import * as React from "react";
  980. import { Observable } from "babylonjs/Misc/observable";
  981. interface IRadioButtonLineComponentProps {
  982. onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
  983. label: string;
  984. isSelected: () => boolean;
  985. onSelect: () => void;
  986. }
  987. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  988. isSelected: boolean;
  989. }> {
  990. private _onSelectionChangedObserver;
  991. constructor(props: IRadioButtonLineComponentProps);
  992. componentDidMount(): void;
  993. componentWillUnmount(): void;
  994. onChange(): void;
  995. render(): JSX.Element;
  996. }
  997. }
  998. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent" {
  999. import * as React from "react";
  1000. import { Observable } from "babylonjs/Misc/observable";
  1001. import { Scene } from "babylonjs/scene";
  1002. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1003. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1004. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1005. interface IFogPropertyGridComponentProps {
  1006. globalState: GlobalState;
  1007. scene: Scene;
  1008. lockObject: LockObject;
  1009. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1010. }
  1011. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  1012. mode: number;
  1013. }> {
  1014. constructor(props: IFogPropertyGridComponentProps);
  1015. render(): JSX.Element;
  1016. }
  1017. }
  1018. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent" {
  1019. import * as React from "react";
  1020. import { Observable } from "babylonjs/Misc/observable";
  1021. import { Vector3 } from "babylonjs/Maths/math.vector";
  1022. import { Scene } from "babylonjs/scene";
  1023. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1024. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1025. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1026. interface IScenePropertyGridComponentProps {
  1027. globalState: GlobalState;
  1028. scene: Scene;
  1029. lockObject: LockObject;
  1030. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1031. onSelectionChangedObservable?: Observable<any>;
  1032. }
  1033. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  1034. private _storedEnvironmentTexture;
  1035. private _renderingModeGroupObservable;
  1036. constructor(props: IScenePropertyGridComponentProps);
  1037. setRenderingModes(point: boolean, wireframe: boolean): void;
  1038. switchIBL(): void;
  1039. updateEnvironmentTexture(file: File): void;
  1040. updateGravity(newValue: Vector3): void;
  1041. updateTimeStep(newValue: number): void;
  1042. normalizeScene(): void;
  1043. render(): JSX.Element;
  1044. }
  1045. }
  1046. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent" {
  1047. import * as React from "react";
  1048. import { Observable } from "babylonjs/Misc/observable";
  1049. import { Light } from "babylonjs/Lights/light";
  1050. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1051. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1052. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1053. interface ICommonLightPropertyGridComponentProps {
  1054. globalState: GlobalState;
  1055. light: Light;
  1056. lockObject: LockObject;
  1057. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1058. }
  1059. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  1060. constructor(props: ICommonLightPropertyGridComponentProps);
  1061. render(): JSX.Element;
  1062. }
  1063. }
  1064. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent" {
  1065. import * as React from "react";
  1066. import { Observable } from "babylonjs/Misc/observable";
  1067. import { HemisphericLight } from "babylonjs/Lights/hemisphericLight";
  1068. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1069. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1070. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1071. interface IHemisphericLightPropertyGridComponentProps {
  1072. globalState: GlobalState;
  1073. light: HemisphericLight;
  1074. lockObject: LockObject;
  1075. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1076. }
  1077. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  1078. constructor(props: IHemisphericLightPropertyGridComponentProps);
  1079. render(): JSX.Element;
  1080. }
  1081. }
  1082. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent" {
  1083. import * as React from "react";
  1084. import { Observable } from "babylonjs/Misc/observable";
  1085. import { IShadowLight } from "babylonjs/Lights/shadowLight";
  1086. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1087. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1088. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1089. interface ICommonShadowLightPropertyGridComponentProps {
  1090. globalState: GlobalState;
  1091. light: IShadowLight;
  1092. lockObject: LockObject;
  1093. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1094. }
  1095. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  1096. private _internals;
  1097. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  1098. createShadowGenerator(): void;
  1099. disposeShadowGenerator(): void;
  1100. render(): JSX.Element;
  1101. }
  1102. }
  1103. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent" {
  1104. import * as React from "react";
  1105. import { Observable } from "babylonjs/Misc/observable";
  1106. import { PointLight } from "babylonjs/Lights/pointLight";
  1107. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1108. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1109. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1110. interface IPointLightPropertyGridComponentProps {
  1111. globalState: GlobalState;
  1112. light: PointLight;
  1113. lockObject: LockObject;
  1114. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1115. }
  1116. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  1117. constructor(props: IPointLightPropertyGridComponentProps);
  1118. render(): JSX.Element;
  1119. }
  1120. }
  1121. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent" {
  1122. import * as React from "react";
  1123. import { Camera } from "babylonjs/Cameras/camera";
  1124. import { Observable } from "babylonjs/Misc/observable";
  1125. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1126. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1127. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1128. interface ICommonCameraPropertyGridComponentProps {
  1129. globalState: GlobalState;
  1130. camera: Camera;
  1131. lockObject: LockObject;
  1132. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1133. }
  1134. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  1135. mode: number;
  1136. }> {
  1137. constructor(props: ICommonCameraPropertyGridComponentProps);
  1138. render(): JSX.Element;
  1139. }
  1140. }
  1141. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent" {
  1142. import * as React from "react";
  1143. import { FreeCamera } from "babylonjs/Cameras/freeCamera";
  1144. import { Observable } from "babylonjs/Misc/observable";
  1145. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1146. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1147. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1148. interface IFreeCameraPropertyGridComponentProps {
  1149. globalState: GlobalState;
  1150. camera: FreeCamera;
  1151. lockObject: LockObject;
  1152. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1153. }
  1154. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  1155. constructor(props: IFreeCameraPropertyGridComponentProps);
  1156. render(): JSX.Element;
  1157. }
  1158. }
  1159. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent" {
  1160. import * as React from "react";
  1161. import { ArcRotateCamera } from "babylonjs/Cameras/arcRotateCamera";
  1162. import { Observable } from "babylonjs/Misc/observable";
  1163. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1164. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1165. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1166. interface IArcRotateCameraPropertyGridComponentProps {
  1167. globalState: GlobalState;
  1168. camera: ArcRotateCamera;
  1169. lockObject: LockObject;
  1170. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1171. }
  1172. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  1173. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  1174. render(): JSX.Element;
  1175. }
  1176. }
  1177. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent" {
  1178. import * as React from "react";
  1179. import { Observable } from "babylonjs/Misc/observable";
  1180. import { Mesh } from "babylonjs/Meshes/mesh";
  1181. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1182. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1183. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1184. interface IMeshPropertyGridComponentProps {
  1185. globalState: GlobalState;
  1186. mesh: Mesh;
  1187. lockObject: LockObject;
  1188. onSelectionChangedObservable?: Observable<any>;
  1189. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1190. }
  1191. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  1192. displayNormals: boolean;
  1193. displayVertexColors: boolean;
  1194. }> {
  1195. constructor(props: IMeshPropertyGridComponentProps);
  1196. renderWireframeOver(): void;
  1197. renderNormalVectors(): void;
  1198. displayNormals(): void;
  1199. displayVertexColors(): void;
  1200. onMaterialLink(): void;
  1201. onSourceMeshLink(): void;
  1202. onSkeletonLink(): void;
  1203. convertPhysicsTypeToString(): string;
  1204. render(): JSX.Element;
  1205. }
  1206. }
  1207. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent" {
  1208. import * as React from "react";
  1209. import { TransformNode } from "babylonjs/Meshes/transformNode";
  1210. import { Observable } from "babylonjs/Misc/observable";
  1211. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1212. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1213. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1214. interface ITransformNodePropertyGridComponentProps {
  1215. globalState: GlobalState;
  1216. transformNode: TransformNode;
  1217. lockObject: LockObject;
  1218. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1219. }
  1220. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  1221. constructor(props: ITransformNodePropertyGridComponentProps);
  1222. render(): JSX.Element;
  1223. }
  1224. }
  1225. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent" {
  1226. import * as React from "react";
  1227. import { Observable } from "babylonjs/Misc/observable";
  1228. import { BackgroundMaterial } from "babylonjs/Materials/Background/backgroundMaterial";
  1229. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1230. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1231. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1232. interface IBackgroundMaterialPropertyGridComponentProps {
  1233. globalState: GlobalState;
  1234. material: BackgroundMaterial;
  1235. lockObject: LockObject;
  1236. onSelectionChangedObservable?: Observable<any>;
  1237. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1238. }
  1239. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  1240. private _onDebugSelectionChangeObservable;
  1241. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  1242. renderTextures(): JSX.Element;
  1243. render(): JSX.Element;
  1244. }
  1245. }
  1246. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent" {
  1247. import * as React from "react";
  1248. import { Observable } from "babylonjs/Misc/observable";
  1249. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1250. import { Control } from "babylonjs-gui/2D/controls/control";
  1251. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1252. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1253. interface ICommonControlPropertyGridComponentProps {
  1254. globalState: GlobalState;
  1255. control: Control;
  1256. lockObject: LockObject;
  1257. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1258. }
  1259. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  1260. constructor(props: ICommonControlPropertyGridComponentProps);
  1261. renderGridInformation(): JSX.Element | null;
  1262. render(): JSX.Element;
  1263. }
  1264. }
  1265. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent" {
  1266. import * as React from "react";
  1267. import { Observable } from "babylonjs/Misc/observable";
  1268. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1269. import { Control } from "babylonjs-gui/2D/controls/control";
  1270. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1271. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1272. interface IControlPropertyGridComponentProps {
  1273. globalState: GlobalState;
  1274. control: Control;
  1275. lockObject: LockObject;
  1276. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1277. }
  1278. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  1279. constructor(props: IControlPropertyGridComponentProps);
  1280. render(): JSX.Element;
  1281. }
  1282. }
  1283. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent" {
  1284. import * as React from "react";
  1285. import { Observable } from "babylonjs/Misc/observable";
  1286. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1287. import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
  1288. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1289. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1290. interface ITextBlockPropertyGridComponentProps {
  1291. globalState: GlobalState;
  1292. textBlock: TextBlock;
  1293. lockObject: LockObject;
  1294. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1295. }
  1296. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  1297. constructor(props: ITextBlockPropertyGridComponentProps);
  1298. render(): JSX.Element;
  1299. }
  1300. }
  1301. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent" {
  1302. import * as React from "react";
  1303. import { Observable } from "babylonjs/Misc/observable";
  1304. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1305. import { InputText } from "babylonjs-gui/2D/controls/inputText";
  1306. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1307. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1308. interface IInputTextPropertyGridComponentProps {
  1309. globalState: GlobalState;
  1310. inputText: InputText;
  1311. lockObject: LockObject;
  1312. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1313. }
  1314. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  1315. constructor(props: IInputTextPropertyGridComponentProps);
  1316. render(): JSX.Element;
  1317. }
  1318. }
  1319. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent" {
  1320. import * as React from "react";
  1321. import { Observable } from "babylonjs/Misc/observable";
  1322. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1323. import { ColorPicker } from "babylonjs-gui/2D/controls/colorpicker";
  1324. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1325. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1326. interface IColorPickerPropertyGridComponentProps {
  1327. globalState: GlobalState;
  1328. colorPicker: ColorPicker;
  1329. lockObject: LockObject;
  1330. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1331. }
  1332. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  1333. constructor(props: IColorPickerPropertyGridComponentProps);
  1334. render(): JSX.Element;
  1335. }
  1336. }
  1337. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationGroupPropertyGridComponent" {
  1338. import * as React from "react";
  1339. import { Observable } from "babylonjs/Misc/observable";
  1340. import { AnimationGroup } from "babylonjs/Animations/animationGroup";
  1341. import { Scene } from "babylonjs/scene";
  1342. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1343. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1344. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1345. interface IAnimationGroupGridComponentProps {
  1346. globalState: GlobalState;
  1347. animationGroup: AnimationGroup;
  1348. scene: Scene;
  1349. lockObject: LockObject;
  1350. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1351. }
  1352. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  1353. playButtonText: string;
  1354. currentFrame: number;
  1355. }> {
  1356. private _onAnimationGroupPlayObserver;
  1357. private _onAnimationGroupPauseObserver;
  1358. private _onBeforeRenderObserver;
  1359. private timelineRef;
  1360. constructor(props: IAnimationGroupGridComponentProps);
  1361. disconnect(animationGroup: AnimationGroup): void;
  1362. connect(animationGroup: AnimationGroup): void;
  1363. updateCurrentFrame(animationGroup: AnimationGroup): void;
  1364. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  1365. componentWillUnmount(): void;
  1366. playOrPause(): void;
  1367. onCurrentFrameChange(value: number): void;
  1368. render(): JSX.Element;
  1369. }
  1370. }
  1371. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent" {
  1372. import * as React from "react";
  1373. import { Observable } from "babylonjs/Misc/observable";
  1374. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1375. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1376. import { Image } from "babylonjs-gui/2D/controls/image";
  1377. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1378. interface IImagePropertyGridComponentProps {
  1379. globalState: GlobalState;
  1380. image: Image;
  1381. lockObject: LockObject;
  1382. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1383. }
  1384. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  1385. constructor(props: IImagePropertyGridComponentProps);
  1386. render(): JSX.Element;
  1387. }
  1388. }
  1389. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent" {
  1390. import * as React from "react";
  1391. import { Observable } from "babylonjs/Misc/observable";
  1392. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1393. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1394. import { Slider } from "babylonjs-gui/2D/controls/sliders/slider";
  1395. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1396. interface ISliderPropertyGridComponentProps {
  1397. globalState: GlobalState;
  1398. slider: Slider;
  1399. lockObject: LockObject;
  1400. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1401. }
  1402. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  1403. constructor(props: ISliderPropertyGridComponentProps);
  1404. render(): JSX.Element;
  1405. }
  1406. }
  1407. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent" {
  1408. import * as React from "react";
  1409. import { Observable } from "babylonjs/Misc/observable";
  1410. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1411. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1412. import { ImageBasedSlider } from "babylonjs-gui/2D/controls/sliders/imageBasedSlider";
  1413. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1414. interface IImageBasedSliderPropertyGridComponentProps {
  1415. globalState: GlobalState;
  1416. imageBasedSlider: ImageBasedSlider;
  1417. lockObject: LockObject;
  1418. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1419. }
  1420. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  1421. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  1422. render(): JSX.Element;
  1423. }
  1424. }
  1425. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent" {
  1426. import * as React from "react";
  1427. import { Observable } from "babylonjs/Misc/observable";
  1428. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1429. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1430. import { Rectangle } from "babylonjs-gui/2D/controls/rectangle";
  1431. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1432. interface IRectanglePropertyGridComponentProps {
  1433. globalState: GlobalState;
  1434. rectangle: Rectangle;
  1435. lockObject: LockObject;
  1436. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1437. }
  1438. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  1439. constructor(props: IRectanglePropertyGridComponentProps);
  1440. render(): JSX.Element;
  1441. }
  1442. }
  1443. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent" {
  1444. import * as React from "react";
  1445. import { Observable } from "babylonjs/Misc/observable";
  1446. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1447. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1448. import { Ellipse } from "babylonjs-gui/2D/controls/ellipse";
  1449. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1450. interface IEllipsePropertyGridComponentProps {
  1451. globalState: GlobalState;
  1452. ellipse: Ellipse;
  1453. lockObject: LockObject;
  1454. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1455. }
  1456. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  1457. constructor(props: IEllipsePropertyGridComponentProps);
  1458. render(): JSX.Element;
  1459. }
  1460. }
  1461. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent" {
  1462. import * as React from "react";
  1463. import { Observable } from "babylonjs/Misc/observable";
  1464. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1465. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1466. import { Checkbox } from "babylonjs-gui/2D/controls/checkbox";
  1467. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1468. interface ICheckboxPropertyGridComponentProps {
  1469. globalState: GlobalState;
  1470. checkbox: Checkbox;
  1471. lockObject: LockObject;
  1472. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1473. }
  1474. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  1475. constructor(props: ICheckboxPropertyGridComponentProps);
  1476. render(): JSX.Element;
  1477. }
  1478. }
  1479. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent" {
  1480. import * as React from "react";
  1481. import { Observable } from "babylonjs/Misc/observable";
  1482. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1483. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1484. import { RadioButton } from "babylonjs-gui/2D/controls/radioButton";
  1485. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1486. interface IRadioButtonPropertyGridComponentProps {
  1487. globalState: GlobalState;
  1488. radioButton: RadioButton;
  1489. lockObject: LockObject;
  1490. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1491. }
  1492. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  1493. constructor(props: IRadioButtonPropertyGridComponentProps);
  1494. render(): JSX.Element;
  1495. }
  1496. }
  1497. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent" {
  1498. import * as React from "react";
  1499. import { Observable } from "babylonjs/Misc/observable";
  1500. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1501. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1502. import { Line } from "babylonjs-gui/2D/controls/line";
  1503. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1504. interface ILinePropertyGridComponentProps {
  1505. globalState: GlobalState;
  1506. line: Line;
  1507. lockObject: LockObject;
  1508. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1509. }
  1510. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  1511. constructor(props: ILinePropertyGridComponentProps);
  1512. onDashChange(value: string): void;
  1513. render(): JSX.Element;
  1514. }
  1515. }
  1516. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent" {
  1517. import * as React from "react";
  1518. import { Observable } from "babylonjs/Misc/observable";
  1519. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1520. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1521. import { ScrollViewer } from "babylonjs-gui/2D/controls/scrollViewers/scrollViewer";
  1522. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1523. interface IScrollViewerPropertyGridComponentProps {
  1524. globalState: GlobalState;
  1525. scrollViewer: ScrollViewer;
  1526. lockObject: LockObject;
  1527. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1528. }
  1529. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  1530. constructor(props: IScrollViewerPropertyGridComponentProps);
  1531. render(): JSX.Element;
  1532. }
  1533. }
  1534. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent" {
  1535. import * as React from "react";
  1536. import { Observable } from "babylonjs/Misc/observable";
  1537. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1538. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1539. import { Grid } from "babylonjs-gui/2D/controls/grid";
  1540. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1541. interface IGridPropertyGridComponentProps {
  1542. globalState: GlobalState;
  1543. grid: Grid;
  1544. lockObject: LockObject;
  1545. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1546. }
  1547. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  1548. constructor(props: IGridPropertyGridComponentProps);
  1549. renderRows(): JSX.Element[];
  1550. renderColumns(): JSX.Element[];
  1551. render(): JSX.Element;
  1552. }
  1553. }
  1554. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent" {
  1555. import * as React from "react";
  1556. import { Observable } from "babylonjs/Misc/observable";
  1557. import { PBRMetallicRoughnessMaterial } from "babylonjs/Materials/PBR/pbrMetallicRoughnessMaterial";
  1558. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1559. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1560. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1561. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  1562. globalState: GlobalState;
  1563. material: PBRMetallicRoughnessMaterial;
  1564. lockObject: LockObject;
  1565. onSelectionChangedObservable?: Observable<any>;
  1566. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1567. }
  1568. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  1569. private _onDebugSelectionChangeObservable;
  1570. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  1571. renderTextures(): JSX.Element;
  1572. render(): JSX.Element;
  1573. }
  1574. }
  1575. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent" {
  1576. import * as React from "react";
  1577. import { Observable } from "babylonjs/Misc/observable";
  1578. import { PBRSpecularGlossinessMaterial } from "babylonjs/Materials/PBR/pbrSpecularGlossinessMaterial";
  1579. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1580. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1581. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1582. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  1583. globalState: GlobalState;
  1584. material: PBRSpecularGlossinessMaterial;
  1585. lockObject: LockObject;
  1586. onSelectionChangedObservable?: Observable<any>;
  1587. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1588. }
  1589. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  1590. private _onDebugSelectionChangeObservable;
  1591. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  1592. renderTextures(): JSX.Element;
  1593. render(): JSX.Element;
  1594. }
  1595. }
  1596. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent" {
  1597. import * as React from "react";
  1598. import { Observable } from "babylonjs/Misc/observable";
  1599. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1600. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1601. import { StackPanel } from "babylonjs-gui/2D/controls/stackPanel";
  1602. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1603. interface IStackPanelPropertyGridComponentProps {
  1604. globalState: GlobalState;
  1605. stackPanel: StackPanel;
  1606. lockObject: LockObject;
  1607. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1608. }
  1609. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  1610. constructor(props: IStackPanelPropertyGridComponentProps);
  1611. render(): JSX.Element;
  1612. }
  1613. }
  1614. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent" {
  1615. import * as React from "react";
  1616. import { Observable } from "babylonjs/Misc/observable";
  1617. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1618. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1619. import { PostProcess } from 'babylonjs/PostProcesses/postProcess';
  1620. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1621. interface ICommonPostProcessPropertyGridComponentProps {
  1622. globalState: GlobalState;
  1623. postProcess: PostProcess;
  1624. lockObject: LockObject;
  1625. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1626. }
  1627. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  1628. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  1629. render(): JSX.Element;
  1630. }
  1631. }
  1632. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent" {
  1633. import * as React from "react";
  1634. import { Observable } from "babylonjs/Misc/observable";
  1635. import { PostProcess } from "babylonjs/PostProcesses/postProcess";
  1636. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1637. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1638. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1639. interface IPostProcessPropertyGridComponentProps {
  1640. globalState: GlobalState;
  1641. postProcess: PostProcess;
  1642. lockObject: LockObject;
  1643. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1644. }
  1645. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  1646. constructor(props: IPostProcessPropertyGridComponentProps);
  1647. render(): JSX.Element;
  1648. }
  1649. }
  1650. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent" {
  1651. import * as React from "react";
  1652. import { Observable } from "babylonjs/Misc/observable";
  1653. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1654. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1655. import { PostProcessRenderPipeline } from 'babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline';
  1656. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1657. interface ICommonRenderingPipelinePropertyGridComponentProps {
  1658. globalState: GlobalState;
  1659. renderPipeline: PostProcessRenderPipeline;
  1660. lockObject: LockObject;
  1661. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1662. }
  1663. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  1664. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  1665. render(): JSX.Element;
  1666. }
  1667. }
  1668. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent" {
  1669. import * as React from "react";
  1670. import { Observable } from "babylonjs/Misc/observable";
  1671. import { PostProcessRenderPipeline } from "babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline";
  1672. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1673. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1674. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1675. interface IRenderingPipelinePropertyGridComponentProps {
  1676. globalState: GlobalState;
  1677. renderPipeline: PostProcessRenderPipeline;
  1678. lockObject: LockObject;
  1679. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1680. }
  1681. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  1682. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  1683. render(): JSX.Element;
  1684. }
  1685. }
  1686. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent" {
  1687. import * as React from "react";
  1688. import { Observable } from "babylonjs/Misc/observable";
  1689. import { DefaultRenderingPipeline } from "babylonjs/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline";
  1690. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1691. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1692. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1693. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  1694. globalState: GlobalState;
  1695. renderPipeline: DefaultRenderingPipeline;
  1696. lockObject: LockObject;
  1697. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1698. }
  1699. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  1700. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  1701. render(): JSX.Element;
  1702. }
  1703. }
  1704. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent" {
  1705. import * as React from "react";
  1706. import { Observable } from "babylonjs/Misc/observable";
  1707. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1708. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1709. import { SSAORenderingPipeline } from 'babylonjs/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline';
  1710. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1711. interface ISSAORenderingPipelinePropertyGridComponentProps {
  1712. globalState: GlobalState;
  1713. renderPipeline: SSAORenderingPipeline;
  1714. lockObject: LockObject;
  1715. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1716. }
  1717. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  1718. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  1719. render(): JSX.Element;
  1720. }
  1721. }
  1722. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent" {
  1723. import * as React from "react";
  1724. import { Observable } from "babylonjs/Misc/observable";
  1725. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1726. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1727. import { SSAO2RenderingPipeline } from 'babylonjs/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline';
  1728. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1729. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  1730. globalState: GlobalState;
  1731. renderPipeline: SSAO2RenderingPipeline;
  1732. lockObject: LockObject;
  1733. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1734. }
  1735. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  1736. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  1737. render(): JSX.Element;
  1738. }
  1739. }
  1740. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent" {
  1741. import * as React from "react";
  1742. import { Observable } from "babylonjs/Misc/observable";
  1743. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1744. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1745. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1746. import { Skeleton } from 'babylonjs/Bones/skeleton';
  1747. interface ISkeletonPropertyGridComponentProps {
  1748. globalState: GlobalState;
  1749. skeleton: Skeleton;
  1750. lockObject: LockObject;
  1751. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1752. }
  1753. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  1754. private _skeletonViewersEnabled;
  1755. private _skeletonViewers;
  1756. constructor(props: ISkeletonPropertyGridComponentProps);
  1757. switchSkeletonViewers(): void;
  1758. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  1759. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  1760. onOverrideMeshLink(): void;
  1761. render(): JSX.Element;
  1762. }
  1763. }
  1764. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent" {
  1765. import * as React from "react";
  1766. import { Observable } from "babylonjs/Misc/observable";
  1767. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1768. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1769. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1770. import { Bone } from 'babylonjs/Bones/bone';
  1771. interface IBonePropertyGridComponentProps {
  1772. globalState: GlobalState;
  1773. bone: Bone;
  1774. lockObject: LockObject;
  1775. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1776. }
  1777. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  1778. constructor(props: IBonePropertyGridComponentProps);
  1779. onTransformNodeLink(): void;
  1780. render(): JSX.Element;
  1781. }
  1782. }
  1783. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent" {
  1784. import * as React from "react";
  1785. import { Observable } from "babylonjs/Misc/observable";
  1786. import { DirectionalLight } from "babylonjs/Lights/directionalLight";
  1787. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1788. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1789. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1790. interface IDirectionalLightPropertyGridComponentProps {
  1791. globalState: GlobalState;
  1792. light: DirectionalLight;
  1793. lockObject: LockObject;
  1794. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1795. }
  1796. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  1797. constructor(props: IDirectionalLightPropertyGridComponentProps);
  1798. render(): JSX.Element;
  1799. }
  1800. }
  1801. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent" {
  1802. import * as React from "react";
  1803. import { Observable } from "babylonjs/Misc/observable";
  1804. import { SpotLight } from "babylonjs/Lights/spotLight";
  1805. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1806. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1807. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1808. interface ISpotLightPropertyGridComponentProps {
  1809. globalState: GlobalState;
  1810. light: SpotLight;
  1811. lockObject: LockObject;
  1812. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1813. }
  1814. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  1815. constructor(props: ISpotLightPropertyGridComponentProps);
  1816. render(): JSX.Element;
  1817. }
  1818. }
  1819. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent" {
  1820. import * as React from "react";
  1821. import { Observable } from "babylonjs/Misc/observable";
  1822. import { LensRenderingPipeline } from "babylonjs/PostProcesses/RenderPipeline/Pipelines/lensRenderingPipeline";
  1823. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1824. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1825. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1826. interface ILenstRenderingPipelinePropertyGridComponentProps {
  1827. globalState: GlobalState;
  1828. renderPipeline: LensRenderingPipeline;
  1829. lockObject: LockObject;
  1830. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1831. }
  1832. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  1833. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  1834. render(): JSX.Element;
  1835. }
  1836. }
  1837. declare module "babylonjs-inspector/components/actionTabs/lines/vector4LineComponent" {
  1838. import * as React from "react";
  1839. import { Vector4 } from "babylonjs/Maths/math.vector";
  1840. import { Observable } from "babylonjs/Misc/observable";
  1841. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1842. interface IVector4LineComponentProps {
  1843. label: string;
  1844. target: any;
  1845. propertyName: string;
  1846. step?: number;
  1847. onChange?: (newvalue: Vector4) => void;
  1848. useEuler?: boolean;
  1849. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1850. }
  1851. export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
  1852. isExpanded: boolean;
  1853. value: Vector4;
  1854. }> {
  1855. static defaultProps: {
  1856. step: number;
  1857. };
  1858. private _localChange;
  1859. constructor(props: IVector4LineComponentProps);
  1860. getCurrentValue(): any;
  1861. shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
  1862. isExpanded: boolean;
  1863. value: Vector4;
  1864. }): boolean;
  1865. switchExpandState(): void;
  1866. raiseOnPropertyChanged(previousValue: Vector4): void;
  1867. updateVector4(): void;
  1868. updateStateX(value: number): void;
  1869. updateStateY(value: number): void;
  1870. updateStateZ(value: number): void;
  1871. updateStateW(value: number): void;
  1872. render(): JSX.Element;
  1873. }
  1874. }
  1875. declare module "babylonjs-inspector/components/actionTabs/lines/color4LineComponent" {
  1876. import * as React from "react";
  1877. import { Observable } from "babylonjs/Misc/observable";
  1878. import { Color4 } from "babylonjs/Maths/math.color";
  1879. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1880. export interface IColor4LineComponentProps {
  1881. label: string;
  1882. target: any;
  1883. propertyName: string;
  1884. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1885. onChange?: () => void;
  1886. isLinear?: boolean;
  1887. }
  1888. export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
  1889. isExpanded: boolean;
  1890. color: Color4;
  1891. }> {
  1892. private _localChange;
  1893. constructor(props: IColor4LineComponentProps);
  1894. shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
  1895. color: Color4;
  1896. }): boolean;
  1897. setPropertyValue(newColor: Color4): void;
  1898. onChange(newValue: string): void;
  1899. switchExpandState(): void;
  1900. raiseOnPropertyChanged(previousValue: Color4): void;
  1901. updateStateR(value: number): void;
  1902. updateStateG(value: number): void;
  1903. updateStateB(value: number): void;
  1904. updateStateA(value: number): void;
  1905. copyToClipboard(): void;
  1906. render(): JSX.Element;
  1907. }
  1908. }
  1909. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent" {
  1910. import * as React from "react";
  1911. import { Observable } from "babylonjs/Misc/observable";
  1912. import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial";
  1913. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1914. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1915. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1916. import { InputBlock } from 'babylonjs/Materials/Node/Blocks/Input/inputBlock';
  1917. interface INodeMaterialPropertyGridComponentProps {
  1918. globalState: GlobalState;
  1919. material: NodeMaterial;
  1920. lockObject: LockObject;
  1921. onSelectionChangedObservable?: Observable<any>;
  1922. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1923. }
  1924. export class NodeMaterialPropertyGridComponent extends React.Component<INodeMaterialPropertyGridComponentProps> {
  1925. private _onDebugSelectionChangeObservable;
  1926. constructor(props: INodeMaterialPropertyGridComponentProps);
  1927. edit(): void;
  1928. renderTextures(): JSX.Element | null;
  1929. renderInputBlock(block: InputBlock): JSX.Element | null;
  1930. renderInputValues(): JSX.Element | null;
  1931. render(): JSX.Element;
  1932. }
  1933. }
  1934. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent" {
  1935. import * as React from "react";
  1936. import { Observable } from "babylonjs/Misc/observable";
  1937. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1938. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1939. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1940. import { Material } from 'babylonjs/Materials/material';
  1941. import { MultiMaterial } from 'babylonjs/Materials/multiMaterial';
  1942. interface IMultiMaterialPropertyGridComponentProps {
  1943. globalState: GlobalState;
  1944. material: MultiMaterial;
  1945. lockObject: LockObject;
  1946. onSelectionChangedObservable?: Observable<any>;
  1947. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1948. }
  1949. export class MultiMaterialPropertyGridComponent extends React.Component<IMultiMaterialPropertyGridComponentProps> {
  1950. constructor(props: IMultiMaterialPropertyGridComponentProps);
  1951. onMaterialLink(mat: Material): void;
  1952. renderChildMaterial(): JSX.Element;
  1953. render(): JSX.Element;
  1954. }
  1955. }
  1956. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent" {
  1957. import * as React from "react";
  1958. import { Observable } from "babylonjs/Misc/observable";
  1959. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1960. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1961. import { BoxParticleEmitter } from 'babylonjs/Particles/EmitterTypes/boxParticleEmitter';
  1962. interface IBoxEmitterGridComponentProps {
  1963. globalState: GlobalState;
  1964. emitter: BoxParticleEmitter;
  1965. replaySourceReplacement?: string;
  1966. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1967. }
  1968. export class BoxEmitterGridComponent extends React.Component<IBoxEmitterGridComponentProps> {
  1969. constructor(props: IBoxEmitterGridComponentProps);
  1970. render(): JSX.Element;
  1971. }
  1972. }
  1973. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent" {
  1974. import * as React from "react";
  1975. import { Observable } from "babylonjs/Misc/observable";
  1976. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1977. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1978. import { ConeParticleEmitter } from 'babylonjs/Particles/EmitterTypes/coneParticleEmitter';
  1979. interface IConeEmitterGridComponentProps {
  1980. globalState: GlobalState;
  1981. emitter: ConeParticleEmitter;
  1982. onSelectionChangedObservable?: Observable<any>;
  1983. replaySourceReplacement?: string;
  1984. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1985. }
  1986. export class ConeEmitterGridComponent extends React.Component<IConeEmitterGridComponentProps> {
  1987. constructor(props: IConeEmitterGridComponentProps);
  1988. render(): JSX.Element;
  1989. }
  1990. }
  1991. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent" {
  1992. import * as React from "react";
  1993. import { Observable } from "babylonjs/Misc/observable";
  1994. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1995. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1996. import { CylinderParticleEmitter } from 'babylonjs/Particles/EmitterTypes/cylinderParticleEmitter';
  1997. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1998. interface ICylinderEmitterGridComponentProps {
  1999. globalState: GlobalState;
  2000. emitter: CylinderParticleEmitter;
  2001. lockObject: LockObject;
  2002. replaySourceReplacement?: string;
  2003. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2004. }
  2005. export class CylinderEmitterGridComponent extends React.Component<ICylinderEmitterGridComponentProps> {
  2006. constructor(props: ICylinderEmitterGridComponentProps);
  2007. render(): JSX.Element;
  2008. }
  2009. }
  2010. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent" {
  2011. import * as React from "react";
  2012. import { Observable } from "babylonjs/Misc/observable";
  2013. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2014. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2015. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2016. import { HemisphericParticleEmitter } from 'babylonjs/Particles/EmitterTypes/hemisphericParticleEmitter';
  2017. interface IHemisphericEmitterGridComponentProps {
  2018. globalState: GlobalState;
  2019. emitter: HemisphericParticleEmitter;
  2020. lockObject: LockObject;
  2021. replaySourceReplacement?: string;
  2022. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2023. }
  2024. export class HemisphericEmitterGridComponent extends React.Component<IHemisphericEmitterGridComponentProps> {
  2025. constructor(props: IHemisphericEmitterGridComponentProps);
  2026. render(): JSX.Element;
  2027. }
  2028. }
  2029. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent" {
  2030. import * as React from "react";
  2031. import { Observable } from "babylonjs/Misc/observable";
  2032. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2033. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2034. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2035. import { PointParticleEmitter } from 'babylonjs/Particles/EmitterTypes/pointParticleEmitter';
  2036. interface IPointEmitterGridComponentProps {
  2037. globalState: GlobalState;
  2038. emitter: PointParticleEmitter;
  2039. lockObject: LockObject;
  2040. replaySourceReplacement?: string;
  2041. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2042. }
  2043. export class PointEmitterGridComponent extends React.Component<IPointEmitterGridComponentProps> {
  2044. constructor(props: IPointEmitterGridComponentProps);
  2045. render(): JSX.Element;
  2046. }
  2047. }
  2048. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent" {
  2049. import * as React from "react";
  2050. import { Observable } from "babylonjs/Misc/observable";
  2051. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2052. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2053. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2054. import { SphereParticleEmitter } from 'babylonjs/Particles/EmitterTypes/sphereParticleEmitter';
  2055. interface ISphereEmitterGridComponentProps {
  2056. globalState: GlobalState;
  2057. emitter: SphereParticleEmitter;
  2058. lockObject: LockObject;
  2059. replaySourceReplacement?: string;
  2060. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2061. }
  2062. export class SphereEmitterGridComponent extends React.Component<ISphereEmitterGridComponentProps> {
  2063. constructor(props: ISphereEmitterGridComponentProps);
  2064. render(): JSX.Element;
  2065. }
  2066. }
  2067. declare module "babylonjs-inspector/components/actionTabs/lines/meshPickerComponent" {
  2068. import * as React from "react";
  2069. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2070. import { Observable } from 'babylonjs/Misc/observable';
  2071. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2072. import { Scene } from 'babylonjs/scene';
  2073. interface IMeshPickerComponentProps {
  2074. globalState: GlobalState;
  2075. target: any;
  2076. property: string;
  2077. scene: Scene;
  2078. label: string;
  2079. replaySourceReplacement?: string;
  2080. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2081. }
  2082. export class MeshPickerComponent extends React.Component<IMeshPickerComponentProps> {
  2083. constructor(props: IMeshPickerComponentProps);
  2084. render(): JSX.Element;
  2085. }
  2086. }
  2087. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent" {
  2088. import * as React from "react";
  2089. import { Observable } from "babylonjs/Misc/observable";
  2090. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2091. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2092. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2093. import { MeshParticleEmitter } from 'babylonjs/Particles/EmitterTypes/meshParticleEmitter';
  2094. import { Scene } from 'babylonjs/scene';
  2095. interface IMeshEmitterGridComponentProps {
  2096. globalState: GlobalState;
  2097. emitter: MeshParticleEmitter;
  2098. scene: Scene;
  2099. lockObject: LockObject;
  2100. onSelectionChangedObservable?: Observable<any>;
  2101. replaySourceReplacement?: string;
  2102. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2103. }
  2104. export class MeshEmitterGridComponent extends React.Component<IMeshEmitterGridComponentProps> {
  2105. constructor(props: IMeshEmitterGridComponentProps);
  2106. render(): JSX.Element;
  2107. }
  2108. }
  2109. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/factorGradientStepGridComponent" {
  2110. import * as React from 'react';
  2111. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2112. import { FactorGradient } from 'babylonjs/Misc/gradients';
  2113. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2114. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  2115. interface IFactorGradientStepGridComponent {
  2116. globalState: GlobalState;
  2117. gradient: FactorGradient;
  2118. lockObject: LockObject;
  2119. lineIndex: number;
  2120. onDelete: () => void;
  2121. onUpdateGradient: () => void;
  2122. onCheckForReOrder: () => void;
  2123. host: IParticleSystem;
  2124. codeRecorderPropertyName: string;
  2125. }
  2126. export class FactorGradientStepGridComponent extends React.Component<IFactorGradientStepGridComponent, {
  2127. gradient: number;
  2128. factor1: string;
  2129. factor2?: string;
  2130. }> {
  2131. constructor(props: IFactorGradientStepGridComponent);
  2132. shouldComponentUpdate(nextProps: IFactorGradientStepGridComponent, nextState: {
  2133. gradient: number;
  2134. factor1: string;
  2135. factor2?: string;
  2136. }): boolean;
  2137. updateFactor1(valueString: string): void;
  2138. updateFactor2(valueString: string): void;
  2139. updateGradient(gradient: number): void;
  2140. onPointerUp(): void;
  2141. lock(): void;
  2142. unlock(): void;
  2143. render(): JSX.Element;
  2144. }
  2145. }
  2146. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/colorGradientStepGridComponent" {
  2147. import * as React from 'react';
  2148. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2149. import { ColorGradient, Color3Gradient } from 'babylonjs/Misc/gradients';
  2150. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2151. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  2152. interface IColorGradientStepGridComponent {
  2153. globalState: GlobalState;
  2154. gradient: ColorGradient | Color3Gradient;
  2155. lockObject: LockObject;
  2156. lineIndex: number;
  2157. isColor3: boolean;
  2158. onDelete: () => void;
  2159. onUpdateGradient: () => void;
  2160. onCheckForReOrder: () => void;
  2161. host: IParticleSystem;
  2162. codeRecorderPropertyName: string;
  2163. }
  2164. export class ColorGradientStepGridComponent extends React.Component<IColorGradientStepGridComponent, {
  2165. gradient: number;
  2166. }> {
  2167. constructor(props: IColorGradientStepGridComponent);
  2168. updateColor1(color: string): void;
  2169. updateColor2(color: string): void;
  2170. updateGradient(gradient: number): void;
  2171. onPointerUp(): void;
  2172. lock(): void;
  2173. unlock(): void;
  2174. render(): JSX.Element;
  2175. }
  2176. }
  2177. declare module "babylonjs-inspector/components/actionTabs/lines/linkButtonComponent" {
  2178. import * as React from "react";
  2179. interface ILinkButtonComponentProps {
  2180. label: string;
  2181. buttonLabel: string;
  2182. url?: string;
  2183. onClick: () => void;
  2184. onIconClick?: () => void;
  2185. }
  2186. export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
  2187. constructor(props: ILinkButtonComponentProps);
  2188. onLink(): void;
  2189. render(): JSX.Element;
  2190. }
  2191. }
  2192. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent" {
  2193. import * as React from "react";
  2194. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2195. import { IValueGradient } from 'babylonjs/Misc/gradients';
  2196. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2197. import { Nullable } from 'babylonjs/types';
  2198. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  2199. export enum GradientGridMode {
  2200. Factor = 0,
  2201. Color3 = 1,
  2202. Color4 = 2
  2203. }
  2204. interface IValueGradientGridComponent {
  2205. globalState: GlobalState;
  2206. label: string;
  2207. gradients: Nullable<Array<IValueGradient>>;
  2208. lockObject: LockObject;
  2209. docLink?: string;
  2210. mode: GradientGridMode;
  2211. host: IParticleSystem;
  2212. codeRecorderPropertyName: string;
  2213. onCreateRequired: () => void;
  2214. }
  2215. export class ValueGradientGridComponent extends React.Component<IValueGradientGridComponent> {
  2216. constructor(props: IValueGradientGridComponent);
  2217. deleteStep(step: IValueGradient): void;
  2218. addNewStep(): void;
  2219. checkForReOrder(): void;
  2220. updateAndSync(): void;
  2221. render(): JSX.Element;
  2222. }
  2223. }
  2224. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent" {
  2225. import * as React from "react";
  2226. import { Observable } from "babylonjs/Misc/observable";
  2227. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2228. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2229. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2230. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  2231. interface IParticleSystemPropertyGridComponentProps {
  2232. globalState: GlobalState;
  2233. system: IParticleSystem;
  2234. lockObject: LockObject;
  2235. onSelectionChangedObservable?: Observable<any>;
  2236. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2237. }
  2238. export class ParticleSystemPropertyGridComponent extends React.Component<IParticleSystemPropertyGridComponentProps> {
  2239. private _snippetUrl;
  2240. constructor(props: IParticleSystemPropertyGridComponentProps);
  2241. renderEmitter(): JSX.Element | null;
  2242. raiseOnPropertyChanged(property: string, newValue: any, previousValue: any): void;
  2243. renderControls(): JSX.Element;
  2244. saveToFile(): void;
  2245. loadFromFile(file: File): void;
  2246. loadFromSnippet(): void;
  2247. saveToSnippet(): void;
  2248. render(): JSX.Element;
  2249. }
  2250. }
  2251. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/sprites/spriteManagerPropertyGridComponent" {
  2252. import * as React from "react";
  2253. import { Observable } from "babylonjs/Misc/observable";
  2254. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2255. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2256. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2257. import { SpriteManager } from 'babylonjs/Sprites/spriteManager';
  2258. interface ISpriteManagerPropertyGridComponentProps {
  2259. globalState: GlobalState;
  2260. spriteManager: SpriteManager;
  2261. lockObject: LockObject;
  2262. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2263. }
  2264. export class SpriteManagerPropertyGridComponent extends React.Component<ISpriteManagerPropertyGridComponentProps> {
  2265. constructor(props: ISpriteManagerPropertyGridComponentProps);
  2266. render(): JSX.Element;
  2267. }
  2268. }
  2269. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/sprites/spritePropertyGridComponent" {
  2270. import * as React from "react";
  2271. import { Observable } from "babylonjs/Misc/observable";
  2272. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2273. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2274. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2275. import { Sprite } from 'babylonjs/Sprites/sprite';
  2276. interface ISpritePropertyGridComponentProps {
  2277. globalState: GlobalState;
  2278. sprite: Sprite;
  2279. lockObject: LockObject;
  2280. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2281. }
  2282. export class SpritePropertyGridComponent extends React.Component<ISpritePropertyGridComponentProps> {
  2283. constructor(props: ISpritePropertyGridComponentProps);
  2284. render(): JSX.Element;
  2285. }
  2286. }
  2287. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGridTabComponent" {
  2288. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  2289. export class PropertyGridTabComponent extends PaneComponent {
  2290. private _timerIntervalId;
  2291. private _lockObject;
  2292. constructor(props: IPaneComponentProps);
  2293. timerRefresh(): void;
  2294. componentDidMount(): void;
  2295. componentWillUnmount(): void;
  2296. render(): JSX.Element | null;
  2297. }
  2298. }
  2299. declare module "babylonjs-inspector/components/headerComponent" {
  2300. import * as React from "react";
  2301. import { Observable } from "babylonjs/Misc/observable";
  2302. export interface IHeaderComponentProps {
  2303. title: string;
  2304. handleBack?: boolean;
  2305. noExpand?: boolean;
  2306. noClose?: boolean;
  2307. noCommands?: boolean;
  2308. onPopup: () => void;
  2309. onClose: () => void;
  2310. onSelectionChangedObservable?: Observable<any>;
  2311. }
  2312. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  2313. isBackVisible: boolean;
  2314. }> {
  2315. private _backStack;
  2316. private _onSelectionChangeObserver;
  2317. constructor(props: IHeaderComponentProps);
  2318. componentDidMount(): void;
  2319. componentWillUnmount(): void;
  2320. goBack(): void;
  2321. renderLogo(): JSX.Element | null;
  2322. render(): JSX.Element;
  2323. }
  2324. }
  2325. declare module "babylonjs-inspector/components/actionTabs/lines/messageLineComponent" {
  2326. import * as React from "react";
  2327. interface IMessageLineComponentProps {
  2328. text: string;
  2329. color?: string;
  2330. }
  2331. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  2332. constructor(props: IMessageLineComponentProps);
  2333. render(): JSX.Element;
  2334. }
  2335. }
  2336. declare module "babylonjs-inspector/components/actionTabs/tabs/tools/gltfComponent" {
  2337. import * as React from "react";
  2338. import { Scene } from "babylonjs/scene";
  2339. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2340. interface IGLTFComponentProps {
  2341. scene: Scene;
  2342. globalState: GlobalState;
  2343. }
  2344. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  2345. private _onValidationResultsUpdatedObserver;
  2346. constructor(props: IGLTFComponentProps);
  2347. openValidationDetails(): void;
  2348. prepareText(singularForm: string, count: number): string;
  2349. componentDidMount(): void;
  2350. componentWillUnmount(): void;
  2351. renderValidation(): JSX.Element | null;
  2352. render(): JSX.Element;
  2353. }
  2354. }
  2355. declare module "babylonjs-inspector/components/actionTabs/lines/fileMultipleButtonLineComponent" {
  2356. import * as React from "react";
  2357. interface IFileMultipleButtonLineComponentProps {
  2358. label: string;
  2359. onClick: (event: any) => void;
  2360. accept: string;
  2361. }
  2362. export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
  2363. private static _IDGenerator;
  2364. private _id;
  2365. private uploadInputRef;
  2366. constructor(props: IFileMultipleButtonLineComponentProps);
  2367. onChange(evt: any): void;
  2368. render(): JSX.Element;
  2369. }
  2370. }
  2371. declare module "babylonjs-inspector/components/actionTabs/tabs/toolsTabComponent" {
  2372. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  2373. import { Node } from "babylonjs/node";
  2374. export class ToolsTabComponent extends PaneComponent {
  2375. private _videoRecorder;
  2376. private _screenShotSize;
  2377. private _gifOptions;
  2378. private _useWidthHeight;
  2379. private _isExporting;
  2380. private _gifWorkerBlob;
  2381. private _gifRecorder;
  2382. private _previousRenderingScale;
  2383. private _crunchingGIF;
  2384. constructor(props: IPaneComponentProps);
  2385. componentDidMount(): void;
  2386. componentWillUnmount(): void;
  2387. captureScreenshot(): void;
  2388. captureRender(): void;
  2389. recordVideo(): void;
  2390. recordGIFInternal(): void;
  2391. recordGIF(): void;
  2392. importAnimations(event: any): void;
  2393. shouldExport(node: Node): boolean;
  2394. exportGLTF(): void;
  2395. exportBabylon(): void;
  2396. createEnvTexture(): void;
  2397. resetReplay(): void;
  2398. exportReplay(): void;
  2399. render(): JSX.Element | null;
  2400. }
  2401. }
  2402. declare module "babylonjs-inspector/components/actionTabs/tabs/settingsTabComponent" {
  2403. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  2404. export class SettingsTabComponent extends PaneComponent {
  2405. constructor(props: IPaneComponentProps);
  2406. render(): JSX.Element;
  2407. }
  2408. }
  2409. declare module "babylonjs-inspector/components/actionTabs/actionTabsComponent" {
  2410. import * as React from "react";
  2411. import { Scene } from "babylonjs/scene";
  2412. import { DebugLayerTab } from "babylonjs/Debug/debugLayer";
  2413. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2414. interface IActionTabsComponentProps {
  2415. scene?: Scene;
  2416. noCommands?: boolean;
  2417. noHeader?: boolean;
  2418. noExpand?: boolean;
  2419. noClose?: boolean;
  2420. popupMode?: boolean;
  2421. onPopup?: () => void;
  2422. onClose?: () => void;
  2423. globalState?: GlobalState;
  2424. initialTab?: DebugLayerTab;
  2425. }
  2426. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  2427. selectedEntity: any;
  2428. selectedIndex: number;
  2429. }> {
  2430. private _onSelectionChangeObserver;
  2431. private _onTabChangedObserver;
  2432. private _once;
  2433. constructor(props: IActionTabsComponentProps);
  2434. componentDidMount(): void;
  2435. componentWillUnmount(): void;
  2436. changeSelectedTab(index: number): void;
  2437. renderContent(): JSX.Element | null;
  2438. onClose(): void;
  2439. onPopup(): void;
  2440. render(): JSX.Element;
  2441. }
  2442. }
  2443. declare module "babylonjs-inspector/components/sceneExplorer/treeItemLabelComponent" {
  2444. import * as React from "react";
  2445. interface ITreeItemLabelComponentProps {
  2446. label: string;
  2447. onClick?: () => void;
  2448. color: string;
  2449. }
  2450. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  2451. constructor(props: ITreeItemLabelComponentProps);
  2452. onClick(): void;
  2453. render(): JSX.Element;
  2454. }
  2455. }
  2456. declare module "babylonjs-inspector/components/sceneExplorer/extensionsComponent" {
  2457. import * as React from "react";
  2458. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2459. interface IExtensionsComponentProps {
  2460. target: any;
  2461. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2462. }
  2463. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  2464. popupVisible: boolean;
  2465. }> {
  2466. private _popup;
  2467. private extensionRef;
  2468. constructor(props: IExtensionsComponentProps);
  2469. showPopup(): void;
  2470. componentDidMount(): void;
  2471. componentDidUpdate(): void;
  2472. render(): JSX.Element | null;
  2473. }
  2474. }
  2475. declare module "babylonjs-inspector/components/sceneExplorer/entities/meshTreeItemComponent" {
  2476. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2477. import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
  2478. import * as React from "react";
  2479. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2480. interface IMeshTreeItemComponentProps {
  2481. mesh: AbstractMesh;
  2482. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2483. onClick: () => void;
  2484. globalState: GlobalState;
  2485. }
  2486. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  2487. isBoundingBoxEnabled: boolean;
  2488. isVisible: boolean;
  2489. }> {
  2490. constructor(props: IMeshTreeItemComponentProps);
  2491. showBoundingBox(): void;
  2492. switchVisibility(): void;
  2493. render(): JSX.Element;
  2494. }
  2495. }
  2496. declare module "babylonjs-inspector/components/sceneExplorer/entities/cameraTreeItemComponent" {
  2497. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2498. import { Camera } from "babylonjs/Cameras/camera";
  2499. import * as React from "react";
  2500. interface ICameraTreeItemComponentProps {
  2501. camera: Camera;
  2502. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2503. onClick: () => void;
  2504. }
  2505. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  2506. isActive: boolean;
  2507. }> {
  2508. private _onBeforeRenderObserver;
  2509. constructor(props: ICameraTreeItemComponentProps);
  2510. setActive(): void;
  2511. componentDidMount(): void;
  2512. componentWillUnmount(): void;
  2513. render(): JSX.Element;
  2514. }
  2515. }
  2516. declare module "babylonjs-inspector/components/sceneExplorer/entities/lightTreeItemComponent" {
  2517. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2518. import { Light } from "babylonjs/Lights/light";
  2519. import * as React from "react";
  2520. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2521. interface ILightTreeItemComponentProps {
  2522. light: Light;
  2523. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2524. onClick: () => void;
  2525. globalState: GlobalState;
  2526. }
  2527. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  2528. isEnabled: boolean;
  2529. isGizmoEnabled: boolean;
  2530. }> {
  2531. constructor(props: ILightTreeItemComponentProps);
  2532. switchIsEnabled(): void;
  2533. toggleGizmo(): void;
  2534. render(): JSX.Element;
  2535. }
  2536. }
  2537. declare module "babylonjs-inspector/components/sceneExplorer/entities/materialTreeItemComponent" {
  2538. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2539. import { Material } from "babylonjs/Materials/material";
  2540. import * as React from 'react';
  2541. interface IMaterialTreeItemComponentProps {
  2542. material: Material;
  2543. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2544. onClick: () => void;
  2545. }
  2546. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  2547. constructor(props: IMaterialTreeItemComponentProps);
  2548. render(): JSX.Element;
  2549. }
  2550. }
  2551. declare module "babylonjs-inspector/components/sceneExplorer/entities/textureTreeItemComponent" {
  2552. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2553. import { Texture } from "babylonjs/Materials/Textures/texture";
  2554. import * as React from 'react';
  2555. interface ITextureTreeItemComponentProps {
  2556. texture: Texture;
  2557. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2558. onClick: () => void;
  2559. }
  2560. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  2561. constructor(props: ITextureTreeItemComponentProps);
  2562. render(): JSX.Element;
  2563. }
  2564. }
  2565. declare module "babylonjs-inspector/components/sceneExplorer/entities/transformNodeTreeItemComponent" {
  2566. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2567. import { TransformNode } from "babylonjs/Meshes/transformNode";
  2568. import * as React from "react";
  2569. interface ITransformNodeItemComponentProps {
  2570. transformNode: TransformNode;
  2571. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2572. onClick: () => void;
  2573. }
  2574. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  2575. constructor(props: ITransformNodeItemComponentProps);
  2576. render(): JSX.Element;
  2577. }
  2578. }
  2579. declare module "babylonjs-inspector/components/sceneExplorer/entities/gui/controlTreeItemComponent" {
  2580. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2581. import { Control } from "babylonjs-gui/2D/controls/control";
  2582. import * as React from 'react';
  2583. interface IControlTreeItemComponentProps {
  2584. control: Control;
  2585. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2586. onClick: () => void;
  2587. }
  2588. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  2589. isActive: boolean;
  2590. isVisible: boolean;
  2591. }> {
  2592. constructor(props: IControlTreeItemComponentProps);
  2593. highlight(): void;
  2594. switchVisibility(): void;
  2595. render(): JSX.Element;
  2596. }
  2597. }
  2598. declare module "babylonjs-inspector/components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent" {
  2599. import { Observable } from "babylonjs/Misc/observable";
  2600. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2601. import { AdvancedDynamicTexture } from 'babylonjs-gui/2D/advancedDynamicTexture';
  2602. import * as React from 'react';
  2603. interface IAdvancedDynamicTextureTreeItemComponentProps {
  2604. texture: AdvancedDynamicTexture;
  2605. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2606. onSelectionChangedObservable?: Observable<any>;
  2607. onClick: () => void;
  2608. }
  2609. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  2610. isInPickingMode: boolean;
  2611. }> {
  2612. private _onControlPickedObserver;
  2613. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  2614. componentWillUnmount(): void;
  2615. onPickingMode(): void;
  2616. render(): JSX.Element;
  2617. }
  2618. }
  2619. declare module "babylonjs-inspector/components/sceneExplorer/entities/animationGroupTreeItemComponent" {
  2620. import { AnimationGroup } from "babylonjs/Animations/animationGroup";
  2621. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2622. import * as React from "react";
  2623. interface IAnimationGroupItemComponentProps {
  2624. animationGroup: AnimationGroup;
  2625. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2626. onClick: () => void;
  2627. }
  2628. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  2629. constructor(props: IAnimationGroupItemComponentProps);
  2630. render(): JSX.Element;
  2631. }
  2632. }
  2633. declare module "babylonjs-inspector/components/sceneExplorer/entities/postProcessTreeItemComponent" {
  2634. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2635. import { PostProcess } from 'babylonjs/PostProcesses/postProcess';
  2636. import * as React from 'react';
  2637. interface IPostProcessItemComponentProps {
  2638. postProcess: PostProcess;
  2639. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2640. onClick: () => void;
  2641. }
  2642. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  2643. constructor(props: IPostProcessItemComponentProps);
  2644. render(): JSX.Element;
  2645. }
  2646. }
  2647. declare module "babylonjs-inspector/components/sceneExplorer/entities/renderingPipelineTreeItemComponent" {
  2648. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2649. import { PostProcessRenderPipeline } from 'babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline';
  2650. import * as React from 'react';
  2651. interface IRenderPipelineItemComponenttProps {
  2652. renderPipeline: PostProcessRenderPipeline;
  2653. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2654. onClick: () => void;
  2655. }
  2656. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  2657. constructor(props: IRenderPipelineItemComponenttProps);
  2658. render(): JSX.Element;
  2659. }
  2660. }
  2661. declare module "babylonjs-inspector/components/sceneExplorer/entities/skeletonTreeItemComponent" {
  2662. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2663. import * as React from "react";
  2664. import { Skeleton } from 'babylonjs/Bones/skeleton';
  2665. interface ISkeletonTreeItemComponentProps {
  2666. skeleton: Skeleton;
  2667. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2668. onClick: () => void;
  2669. }
  2670. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  2671. constructor(props: ISkeletonTreeItemComponentProps);
  2672. render(): JSX.Element;
  2673. }
  2674. }
  2675. declare module "babylonjs-inspector/components/sceneExplorer/entities/boneTreeItemComponent" {
  2676. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2677. import * as React from "react";
  2678. import { Bone } from 'babylonjs/Bones/bone';
  2679. interface IBoneTreeItemComponenttProps {
  2680. bone: Bone;
  2681. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2682. onClick: () => void;
  2683. }
  2684. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  2685. constructor(props: IBoneTreeItemComponenttProps);
  2686. render(): JSX.Element;
  2687. }
  2688. }
  2689. declare module "babylonjs-inspector/components/sceneExplorer/entities/particleSystemTreeItemComponent" {
  2690. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2691. import * as React from 'react';
  2692. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  2693. interface IParticleSystemTreeItemComponentProps {
  2694. system: IParticleSystem;
  2695. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2696. onClick: () => void;
  2697. }
  2698. export class ParticleSystemTreeItemComponent extends React.Component<IParticleSystemTreeItemComponentProps> {
  2699. constructor(props: IParticleSystemTreeItemComponentProps);
  2700. render(): JSX.Element;
  2701. }
  2702. }
  2703. declare module "babylonjs-inspector/components/sceneExplorer/entities/spriteManagerTreeItemComponent" {
  2704. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2705. import * as React from 'react';
  2706. import { SpriteManager } from 'babylonjs/Sprites/spriteManager';
  2707. interface ISpriteManagerTreeItemComponentProps {
  2708. spriteManager: SpriteManager;
  2709. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2710. onClick: () => void;
  2711. }
  2712. export class SpriteManagerTreeItemComponent extends React.Component<ISpriteManagerTreeItemComponentProps> {
  2713. constructor(props: ISpriteManagerTreeItemComponentProps);
  2714. render(): JSX.Element;
  2715. }
  2716. }
  2717. declare module "babylonjs-inspector/components/sceneExplorer/entities/spriteTreeItemComponent" {
  2718. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2719. import * as React from 'react';
  2720. import { Sprite } from 'babylonjs/Sprites/sprite';
  2721. interface ISpriteTreeItemComponentProps {
  2722. sprite: Sprite;
  2723. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2724. onClick: () => void;
  2725. }
  2726. export class SpriteTreeItemComponent extends React.Component<ISpriteTreeItemComponentProps> {
  2727. constructor(props: ISpriteTreeItemComponentProps);
  2728. render(): JSX.Element;
  2729. }
  2730. }
  2731. declare module "babylonjs-inspector/components/sceneExplorer/treeItemSpecializedComponent" {
  2732. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2733. import * as React from "react";
  2734. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2735. interface ITreeItemSpecializedComponentProps {
  2736. label: string;
  2737. entity?: any;
  2738. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2739. globalState: GlobalState;
  2740. onClick?: () => void;
  2741. }
  2742. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  2743. constructor(props: ITreeItemSpecializedComponentProps);
  2744. onClick(): void;
  2745. render(): JSX.Element;
  2746. }
  2747. }
  2748. declare module "babylonjs-inspector/tools" {
  2749. export class Tools {
  2750. static LookForItem(item: any, selectedEntity: any): boolean;
  2751. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  2752. static SortAndFilter(parent: any, items: any[]): any[];
  2753. }
  2754. }
  2755. declare module "babylonjs-inspector/components/sceneExplorer/treeItemSelectableComponent" {
  2756. import { Nullable } from "babylonjs/types";
  2757. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2758. import * as React from "react";
  2759. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2760. export interface ITreeItemSelectableComponentProps {
  2761. entity: any;
  2762. selectedEntity?: any;
  2763. mustExpand?: boolean;
  2764. offset: number;
  2765. globalState: GlobalState;
  2766. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2767. filter: Nullable<string>;
  2768. }
  2769. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  2770. isExpanded: boolean;
  2771. isSelected: boolean;
  2772. }> {
  2773. private _wasSelected;
  2774. constructor(props: ITreeItemSelectableComponentProps);
  2775. switchExpandedState(): void;
  2776. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  2777. isExpanded: boolean;
  2778. isSelected: boolean;
  2779. }): boolean;
  2780. scrollIntoView(): void;
  2781. componentDidMount(): void;
  2782. componentDidUpdate(): void;
  2783. onSelect(): void;
  2784. renderChildren(): JSX.Element[] | null;
  2785. render(): JSX.Element | null;
  2786. }
  2787. }
  2788. declare module "babylonjs-inspector/components/sceneExplorer/treeItemComponent" {
  2789. import * as React from "react";
  2790. import { Nullable } from "babylonjs/types";
  2791. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2792. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2793. export interface ITreeItemComponentProps {
  2794. items?: Nullable<any[]>;
  2795. label: string;
  2796. offset: number;
  2797. filter: Nullable<string>;
  2798. globalState: GlobalState;
  2799. entity?: any;
  2800. selectedEntity: any;
  2801. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2802. contextMenuItems?: {
  2803. label: string;
  2804. action: () => void;
  2805. }[];
  2806. }
  2807. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  2808. isExpanded: boolean;
  2809. mustExpand: boolean;
  2810. }> {
  2811. static _ContextMenuUniqueIdGenerator: number;
  2812. constructor(props: ITreeItemComponentProps);
  2813. switchExpandedState(): void;
  2814. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  2815. isExpanded: boolean;
  2816. }): boolean;
  2817. expandAll(expand: boolean): void;
  2818. renderContextMenu(): JSX.Element | null;
  2819. render(): JSX.Element;
  2820. }
  2821. }
  2822. declare module "babylonjs-inspector/components/sceneExplorer/entities/sceneTreeItemComponent" {
  2823. import { Observable } from "babylonjs/Misc/observable";
  2824. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2825. import { Scene } from "babylonjs/scene";
  2826. import * as React from "react";
  2827. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2828. interface ISceneTreeItemComponentProps {
  2829. scene: Scene;
  2830. onRefresh: () => void;
  2831. selectedEntity?: any;
  2832. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2833. onSelectionChangedObservable?: Observable<any>;
  2834. globalState: GlobalState;
  2835. }
  2836. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  2837. isSelected: boolean;
  2838. isInPickingMode: boolean;
  2839. gizmoMode: number;
  2840. }> {
  2841. private _gizmoLayerOnPointerObserver;
  2842. private _onPointerObserver;
  2843. private _onSelectionChangeObserver;
  2844. private _selectedEntity;
  2845. private _posDragEnd;
  2846. private _scaleDragEnd;
  2847. private _rotateDragEnd;
  2848. constructor(props: ISceneTreeItemComponentProps);
  2849. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  2850. isSelected: boolean;
  2851. isInPickingMode: boolean;
  2852. }): boolean;
  2853. componentDidMount(): void;
  2854. componentWillUnmount(): void;
  2855. onSelect(): void;
  2856. onPickingMode(): void;
  2857. setGizmoMode(mode: number): void;
  2858. render(): JSX.Element;
  2859. }
  2860. }
  2861. declare module "babylonjs-inspector/components/sceneExplorer/sceneExplorerComponent" {
  2862. import * as React from "react";
  2863. import { Nullable } from "babylonjs/types";
  2864. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  2865. import { Scene } from "babylonjs/scene";
  2866. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2867. interface ISceneExplorerFilterComponentProps {
  2868. onFilter: (filter: string) => void;
  2869. }
  2870. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  2871. constructor(props: ISceneExplorerFilterComponentProps);
  2872. render(): JSX.Element;
  2873. }
  2874. interface ISceneExplorerComponentProps {
  2875. scene: Scene;
  2876. noCommands?: boolean;
  2877. noHeader?: boolean;
  2878. noExpand?: boolean;
  2879. noClose?: boolean;
  2880. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2881. globalState: GlobalState;
  2882. popupMode?: boolean;
  2883. onPopup?: () => void;
  2884. onClose?: () => void;
  2885. }
  2886. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  2887. filter: Nullable<string>;
  2888. selectedEntity: any;
  2889. scene: Scene;
  2890. }> {
  2891. private _onSelectionChangeObserver;
  2892. private _onSelectionRenamedObserver;
  2893. private _onNewSceneAddedObserver;
  2894. private _onNewSceneObserver;
  2895. private sceneExplorerRef;
  2896. private _once;
  2897. private _hooked;
  2898. private sceneMutationFunc;
  2899. constructor(props: ISceneExplorerComponentProps);
  2900. processMutation(): void;
  2901. componentDidMount(): void;
  2902. componentWillUnmount(): void;
  2903. filterContent(filter: string): void;
  2904. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  2905. previousOne?: any;
  2906. found?: boolean;
  2907. }): boolean;
  2908. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  2909. renderContent(): JSX.Element | null;
  2910. onClose(): void;
  2911. onPopup(): void;
  2912. render(): JSX.Element;
  2913. }
  2914. }
  2915. declare module "babylonjs-inspector/components/embedHost/embedHostComponent" {
  2916. import * as React from "react";
  2917. import { Scene } from "babylonjs/scene";
  2918. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2919. import { IExplorerExtensibilityGroup, DebugLayerTab } from 'babylonjs/Debug/debugLayer';
  2920. interface IEmbedHostComponentProps {
  2921. scene: Scene;
  2922. globalState: GlobalState;
  2923. popupMode: boolean;
  2924. noClose?: boolean;
  2925. noExpand?: boolean;
  2926. onClose: () => void;
  2927. onPopup: () => void;
  2928. extensibilityGroups?: IExplorerExtensibilityGroup[];
  2929. initialTab?: DebugLayerTab;
  2930. }
  2931. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  2932. private _once;
  2933. private splitRef;
  2934. private topPartRef;
  2935. private bottomPartRef;
  2936. constructor(props: IEmbedHostComponentProps);
  2937. componentDidMount(): void;
  2938. renderContent(): JSX.Element;
  2939. render(): JSX.Element;
  2940. }
  2941. }
  2942. declare module "babylonjs-inspector/inspector" {
  2943. import { IInspectorOptions } from "babylonjs/Debug/debugLayer";
  2944. import { Observable } from "babylonjs/Misc/observable";
  2945. import { Scene } from "babylonjs/scene";
  2946. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2947. export class Inspector {
  2948. private static _SceneExplorerHost;
  2949. private static _ActionTabsHost;
  2950. private static _EmbedHost;
  2951. private static _NewCanvasContainer;
  2952. private static _SceneExplorerWindow;
  2953. private static _ActionTabsWindow;
  2954. private static _EmbedHostWindow;
  2955. private static _Scene;
  2956. private static _OpenedPane;
  2957. private static _OnBeforeRenderObserver;
  2958. static OnSelectionChangeObservable: Observable<any>;
  2959. static OnPropertyChangedObservable: Observable<PropertyChangedEvent>;
  2960. private static _GlobalState;
  2961. static MarkLineContainerTitleForHighlighting(title: string): void;
  2962. private static _CopyStyles;
  2963. private static _CreateSceneExplorer;
  2964. private static _CreateActionTabs;
  2965. private static _CreateEmbedHost;
  2966. static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
  2967. static get IsVisible(): boolean;
  2968. static EarlyAttachToLoader(): void;
  2969. static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
  2970. static _SetNewScene(scene: Scene): void;
  2971. static _CreateCanvasContainer(parentControl: HTMLElement): void;
  2972. private static _DestroyCanvasContainer;
  2973. private static _Cleanup;
  2974. private static _RemoveElementFromDOM;
  2975. static Hide(): void;
  2976. }
  2977. }
  2978. declare module "babylonjs-inspector/index" {
  2979. export * from "babylonjs-inspector/inspector";
  2980. }
  2981. declare module "babylonjs-inspector/legacy/legacy" {
  2982. export * from "babylonjs-inspector/index";
  2983. }
  2984. declare module "babylonjs-inspector" {
  2985. export * from "babylonjs-inspector/legacy/legacy";
  2986. }
  2987. /// <reference types="react" />
  2988. declare module INSPECTOR {
  2989. export class PropertyChangedEvent {
  2990. object: any;
  2991. property: string;
  2992. value: any;
  2993. initialValue: any;
  2994. allowNullValue?: boolean;
  2995. }
  2996. }
  2997. declare module INSPECTOR {
  2998. export class CodeChangedEvent {
  2999. object: any;
  3000. code: string;
  3001. }
  3002. }
  3003. declare module INSPECTOR {
  3004. export class ReplayRecorder {
  3005. private _recordedCodeLines;
  3006. private _previousObject;
  3007. private _previousProperty;
  3008. reset(): void;
  3009. private _getIndirectData;
  3010. recordCode(event: CodeChangedEvent): void;
  3011. record(event: PropertyChangedEvent): void;
  3012. export(): void;
  3013. }
  3014. }
  3015. declare module INSPECTOR {
  3016. export class GlobalState {
  3017. onSelectionChangedObservable: BABYLON.Observable<any>;
  3018. onPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  3019. onCodeChangedObservable: BABYLON.Observable<CodeChangedEvent>;
  3020. onInspectorClosedObservable: BABYLON.Observable<BABYLON.Scene>;
  3021. onTabChangedObservable: BABYLON.Observable<number>;
  3022. onSelectionRenamedObservable: BABYLON.Observable<void>;
  3023. onPluginActivatedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.ISceneLoaderPlugin | BABYLON.ISceneLoaderPluginAsync>>;
  3024. onNewSceneObservable: BABYLON.Observable<BABYLON.Scene>;
  3025. sceneImportDefaults: {
  3026. [key: string]: any;
  3027. };
  3028. validationResults: BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>;
  3029. onValidationResultsUpdatedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>>;
  3030. onExtensionLoadedObservable: BABYLON.Observable<BABYLON.IGLTFLoaderExtension>;
  3031. glTFLoaderExtensionDefaults: {
  3032. [name: string]: {
  3033. [key: string]: any;
  3034. };
  3035. };
  3036. glTFLoaderDefaults: {
  3037. [key: string]: any;
  3038. };
  3039. blockMutationUpdates: boolean;
  3040. selectedLineContainerTitle: string;
  3041. recorder: ReplayRecorder;
  3042. private _onlyUseEulers;
  3043. get onlyUseEulers(): boolean;
  3044. set onlyUseEulers(value: boolean);
  3045. private _ignoreBackfacesForPicking;
  3046. get ignoreBackfacesForPicking(): boolean;
  3047. set ignoreBackfacesForPicking(value: boolean);
  3048. init(propertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>): void;
  3049. prepareGLTFPlugin(loader: BABYLON.GLTFFileLoader): void;
  3050. lightGizmos: Array<BABYLON.LightGizmo>;
  3051. enableLightGizmo(light: BABYLON.Light, enable?: boolean): void;
  3052. }
  3053. }
  3054. declare module INSPECTOR {
  3055. export interface IPaneComponentProps {
  3056. title: string;
  3057. scene: BABYLON.Scene;
  3058. selectedEntity?: any;
  3059. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3060. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3061. globalState: GlobalState;
  3062. }
  3063. export class PaneComponent extends React.Component<IPaneComponentProps, {
  3064. tag: any;
  3065. }> {
  3066. constructor(props: IPaneComponentProps);
  3067. render(): JSX.Element | null;
  3068. }
  3069. }
  3070. declare module INSPECTOR {
  3071. interface ITabsComponentProps {
  3072. children: any[];
  3073. selectedIndex: number;
  3074. onSelectedIndexChange: (value: number) => void;
  3075. }
  3076. export class TabsComponent extends React.Component<ITabsComponentProps> {
  3077. constructor(props: ITabsComponentProps);
  3078. onSelect(index: number): void;
  3079. renderLabel(child: PaneComponent, index: number): JSX.Element;
  3080. render(): JSX.Element;
  3081. }
  3082. }
  3083. declare module INSPECTOR {
  3084. interface ITextLineComponentProps {
  3085. label: string;
  3086. value?: string;
  3087. color?: string;
  3088. underline?: boolean;
  3089. onLink?: () => void;
  3090. url?: string;
  3091. ignoreValue?: boolean;
  3092. additionalClass?: string;
  3093. }
  3094. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  3095. constructor(props: ITextLineComponentProps);
  3096. onLink(): void;
  3097. renderContent(): JSX.Element | null;
  3098. render(): JSX.Element;
  3099. }
  3100. }
  3101. declare module INSPECTOR {
  3102. interface ILineContainerComponentProps {
  3103. globalState?: GlobalState;
  3104. title: string;
  3105. children: any[] | any;
  3106. closed?: boolean;
  3107. }
  3108. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  3109. isExpanded: boolean;
  3110. isHighlighted: boolean;
  3111. }> {
  3112. constructor(props: ILineContainerComponentProps);
  3113. switchExpandedState(): void;
  3114. componentDidMount(): void;
  3115. renderHeader(): JSX.Element;
  3116. render(): JSX.Element;
  3117. }
  3118. }
  3119. declare module INSPECTOR {
  3120. interface IValueLineComponentProps {
  3121. label: string;
  3122. value: number;
  3123. color?: string;
  3124. fractionDigits?: number;
  3125. units?: string;
  3126. }
  3127. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  3128. constructor(props: IValueLineComponentProps);
  3129. render(): JSX.Element;
  3130. }
  3131. }
  3132. declare module INSPECTOR {
  3133. export interface IBooleanLineComponentProps {
  3134. label: string;
  3135. value: boolean;
  3136. }
  3137. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  3138. constructor(props: IBooleanLineComponentProps);
  3139. render(): JSX.Element;
  3140. }
  3141. }
  3142. declare module INSPECTOR {
  3143. export class StatisticsTabComponent extends PaneComponent {
  3144. private _sceneInstrumentation;
  3145. private _engineInstrumentation;
  3146. private _timerIntervalId;
  3147. constructor(props: IPaneComponentProps);
  3148. componentWillUnmount(): void;
  3149. render(): JSX.Element | null;
  3150. }
  3151. }
  3152. declare module INSPECTOR {
  3153. export interface ICheckBoxLineComponentProps {
  3154. label: string;
  3155. target?: any;
  3156. propertyName?: string;
  3157. isSelected?: () => boolean;
  3158. onSelect?: (value: boolean) => void;
  3159. onValueChanged?: () => void;
  3160. replaySourceReplacement?: string;
  3161. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3162. }
  3163. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  3164. isSelected: boolean;
  3165. }> {
  3166. private static _UniqueIdSeed;
  3167. private _uniqueId;
  3168. private _localChange;
  3169. constructor(props: ICheckBoxLineComponentProps);
  3170. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  3171. isSelected: boolean;
  3172. }): boolean;
  3173. onChange(): void;
  3174. render(): JSX.Element;
  3175. }
  3176. }
  3177. declare module INSPECTOR {
  3178. interface IRenderGridPropertyGridComponentProps {
  3179. globalState: GlobalState;
  3180. scene: BABYLON.Scene;
  3181. }
  3182. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  3183. isEnabled: boolean;
  3184. }> {
  3185. private _gridMesh;
  3186. constructor(props: IRenderGridPropertyGridComponentProps);
  3187. componentDidMount(): void;
  3188. addOrRemoveGrid(): void;
  3189. render(): JSX.Element;
  3190. }
  3191. }
  3192. declare module INSPECTOR {
  3193. export class DebugTabComponent extends PaneComponent {
  3194. private _physicsViewersEnabled;
  3195. constructor(props: IPaneComponentProps);
  3196. switchPhysicsViewers(): void;
  3197. render(): JSX.Element | null;
  3198. }
  3199. }
  3200. declare module INSPECTOR {
  3201. interface ISliderLineComponentProps {
  3202. label: string;
  3203. target?: any;
  3204. propertyName?: string;
  3205. minimum: number;
  3206. maximum: number;
  3207. step: number;
  3208. directValue?: number;
  3209. useEuler?: boolean;
  3210. onChange?: (value: number) => void;
  3211. onInput?: (value: number) => void;
  3212. replaySourceReplacement?: string;
  3213. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3214. decimalCount?: number;
  3215. }
  3216. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  3217. value: number;
  3218. }> {
  3219. private _localChange;
  3220. constructor(props: ISliderLineComponentProps);
  3221. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  3222. value: number;
  3223. }): boolean;
  3224. onChange(newValueString: any): void;
  3225. onInput(newValueString: any): void;
  3226. prepareDataToRead(value: number): number;
  3227. render(): JSX.Element;
  3228. }
  3229. }
  3230. declare module INSPECTOR {
  3231. export const Null_Value: number;
  3232. class ListLineOption {
  3233. label: string;
  3234. value: number;
  3235. }
  3236. interface IOptionsLineComponentProps {
  3237. label: string;
  3238. target: any;
  3239. propertyName: string;
  3240. options: ListLineOption[];
  3241. noDirectUpdate?: boolean;
  3242. onSelect?: (value: number) => void;
  3243. extractValue?: () => number;
  3244. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3245. allowNullValue?: boolean;
  3246. }
  3247. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  3248. value: number;
  3249. }> {
  3250. private _localChange;
  3251. private remapValueIn;
  3252. private remapValueOut;
  3253. constructor(props: IOptionsLineComponentProps);
  3254. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  3255. value: number;
  3256. }): boolean;
  3257. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  3258. updateValue(valueString: string): void;
  3259. render(): JSX.Element;
  3260. }
  3261. }
  3262. declare module INSPECTOR {
  3263. /**
  3264. * Class used to provide lock mechanism
  3265. */
  3266. export class LockObject {
  3267. /**
  3268. * Gets or set if the lock is engaged
  3269. */
  3270. lock: boolean;
  3271. }
  3272. }
  3273. declare module INSPECTOR {
  3274. interface INumericInputComponentProps {
  3275. label: string;
  3276. value: number;
  3277. step?: number;
  3278. onChange: (value: number) => void;
  3279. precision?: number;
  3280. }
  3281. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  3282. value: string;
  3283. }> {
  3284. static defaultProps: {
  3285. step: number;
  3286. };
  3287. private _localChange;
  3288. constructor(props: INumericInputComponentProps);
  3289. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  3290. value: string;
  3291. }): boolean;
  3292. updateValue(evt: any): void;
  3293. render(): JSX.Element;
  3294. }
  3295. }
  3296. declare module INSPECTOR {
  3297. export interface IColorPickerComponentProps {
  3298. value: BABYLON.Color4 | BABYLON.Color3;
  3299. onColorChanged: (newOne: string) => void;
  3300. disableAlpha?: boolean;
  3301. }
  3302. interface IColorPickerComponentState {
  3303. pickerEnabled: boolean;
  3304. color: {
  3305. r: number;
  3306. g: number;
  3307. b: number;
  3308. a?: number;
  3309. };
  3310. hex: string;
  3311. }
  3312. export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
  3313. private _floatRef;
  3314. private _floatHostRef;
  3315. constructor(props: IColorPickerComponentProps);
  3316. syncPositions(): void;
  3317. shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
  3318. componentDidUpdate(): void;
  3319. componentDidMount(): void;
  3320. render(): JSX.Element;
  3321. }
  3322. }
  3323. declare module INSPECTOR {
  3324. export interface IColor3LineComponentProps {
  3325. label: string;
  3326. target: any;
  3327. propertyName: string;
  3328. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3329. isLinear?: boolean;
  3330. }
  3331. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  3332. isExpanded: boolean;
  3333. color: BABYLON.Color3;
  3334. }> {
  3335. private _localChange;
  3336. constructor(props: IColor3LineComponentProps);
  3337. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  3338. color: BABYLON.Color3;
  3339. }): boolean;
  3340. setPropertyValue(newColor: BABYLON.Color3): void;
  3341. onChange(newValue: string): void;
  3342. switchExpandState(): void;
  3343. raiseOnPropertyChanged(previousValue: BABYLON.Color3): void;
  3344. updateStateR(value: number): void;
  3345. updateStateG(value: number): void;
  3346. updateStateB(value: number): void;
  3347. copyToClipboard(): void;
  3348. render(): JSX.Element;
  3349. }
  3350. }
  3351. declare module INSPECTOR {
  3352. interface IVector3LineComponentProps {
  3353. label: string;
  3354. target: any;
  3355. propertyName: string;
  3356. step?: number;
  3357. onChange?: (newvalue: BABYLON.Vector3) => void;
  3358. useEuler?: boolean;
  3359. replaySourceReplacement?: string;
  3360. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3361. }
  3362. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  3363. isExpanded: boolean;
  3364. value: BABYLON.Vector3;
  3365. }> {
  3366. static defaultProps: {
  3367. step: number;
  3368. };
  3369. private _localChange;
  3370. constructor(props: IVector3LineComponentProps);
  3371. getCurrentValue(): any;
  3372. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  3373. isExpanded: boolean;
  3374. value: BABYLON.Vector3;
  3375. }): boolean;
  3376. switchExpandState(): void;
  3377. raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
  3378. updateVector3(): void;
  3379. updateStateX(value: number): void;
  3380. updateStateY(value: number): void;
  3381. updateStateZ(value: number): void;
  3382. render(): JSX.Element;
  3383. }
  3384. }
  3385. declare module INSPECTOR {
  3386. interface IQuaternionLineComponentProps {
  3387. label: string;
  3388. target: any;
  3389. useEuler?: boolean;
  3390. propertyName: string;
  3391. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3392. }
  3393. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  3394. isExpanded: boolean;
  3395. value: BABYLON.Quaternion;
  3396. eulerValue: BABYLON.Vector3;
  3397. }> {
  3398. private _localChange;
  3399. constructor(props: IQuaternionLineComponentProps);
  3400. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  3401. isExpanded: boolean;
  3402. value: BABYLON.Quaternion;
  3403. }): boolean;
  3404. switchExpandState(): void;
  3405. raiseOnPropertyChanged(currentValue: BABYLON.Quaternion, previousValue: BABYLON.Quaternion): void;
  3406. updateQuaternion(): void;
  3407. updateStateX(value: number): void;
  3408. updateStateY(value: number): void;
  3409. updateStateZ(value: number): void;
  3410. updateStateW(value: number): void;
  3411. updateQuaternionFromEuler(): void;
  3412. updateStateEulerX(value: number): void;
  3413. updateStateEulerY(value: number): void;
  3414. updateStateEulerZ(value: number): void;
  3415. render(): JSX.Element;
  3416. }
  3417. }
  3418. declare module INSPECTOR {
  3419. interface ITextInputLineComponentProps {
  3420. label: string;
  3421. lockObject: LockObject;
  3422. target?: any;
  3423. propertyName?: string;
  3424. value?: string;
  3425. onChange?: (value: string) => void;
  3426. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3427. }
  3428. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  3429. value: string;
  3430. }> {
  3431. private _localChange;
  3432. constructor(props: ITextInputLineComponentProps);
  3433. componentWillUnmount(): void;
  3434. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  3435. value: string;
  3436. }): boolean;
  3437. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  3438. updateValue(value: string): void;
  3439. render(): JSX.Element;
  3440. }
  3441. }
  3442. declare module INSPECTOR {
  3443. interface ICustomPropertyGridComponentProps {
  3444. globalState: GlobalState;
  3445. target: any;
  3446. lockObject: LockObject;
  3447. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3448. }
  3449. export class CustomPropertyGridComponent extends React.Component<ICustomPropertyGridComponentProps, {
  3450. mode: number;
  3451. }> {
  3452. constructor(props: ICustomPropertyGridComponentProps);
  3453. renderInspectable(inspectable: BABYLON.IInspectable): JSX.Element | null;
  3454. render(): JSX.Element | null;
  3455. }
  3456. }
  3457. declare module INSPECTOR {
  3458. export interface IButtonLineComponentProps {
  3459. label: string;
  3460. onClick: () => void;
  3461. }
  3462. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  3463. constructor(props: IButtonLineComponentProps);
  3464. render(): JSX.Element;
  3465. }
  3466. }
  3467. declare module INSPECTOR {
  3468. interface IFloatLineComponentProps {
  3469. label: string;
  3470. target: any;
  3471. propertyName: string;
  3472. lockObject?: LockObject;
  3473. onChange?: (newValue: number) => void;
  3474. isInteger?: boolean;
  3475. replaySourceReplacement?: string;
  3476. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3477. additionalClass?: string;
  3478. step?: string;
  3479. digits?: number;
  3480. useEuler?: boolean;
  3481. }
  3482. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  3483. value: string;
  3484. }> {
  3485. private _localChange;
  3486. private _store;
  3487. constructor(props: IFloatLineComponentProps);
  3488. componentWillUnmount(): void;
  3489. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  3490. value: string;
  3491. }): boolean;
  3492. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  3493. updateValue(valueString: string): void;
  3494. lock(): void;
  3495. unlock(): void;
  3496. render(): JSX.Element;
  3497. }
  3498. }
  3499. declare module INSPECTOR {
  3500. interface IAnchorSvgPointProps {
  3501. control: BABYLON.Vector2;
  3502. anchor: BABYLON.Vector2;
  3503. active: boolean;
  3504. type: string;
  3505. index: string;
  3506. }
  3507. export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
  3508. constructor(props: IAnchorSvgPointProps);
  3509. render(): JSX.Element;
  3510. }
  3511. }
  3512. declare module INSPECTOR {
  3513. export interface IKeyframeSvgPoint {
  3514. keyframePoint: BABYLON.Vector2;
  3515. rightControlPoint: BABYLON.Vector2 | null;
  3516. leftControlPoint: BABYLON.Vector2 | null;
  3517. id: string;
  3518. }
  3519. interface IKeyframeSvgPointProps {
  3520. keyframePoint: BABYLON.Vector2;
  3521. leftControlPoint: BABYLON.Vector2 | null;
  3522. rightControlPoint: BABYLON.Vector2 | null;
  3523. id: string;
  3524. }
  3525. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps> {
  3526. constructor(props: IKeyframeSvgPointProps);
  3527. render(): JSX.Element;
  3528. }
  3529. }
  3530. declare module INSPECTOR {
  3531. interface ISvgDraggableAreaProps {
  3532. keyframeSvgPoints: IKeyframeSvgPoint[];
  3533. updatePosition: (updatedKeyframe: IKeyframeSvgPoint, index: number) => void;
  3534. }
  3535. export class SvgDraggableArea extends React.Component<ISvgDraggableAreaProps> {
  3536. private _active;
  3537. private _isCurrentPointControl;
  3538. private _currentPointIndex;
  3539. private _draggableArea;
  3540. constructor(props: ISvgDraggableAreaProps);
  3541. dragStart(e: React.TouchEvent<SVGSVGElement>): void;
  3542. dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  3543. drag(e: React.TouchEvent<SVGSVGElement>): void;
  3544. drag(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  3545. dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
  3546. dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  3547. getMousePosition(e: React.TouchEvent<SVGSVGElement>): BABYLON.Vector2 | undefined;
  3548. getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): BABYLON.Vector2 | undefined;
  3549. render(): JSX.Element;
  3550. }
  3551. }
  3552. declare module INSPECTOR {
  3553. interface IAnimationCurveEditorComponentProps {
  3554. close: (event: any) => void;
  3555. playOrPause: () => void;
  3556. title: string;
  3557. animations: BABYLON.Animation[];
  3558. entityName: string;
  3559. scene: BABYLON.Scene;
  3560. entity: BABYLON.IAnimatable;
  3561. }
  3562. export class AnimationCurveEditorComponent extends React.Component<IAnimationCurveEditorComponentProps, {
  3563. animations: BABYLON.Animation[];
  3564. animationName: string;
  3565. animationTargetProperty: string;
  3566. isOpen: boolean;
  3567. selected: BABYLON.Animation;
  3568. currentPathData: string | undefined;
  3569. svgKeyframes: IKeyframeSvgPoint[] | undefined;
  3570. }> {
  3571. readonly _heightScale: number;
  3572. private _newAnimations;
  3573. private _svgKeyframes;
  3574. private _frames;
  3575. private _isPlaying;
  3576. constructor(props: IAnimationCurveEditorComponentProps);
  3577. handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
  3578. handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
  3579. addAnimation(event: React.MouseEvent<HTMLDivElement>): void;
  3580. addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
  3581. updateKeyframe(keyframe: BABYLON.Vector2, index: number): void;
  3582. getAnimationProperties(animation: BABYLON.Animation): {
  3583. easingType: string | undefined;
  3584. easingMode: number | undefined;
  3585. };
  3586. getPathData(animation: BABYLON.Animation): string;
  3587. drawAllFrames(initialKey: BABYLON.IAnimationKey, endKey: BABYLON.IAnimationKey, easingFunction: BABYLON.EasingFunction): void;
  3588. curvePath(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, easingFunction: BABYLON.EasingFunction): string;
  3589. renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, index: number): void;
  3590. linearInterpolation(keyframes: BABYLON.IAnimationKey[], data: string, middle: number): string;
  3591. setKeyframePointLinear(point: BABYLON.Vector2, index: number): void;
  3592. setKeyframePoint(controlPoints: BABYLON.Vector2[], index: number, keyframesCount: number): void;
  3593. isAnimationPlaying(): void;
  3594. selectAnimation(animation: BABYLON.Animation): void;
  3595. interpolateControlPoints(p0: BABYLON.Vector2, p1: BABYLON.Vector2, u: number, p2: BABYLON.Vector2, v: number, p3: BABYLON.Vector2): BABYLON.Vector2[] | undefined;
  3596. render(): JSX.Element;
  3597. }
  3598. }
  3599. declare module INSPECTOR {
  3600. interface IPopupComponentProps {
  3601. id: string;
  3602. title: string;
  3603. size: {
  3604. width: number;
  3605. height: number;
  3606. };
  3607. onOpen: (window: Window) => void;
  3608. onClose: (window: Window) => void;
  3609. }
  3610. export class PopupComponent extends React.Component<IPopupComponentProps, {
  3611. isComponentMounted: boolean;
  3612. blockedByBrowser: boolean;
  3613. }> {
  3614. private _container;
  3615. private _window;
  3616. constructor(props: IPopupComponentProps);
  3617. componentDidMount(): void;
  3618. openPopup(): void;
  3619. componentWillUnmount(): void;
  3620. render(): React.ReactPortal | null;
  3621. }
  3622. }
  3623. declare module INSPECTOR {
  3624. interface IAnimationGridComponentProps {
  3625. globalState: GlobalState;
  3626. animatable: BABYLON.IAnimatable;
  3627. scene: BABYLON.Scene;
  3628. lockObject: LockObject;
  3629. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3630. }
  3631. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  3632. currentFrame: number;
  3633. }> {
  3634. private _animations;
  3635. private _ranges;
  3636. private _mainAnimatable;
  3637. private _onBeforeRenderObserver;
  3638. private _isPlaying;
  3639. private timelineRef;
  3640. private _isCurveEditorOpen;
  3641. private _animationControl;
  3642. constructor(props: IAnimationGridComponentProps);
  3643. playOrPause(): void;
  3644. componentDidMount(): void;
  3645. componentWillUnmount(): void;
  3646. onCurrentFrameChange(value: number): void;
  3647. onChangeFromOrTo(): void;
  3648. onOpenAnimationCurveEditor(): void;
  3649. onCloseAnimationCurveEditor(window: Window | null): void;
  3650. render(): JSX.Element;
  3651. }
  3652. }
  3653. declare module INSPECTOR {
  3654. interface ICommonMaterialPropertyGridComponentProps {
  3655. globalState: GlobalState;
  3656. material: BABYLON.Material;
  3657. lockObject: LockObject;
  3658. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3659. }
  3660. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  3661. constructor(props: ICommonMaterialPropertyGridComponentProps);
  3662. render(): JSX.Element;
  3663. }
  3664. }
  3665. declare module INSPECTOR {
  3666. interface IMaterialPropertyGridComponentProps {
  3667. globalState: GlobalState;
  3668. material: BABYLON.Material;
  3669. lockObject: LockObject;
  3670. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3671. }
  3672. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  3673. constructor(props: IMaterialPropertyGridComponentProps);
  3674. render(): JSX.Element;
  3675. }
  3676. }
  3677. declare module INSPECTOR {
  3678. interface IFileButtonLineComponentProps {
  3679. label: string;
  3680. onClick: (file: File) => void;
  3681. accept: string;
  3682. }
  3683. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  3684. private static _IDGenerator;
  3685. private _id;
  3686. private uploadInputRef;
  3687. constructor(props: IFileButtonLineComponentProps);
  3688. onChange(evt: any): void;
  3689. render(): JSX.Element;
  3690. }
  3691. }
  3692. declare module INSPECTOR {
  3693. export interface ITextureLinkLineComponentProps {
  3694. label: string;
  3695. texture: BABYLON.Nullable<BABYLON.BaseTexture>;
  3696. material?: BABYLON.Material;
  3697. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3698. onDebugSelectionChangeObservable?: BABYLON.Observable<TextureLinkLineComponent>;
  3699. propertyName?: string;
  3700. onTextureCreated?: (texture: BABYLON.BaseTexture) => void;
  3701. customDebugAction?: (state: boolean) => void;
  3702. onTextureRemoved?: () => void;
  3703. }
  3704. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  3705. isDebugSelected: boolean;
  3706. }> {
  3707. private _onDebugSelectionChangeObserver;
  3708. constructor(props: ITextureLinkLineComponentProps);
  3709. componentDidMount(): void;
  3710. componentWillUnmount(): void;
  3711. debugTexture(): void;
  3712. onLink(): void;
  3713. updateTexture(file: File): void;
  3714. removeTexture(): void;
  3715. render(): JSX.Element | null;
  3716. }
  3717. }
  3718. declare module INSPECTOR {
  3719. interface IStandardMaterialPropertyGridComponentProps {
  3720. globalState: GlobalState;
  3721. material: BABYLON.StandardMaterial;
  3722. lockObject: LockObject;
  3723. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3724. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3725. }
  3726. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  3727. private _onDebugSelectionChangeObservable;
  3728. constructor(props: IStandardMaterialPropertyGridComponentProps);
  3729. renderTextures(): JSX.Element;
  3730. render(): JSX.Element;
  3731. }
  3732. }
  3733. declare module INSPECTOR {
  3734. interface ITextureLineComponentProps {
  3735. texture: BABYLON.BaseTexture;
  3736. width: number;
  3737. height: number;
  3738. globalState?: GlobalState;
  3739. hideChannelSelect?: boolean;
  3740. }
  3741. enum ChannelToDisplay {
  3742. R = 0,
  3743. G = 1,
  3744. B = 2,
  3745. A = 3,
  3746. All = 4
  3747. }
  3748. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  3749. channel: ChannelToDisplay;
  3750. face: number;
  3751. }> {
  3752. private canvasRef;
  3753. constructor(props: ITextureLineComponentProps);
  3754. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  3755. channel: ChannelToDisplay;
  3756. face: number;
  3757. }): boolean;
  3758. componentDidMount(): void;
  3759. componentDidUpdate(): void;
  3760. updatePreview(): void;
  3761. render(): JSX.Element;
  3762. }
  3763. }
  3764. declare module INSPECTOR {
  3765. interface ITexturePropertyGridComponentProps {
  3766. texture: BABYLON.BaseTexture;
  3767. lockObject: LockObject;
  3768. globalState: GlobalState;
  3769. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3770. }
  3771. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps> {
  3772. private _adtInstrumentation;
  3773. private textureLineRef;
  3774. constructor(props: ITexturePropertyGridComponentProps);
  3775. componentWillUnmount(): void;
  3776. updateTexture(file: File): void;
  3777. foreceRefresh(): void;
  3778. render(): JSX.Element;
  3779. }
  3780. }
  3781. declare module INSPECTOR {
  3782. interface IVector2LineComponentProps {
  3783. label: string;
  3784. target: any;
  3785. propertyName: string;
  3786. step?: number;
  3787. onChange?: (newvalue: BABYLON.Vector2) => void;
  3788. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3789. }
  3790. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  3791. isExpanded: boolean;
  3792. value: BABYLON.Vector2;
  3793. }> {
  3794. static defaultProps: {
  3795. step: number;
  3796. };
  3797. private _localChange;
  3798. constructor(props: IVector2LineComponentProps);
  3799. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  3800. isExpanded: boolean;
  3801. value: BABYLON.Vector2;
  3802. }): boolean;
  3803. switchExpandState(): void;
  3804. raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
  3805. updateStateX(value: number): void;
  3806. updateStateY(value: number): void;
  3807. render(): JSX.Element;
  3808. }
  3809. }
  3810. declare module INSPECTOR {
  3811. interface IPBRMaterialPropertyGridComponentProps {
  3812. globalState: GlobalState;
  3813. material: BABYLON.PBRMaterial;
  3814. lockObject: LockObject;
  3815. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3816. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3817. }
  3818. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  3819. private _onDebugSelectionChangeObservable;
  3820. constructor(props: IPBRMaterialPropertyGridComponentProps);
  3821. switchAmbientMode(state: boolean): void;
  3822. switchMetallicMode(state: boolean): void;
  3823. switchRoughnessMode(state: boolean): void;
  3824. renderTextures(onDebugSelectionChangeObservable: BABYLON.Observable<TextureLinkLineComponent>): JSX.Element;
  3825. render(): JSX.Element;
  3826. }
  3827. }
  3828. declare module INSPECTOR {
  3829. interface IRadioButtonLineComponentProps {
  3830. onSelectionChangedObservable: BABYLON.Observable<RadioButtonLineComponent>;
  3831. label: string;
  3832. isSelected: () => boolean;
  3833. onSelect: () => void;
  3834. }
  3835. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  3836. isSelected: boolean;
  3837. }> {
  3838. private _onSelectionChangedObserver;
  3839. constructor(props: IRadioButtonLineComponentProps);
  3840. componentDidMount(): void;
  3841. componentWillUnmount(): void;
  3842. onChange(): void;
  3843. render(): JSX.Element;
  3844. }
  3845. }
  3846. declare module INSPECTOR {
  3847. interface IFogPropertyGridComponentProps {
  3848. globalState: GlobalState;
  3849. scene: BABYLON.Scene;
  3850. lockObject: LockObject;
  3851. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3852. }
  3853. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  3854. mode: number;
  3855. }> {
  3856. constructor(props: IFogPropertyGridComponentProps);
  3857. render(): JSX.Element;
  3858. }
  3859. }
  3860. declare module INSPECTOR {
  3861. interface IScenePropertyGridComponentProps {
  3862. globalState: GlobalState;
  3863. scene: BABYLON.Scene;
  3864. lockObject: LockObject;
  3865. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3866. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3867. }
  3868. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  3869. private _storedEnvironmentTexture;
  3870. private _renderingModeGroupObservable;
  3871. constructor(props: IScenePropertyGridComponentProps);
  3872. setRenderingModes(point: boolean, wireframe: boolean): void;
  3873. switchIBL(): void;
  3874. updateEnvironmentTexture(file: File): void;
  3875. updateGravity(newValue: BABYLON.Vector3): void;
  3876. updateTimeStep(newValue: number): void;
  3877. normalizeScene(): void;
  3878. render(): JSX.Element;
  3879. }
  3880. }
  3881. declare module INSPECTOR {
  3882. interface ICommonLightPropertyGridComponentProps {
  3883. globalState: GlobalState;
  3884. light: BABYLON.Light;
  3885. lockObject: LockObject;
  3886. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3887. }
  3888. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  3889. constructor(props: ICommonLightPropertyGridComponentProps);
  3890. render(): JSX.Element;
  3891. }
  3892. }
  3893. declare module INSPECTOR {
  3894. interface IHemisphericLightPropertyGridComponentProps {
  3895. globalState: GlobalState;
  3896. light: BABYLON.HemisphericLight;
  3897. lockObject: LockObject;
  3898. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3899. }
  3900. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  3901. constructor(props: IHemisphericLightPropertyGridComponentProps);
  3902. render(): JSX.Element;
  3903. }
  3904. }
  3905. declare module INSPECTOR {
  3906. interface ICommonShadowLightPropertyGridComponentProps {
  3907. globalState: GlobalState;
  3908. light: BABYLON.IShadowLight;
  3909. lockObject: LockObject;
  3910. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3911. }
  3912. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  3913. private _internals;
  3914. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  3915. createShadowGenerator(): void;
  3916. disposeShadowGenerator(): void;
  3917. render(): JSX.Element;
  3918. }
  3919. }
  3920. declare module INSPECTOR {
  3921. interface IPointLightPropertyGridComponentProps {
  3922. globalState: GlobalState;
  3923. light: BABYLON.PointLight;
  3924. lockObject: LockObject;
  3925. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3926. }
  3927. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  3928. constructor(props: IPointLightPropertyGridComponentProps);
  3929. render(): JSX.Element;
  3930. }
  3931. }
  3932. declare module INSPECTOR {
  3933. interface ICommonCameraPropertyGridComponentProps {
  3934. globalState: GlobalState;
  3935. camera: BABYLON.Camera;
  3936. lockObject: LockObject;
  3937. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3938. }
  3939. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  3940. mode: number;
  3941. }> {
  3942. constructor(props: ICommonCameraPropertyGridComponentProps);
  3943. render(): JSX.Element;
  3944. }
  3945. }
  3946. declare module INSPECTOR {
  3947. interface IFreeCameraPropertyGridComponentProps {
  3948. globalState: GlobalState;
  3949. camera: BABYLON.FreeCamera;
  3950. lockObject: LockObject;
  3951. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3952. }
  3953. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  3954. constructor(props: IFreeCameraPropertyGridComponentProps);
  3955. render(): JSX.Element;
  3956. }
  3957. }
  3958. declare module INSPECTOR {
  3959. interface IArcRotateCameraPropertyGridComponentProps {
  3960. globalState: GlobalState;
  3961. camera: BABYLON.ArcRotateCamera;
  3962. lockObject: LockObject;
  3963. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3964. }
  3965. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  3966. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  3967. render(): JSX.Element;
  3968. }
  3969. }
  3970. declare module INSPECTOR {
  3971. interface IMeshPropertyGridComponentProps {
  3972. globalState: GlobalState;
  3973. mesh: BABYLON.Mesh;
  3974. lockObject: LockObject;
  3975. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3976. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  3977. }
  3978. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  3979. displayNormals: boolean;
  3980. displayVertexColors: boolean;
  3981. }> {
  3982. constructor(props: IMeshPropertyGridComponentProps);
  3983. renderWireframeOver(): void;
  3984. renderNormalVectors(): void;
  3985. displayNormals(): void;
  3986. displayVertexColors(): void;
  3987. onMaterialLink(): void;
  3988. onSourceMeshLink(): void;
  3989. onSkeletonLink(): void;
  3990. convertPhysicsTypeToString(): string;
  3991. render(): JSX.Element;
  3992. }
  3993. }
  3994. declare module INSPECTOR {
  3995. interface ITransformNodePropertyGridComponentProps {
  3996. globalState: GlobalState;
  3997. transformNode: BABYLON.TransformNode;
  3998. lockObject: LockObject;
  3999. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4000. }
  4001. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  4002. constructor(props: ITransformNodePropertyGridComponentProps);
  4003. render(): JSX.Element;
  4004. }
  4005. }
  4006. declare module INSPECTOR {
  4007. interface IBackgroundMaterialPropertyGridComponentProps {
  4008. globalState: GlobalState;
  4009. material: BABYLON.BackgroundMaterial;
  4010. lockObject: LockObject;
  4011. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4012. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4013. }
  4014. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  4015. private _onDebugSelectionChangeObservable;
  4016. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  4017. renderTextures(): JSX.Element;
  4018. render(): JSX.Element;
  4019. }
  4020. }
  4021. declare module INSPECTOR {
  4022. interface ICommonControlPropertyGridComponentProps {
  4023. globalState: GlobalState;
  4024. control: BABYLON.GUI.Control;
  4025. lockObject: LockObject;
  4026. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4027. }
  4028. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  4029. constructor(props: ICommonControlPropertyGridComponentProps);
  4030. renderGridInformation(): JSX.Element | null;
  4031. render(): JSX.Element;
  4032. }
  4033. }
  4034. declare module INSPECTOR {
  4035. interface IControlPropertyGridComponentProps {
  4036. globalState: GlobalState;
  4037. control: BABYLON.GUI.Control;
  4038. lockObject: LockObject;
  4039. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4040. }
  4041. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  4042. constructor(props: IControlPropertyGridComponentProps);
  4043. render(): JSX.Element;
  4044. }
  4045. }
  4046. declare module INSPECTOR {
  4047. interface ITextBlockPropertyGridComponentProps {
  4048. globalState: GlobalState;
  4049. textBlock: BABYLON.GUI.TextBlock;
  4050. lockObject: LockObject;
  4051. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4052. }
  4053. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  4054. constructor(props: ITextBlockPropertyGridComponentProps);
  4055. render(): JSX.Element;
  4056. }
  4057. }
  4058. declare module INSPECTOR {
  4059. interface IInputTextPropertyGridComponentProps {
  4060. globalState: GlobalState;
  4061. inputText: BABYLON.GUI.InputText;
  4062. lockObject: LockObject;
  4063. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4064. }
  4065. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  4066. constructor(props: IInputTextPropertyGridComponentProps);
  4067. render(): JSX.Element;
  4068. }
  4069. }
  4070. declare module INSPECTOR {
  4071. interface IColorPickerPropertyGridComponentProps {
  4072. globalState: GlobalState;
  4073. colorPicker: BABYLON.GUI.ColorPicker;
  4074. lockObject: LockObject;
  4075. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4076. }
  4077. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  4078. constructor(props: IColorPickerPropertyGridComponentProps);
  4079. render(): JSX.Element;
  4080. }
  4081. }
  4082. declare module INSPECTOR {
  4083. interface IAnimationGroupGridComponentProps {
  4084. globalState: GlobalState;
  4085. animationGroup: BABYLON.AnimationGroup;
  4086. scene: BABYLON.Scene;
  4087. lockObject: LockObject;
  4088. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4089. }
  4090. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  4091. playButtonText: string;
  4092. currentFrame: number;
  4093. }> {
  4094. private _onAnimationGroupPlayObserver;
  4095. private _onAnimationGroupPauseObserver;
  4096. private _onBeforeRenderObserver;
  4097. private timelineRef;
  4098. constructor(props: IAnimationGroupGridComponentProps);
  4099. disconnect(animationGroup: BABYLON.AnimationGroup): void;
  4100. connect(animationGroup: BABYLON.AnimationGroup): void;
  4101. updateCurrentFrame(animationGroup: BABYLON.AnimationGroup): void;
  4102. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  4103. componentWillUnmount(): void;
  4104. playOrPause(): void;
  4105. onCurrentFrameChange(value: number): void;
  4106. render(): JSX.Element;
  4107. }
  4108. }
  4109. declare module INSPECTOR {
  4110. interface IImagePropertyGridComponentProps {
  4111. globalState: GlobalState;
  4112. image: BABYLON.GUI.Image;
  4113. lockObject: LockObject;
  4114. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4115. }
  4116. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  4117. constructor(props: IImagePropertyGridComponentProps);
  4118. render(): JSX.Element;
  4119. }
  4120. }
  4121. declare module INSPECTOR {
  4122. interface ISliderPropertyGridComponentProps {
  4123. globalState: GlobalState;
  4124. slider: BABYLON.GUI.Slider;
  4125. lockObject: LockObject;
  4126. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4127. }
  4128. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  4129. constructor(props: ISliderPropertyGridComponentProps);
  4130. render(): JSX.Element;
  4131. }
  4132. }
  4133. declare module INSPECTOR {
  4134. interface IImageBasedSliderPropertyGridComponentProps {
  4135. globalState: GlobalState;
  4136. imageBasedSlider: BABYLON.GUI.ImageBasedSlider;
  4137. lockObject: LockObject;
  4138. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4139. }
  4140. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  4141. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  4142. render(): JSX.Element;
  4143. }
  4144. }
  4145. declare module INSPECTOR {
  4146. interface IRectanglePropertyGridComponentProps {
  4147. globalState: GlobalState;
  4148. rectangle: BABYLON.GUI.Rectangle;
  4149. lockObject: LockObject;
  4150. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4151. }
  4152. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  4153. constructor(props: IRectanglePropertyGridComponentProps);
  4154. render(): JSX.Element;
  4155. }
  4156. }
  4157. declare module INSPECTOR {
  4158. interface IEllipsePropertyGridComponentProps {
  4159. globalState: GlobalState;
  4160. ellipse: BABYLON.GUI.Ellipse;
  4161. lockObject: LockObject;
  4162. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4163. }
  4164. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  4165. constructor(props: IEllipsePropertyGridComponentProps);
  4166. render(): JSX.Element;
  4167. }
  4168. }
  4169. declare module INSPECTOR {
  4170. interface ICheckboxPropertyGridComponentProps {
  4171. globalState: GlobalState;
  4172. checkbox: BABYLON.GUI.Checkbox;
  4173. lockObject: LockObject;
  4174. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4175. }
  4176. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  4177. constructor(props: ICheckboxPropertyGridComponentProps);
  4178. render(): JSX.Element;
  4179. }
  4180. }
  4181. declare module INSPECTOR {
  4182. interface IRadioButtonPropertyGridComponentProps {
  4183. globalState: GlobalState;
  4184. radioButton: BABYLON.GUI.RadioButton;
  4185. lockObject: LockObject;
  4186. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4187. }
  4188. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  4189. constructor(props: IRadioButtonPropertyGridComponentProps);
  4190. render(): JSX.Element;
  4191. }
  4192. }
  4193. declare module INSPECTOR {
  4194. interface ILinePropertyGridComponentProps {
  4195. globalState: GlobalState;
  4196. line: BABYLON.GUI.Line;
  4197. lockObject: LockObject;
  4198. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4199. }
  4200. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  4201. constructor(props: ILinePropertyGridComponentProps);
  4202. onDashChange(value: string): void;
  4203. render(): JSX.Element;
  4204. }
  4205. }
  4206. declare module INSPECTOR {
  4207. interface IScrollViewerPropertyGridComponentProps {
  4208. globalState: GlobalState;
  4209. scrollViewer: BABYLON.GUI.ScrollViewer;
  4210. lockObject: LockObject;
  4211. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4212. }
  4213. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  4214. constructor(props: IScrollViewerPropertyGridComponentProps);
  4215. render(): JSX.Element;
  4216. }
  4217. }
  4218. declare module INSPECTOR {
  4219. interface IGridPropertyGridComponentProps {
  4220. globalState: GlobalState;
  4221. grid: BABYLON.GUI.Grid;
  4222. lockObject: LockObject;
  4223. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4224. }
  4225. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  4226. constructor(props: IGridPropertyGridComponentProps);
  4227. renderRows(): JSX.Element[];
  4228. renderColumns(): JSX.Element[];
  4229. render(): JSX.Element;
  4230. }
  4231. }
  4232. declare module INSPECTOR {
  4233. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  4234. globalState: GlobalState;
  4235. material: BABYLON.PBRMetallicRoughnessMaterial;
  4236. lockObject: LockObject;
  4237. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4238. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4239. }
  4240. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  4241. private _onDebugSelectionChangeObservable;
  4242. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  4243. renderTextures(): JSX.Element;
  4244. render(): JSX.Element;
  4245. }
  4246. }
  4247. declare module INSPECTOR {
  4248. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  4249. globalState: GlobalState;
  4250. material: BABYLON.PBRSpecularGlossinessMaterial;
  4251. lockObject: LockObject;
  4252. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4253. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4254. }
  4255. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  4256. private _onDebugSelectionChangeObservable;
  4257. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  4258. renderTextures(): JSX.Element;
  4259. render(): JSX.Element;
  4260. }
  4261. }
  4262. declare module INSPECTOR {
  4263. interface IStackPanelPropertyGridComponentProps {
  4264. globalState: GlobalState;
  4265. stackPanel: BABYLON.GUI.StackPanel;
  4266. lockObject: LockObject;
  4267. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4268. }
  4269. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  4270. constructor(props: IStackPanelPropertyGridComponentProps);
  4271. render(): JSX.Element;
  4272. }
  4273. }
  4274. declare module INSPECTOR {
  4275. interface ICommonPostProcessPropertyGridComponentProps {
  4276. globalState: GlobalState;
  4277. postProcess: BABYLON.PostProcess;
  4278. lockObject: LockObject;
  4279. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4280. }
  4281. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  4282. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  4283. render(): JSX.Element;
  4284. }
  4285. }
  4286. declare module INSPECTOR {
  4287. interface IPostProcessPropertyGridComponentProps {
  4288. globalState: GlobalState;
  4289. postProcess: BABYLON.PostProcess;
  4290. lockObject: LockObject;
  4291. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4292. }
  4293. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  4294. constructor(props: IPostProcessPropertyGridComponentProps);
  4295. render(): JSX.Element;
  4296. }
  4297. }
  4298. declare module INSPECTOR {
  4299. interface ICommonRenderingPipelinePropertyGridComponentProps {
  4300. globalState: GlobalState;
  4301. renderPipeline: BABYLON.PostProcessRenderPipeline;
  4302. lockObject: LockObject;
  4303. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4304. }
  4305. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  4306. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  4307. render(): JSX.Element;
  4308. }
  4309. }
  4310. declare module INSPECTOR {
  4311. interface IRenderingPipelinePropertyGridComponentProps {
  4312. globalState: GlobalState;
  4313. renderPipeline: BABYLON.PostProcessRenderPipeline;
  4314. lockObject: LockObject;
  4315. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4316. }
  4317. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  4318. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  4319. render(): JSX.Element;
  4320. }
  4321. }
  4322. declare module INSPECTOR {
  4323. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  4324. globalState: GlobalState;
  4325. renderPipeline: BABYLON.DefaultRenderingPipeline;
  4326. lockObject: LockObject;
  4327. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4328. }
  4329. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  4330. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  4331. render(): JSX.Element;
  4332. }
  4333. }
  4334. declare module INSPECTOR {
  4335. interface ISSAORenderingPipelinePropertyGridComponentProps {
  4336. globalState: GlobalState;
  4337. renderPipeline: BABYLON.SSAORenderingPipeline;
  4338. lockObject: LockObject;
  4339. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4340. }
  4341. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  4342. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  4343. render(): JSX.Element;
  4344. }
  4345. }
  4346. declare module INSPECTOR {
  4347. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  4348. globalState: GlobalState;
  4349. renderPipeline: BABYLON.SSAO2RenderingPipeline;
  4350. lockObject: LockObject;
  4351. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4352. }
  4353. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  4354. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  4355. render(): JSX.Element;
  4356. }
  4357. }
  4358. declare module INSPECTOR {
  4359. interface ISkeletonPropertyGridComponentProps {
  4360. globalState: GlobalState;
  4361. skeleton: BABYLON.Skeleton;
  4362. lockObject: LockObject;
  4363. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4364. }
  4365. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  4366. private _skeletonViewersEnabled;
  4367. private _skeletonViewers;
  4368. constructor(props: ISkeletonPropertyGridComponentProps);
  4369. switchSkeletonViewers(): void;
  4370. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  4371. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  4372. onOverrideMeshLink(): void;
  4373. render(): JSX.Element;
  4374. }
  4375. }
  4376. declare module INSPECTOR {
  4377. interface IBonePropertyGridComponentProps {
  4378. globalState: GlobalState;
  4379. bone: BABYLON.Bone;
  4380. lockObject: LockObject;
  4381. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4382. }
  4383. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  4384. constructor(props: IBonePropertyGridComponentProps);
  4385. onTransformNodeLink(): void;
  4386. render(): JSX.Element;
  4387. }
  4388. }
  4389. declare module INSPECTOR {
  4390. interface IDirectionalLightPropertyGridComponentProps {
  4391. globalState: GlobalState;
  4392. light: BABYLON.DirectionalLight;
  4393. lockObject: LockObject;
  4394. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4395. }
  4396. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  4397. constructor(props: IDirectionalLightPropertyGridComponentProps);
  4398. render(): JSX.Element;
  4399. }
  4400. }
  4401. declare module INSPECTOR {
  4402. interface ISpotLightPropertyGridComponentProps {
  4403. globalState: GlobalState;
  4404. light: BABYLON.SpotLight;
  4405. lockObject: LockObject;
  4406. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4407. }
  4408. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  4409. constructor(props: ISpotLightPropertyGridComponentProps);
  4410. render(): JSX.Element;
  4411. }
  4412. }
  4413. declare module INSPECTOR {
  4414. interface ILenstRenderingPipelinePropertyGridComponentProps {
  4415. globalState: GlobalState;
  4416. renderPipeline: BABYLON.LensRenderingPipeline;
  4417. lockObject: LockObject;
  4418. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4419. }
  4420. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  4421. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  4422. render(): JSX.Element;
  4423. }
  4424. }
  4425. declare module INSPECTOR {
  4426. interface IVector4LineComponentProps {
  4427. label: string;
  4428. target: any;
  4429. propertyName: string;
  4430. step?: number;
  4431. onChange?: (newvalue: BABYLON.Vector4) => void;
  4432. useEuler?: boolean;
  4433. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4434. }
  4435. export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
  4436. isExpanded: boolean;
  4437. value: BABYLON.Vector4;
  4438. }> {
  4439. static defaultProps: {
  4440. step: number;
  4441. };
  4442. private _localChange;
  4443. constructor(props: IVector4LineComponentProps);
  4444. getCurrentValue(): any;
  4445. shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
  4446. isExpanded: boolean;
  4447. value: BABYLON.Vector4;
  4448. }): boolean;
  4449. switchExpandState(): void;
  4450. raiseOnPropertyChanged(previousValue: BABYLON.Vector4): void;
  4451. updateVector4(): void;
  4452. updateStateX(value: number): void;
  4453. updateStateY(value: number): void;
  4454. updateStateZ(value: number): void;
  4455. updateStateW(value: number): void;
  4456. render(): JSX.Element;
  4457. }
  4458. }
  4459. declare module INSPECTOR {
  4460. export interface IColor4LineComponentProps {
  4461. label: string;
  4462. target: any;
  4463. propertyName: string;
  4464. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4465. onChange?: () => void;
  4466. isLinear?: boolean;
  4467. }
  4468. export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
  4469. isExpanded: boolean;
  4470. color: BABYLON.Color4;
  4471. }> {
  4472. private _localChange;
  4473. constructor(props: IColor4LineComponentProps);
  4474. shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
  4475. color: BABYLON.Color4;
  4476. }): boolean;
  4477. setPropertyValue(newColor: BABYLON.Color4): void;
  4478. onChange(newValue: string): void;
  4479. switchExpandState(): void;
  4480. raiseOnPropertyChanged(previousValue: BABYLON.Color4): void;
  4481. updateStateR(value: number): void;
  4482. updateStateG(value: number): void;
  4483. updateStateB(value: number): void;
  4484. updateStateA(value: number): void;
  4485. copyToClipboard(): void;
  4486. render(): JSX.Element;
  4487. }
  4488. }
  4489. declare module INSPECTOR {
  4490. interface INodeMaterialPropertyGridComponentProps {
  4491. globalState: GlobalState;
  4492. material: BABYLON.NodeMaterial;
  4493. lockObject: LockObject;
  4494. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4495. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4496. }
  4497. export class NodeMaterialPropertyGridComponent extends React.Component<INodeMaterialPropertyGridComponentProps> {
  4498. private _onDebugSelectionChangeObservable;
  4499. constructor(props: INodeMaterialPropertyGridComponentProps);
  4500. edit(): void;
  4501. renderTextures(): JSX.Element | null;
  4502. renderInputBlock(block: BABYLON.InputBlock): JSX.Element | null;
  4503. renderInputValues(): JSX.Element | null;
  4504. render(): JSX.Element;
  4505. }
  4506. }
  4507. declare module INSPECTOR {
  4508. interface IMultiMaterialPropertyGridComponentProps {
  4509. globalState: GlobalState;
  4510. material: BABYLON.MultiMaterial;
  4511. lockObject: LockObject;
  4512. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4513. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4514. }
  4515. export class MultiMaterialPropertyGridComponent extends React.Component<IMultiMaterialPropertyGridComponentProps> {
  4516. constructor(props: IMultiMaterialPropertyGridComponentProps);
  4517. onMaterialLink(mat: BABYLON.Material): void;
  4518. renderChildMaterial(): JSX.Element;
  4519. render(): JSX.Element;
  4520. }
  4521. }
  4522. declare module INSPECTOR {
  4523. interface IBoxEmitterGridComponentProps {
  4524. globalState: GlobalState;
  4525. emitter: BABYLON.BoxParticleEmitter;
  4526. replaySourceReplacement?: string;
  4527. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4528. }
  4529. export class BoxEmitterGridComponent extends React.Component<IBoxEmitterGridComponentProps> {
  4530. constructor(props: IBoxEmitterGridComponentProps);
  4531. render(): JSX.Element;
  4532. }
  4533. }
  4534. declare module INSPECTOR {
  4535. interface IConeEmitterGridComponentProps {
  4536. globalState: GlobalState;
  4537. emitter: BABYLON.ConeParticleEmitter;
  4538. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4539. replaySourceReplacement?: string;
  4540. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4541. }
  4542. export class ConeEmitterGridComponent extends React.Component<IConeEmitterGridComponentProps> {
  4543. constructor(props: IConeEmitterGridComponentProps);
  4544. render(): JSX.Element;
  4545. }
  4546. }
  4547. declare module INSPECTOR {
  4548. interface ICylinderEmitterGridComponentProps {
  4549. globalState: GlobalState;
  4550. emitter: BABYLON.CylinderParticleEmitter;
  4551. lockObject: LockObject;
  4552. replaySourceReplacement?: string;
  4553. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4554. }
  4555. export class CylinderEmitterGridComponent extends React.Component<ICylinderEmitterGridComponentProps> {
  4556. constructor(props: ICylinderEmitterGridComponentProps);
  4557. render(): JSX.Element;
  4558. }
  4559. }
  4560. declare module INSPECTOR {
  4561. interface IHemisphericEmitterGridComponentProps {
  4562. globalState: GlobalState;
  4563. emitter: BABYLON.HemisphericParticleEmitter;
  4564. lockObject: LockObject;
  4565. replaySourceReplacement?: string;
  4566. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4567. }
  4568. export class HemisphericEmitterGridComponent extends React.Component<IHemisphericEmitterGridComponentProps> {
  4569. constructor(props: IHemisphericEmitterGridComponentProps);
  4570. render(): JSX.Element;
  4571. }
  4572. }
  4573. declare module INSPECTOR {
  4574. interface IPointEmitterGridComponentProps {
  4575. globalState: GlobalState;
  4576. emitter: BABYLON.PointParticleEmitter;
  4577. lockObject: LockObject;
  4578. replaySourceReplacement?: string;
  4579. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4580. }
  4581. export class PointEmitterGridComponent extends React.Component<IPointEmitterGridComponentProps> {
  4582. constructor(props: IPointEmitterGridComponentProps);
  4583. render(): JSX.Element;
  4584. }
  4585. }
  4586. declare module INSPECTOR {
  4587. interface ISphereEmitterGridComponentProps {
  4588. globalState: GlobalState;
  4589. emitter: BABYLON.SphereParticleEmitter;
  4590. lockObject: LockObject;
  4591. replaySourceReplacement?: string;
  4592. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4593. }
  4594. export class SphereEmitterGridComponent extends React.Component<ISphereEmitterGridComponentProps> {
  4595. constructor(props: ISphereEmitterGridComponentProps);
  4596. render(): JSX.Element;
  4597. }
  4598. }
  4599. declare module INSPECTOR {
  4600. interface IMeshPickerComponentProps {
  4601. globalState: GlobalState;
  4602. target: any;
  4603. property: string;
  4604. scene: BABYLON.Scene;
  4605. label: string;
  4606. replaySourceReplacement?: string;
  4607. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4608. }
  4609. export class MeshPickerComponent extends React.Component<IMeshPickerComponentProps> {
  4610. constructor(props: IMeshPickerComponentProps);
  4611. render(): JSX.Element;
  4612. }
  4613. }
  4614. declare module INSPECTOR {
  4615. interface IMeshEmitterGridComponentProps {
  4616. globalState: GlobalState;
  4617. emitter: BABYLON.MeshParticleEmitter;
  4618. scene: BABYLON.Scene;
  4619. lockObject: LockObject;
  4620. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4621. replaySourceReplacement?: string;
  4622. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4623. }
  4624. export class MeshEmitterGridComponent extends React.Component<IMeshEmitterGridComponentProps> {
  4625. constructor(props: IMeshEmitterGridComponentProps);
  4626. render(): JSX.Element;
  4627. }
  4628. }
  4629. declare module INSPECTOR {
  4630. interface IFactorGradientStepGridComponent {
  4631. globalState: GlobalState;
  4632. gradient: BABYLON.FactorGradient;
  4633. lockObject: LockObject;
  4634. lineIndex: number;
  4635. onDelete: () => void;
  4636. onUpdateGradient: () => void;
  4637. onCheckForReOrder: () => void;
  4638. host: BABYLON.IParticleSystem;
  4639. codeRecorderPropertyName: string;
  4640. }
  4641. export class FactorGradientStepGridComponent extends React.Component<IFactorGradientStepGridComponent, {
  4642. gradient: number;
  4643. factor1: string;
  4644. factor2?: string;
  4645. }> {
  4646. constructor(props: IFactorGradientStepGridComponent);
  4647. shouldComponentUpdate(nextProps: IFactorGradientStepGridComponent, nextState: {
  4648. gradient: number;
  4649. factor1: string;
  4650. factor2?: string;
  4651. }): boolean;
  4652. updateFactor1(valueString: string): void;
  4653. updateFactor2(valueString: string): void;
  4654. updateGradient(gradient: number): void;
  4655. onPointerUp(): void;
  4656. lock(): void;
  4657. unlock(): void;
  4658. render(): JSX.Element;
  4659. }
  4660. }
  4661. declare module INSPECTOR {
  4662. interface IColorGradientStepGridComponent {
  4663. globalState: GlobalState;
  4664. gradient: BABYLON.ColorGradient | BABYLON.Color3Gradient;
  4665. lockObject: LockObject;
  4666. lineIndex: number;
  4667. isColor3: boolean;
  4668. onDelete: () => void;
  4669. onUpdateGradient: () => void;
  4670. onCheckForReOrder: () => void;
  4671. host: BABYLON.IParticleSystem;
  4672. codeRecorderPropertyName: string;
  4673. }
  4674. export class ColorGradientStepGridComponent extends React.Component<IColorGradientStepGridComponent, {
  4675. gradient: number;
  4676. }> {
  4677. constructor(props: IColorGradientStepGridComponent);
  4678. updateColor1(color: string): void;
  4679. updateColor2(color: string): void;
  4680. updateGradient(gradient: number): void;
  4681. onPointerUp(): void;
  4682. lock(): void;
  4683. unlock(): void;
  4684. render(): JSX.Element;
  4685. }
  4686. }
  4687. declare module INSPECTOR {
  4688. interface ILinkButtonComponentProps {
  4689. label: string;
  4690. buttonLabel: string;
  4691. url?: string;
  4692. onClick: () => void;
  4693. onIconClick?: () => void;
  4694. }
  4695. export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
  4696. constructor(props: ILinkButtonComponentProps);
  4697. onLink(): void;
  4698. render(): JSX.Element;
  4699. }
  4700. }
  4701. declare module INSPECTOR {
  4702. export enum GradientGridMode {
  4703. Factor = 0,
  4704. BABYLON.Color3 = 1,
  4705. BABYLON.Color4 = 2
  4706. }
  4707. interface IValueGradientGridComponent {
  4708. globalState: GlobalState;
  4709. label: string;
  4710. gradients: BABYLON.Nullable<Array<BABYLON.IValueGradient>>;
  4711. lockObject: LockObject;
  4712. docLink?: string;
  4713. mode: GradientGridMode;
  4714. host: BABYLON.IParticleSystem;
  4715. codeRecorderPropertyName: string;
  4716. onCreateRequired: () => void;
  4717. }
  4718. export class ValueGradientGridComponent extends React.Component<IValueGradientGridComponent> {
  4719. constructor(props: IValueGradientGridComponent);
  4720. deleteStep(step: BABYLON.IValueGradient): void;
  4721. addNewStep(): void;
  4722. checkForReOrder(): void;
  4723. updateAndSync(): void;
  4724. render(): JSX.Element;
  4725. }
  4726. }
  4727. declare module INSPECTOR {
  4728. interface IParticleSystemPropertyGridComponentProps {
  4729. globalState: GlobalState;
  4730. system: BABYLON.IParticleSystem;
  4731. lockObject: LockObject;
  4732. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4733. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4734. }
  4735. export class ParticleSystemPropertyGridComponent extends React.Component<IParticleSystemPropertyGridComponentProps> {
  4736. private _snippetUrl;
  4737. constructor(props: IParticleSystemPropertyGridComponentProps);
  4738. renderEmitter(): JSX.Element | null;
  4739. raiseOnPropertyChanged(property: string, newValue: any, previousValue: any): void;
  4740. renderControls(): JSX.Element;
  4741. saveToFile(): void;
  4742. loadFromFile(file: File): void;
  4743. loadFromSnippet(): void;
  4744. saveToSnippet(): void;
  4745. render(): JSX.Element;
  4746. }
  4747. }
  4748. declare module INSPECTOR {
  4749. interface ISpriteManagerPropertyGridComponentProps {
  4750. globalState: GlobalState;
  4751. spriteManager: BABYLON.SpriteManager;
  4752. lockObject: LockObject;
  4753. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4754. }
  4755. export class SpriteManagerPropertyGridComponent extends React.Component<ISpriteManagerPropertyGridComponentProps> {
  4756. constructor(props: ISpriteManagerPropertyGridComponentProps);
  4757. render(): JSX.Element;
  4758. }
  4759. }
  4760. declare module INSPECTOR {
  4761. interface ISpritePropertyGridComponentProps {
  4762. globalState: GlobalState;
  4763. sprite: BABYLON.Sprite;
  4764. lockObject: LockObject;
  4765. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4766. }
  4767. export class SpritePropertyGridComponent extends React.Component<ISpritePropertyGridComponentProps> {
  4768. constructor(props: ISpritePropertyGridComponentProps);
  4769. render(): JSX.Element;
  4770. }
  4771. }
  4772. declare module INSPECTOR {
  4773. export class PropertyGridTabComponent extends PaneComponent {
  4774. private _timerIntervalId;
  4775. private _lockObject;
  4776. constructor(props: IPaneComponentProps);
  4777. timerRefresh(): void;
  4778. componentDidMount(): void;
  4779. componentWillUnmount(): void;
  4780. render(): JSX.Element | null;
  4781. }
  4782. }
  4783. declare module INSPECTOR {
  4784. export interface IHeaderComponentProps {
  4785. title: string;
  4786. handleBack?: boolean;
  4787. noExpand?: boolean;
  4788. noClose?: boolean;
  4789. noCommands?: boolean;
  4790. onPopup: () => void;
  4791. onClose: () => void;
  4792. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4793. }
  4794. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  4795. isBackVisible: boolean;
  4796. }> {
  4797. private _backStack;
  4798. private _onSelectionChangeObserver;
  4799. constructor(props: IHeaderComponentProps);
  4800. componentDidMount(): void;
  4801. componentWillUnmount(): void;
  4802. goBack(): void;
  4803. renderLogo(): JSX.Element | null;
  4804. render(): JSX.Element;
  4805. }
  4806. }
  4807. declare module INSPECTOR {
  4808. interface IMessageLineComponentProps {
  4809. text: string;
  4810. color?: string;
  4811. }
  4812. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  4813. constructor(props: IMessageLineComponentProps);
  4814. render(): JSX.Element;
  4815. }
  4816. }
  4817. declare module INSPECTOR {
  4818. interface IGLTFComponentProps {
  4819. scene: BABYLON.Scene;
  4820. globalState: GlobalState;
  4821. }
  4822. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  4823. private _onValidationResultsUpdatedObserver;
  4824. constructor(props: IGLTFComponentProps);
  4825. openValidationDetails(): void;
  4826. prepareText(singularForm: string, count: number): string;
  4827. componentDidMount(): void;
  4828. componentWillUnmount(): void;
  4829. renderValidation(): JSX.Element | null;
  4830. render(): JSX.Element;
  4831. }
  4832. }
  4833. declare module INSPECTOR {
  4834. interface IFileMultipleButtonLineComponentProps {
  4835. label: string;
  4836. onClick: (event: any) => void;
  4837. accept: string;
  4838. }
  4839. export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
  4840. private static _IDGenerator;
  4841. private _id;
  4842. private uploadInputRef;
  4843. constructor(props: IFileMultipleButtonLineComponentProps);
  4844. onChange(evt: any): void;
  4845. render(): JSX.Element;
  4846. }
  4847. }
  4848. declare module INSPECTOR {
  4849. export class ToolsTabComponent extends PaneComponent {
  4850. private _videoRecorder;
  4851. private _screenShotSize;
  4852. private _gifOptions;
  4853. private _useWidthHeight;
  4854. private _isExporting;
  4855. private _gifWorkerBlob;
  4856. private _gifRecorder;
  4857. private _previousRenderingScale;
  4858. private _crunchingGIF;
  4859. constructor(props: IPaneComponentProps);
  4860. componentDidMount(): void;
  4861. componentWillUnmount(): void;
  4862. captureScreenshot(): void;
  4863. captureRender(): void;
  4864. recordVideo(): void;
  4865. recordGIFInternal(): void;
  4866. recordGIF(): void;
  4867. importAnimations(event: any): void;
  4868. shouldExport(node: BABYLON.Node): boolean;
  4869. exportGLTF(): void;
  4870. exportBabylon(): void;
  4871. createEnvTexture(): void;
  4872. resetReplay(): void;
  4873. exportReplay(): void;
  4874. render(): JSX.Element | null;
  4875. }
  4876. }
  4877. declare module INSPECTOR {
  4878. export class SettingsTabComponent extends PaneComponent {
  4879. constructor(props: IPaneComponentProps);
  4880. render(): JSX.Element;
  4881. }
  4882. }
  4883. declare module INSPECTOR {
  4884. interface IActionTabsComponentProps {
  4885. scene?: BABYLON.Scene;
  4886. noCommands?: boolean;
  4887. noHeader?: boolean;
  4888. noExpand?: boolean;
  4889. noClose?: boolean;
  4890. popupMode?: boolean;
  4891. onPopup?: () => void;
  4892. onClose?: () => void;
  4893. globalState?: GlobalState;
  4894. initialTab?: BABYLON.DebugLayerTab;
  4895. }
  4896. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  4897. selectedEntity: any;
  4898. selectedIndex: number;
  4899. }> {
  4900. private _onSelectionChangeObserver;
  4901. private _onTabChangedObserver;
  4902. private _once;
  4903. constructor(props: IActionTabsComponentProps);
  4904. componentDidMount(): void;
  4905. componentWillUnmount(): void;
  4906. changeSelectedTab(index: number): void;
  4907. renderContent(): JSX.Element | null;
  4908. onClose(): void;
  4909. onPopup(): void;
  4910. render(): JSX.Element;
  4911. }
  4912. }
  4913. declare module INSPECTOR {
  4914. interface ITreeItemLabelComponentProps {
  4915. label: string;
  4916. onClick?: () => void;
  4917. color: string;
  4918. }
  4919. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  4920. constructor(props: ITreeItemLabelComponentProps);
  4921. onClick(): void;
  4922. render(): JSX.Element;
  4923. }
  4924. }
  4925. declare module INSPECTOR {
  4926. interface IExtensionsComponentProps {
  4927. target: any;
  4928. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  4929. }
  4930. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  4931. popupVisible: boolean;
  4932. }> {
  4933. private _popup;
  4934. private extensionRef;
  4935. constructor(props: IExtensionsComponentProps);
  4936. showPopup(): void;
  4937. componentDidMount(): void;
  4938. componentDidUpdate(): void;
  4939. render(): JSX.Element | null;
  4940. }
  4941. }
  4942. declare module INSPECTOR {
  4943. interface IMeshTreeItemComponentProps {
  4944. mesh: BABYLON.AbstractMesh;
  4945. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  4946. onClick: () => void;
  4947. globalState: GlobalState;
  4948. }
  4949. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  4950. isBoundingBoxEnabled: boolean;
  4951. isVisible: boolean;
  4952. }> {
  4953. constructor(props: IMeshTreeItemComponentProps);
  4954. showBoundingBox(): void;
  4955. switchVisibility(): void;
  4956. render(): JSX.Element;
  4957. }
  4958. }
  4959. declare module INSPECTOR {
  4960. interface ICameraTreeItemComponentProps {
  4961. camera: BABYLON.Camera;
  4962. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  4963. onClick: () => void;
  4964. }
  4965. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  4966. isActive: boolean;
  4967. }> {
  4968. private _onBeforeRenderObserver;
  4969. constructor(props: ICameraTreeItemComponentProps);
  4970. setActive(): void;
  4971. componentDidMount(): void;
  4972. componentWillUnmount(): void;
  4973. render(): JSX.Element;
  4974. }
  4975. }
  4976. declare module INSPECTOR {
  4977. interface ILightTreeItemComponentProps {
  4978. light: BABYLON.Light;
  4979. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  4980. onClick: () => void;
  4981. globalState: GlobalState;
  4982. }
  4983. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  4984. isEnabled: boolean;
  4985. isGizmoEnabled: boolean;
  4986. }> {
  4987. constructor(props: ILightTreeItemComponentProps);
  4988. switchIsEnabled(): void;
  4989. toggleGizmo(): void;
  4990. render(): JSX.Element;
  4991. }
  4992. }
  4993. declare module INSPECTOR {
  4994. interface IMaterialTreeItemComponentProps {
  4995. material: BABYLON.Material;
  4996. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  4997. onClick: () => void;
  4998. }
  4999. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  5000. constructor(props: IMaterialTreeItemComponentProps);
  5001. render(): JSX.Element;
  5002. }
  5003. }
  5004. declare module INSPECTOR {
  5005. interface ITextureTreeItemComponentProps {
  5006. texture: BABYLON.Texture;
  5007. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5008. onClick: () => void;
  5009. }
  5010. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  5011. constructor(props: ITextureTreeItemComponentProps);
  5012. render(): JSX.Element;
  5013. }
  5014. }
  5015. declare module INSPECTOR {
  5016. interface ITransformNodeItemComponentProps {
  5017. transformNode: BABYLON.TransformNode;
  5018. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5019. onClick: () => void;
  5020. }
  5021. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  5022. constructor(props: ITransformNodeItemComponentProps);
  5023. render(): JSX.Element;
  5024. }
  5025. }
  5026. declare module INSPECTOR {
  5027. interface IControlTreeItemComponentProps {
  5028. control: BABYLON.GUI.Control;
  5029. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5030. onClick: () => void;
  5031. }
  5032. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  5033. isActive: boolean;
  5034. isVisible: boolean;
  5035. }> {
  5036. constructor(props: IControlTreeItemComponentProps);
  5037. highlight(): void;
  5038. switchVisibility(): void;
  5039. render(): JSX.Element;
  5040. }
  5041. }
  5042. declare module INSPECTOR {
  5043. interface IAdvancedDynamicTextureTreeItemComponentProps {
  5044. texture: BABYLON.GUI.AdvancedDynamicTexture;
  5045. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5046. onSelectionChangedObservable?: BABYLON.Observable<any>;
  5047. onClick: () => void;
  5048. }
  5049. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  5050. isInPickingMode: boolean;
  5051. }> {
  5052. private _onControlPickedObserver;
  5053. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  5054. componentWillUnmount(): void;
  5055. onPickingMode(): void;
  5056. render(): JSX.Element;
  5057. }
  5058. }
  5059. declare module INSPECTOR {
  5060. interface IAnimationGroupItemComponentProps {
  5061. animationGroup: BABYLON.AnimationGroup;
  5062. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5063. onClick: () => void;
  5064. }
  5065. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  5066. constructor(props: IAnimationGroupItemComponentProps);
  5067. render(): JSX.Element;
  5068. }
  5069. }
  5070. declare module INSPECTOR {
  5071. interface IPostProcessItemComponentProps {
  5072. postProcess: BABYLON.PostProcess;
  5073. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5074. onClick: () => void;
  5075. }
  5076. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  5077. constructor(props: IPostProcessItemComponentProps);
  5078. render(): JSX.Element;
  5079. }
  5080. }
  5081. declare module INSPECTOR {
  5082. interface IRenderPipelineItemComponenttProps {
  5083. renderPipeline: BABYLON.PostProcessRenderPipeline;
  5084. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5085. onClick: () => void;
  5086. }
  5087. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  5088. constructor(props: IRenderPipelineItemComponenttProps);
  5089. render(): JSX.Element;
  5090. }
  5091. }
  5092. declare module INSPECTOR {
  5093. interface ISkeletonTreeItemComponentProps {
  5094. skeleton: BABYLON.Skeleton;
  5095. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5096. onClick: () => void;
  5097. }
  5098. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  5099. constructor(props: ISkeletonTreeItemComponentProps);
  5100. render(): JSX.Element;
  5101. }
  5102. }
  5103. declare module INSPECTOR {
  5104. interface IBoneTreeItemComponenttProps {
  5105. bone: BABYLON.Bone;
  5106. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5107. onClick: () => void;
  5108. }
  5109. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  5110. constructor(props: IBoneTreeItemComponenttProps);
  5111. render(): JSX.Element;
  5112. }
  5113. }
  5114. declare module INSPECTOR {
  5115. interface IParticleSystemTreeItemComponentProps {
  5116. system: BABYLON.IParticleSystem;
  5117. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5118. onClick: () => void;
  5119. }
  5120. export class ParticleSystemTreeItemComponent extends React.Component<IParticleSystemTreeItemComponentProps> {
  5121. constructor(props: IParticleSystemTreeItemComponentProps);
  5122. render(): JSX.Element;
  5123. }
  5124. }
  5125. declare module INSPECTOR {
  5126. interface ISpriteManagerTreeItemComponentProps {
  5127. spriteManager: BABYLON.SpriteManager;
  5128. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5129. onClick: () => void;
  5130. }
  5131. export class SpriteManagerTreeItemComponent extends React.Component<ISpriteManagerTreeItemComponentProps> {
  5132. constructor(props: ISpriteManagerTreeItemComponentProps);
  5133. render(): JSX.Element;
  5134. }
  5135. }
  5136. declare module INSPECTOR {
  5137. interface ISpriteTreeItemComponentProps {
  5138. sprite: BABYLON.Sprite;
  5139. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5140. onClick: () => void;
  5141. }
  5142. export class SpriteTreeItemComponent extends React.Component<ISpriteTreeItemComponentProps> {
  5143. constructor(props: ISpriteTreeItemComponentProps);
  5144. render(): JSX.Element;
  5145. }
  5146. }
  5147. declare module INSPECTOR {
  5148. interface ITreeItemSpecializedComponentProps {
  5149. label: string;
  5150. entity?: any;
  5151. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5152. globalState: GlobalState;
  5153. onClick?: () => void;
  5154. }
  5155. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  5156. constructor(props: ITreeItemSpecializedComponentProps);
  5157. onClick(): void;
  5158. render(): JSX.Element;
  5159. }
  5160. }
  5161. declare module INSPECTOR {
  5162. export class Tools {
  5163. static LookForItem(item: any, selectedEntity: any): boolean;
  5164. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  5165. static SortAndFilter(parent: any, items: any[]): any[];
  5166. }
  5167. }
  5168. declare module INSPECTOR {
  5169. export interface ITreeItemSelectableComponentProps {
  5170. entity: any;
  5171. selectedEntity?: any;
  5172. mustExpand?: boolean;
  5173. offset: number;
  5174. globalState: GlobalState;
  5175. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5176. filter: BABYLON.Nullable<string>;
  5177. }
  5178. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  5179. isExpanded: boolean;
  5180. isSelected: boolean;
  5181. }> {
  5182. private _wasSelected;
  5183. constructor(props: ITreeItemSelectableComponentProps);
  5184. switchExpandedState(): void;
  5185. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  5186. isExpanded: boolean;
  5187. isSelected: boolean;
  5188. }): boolean;
  5189. scrollIntoView(): void;
  5190. componentDidMount(): void;
  5191. componentDidUpdate(): void;
  5192. onSelect(): void;
  5193. renderChildren(): JSX.Element[] | null;
  5194. render(): JSX.Element | null;
  5195. }
  5196. }
  5197. declare module INSPECTOR {
  5198. export interface ITreeItemComponentProps {
  5199. items?: BABYLON.Nullable<any[]>;
  5200. label: string;
  5201. offset: number;
  5202. filter: BABYLON.Nullable<string>;
  5203. globalState: GlobalState;
  5204. entity?: any;
  5205. selectedEntity: any;
  5206. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5207. contextMenuItems?: {
  5208. label: string;
  5209. action: () => void;
  5210. }[];
  5211. }
  5212. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  5213. isExpanded: boolean;
  5214. mustExpand: boolean;
  5215. }> {
  5216. static _ContextMenuUniqueIdGenerator: number;
  5217. constructor(props: ITreeItemComponentProps);
  5218. switchExpandedState(): void;
  5219. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  5220. isExpanded: boolean;
  5221. }): boolean;
  5222. expandAll(expand: boolean): void;
  5223. renderContextMenu(): JSX.Element | null;
  5224. render(): JSX.Element;
  5225. }
  5226. }
  5227. declare module INSPECTOR {
  5228. interface ISceneTreeItemComponentProps {
  5229. scene: BABYLON.Scene;
  5230. onRefresh: () => void;
  5231. selectedEntity?: any;
  5232. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5233. onSelectionChangedObservable?: BABYLON.Observable<any>;
  5234. globalState: GlobalState;
  5235. }
  5236. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  5237. isSelected: boolean;
  5238. isInPickingMode: boolean;
  5239. gizmoMode: number;
  5240. }> {
  5241. private _gizmoLayerOnPointerObserver;
  5242. private _onPointerObserver;
  5243. private _onSelectionChangeObserver;
  5244. private _selectedEntity;
  5245. private _posDragEnd;
  5246. private _scaleDragEnd;
  5247. private _rotateDragEnd;
  5248. constructor(props: ISceneTreeItemComponentProps);
  5249. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  5250. isSelected: boolean;
  5251. isInPickingMode: boolean;
  5252. }): boolean;
  5253. componentDidMount(): void;
  5254. componentWillUnmount(): void;
  5255. onSelect(): void;
  5256. onPickingMode(): void;
  5257. setGizmoMode(mode: number): void;
  5258. render(): JSX.Element;
  5259. }
  5260. }
  5261. declare module INSPECTOR {
  5262. interface ISceneExplorerFilterComponentProps {
  5263. onFilter: (filter: string) => void;
  5264. }
  5265. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  5266. constructor(props: ISceneExplorerFilterComponentProps);
  5267. render(): JSX.Element;
  5268. }
  5269. interface ISceneExplorerComponentProps {
  5270. scene: BABYLON.Scene;
  5271. noCommands?: boolean;
  5272. noHeader?: boolean;
  5273. noExpand?: boolean;
  5274. noClose?: boolean;
  5275. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5276. globalState: GlobalState;
  5277. popupMode?: boolean;
  5278. onPopup?: () => void;
  5279. onClose?: () => void;
  5280. }
  5281. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  5282. filter: BABYLON.Nullable<string>;
  5283. selectedEntity: any;
  5284. scene: BABYLON.Scene;
  5285. }> {
  5286. private _onSelectionChangeObserver;
  5287. private _onSelectionRenamedObserver;
  5288. private _onNewSceneAddedObserver;
  5289. private _onNewSceneObserver;
  5290. private sceneExplorerRef;
  5291. private _once;
  5292. private _hooked;
  5293. private sceneMutationFunc;
  5294. constructor(props: ISceneExplorerComponentProps);
  5295. processMutation(): void;
  5296. componentDidMount(): void;
  5297. componentWillUnmount(): void;
  5298. filterContent(filter: string): void;
  5299. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  5300. previousOne?: any;
  5301. found?: boolean;
  5302. }): boolean;
  5303. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  5304. renderContent(): JSX.Element | null;
  5305. onClose(): void;
  5306. onPopup(): void;
  5307. render(): JSX.Element;
  5308. }
  5309. }
  5310. declare module INSPECTOR {
  5311. interface IEmbedHostComponentProps {
  5312. scene: BABYLON.Scene;
  5313. globalState: GlobalState;
  5314. popupMode: boolean;
  5315. noClose?: boolean;
  5316. noExpand?: boolean;
  5317. onClose: () => void;
  5318. onPopup: () => void;
  5319. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  5320. initialTab?: BABYLON.DebugLayerTab;
  5321. }
  5322. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  5323. private _once;
  5324. private splitRef;
  5325. private topPartRef;
  5326. private bottomPartRef;
  5327. constructor(props: IEmbedHostComponentProps);
  5328. componentDidMount(): void;
  5329. renderContent(): JSX.Element;
  5330. render(): JSX.Element;
  5331. }
  5332. }
  5333. declare module INSPECTOR {
  5334. export class Inspector {
  5335. private static _SceneExplorerHost;
  5336. private static _ActionTabsHost;
  5337. private static _EmbedHost;
  5338. private static _NewCanvasContainer;
  5339. private static _SceneExplorerWindow;
  5340. private static _ActionTabsWindow;
  5341. private static _EmbedHostWindow;
  5342. private static _Scene;
  5343. private static _OpenedPane;
  5344. private static _OnBeforeRenderObserver;
  5345. static OnSelectionChangeObservable: BABYLON.Observable<any>;
  5346. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  5347. private static _GlobalState;
  5348. static MarkLineContainerTitleForHighlighting(title: string): void;
  5349. private static _CopyStyles;
  5350. private static _CreateSceneExplorer;
  5351. private static _CreateActionTabs;
  5352. private static _CreateEmbedHost;
  5353. static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
  5354. static get IsVisible(): boolean;
  5355. static EarlyAttachToLoader(): void;
  5356. static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
  5357. static _SetNewScene(scene: BABYLON.Scene): void;
  5358. static _CreateCanvasContainer(parentControl: HTMLElement): void;
  5359. private static _DestroyCanvasContainer;
  5360. private static _Cleanup;
  5361. private static _RemoveElementFromDOM;
  5362. static Hide(): void;
  5363. }
  5364. }