babylon.inspector.module.d.ts 349 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347
  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/replayRecorder" {
  12. import { Scene } from 'babylonjs/scene';
  13. export class ReplayRecorder {
  14. private _sceneRecorder;
  15. private _isRecording;
  16. get isRecording(): boolean;
  17. cancel(): void;
  18. trackScene(scene: Scene): void;
  19. applyDelta(json: any, scene: Scene): void;
  20. export(): void;
  21. }
  22. }
  23. declare module "babylonjs-inspector/components/globalState" {
  24. import { IGLTFValidationResults } from "babylonjs-gltf2interface";
  25. import { Nullable } from "babylonjs/types";
  26. import { Observable, Observer } from "babylonjs/Misc/observable";
  27. import { ISceneLoaderPlugin, ISceneLoaderPluginAsync } from "babylonjs/Loading/sceneLoader";
  28. import { Scene } from "babylonjs/scene";
  29. import { Light } from "babylonjs/Lights/light";
  30. import { Camera } from "babylonjs/Cameras/camera";
  31. import { LightGizmo } from "babylonjs/Gizmos/lightGizmo";
  32. import { CameraGizmo } from "babylonjs/Gizmos/cameraGizmo";
  33. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  34. import { ReplayRecorder } from "babylonjs-inspector/components/replayRecorder";
  35. export class GlobalState {
  36. onSelectionChangedObservable: Observable<any>;
  37. onPropertyChangedObservable: Observable<PropertyChangedEvent>;
  38. onInspectorClosedObservable: Observable<Scene>;
  39. onTabChangedObservable: Observable<number>;
  40. onSelectionRenamedObservable: Observable<void>;
  41. onPluginActivatedObserver: Nullable<Observer<ISceneLoaderPlugin | ISceneLoaderPluginAsync>>;
  42. onNewSceneObservable: Observable<Scene>;
  43. sceneImportDefaults: {
  44. [key: string]: any;
  45. };
  46. validationResults: Nullable<IGLTFValidationResults>;
  47. onValidationResultsUpdatedObservable: Observable<Nullable<IGLTFValidationResults>>;
  48. onExtensionLoadedObservable: Observable<import("babylonjs-loaders/glTF/index").IGLTFLoaderExtension>;
  49. glTFLoaderExtensionDefaults: {
  50. [name: string]: {
  51. [key: string]: any;
  52. };
  53. };
  54. glTFLoaderDefaults: {
  55. [key: string]: any;
  56. };
  57. glTFLoaderExtensions: {
  58. [key: string]: import("babylonjs-loaders/glTF/index").IGLTFLoaderExtension;
  59. };
  60. blockMutationUpdates: boolean;
  61. selectedLineContainerTitles: Array<string>;
  62. selectedLineContainerTitlesNoFocus: Array<string>;
  63. recorder: ReplayRecorder;
  64. private _onlyUseEulers;
  65. get onlyUseEulers(): boolean;
  66. set onlyUseEulers(value: boolean);
  67. private _ignoreBackfacesForPicking;
  68. get ignoreBackfacesForPicking(): boolean;
  69. set ignoreBackfacesForPicking(value: boolean);
  70. init(propertyChangedObservable: Observable<PropertyChangedEvent>): void;
  71. prepareGLTFPlugin(loader: import("babylonjs-loaders/glTF/index").GLTFFileLoader): void;
  72. lightGizmos: Array<LightGizmo>;
  73. enableLightGizmo(light: Light, enable?: boolean): void;
  74. cameraGizmos: Array<CameraGizmo>;
  75. enableCameraGizmo(camera: Camera, enable?: boolean): void;
  76. }
  77. }
  78. declare module "babylonjs-inspector/components/actionTabs/paneComponent" {
  79. import * as React from "react";
  80. import { Observable } from "babylonjs/Misc/observable";
  81. import { Scene } from "babylonjs/scene";
  82. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  83. import { GlobalState } from "babylonjs-inspector/components/globalState";
  84. export interface IPaneComponentProps {
  85. title: string;
  86. scene: Scene;
  87. selectedEntity?: any;
  88. onSelectionChangedObservable?: Observable<any>;
  89. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  90. globalState: GlobalState;
  91. }
  92. export class PaneComponent extends React.Component<IPaneComponentProps, {
  93. tag: any;
  94. }> {
  95. constructor(props: IPaneComponentProps);
  96. render(): JSX.Element | null;
  97. }
  98. }
  99. declare module "babylonjs-inspector/components/actionTabs/tabsComponent" {
  100. import * as React from "react";
  101. import { PaneComponent } from "babylonjs-inspector/components/actionTabs/paneComponent";
  102. interface ITabsComponentProps {
  103. children: any[];
  104. selectedIndex: number;
  105. onSelectedIndexChange: (value: number) => void;
  106. }
  107. export class TabsComponent extends React.Component<ITabsComponentProps> {
  108. constructor(props: ITabsComponentProps);
  109. onSelect(index: number): void;
  110. renderLabel(child: PaneComponent, index: number): JSX.Element;
  111. render(): JSX.Element;
  112. }
  113. }
  114. declare module "babylonjs-inspector/components/actionTabs/lines/textLineComponent" {
  115. import * as React from "react";
  116. interface ITextLineComponentProps {
  117. label?: string;
  118. value?: string;
  119. color?: string;
  120. underline?: boolean;
  121. onLink?: () => void;
  122. url?: string;
  123. ignoreValue?: boolean;
  124. additionalClass?: string;
  125. }
  126. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  127. constructor(props: ITextLineComponentProps);
  128. onLink(): void;
  129. renderContent(): JSX.Element | null;
  130. render(): JSX.Element;
  131. }
  132. }
  133. declare module "babylonjs-inspector/components/actionTabs/lineContainerComponent" {
  134. import * as React from "react";
  135. import { GlobalState } from "babylonjs-inspector/components/globalState";
  136. interface ILineContainerComponentProps {
  137. globalState?: GlobalState;
  138. title: string;
  139. children: any[] | any;
  140. closed?: boolean;
  141. }
  142. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  143. isExpanded: boolean;
  144. isHighlighted: boolean;
  145. }> {
  146. constructor(props: ILineContainerComponentProps);
  147. switchExpandedState(): void;
  148. componentDidMount(): void;
  149. renderHeader(): JSX.Element;
  150. render(): JSX.Element;
  151. }
  152. }
  153. declare module "babylonjs-inspector/components/actionTabs/lines/valueLineComponent" {
  154. import * as React from "react";
  155. interface IValueLineComponentProps {
  156. label: string;
  157. value: number;
  158. color?: string;
  159. fractionDigits?: number;
  160. units?: string;
  161. }
  162. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  163. constructor(props: IValueLineComponentProps);
  164. render(): JSX.Element;
  165. }
  166. }
  167. declare module "babylonjs-inspector/components/actionTabs/lines/booleanLineComponent" {
  168. import * as React from "react";
  169. export interface IBooleanLineComponentProps {
  170. label: string;
  171. value: boolean;
  172. }
  173. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  174. constructor(props: IBooleanLineComponentProps);
  175. render(): JSX.Element;
  176. }
  177. }
  178. declare module "babylonjs-inspector/components/actionTabs/tabs/statisticsTabComponent" {
  179. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  180. export class StatisticsTabComponent extends PaneComponent {
  181. private _sceneInstrumentation;
  182. private _engineInstrumentation;
  183. private _timerIntervalId;
  184. constructor(props: IPaneComponentProps);
  185. componentWillUnmount(): void;
  186. render(): JSX.Element | null;
  187. }
  188. }
  189. declare module "babylonjs-inspector/components/actionTabs/lines/checkBoxLineComponent" {
  190. import * as React from "react";
  191. import { Observable } from "babylonjs/Misc/observable";
  192. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  193. export interface ICheckBoxLineComponentProps {
  194. label: string;
  195. target?: any;
  196. propertyName?: string;
  197. isSelected?: () => boolean;
  198. onSelect?: (value: boolean) => void;
  199. onValueChanged?: () => void;
  200. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  201. }
  202. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  203. isSelected: boolean;
  204. }> {
  205. private static _UniqueIdSeed;
  206. private _uniqueId;
  207. private _localChange;
  208. constructor(props: ICheckBoxLineComponentProps);
  209. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  210. isSelected: boolean;
  211. }): boolean;
  212. onChange(): void;
  213. render(): JSX.Element;
  214. }
  215. }
  216. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent" {
  217. import * as React from "react";
  218. import { Scene } from "babylonjs/scene";
  219. import { GlobalState } from "babylonjs-inspector/components/globalState";
  220. interface IRenderGridPropertyGridComponentProps {
  221. globalState: GlobalState;
  222. scene: Scene;
  223. }
  224. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  225. isEnabled: boolean;
  226. }> {
  227. private _gridMesh;
  228. constructor(props: IRenderGridPropertyGridComponentProps);
  229. componentDidMount(): void;
  230. addOrRemoveGrid(): void;
  231. render(): JSX.Element;
  232. }
  233. }
  234. declare module "babylonjs-inspector/components/actionTabs/tabs/debugTabComponent" {
  235. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  236. export class DebugTabComponent extends PaneComponent {
  237. private _physicsViewersEnabled;
  238. constructor(props: IPaneComponentProps);
  239. switchPhysicsViewers(): void;
  240. render(): JSX.Element | null;
  241. }
  242. }
  243. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject" {
  244. /**
  245. * Class used to provide lock mechanism
  246. */
  247. export class LockObject {
  248. /**
  249. * Gets or set if the lock is engaged
  250. */
  251. lock: boolean;
  252. }
  253. }
  254. declare module "babylonjs-inspector/components/actionTabs/lines/floatLineComponent" {
  255. import * as React from "react";
  256. import { Observable } from "babylonjs/Misc/observable";
  257. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  258. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  259. interface IFloatLineComponentProps {
  260. label: string;
  261. target: any;
  262. propertyName: string;
  263. lockObject?: LockObject;
  264. onChange?: (newValue: number) => void;
  265. isInteger?: boolean;
  266. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  267. additionalClass?: string;
  268. step?: string;
  269. digits?: number;
  270. useEuler?: boolean;
  271. min?: number;
  272. max?: number;
  273. smallUI?: boolean;
  274. onEnter?: (newValue: number) => void;
  275. }
  276. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  277. value: string;
  278. }> {
  279. private _localChange;
  280. private _store;
  281. constructor(props: IFloatLineComponentProps);
  282. componentWillUnmount(): void;
  283. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  284. value: string;
  285. }): boolean;
  286. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  287. updateValue(valueString: string): void;
  288. lock(): void;
  289. unlock(): void;
  290. render(): JSX.Element;
  291. }
  292. }
  293. declare module "babylonjs-inspector/components/actionTabs/lines/sliderLineComponent" {
  294. import * as React from "react";
  295. import { Observable } from "babylonjs/Misc/observable";
  296. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  297. interface ISliderLineComponentProps {
  298. label: string;
  299. target?: any;
  300. propertyName?: string;
  301. minimum: number;
  302. maximum: number;
  303. step: number;
  304. directValue?: number;
  305. useEuler?: boolean;
  306. onChange?: (value: number) => void;
  307. onInput?: (value: number) => void;
  308. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  309. decimalCount?: number;
  310. margin?: boolean;
  311. }
  312. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  313. value: number;
  314. }> {
  315. private _localChange;
  316. constructor(props: ISliderLineComponentProps);
  317. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  318. value: number;
  319. }): boolean;
  320. onChange(newValueString: any): void;
  321. onInput(newValueString: any): void;
  322. prepareDataToRead(value: number): number;
  323. render(): JSX.Element;
  324. }
  325. }
  326. declare module "babylonjs-inspector/components/actionTabs/lines/optionsLineComponent" {
  327. import * as React from "react";
  328. import { Observable } from "babylonjs/Misc/observable";
  329. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  330. export const Null_Value: number;
  331. export class ListLineOption {
  332. label: string;
  333. value: number;
  334. selected?: boolean;
  335. }
  336. export interface IOptionsLineComponentProps {
  337. label: string;
  338. target: any;
  339. propertyName: string;
  340. options: ListLineOption[];
  341. noDirectUpdate?: boolean;
  342. onSelect?: (value: number) => void;
  343. extractValue?: () => number;
  344. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  345. allowNullValue?: boolean;
  346. }
  347. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  348. value: number;
  349. }> {
  350. private _localChange;
  351. private remapValueIn;
  352. private remapValueOut;
  353. constructor(props: IOptionsLineComponentProps);
  354. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  355. value: number;
  356. }): boolean;
  357. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  358. updateValue(valueString: string): void;
  359. render(): JSX.Element;
  360. }
  361. }
  362. declare module "babylonjs-inspector/components/actionTabs/lines/numericInputComponent" {
  363. import * as React from "react";
  364. interface INumericInputComponentProps {
  365. label: string;
  366. value: number;
  367. step?: number;
  368. onChange: (value: number) => void;
  369. precision?: number;
  370. }
  371. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  372. value: string;
  373. }> {
  374. static defaultProps: {
  375. step: number;
  376. };
  377. private _localChange;
  378. constructor(props: INumericInputComponentProps);
  379. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  380. value: string;
  381. }): boolean;
  382. updateValue(evt: any): void;
  383. onBlur(): void;
  384. render(): JSX.Element;
  385. }
  386. }
  387. declare module "babylonjs-inspector/components/actionTabs/lines/colorPickerComponent" {
  388. import * as React from "react";
  389. import { Color4, Color3 } from 'babylonjs/Maths/math.color';
  390. export interface IColorPickerComponentProps {
  391. value: Color4 | Color3;
  392. onColorChanged: (newOne: string) => void;
  393. disableAlpha?: boolean;
  394. }
  395. interface IColorPickerComponentState {
  396. pickerEnabled: boolean;
  397. color: {
  398. r: number;
  399. g: number;
  400. b: number;
  401. a?: number;
  402. };
  403. hex: string;
  404. }
  405. export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
  406. private _floatRef;
  407. private _floatHostRef;
  408. constructor(props: IColorPickerComponentProps);
  409. syncPositions(): void;
  410. shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
  411. componentDidUpdate(): void;
  412. componentDidMount(): void;
  413. render(): JSX.Element;
  414. }
  415. }
  416. declare module "babylonjs-inspector/components/actionTabs/lines/color3LineComponent" {
  417. import * as React from "react";
  418. import { Observable } from "babylonjs/Misc/observable";
  419. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  420. import { Color3 } from 'babylonjs/Maths/math.color';
  421. export interface IColor3LineComponentProps {
  422. label: string;
  423. target: any;
  424. propertyName: string;
  425. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  426. isLinear?: boolean;
  427. }
  428. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  429. isExpanded: boolean;
  430. color: Color3;
  431. }> {
  432. private _localChange;
  433. constructor(props: IColor3LineComponentProps);
  434. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  435. color: Color3;
  436. }): boolean;
  437. setPropertyValue(newColor: Color3): void;
  438. onChange(newValue: string): void;
  439. switchExpandState(): void;
  440. raiseOnPropertyChanged(previousValue: Color3): void;
  441. updateStateR(value: number): void;
  442. updateStateG(value: number): void;
  443. updateStateB(value: number): void;
  444. copyToClipboard(): void;
  445. render(): JSX.Element;
  446. }
  447. }
  448. declare module "babylonjs-inspector/components/actionTabs/lines/vector3LineComponent" {
  449. import * as React from "react";
  450. import { Vector3 } from "babylonjs/Maths/math.vector";
  451. import { Observable } from "babylonjs/Misc/observable";
  452. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  453. interface IVector3LineComponentProps {
  454. label: string;
  455. target: any;
  456. propertyName: string;
  457. step?: number;
  458. onChange?: (newvalue: Vector3) => void;
  459. useEuler?: boolean;
  460. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  461. noSlider?: boolean;
  462. }
  463. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  464. isExpanded: boolean;
  465. value: Vector3;
  466. }> {
  467. static defaultProps: {
  468. step: number;
  469. };
  470. private _localChange;
  471. constructor(props: IVector3LineComponentProps);
  472. getCurrentValue(): any;
  473. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  474. isExpanded: boolean;
  475. value: Vector3;
  476. }): boolean;
  477. switchExpandState(): void;
  478. raiseOnPropertyChanged(previousValue: Vector3): void;
  479. updateVector3(): void;
  480. updateStateX(value: number): void;
  481. updateStateY(value: number): void;
  482. updateStateZ(value: number): void;
  483. render(): JSX.Element;
  484. }
  485. }
  486. declare module "babylonjs-inspector/components/actionTabs/lines/quaternionLineComponent" {
  487. import * as React from "react";
  488. import { Observable } from "babylonjs/Misc/observable";
  489. import { Quaternion, Vector3 } from "babylonjs/Maths/math.vector";
  490. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  491. interface IQuaternionLineComponentProps {
  492. label: string;
  493. target: any;
  494. useEuler?: boolean;
  495. propertyName: string;
  496. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  497. }
  498. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  499. isExpanded: boolean;
  500. value: Quaternion;
  501. eulerValue: Vector3;
  502. }> {
  503. private _localChange;
  504. constructor(props: IQuaternionLineComponentProps);
  505. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  506. isExpanded: boolean;
  507. value: Quaternion;
  508. eulerValue: Vector3;
  509. }): boolean;
  510. switchExpandState(): void;
  511. raiseOnPropertyChanged(currentValue: Quaternion, previousValue: Quaternion): void;
  512. updateQuaternion(): void;
  513. updateStateX(value: number): void;
  514. updateStateY(value: number): void;
  515. updateStateZ(value: number): void;
  516. updateStateW(value: number): void;
  517. updateQuaternionFromEuler(): void;
  518. updateStateEulerX(value: number): void;
  519. updateStateEulerY(value: number): void;
  520. updateStateEulerZ(value: number): void;
  521. render(): JSX.Element;
  522. }
  523. }
  524. declare module "babylonjs-inspector/components/actionTabs/lines/textInputLineComponent" {
  525. import * as React from "react";
  526. import { Observable } from "babylonjs/Misc/observable";
  527. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  528. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  529. interface ITextInputLineComponentProps {
  530. label: string;
  531. lockObject: LockObject;
  532. target?: any;
  533. propertyName?: string;
  534. value?: string;
  535. onChange?: (value: string) => void;
  536. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  537. }
  538. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  539. value: string;
  540. }> {
  541. private _localChange;
  542. constructor(props: ITextInputLineComponentProps);
  543. componentWillUnmount(): void;
  544. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  545. value: string;
  546. }): boolean;
  547. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  548. updateValue(value: string): void;
  549. render(): JSX.Element;
  550. }
  551. }
  552. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/customPropertyGridComponent" {
  553. import * as React from "react";
  554. import { Observable } from "babylonjs/Misc/observable";
  555. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  556. import { GlobalState } from "babylonjs-inspector/components/globalState";
  557. import { IInspectable } from 'babylonjs/Misc/iInspectable';
  558. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  559. interface ICustomPropertyGridComponentProps {
  560. globalState: GlobalState;
  561. target: any;
  562. lockObject: LockObject;
  563. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  564. }
  565. export class CustomPropertyGridComponent extends React.Component<ICustomPropertyGridComponentProps, {
  566. mode: number;
  567. }> {
  568. constructor(props: ICustomPropertyGridComponentProps);
  569. renderInspectable(inspectable: IInspectable): JSX.Element | null;
  570. render(): JSX.Element | null;
  571. }
  572. }
  573. declare module "babylonjs-inspector/components/actionTabs/lines/buttonLineComponent" {
  574. import * as React from "react";
  575. export interface IButtonLineComponentProps {
  576. label: string;
  577. onClick: () => void;
  578. }
  579. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  580. constructor(props: IButtonLineComponentProps);
  581. render(): JSX.Element;
  582. }
  583. }
  584. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/anchorSvgPoint" {
  585. import * as React from "react";
  586. import { Vector2 } from "babylonjs/Maths/math.vector";
  587. interface IAnchorSvgPointProps {
  588. control: Vector2;
  589. anchor: Vector2;
  590. active: boolean;
  591. type: string;
  592. index: string;
  593. selected: boolean;
  594. selectControlPoint: (id: string) => void;
  595. framesInCanvasView: {
  596. from: number;
  597. to: number;
  598. };
  599. }
  600. /**
  601. * Renders the control point to a keyframe.
  602. */
  603. export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps, {
  604. visiblePoint: Vector2;
  605. }> {
  606. constructor(props: IAnchorSvgPointProps);
  607. componentDidUpdate(prevProps: IAnchorSvgPointProps, prevState: any): void;
  608. select: () => void;
  609. setVisiblePoint(): Vector2;
  610. render(): JSX.Element;
  611. }
  612. }
  613. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint" {
  614. import * as React from "react";
  615. import { Vector2 } from "babylonjs/Maths/math.vector";
  616. export interface IKeyframeSvgPoint {
  617. keyframePoint: Vector2;
  618. rightControlPoint: Vector2 | null;
  619. leftControlPoint: Vector2 | null;
  620. id: string;
  621. selected: boolean;
  622. isLeftActive: boolean;
  623. isRightActive: boolean;
  624. curveId?: ICurveMetaData;
  625. }
  626. export interface ICurveMetaData {
  627. id: number;
  628. animationName: string;
  629. property: string;
  630. }
  631. interface IKeyframeSvgPointProps {
  632. keyframePoint: Vector2;
  633. leftControlPoint: Vector2 | null;
  634. rightControlPoint: Vector2 | null;
  635. id: string;
  636. selected: boolean;
  637. selectKeyframe: (id: string, multiselect: boolean) => void;
  638. selectedControlPoint: (type: string, id: string) => void;
  639. isLeftActive: boolean;
  640. isRightActive: boolean;
  641. framesInCanvasView: {
  642. from: number;
  643. to: number;
  644. };
  645. }
  646. /**
  647. * Renders the Keyframe as an SVG Element for the Canvas component.
  648. * Holds the two control points to generate the proper curve.
  649. */
  650. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps> {
  651. constructor(props: IKeyframeSvgPointProps);
  652. select: (e: React.MouseEvent<SVGImageElement>) => void;
  653. selectedControlPointId: (type: string) => void;
  654. render(): JSX.Element;
  655. }
  656. }
  657. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea" {
  658. import * as React from "react";
  659. import { Vector2 } from "babylonjs/Maths/math.vector";
  660. import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
  661. interface ISvgDraggableAreaProps {
  662. keyframeSvgPoints: IKeyframeSvgPoint[];
  663. updatePosition: (updatedKeyframe: IKeyframeSvgPoint, id: string) => void;
  664. scale: number;
  665. viewBoxScale: number;
  666. deselectKeyframes: () => void;
  667. removeSelectedKeyframes: (points: IKeyframeSvgPoint[]) => void;
  668. panningY: (panningY: number) => void;
  669. panningX: (panningX: number) => void;
  670. setCurrentFrame: (direction: number) => void;
  671. positionCanvas?: Vector2;
  672. repositionCanvas?: boolean;
  673. canvasPositionEnded: () => void;
  674. resetActionableKeyframe: () => void;
  675. framesInCanvasView: {
  676. from: number;
  677. to: number;
  678. };
  679. framesResized: number;
  680. }
  681. /**
  682. * The SvgDraggableArea is a wrapper for SVG Canvas the interaction
  683. *
  684. * Here we control the drag and key behavior for the SVG components.
  685. */
  686. export class SvgDraggableArea extends React.Component<ISvgDraggableAreaProps, {
  687. panX: number;
  688. panY: number;
  689. }> {
  690. private _active;
  691. private _isCurrentPointControl;
  692. private _currentPointId;
  693. private _draggableArea;
  694. private _panStart;
  695. private _panStop;
  696. private _playheadDrag;
  697. private _playheadSelected;
  698. private _movedX;
  699. private _movedY;
  700. private _isControlKeyPress;
  701. readonly _dragBuffer: number;
  702. readonly _draggingMultiplier: number;
  703. constructor(props: ISvgDraggableAreaProps);
  704. componentDidMount(): void;
  705. componentDidUpdate(prevProps: ISvgDraggableAreaProps): void;
  706. dragStart: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  707. drag: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  708. dragEnd: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  709. getMousePosition: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => Vector2 | undefined;
  710. /**
  711. * Handles the canvas panning direction and sets the X and Y values to move the
  712. * SVG canvas
  713. */
  714. panDirection(): void;
  715. keyDown(e: KeyboardEvent): void;
  716. keyUp(e: KeyboardEvent): void;
  717. focus: (e: React.MouseEvent<SVGSVGElement>) => void;
  718. isNotControlPointActive(): boolean;
  719. render(): JSX.Element;
  720. }
  721. }
  722. declare module "babylonjs-inspector/components/actionTabs/lines/iconButtonLineComponent" {
  723. import * as React from 'react';
  724. export interface IIconButtonLineComponentProps {
  725. icon: string;
  726. onClick: () => void;
  727. tooltip: string;
  728. active?: boolean;
  729. }
  730. export class IconButtonLineComponent extends React.Component<IIconButtonLineComponentProps> {
  731. constructor(props: IIconButtonLineComponentProps);
  732. render(): JSX.Element;
  733. }
  734. }
  735. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/controls" {
  736. import * as React from "react";
  737. import { IAnimationKey } from "babylonjs/Animations/animationKey";
  738. interface IControlsProps {
  739. keyframes: IAnimationKey[] | null;
  740. selected: IAnimationKey | null;
  741. currentFrame: number;
  742. onCurrentFrameChange: (frame: number) => void;
  743. repositionCanvas: (keyframe: IAnimationKey) => void;
  744. playPause: (direction: number) => void;
  745. isPlaying: boolean;
  746. scrollable: React.RefObject<HTMLDivElement>;
  747. }
  748. /**
  749. * The playback controls for the animation editor
  750. */
  751. export class Controls extends React.Component<IControlsProps, {
  752. selected: IAnimationKey;
  753. playingType: string;
  754. }> {
  755. readonly _sizeOfKeyframe: number;
  756. constructor(props: IControlsProps);
  757. playBackwards: () => void;
  758. play: () => void;
  759. pause: () => void;
  760. moveToAnimationStart: () => void;
  761. moveToAnimationEnd: () => void;
  762. nextKeyframe: () => void;
  763. previousKeyframe: () => void;
  764. render(): JSX.Element;
  765. }
  766. }
  767. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/timeline" {
  768. import * as React from "react";
  769. import { IAnimationKey } from "babylonjs/Animations/animationKey";
  770. interface ITimelineProps {
  771. keyframes: IAnimationKey[] | null;
  772. selected: IAnimationKey | null;
  773. currentFrame: number;
  774. onCurrentFrameChange: (frame: number) => void;
  775. onAnimationLimitChange: (limit: number) => void;
  776. dragKeyframe: (frame: number, index: number) => void;
  777. playPause: (direction: number) => void;
  778. isPlaying: boolean;
  779. animationLimit: number;
  780. fps: number;
  781. repositionCanvas: (keyframe: IAnimationKey) => void;
  782. resizeWindowProportion: number;
  783. }
  784. /**
  785. * The Timeline for the curve editor
  786. *
  787. * Has a scrollbar that can be resized and move to left and right.
  788. * The timeline does not affect the Canvas but only the frame container.
  789. */
  790. export class Timeline extends React.Component<ITimelineProps, {
  791. selected: IAnimationKey;
  792. activeKeyframe: number | null;
  793. start: number;
  794. end: number;
  795. scrollWidth: number | undefined;
  796. selectionLength: number[];
  797. limitValue: number;
  798. }> {
  799. private _scrollable;
  800. private _scrollbarHandle;
  801. private _scrollContainer;
  802. private _inputAnimationLimit;
  803. private _direction;
  804. private _scrolling;
  805. private _shiftX;
  806. private _active;
  807. readonly _marginScrollbar: number;
  808. constructor(props: ITimelineProps);
  809. componentDidMount(): void;
  810. componentDidUpdate(prevProps: ITimelineProps): void;
  811. componentWillUnmount(): void;
  812. isEnterKeyUp(event: KeyboardEvent): void;
  813. onInputBlur(event: React.FocusEvent<HTMLInputElement>): void;
  814. setControlState(): void;
  815. /**
  816. * @param {number} start Frame from which the scrollbar should begin.
  817. * @param {number} end Last frame for the timeline.
  818. */
  819. calculateScrollWidth(start: number, end: number): number | undefined;
  820. playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
  821. play(event: React.MouseEvent<HTMLDivElement>): void;
  822. pause(event: React.MouseEvent<HTMLDivElement>): void;
  823. setCurrentFrame: (event: React.MouseEvent<HTMLDivElement>) => void;
  824. /**
  825. * Handles the change of number of frames available in the timeline.
  826. */
  827. handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
  828. dragStart: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  829. drag: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  830. /**
  831. * Check if the frame is being used as a Keyframe by the animation
  832. */
  833. isFrameBeingUsed(frame: number, direction: number): number | false;
  834. dragEnd: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  835. scrollDragStart: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  836. scrollDrag: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  837. scrollDragEnd: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  838. /**
  839. * Sets the start, end and selection length of the scrollbar. This will control the width and
  840. * height of the scrollbar as well as the number of frames available
  841. * @param {number} pageX Controls the X axis of the scrollbar movement.
  842. */
  843. moveScrollbar(pageX: number): void;
  844. /**
  845. * Controls the resizing of the scrollbar from the right handle
  846. */
  847. resizeScrollbarRight(clientX: number): void;
  848. /**
  849. * Controls the resizing of the scrollbar from the left handle
  850. */
  851. resizeScrollbarLeft(clientX: number): void;
  852. /**
  853. * Returns array with the expected length between two numbers
  854. */
  855. range(start: number, end: number): number[];
  856. getKeyframe(frame: number): false | IAnimationKey | undefined;
  857. getCurrentFrame(frame: number): boolean;
  858. dragDomFalse: () => boolean;
  859. render(): JSX.Element;
  860. }
  861. }
  862. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/notification" {
  863. import * as React from "react";
  864. interface IPlayheadProps {
  865. message: string;
  866. open: boolean;
  867. close: () => void;
  868. }
  869. /**
  870. * Renders the notification for the user
  871. */
  872. export class Notification extends React.Component<IPlayheadProps> {
  873. constructor(props: IPlayheadProps);
  874. render(): JSX.Element;
  875. }
  876. }
  877. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/graphActionsBar" {
  878. import * as React from "react";
  879. import { IActionableKeyFrame } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent";
  880. interface IGraphActionsBarProps {
  881. addKeyframe: () => void;
  882. removeKeyframe: () => void;
  883. frameSelectedKeyframes: () => void;
  884. handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  885. handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  886. flatTangent: () => void;
  887. brokeTangents: () => void;
  888. setLerpToActiveControlPoint: () => void;
  889. brokenMode: boolean;
  890. lerpMode: boolean;
  891. actionableKeyframe: IActionableKeyFrame;
  892. title: string;
  893. enabled: boolean;
  894. setKeyframeValue: (actionableKeyframe: IActionableKeyFrame) => void;
  895. frameRange: {
  896. min: number | undefined;
  897. max: number | undefined;
  898. };
  899. }
  900. /**
  901. * Has the buttons and actions for the Canvas Graph.
  902. * Handles input change and actions (flat, broken mode, set linear control points)
  903. */
  904. export class GraphActionsBar extends React.Component<IGraphActionsBarProps, {
  905. frame: string;
  906. value: string;
  907. min: number | undefined;
  908. max: number | undefined;
  909. }> {
  910. private _frameInput;
  911. private _valueInput;
  912. constructor(props: IGraphActionsBarProps);
  913. componentDidMount(): void;
  914. componentDidUpdate(prevProps: IGraphActionsBarProps, prevState: any): void;
  915. selectedKeyframeChanged(keyframe: IActionableKeyFrame): {
  916. frame: string;
  917. value: string;
  918. };
  919. componentWillUnmount(): void;
  920. isEnterKeyUp(event: KeyboardEvent): void;
  921. onBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
  922. getFrame(): string | number;
  923. getValue(): string | number;
  924. handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  925. handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  926. render(): JSX.Element;
  927. }
  928. }
  929. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/addAnimation" {
  930. import * as React from "react";
  931. import { Observable } from "babylonjs/Misc/observable";
  932. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  933. import { Animation } from "babylonjs/Animations/animation";
  934. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  935. interface IAddAnimationProps {
  936. isOpen: boolean;
  937. close: () => void;
  938. entity: IAnimatable;
  939. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  940. setNotificationMessage: (message: string) => void;
  941. finishedUpdate: () => void;
  942. addedNewAnimation: (animation: Animation) => void;
  943. fps: number;
  944. selectedToUpdate?: Animation | undefined;
  945. }
  946. /**
  947. * Controls the creation of a new animation
  948. */
  949. export class AddAnimation extends React.Component<IAddAnimationProps, {
  950. animationName: string;
  951. animationTargetProperty: string;
  952. animationType: number;
  953. loopMode: number;
  954. animationTargetPath: string;
  955. isUpdating: boolean;
  956. }> {
  957. constructor(props: IAddAnimationProps);
  958. setInitialState(editingAnimation?: Animation): {
  959. animationName: string;
  960. animationTargetPath: string;
  961. animationType: number;
  962. loopMode: number;
  963. animationTargetProperty: string;
  964. isUpdating: boolean;
  965. };
  966. componentDidUpdate(prevProps: IAddAnimationProps, prevState: any): void;
  967. updateAnimation: () => void;
  968. getTypeAsString(type: number): "Float" | "Quaternion" | "Vector3" | "Vector2" | "Size" | "Color3" | "Color4";
  969. addAnimation: () => void;
  970. raiseOnPropertyChanged(newValue: Animation[], previousValue: Animation[]): void;
  971. raiseOnPropertyUpdated(newValue: string | number | undefined, previousValue: string | number, property: string): void;
  972. handlePathChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  973. handleNameChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  974. handleTypeChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
  975. handlePropertyChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  976. handleLoopModeChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
  977. render(): JSX.Element;
  978. }
  979. }
  980. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree" {
  981. import * as React from "react";
  982. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  983. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  984. import { Observable } from "babylonjs/Misc/observable";
  985. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  986. import { Animation } from "babylonjs/Animations/animation";
  987. import { Nullable } from "babylonjs/types";
  988. interface IAnimationListTreeProps {
  989. isTargetedAnimation: boolean;
  990. entity: IAnimatable | TargetedAnimation;
  991. selected: Animation | null;
  992. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  993. selectAnimation: (selected: Animation, coordinate?: SelectedCoordinate) => void;
  994. empty: () => void;
  995. editAnimation: (selected: Animation) => void;
  996. deselectAnimation: () => void;
  997. }
  998. interface Item {
  999. index: number;
  1000. name: string;
  1001. property: string;
  1002. selected: boolean;
  1003. open: boolean;
  1004. }
  1005. export enum SelectedCoordinate {
  1006. x = 0,
  1007. y = 1,
  1008. z = 2,
  1009. w = 3,
  1010. r = 0,
  1011. g = 1,
  1012. b = 2,
  1013. a = 3,
  1014. width = 0,
  1015. height = 1
  1016. }
  1017. interface ItemCoordinate {
  1018. id: string;
  1019. color: string;
  1020. coordinate: SelectedCoordinate;
  1021. }
  1022. /**
  1023. * Renders a list of current animations.
  1024. */
  1025. export class AnimationListTree extends React.Component<IAnimationListTreeProps, {
  1026. selectedCoordinate: SelectedCoordinate;
  1027. selectedAnimation: number;
  1028. animationList: Item[] | null;
  1029. animations: Nullable<Animation[]> | Animation;
  1030. }> {
  1031. constructor(props: IAnimationListTreeProps);
  1032. componentDidUpdate(prevProps: IAnimationListTreeProps): void;
  1033. deleteAnimation: () => void;
  1034. raiseOnPropertyChanged(newValue: Animation[], previousValue: Animation[]): void;
  1035. generateList(): Item[] | null;
  1036. toggleProperty(index: number): void;
  1037. setSelectedCoordinate(animation: Animation, coordinate: SelectedCoordinate, index: number): void;
  1038. coordinateItem(i: number, animation: Animation, coordinate: string, color: string, selectedCoordinate: SelectedCoordinate): JSX.Element;
  1039. typeAnimationItem(animation: Animation, i: number, childrenElements: ItemCoordinate[]): JSX.Element;
  1040. setListItem(animation: Animation, i: number): JSX.Element | null;
  1041. render(): JSX.Element;
  1042. }
  1043. }
  1044. declare module "babylonjs-inspector/components/actionTabs/lines/fileButtonLineComponent" {
  1045. import * as React from "react";
  1046. interface IFileButtonLineComponentProps {
  1047. label: string;
  1048. onClick: (file: File) => void;
  1049. accept: string;
  1050. }
  1051. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  1052. private static _IDGenerator;
  1053. private _id;
  1054. private uploadInputRef;
  1055. constructor(props: IFileButtonLineComponentProps);
  1056. onChange(evt: any): void;
  1057. render(): JSX.Element;
  1058. }
  1059. }
  1060. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/loadsnippet" {
  1061. import * as React from "react";
  1062. import { Observable } from "babylonjs/Misc/observable";
  1063. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1064. import { Animation } from "babylonjs/Animations/animation";
  1065. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1066. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1067. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  1068. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  1069. interface ILoadSnippetProps {
  1070. animations: Animation[];
  1071. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1072. lockObject: LockObject;
  1073. globalState: GlobalState;
  1074. snippetServer: string;
  1075. setSnippetId: (id: string) => void;
  1076. entity: IAnimatable | TargetedAnimation;
  1077. setNotificationMessage: (message: string) => void;
  1078. animationsLoaded: (numberOfAnimations: number) => void;
  1079. }
  1080. /**
  1081. * Loads animation locally or from the Babylon.js Snippet Server
  1082. */
  1083. export class LoadSnippet extends React.Component<ILoadSnippetProps, {
  1084. snippetId: string;
  1085. }> {
  1086. private _serverAddress;
  1087. constructor(props: ILoadSnippetProps);
  1088. change: (value: string) => void;
  1089. loadFromFile: (file: File) => void;
  1090. loadFromSnippet: () => void;
  1091. render(): JSX.Element;
  1092. }
  1093. }
  1094. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/saveSnippet" {
  1095. import * as React from "react";
  1096. import { Observable } from "babylonjs/Misc/observable";
  1097. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1098. import { Animation } from "babylonjs/Animations/animation";
  1099. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1100. import { Nullable } from "babylonjs/types";
  1101. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1102. interface ISaveSnippetProps {
  1103. animations: Nullable<Animation[]>;
  1104. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1105. lockObject: LockObject;
  1106. globalState: GlobalState;
  1107. snippetServer: string;
  1108. snippetId: string;
  1109. }
  1110. export interface Snippet {
  1111. url: string;
  1112. id: string;
  1113. }
  1114. interface SelectedAnimation {
  1115. id: string;
  1116. name: string;
  1117. index: number;
  1118. selected: boolean;
  1119. }
  1120. /**
  1121. * Saves the animation snippet to the Babylon.js site or downloads the animation file locally
  1122. */
  1123. export class SaveSnippet extends React.Component<ISaveSnippetProps, {
  1124. selectedAnimations: SelectedAnimation[];
  1125. }> {
  1126. constructor(props: ISaveSnippetProps);
  1127. handleCheckboxChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  1128. stringifySelectedAnimations(): string;
  1129. saveToFile: () => void;
  1130. saveToSnippet: () => void;
  1131. render(): JSX.Element;
  1132. }
  1133. }
  1134. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/editorControls" {
  1135. import * as React from "react";
  1136. import { Observable } from "babylonjs/Misc/observable";
  1137. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1138. import { Animation } from "babylonjs/Animations/animation";
  1139. import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
  1140. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  1141. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  1142. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1143. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1144. interface IEditorControlsProps {
  1145. isTargetedAnimation: boolean;
  1146. entity: IAnimatable | TargetedAnimation;
  1147. selected: Animation | null;
  1148. lockObject: LockObject;
  1149. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1150. setNotificationMessage: (message: string) => void;
  1151. selectAnimation: (selected: Animation, axis?: SelectedCoordinate) => void;
  1152. setFps: (fps: number) => void;
  1153. setIsLooping: () => void;
  1154. globalState: GlobalState;
  1155. snippetServer: string;
  1156. deselectAnimation: () => void;
  1157. fps: number;
  1158. }
  1159. /**
  1160. * Renders the Curve Editor controls to create, save, remove, load and edit animations
  1161. */
  1162. export class EditorControls extends React.Component<IEditorControlsProps, {
  1163. isAnimationTabOpen: boolean;
  1164. isEditTabOpen: boolean;
  1165. isLoadTabOpen: boolean;
  1166. isSaveTabOpen: boolean;
  1167. isLoopActive: boolean;
  1168. animationsCount: number;
  1169. framesPerSecond: number;
  1170. snippetId: string;
  1171. selected: Animation | undefined;
  1172. }> {
  1173. constructor(props: IEditorControlsProps);
  1174. componentDidUpdate(prevProps: IEditorControlsProps): void;
  1175. onAnimationAdded: (animation: Animation) => void;
  1176. finishedUpdate: () => void;
  1177. recountAnimations(): number;
  1178. changeLoopBehavior: () => void;
  1179. handleFirstTab: () => void;
  1180. handleSecondTab: () => void;
  1181. handleThirdTab: () => void;
  1182. handleFourthTab: () => void;
  1183. handleTabs(tab: number): void;
  1184. handleChangeFps: (fps: number) => void;
  1185. /**
  1186. * Cleans the list when has been emptied
  1187. */
  1188. onEmptiedList: () => void;
  1189. /**
  1190. * When animations have been reloaded update tabs
  1191. */
  1192. animationsLoaded: (numberOfAnimations: number) => void;
  1193. editAnimation: (selected: Animation) => void;
  1194. setSnippetId: (id: string) => void;
  1195. /**
  1196. * Marks animation tab closed and hides the tab
  1197. */
  1198. onCloseAddAnimation: () => void;
  1199. render(): JSX.Element;
  1200. }
  1201. }
  1202. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/scale-label" {
  1203. import * as React from "react";
  1204. import { CurveScale } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent";
  1205. interface ISwitchButtonProps {
  1206. current: CurveScale;
  1207. action?: (event: CurveScale) => void;
  1208. }
  1209. /**
  1210. * Displays the current scale
  1211. */
  1212. export class ScaleLabel extends React.Component<ISwitchButtonProps, {
  1213. current: CurveScale;
  1214. }> {
  1215. constructor(props: ISwitchButtonProps);
  1216. renderLabel(scale: CurveScale): "" | "DEG" | "FLT" | "INT" | "RAD";
  1217. onClickHandle: () => void;
  1218. render(): JSX.Element;
  1219. }
  1220. }
  1221. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent" {
  1222. import * as React from "react";
  1223. import { Animation } from "babylonjs/Animations/animation";
  1224. import { Vector2, Vector3, Quaternion } from "babylonjs/Maths/math.vector";
  1225. import { Color3, Color4 } from "babylonjs/Maths/math.color";
  1226. import { Size } from "babylonjs/Maths/math.size";
  1227. import { EasingFunction } from "babylonjs/Animations/easing";
  1228. import { IAnimationKey } from "babylonjs/Animations/animationKey";
  1229. import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
  1230. import { Scene } from "babylonjs/scene";
  1231. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  1232. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  1233. import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
  1234. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1235. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1236. import { Nullable } from "babylonjs/types";
  1237. interface IAnimationCurveEditorComponentProps {
  1238. playOrPause?: () => void;
  1239. scene: Scene;
  1240. entity: IAnimatable | TargetedAnimation;
  1241. lockObject: LockObject;
  1242. globalState: GlobalState;
  1243. }
  1244. interface ICanvasAxis {
  1245. value: number;
  1246. label: number;
  1247. }
  1248. export enum CurveScale {
  1249. float = 0,
  1250. radians = 1,
  1251. degrees = 2,
  1252. integers = 3,
  1253. default = 4
  1254. }
  1255. export interface IActionableKeyFrame {
  1256. frame?: number | string;
  1257. value?: any;
  1258. }
  1259. interface ICurveData {
  1260. pathData: string;
  1261. pathLength: number;
  1262. domCurve: React.RefObject<SVGPathElement>;
  1263. color: string;
  1264. id: string;
  1265. }
  1266. /**
  1267. * Animation curve Editor Component
  1268. */
  1269. export class AnimationCurveEditorComponent extends React.Component<IAnimationCurveEditorComponentProps, {
  1270. isOpen: boolean;
  1271. selected: Animation | null;
  1272. svgKeyframes: IKeyframeSvgPoint[] | undefined;
  1273. currentFrame: number;
  1274. currentValue: number;
  1275. frameAxisLength: ICanvasAxis[];
  1276. valueAxisLength: ICanvasAxis[];
  1277. isFlatTangentMode: boolean;
  1278. isTangentMode: boolean;
  1279. isBrokenMode: boolean;
  1280. lerpMode: boolean;
  1281. scale: number;
  1282. playheadOffset: number;
  1283. notification: string;
  1284. currentPoint: SVGPoint | undefined;
  1285. playheadPos: number;
  1286. isPlaying: boolean;
  1287. selectedPathData: ICurveData[] | undefined;
  1288. selectedCoordinate: number;
  1289. animationLimit: number;
  1290. fps: number;
  1291. isLooping: boolean;
  1292. panningY: number;
  1293. panningX: number;
  1294. repositionCanvas: boolean;
  1295. actionableKeyframe: IActionableKeyFrame;
  1296. valueScaleType: CurveScale;
  1297. valueScale: number;
  1298. canvasLength: number;
  1299. lastKeyframeCreated: Nullable<string>;
  1300. canvasWidthScale: number;
  1301. valuesPositionResize: number;
  1302. framesInCanvasView: {
  1303. from: number;
  1304. to: number;
  1305. };
  1306. maxFrame: number | undefined;
  1307. minFrame: number | undefined;
  1308. framesResized: number;
  1309. }> {
  1310. readonly _entityName: string;
  1311. private _snippetUrl;
  1312. private _heightScale;
  1313. private _scaleFactor;
  1314. private _currentScale;
  1315. private _pixelFrameUnit;
  1316. private _svgKeyframes;
  1317. private _isPlaying;
  1318. private _graphCanvas;
  1319. private _editor;
  1320. private _editorWindow;
  1321. private _resizeId;
  1322. private _svgCanvas;
  1323. private _isTargetedAnimation;
  1324. private _resizedTimeline;
  1325. private _onBeforeRenderObserver;
  1326. private _mainAnimatable;
  1327. constructor(props: IAnimationCurveEditorComponentProps);
  1328. componentDidMount(): void;
  1329. componentDidUpdate(prevProps: IAnimationCurveEditorComponentProps, prevState: any): void;
  1330. componentWillUnmount(): void;
  1331. onCurrentFrameChangeChangeScene(value: number): void;
  1332. /**
  1333. * Notifications
  1334. * To add notification we set the state and clear to make the notification bar hide.
  1335. */
  1336. clearNotification: () => void;
  1337. /**
  1338. * Zoom and Scroll
  1339. * This section handles zoom and scroll
  1340. * of the graph area.
  1341. */
  1342. zoom: (e: React.WheelEvent<HTMLDivElement>) => void;
  1343. /**
  1344. * Returns Array with labels and values for Frame axis in Canvas
  1345. */
  1346. setFrameAxis(currentLength: number): {
  1347. value: number;
  1348. label: number;
  1349. }[];
  1350. /**
  1351. * Returns Array with labels, lines and values for Value axis in Canvas
  1352. */
  1353. setValueLines(): {
  1354. value: number;
  1355. label: string;
  1356. }[];
  1357. /**
  1358. * Creates a string id from animation name and the keyframe index
  1359. */
  1360. encodeCurveId(animationName: string, keyframeIndex: number): string;
  1361. /**
  1362. * Returns the animation keyframe index and the animation selected coordinate (x, y, z)
  1363. */
  1364. decodeCurveId(id: string): {
  1365. order: number;
  1366. coordinate: number;
  1367. };
  1368. /**
  1369. * Returns the value from a keyframe
  1370. */
  1371. getKeyframeValueFromAnimation(id: string): {
  1372. frame: number;
  1373. value: number;
  1374. } | undefined;
  1375. /**
  1376. * Keyframe Manipulation
  1377. * This section handles events from SvgDraggableArea.
  1378. */
  1379. selectKeyframe: (id: string, multiselect: boolean) => void;
  1380. /**
  1381. * Determine if two control points are collinear (flat tangent)
  1382. */
  1383. hasCollinearPoints: (kf: IKeyframeSvgPoint | undefined) => boolean;
  1384. /**
  1385. * Returns the previous and next keyframe from a selected frame.
  1386. */
  1387. getPreviousAndNextKeyframe: (frame: number) => {
  1388. prev: number | undefined;
  1389. next: number | undefined;
  1390. };
  1391. /**
  1392. * Selects a keyframe in animation based on its Id
  1393. */
  1394. selectKeyframeFromId: (id: string, actionableKeyframe: IActionableKeyFrame) => void;
  1395. /**
  1396. * Resets the current selected keyframe as an updatable pairs by Graph Control Bar
  1397. */
  1398. resetActionableKeyframe: () => void;
  1399. /**
  1400. * Sets the selected control point.
  1401. */
  1402. selectedControlPoint: (type: string, id: string) => void;
  1403. /**
  1404. * Sets the selected control point.
  1405. */
  1406. deselectKeyframes: () => void;
  1407. /**
  1408. * Update the Animation Key values based on its type
  1409. */
  1410. updateValuePerCoordinate(dataType: number, value: number | Vector2 | Vector3 | Color3 | Color4 | Size | Quaternion, newValue: number, coordinate?: number): number | Vector3 | Quaternion | Color3 | Color4 | Vector2 | Size;
  1411. /**
  1412. * Animation should always have a keyframe at Frame Zero
  1413. */
  1414. forceFrameZeroToExist(keys: IAnimationKey[]): void;
  1415. /**
  1416. * Renders SVG points with dragging of the curve
  1417. */
  1418. renderPoints: (updatedSvgKeyFrame: IKeyframeSvgPoint, id: string) => void;
  1419. /**
  1420. * Updates the left control point on render points
  1421. */
  1422. updateLeftControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: IAnimationKey, dataType: number, coordinate: number): void;
  1423. /**
  1424. * Updates the right control point on render points
  1425. */
  1426. updateRightControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: IAnimationKey, dataType: number, coordinate: number): void;
  1427. /**
  1428. * Get the current Control Point weight (how far the X value is multiplied)
  1429. */
  1430. getControlPointWeight(updatedSvgKeyFrame: IKeyframeSvgPoint): number;
  1431. /**
  1432. * Handles a Frame selection change
  1433. */
  1434. handleFrameChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  1435. /**
  1436. * Handles how a value change on a selected frame
  1437. */
  1438. handleValueChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  1439. /**
  1440. * Set the Keyframe from input control in Graph Control Bar
  1441. */
  1442. setKeyframeValueFromInput: (actionableKeyframe: IActionableKeyFrame) => void;
  1443. /**
  1444. * Sets the SVG Keyframe value
  1445. */
  1446. setKeyframeValue: () => void;
  1447. /**
  1448. * Set the flat tangent to the current selected control points.
  1449. */
  1450. setFlatTangent: () => void;
  1451. /**
  1452. * Sets Broken mode of lines
  1453. */
  1454. setBrokenMode: () => void;
  1455. /**
  1456. * Sets a control point to be a linear interpolation with its Keyframe
  1457. */
  1458. setLerpToActiveControlPoint: () => void;
  1459. /**
  1460. * Adds a new keyframe to the curve on canvas click
  1461. */
  1462. addKeyframeClick: () => void;
  1463. /**
  1464. * Remove keyframe on click
  1465. */
  1466. removeKeyframeClick: () => void;
  1467. /**
  1468. * Remove the selected keyframes
  1469. */
  1470. removeKeyframes: (points: IKeyframeSvgPoint[]) => void;
  1471. /**
  1472. * Adds a keyframe
  1473. */
  1474. addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
  1475. /**
  1476. * Curve Rendering Functions
  1477. * This section handles how to render curves.
  1478. */
  1479. setKeyframePointLinear(point: Vector2, index: number): void;
  1480. flatTangents(keyframes: IAnimationKey[], dataType: number): IAnimationKey[];
  1481. /**
  1482. * Return a Keyframe zero value depending on Type
  1483. */
  1484. returnZero(dataType: number): 0 | Vector3 | Quaternion | Color3 | Color4 | Vector2 | Size;
  1485. /**
  1486. * Return the keyframe value as an array depending on type
  1487. */
  1488. getValueAsArray(valueType: number, value: number | Vector2 | Vector3 | Color3 | Color4 | Size | Quaternion): number[];
  1489. /**
  1490. * Sets the keyframe value as an array depending on type
  1491. */
  1492. setValueAsType(valueType: number, arrayValue: number[]): number | Vector3 | Quaternion | Color3 | Color4 | Vector2 | Size;
  1493. /**
  1494. * Returns the SVG Path Data to render the curve
  1495. */
  1496. getPathData(animation: Animation | null): ICurveData[] | undefined;
  1497. getAnimationData(animation: Animation): {
  1498. loopMode: number | undefined;
  1499. name: string;
  1500. blendingSpeed: number;
  1501. targetPropertyPath: string[];
  1502. targetProperty: string;
  1503. framesPerSecond: number;
  1504. highestFrame: number;
  1505. usesTangents: boolean;
  1506. easingType: string | undefined;
  1507. easingMode: number | undefined;
  1508. valueType: number;
  1509. };
  1510. calculateLinearTangents(keyframes: IAnimationKey[]): IAnimationKey[];
  1511. /**
  1512. * Calculates the proper linear tangents if there is no tangents defined
  1513. */
  1514. curvePathWithoutTangents(keyframes: IAnimationKey[], data: string, middle: number, type: number, coordinate: number, animationName: string): string;
  1515. /**
  1516. * Calculates the curve data and control points for animation
  1517. */
  1518. curvePathWithTangents(keyframes: IAnimationKey[], data: string, middle: number, type: number, coordinate: number, animationName: string): string;
  1519. /**
  1520. * Calculates a curve path from predefined easing function
  1521. */
  1522. curvePath(keyframes: IAnimationKey[], data: string, middle: number, easingFunction: EasingFunction): string;
  1523. /**
  1524. * Sets the proper SVG Keyframe points
  1525. */
  1526. setKeyframePoint(controlPoints: Vector2[], index: number, keyframesCount: number): void;
  1527. interpolateControlPoints(p0: Vector2, p1: Vector2, u: number, p2: Vector2, v: number, p3: Vector2): Vector2[] | undefined;
  1528. deselectAnimation: () => void;
  1529. /**
  1530. * Remove all curves from canvas
  1531. */
  1532. cleanCanvas: () => void;
  1533. /**
  1534. * Selects the animation and renders the curve
  1535. */
  1536. selectAnimation: (animation: Animation, coordinate?: SelectedCoordinate | undefined) => void;
  1537. /**
  1538. * Set the state for the last selected keyframe
  1539. */
  1540. postSelectionEvents: () => void;
  1541. /**
  1542. * Set main animatable to play or pause the animation
  1543. */
  1544. setMainAnimatable(): void;
  1545. isAnimationPlaying(): boolean;
  1546. stopAnimation(): void;
  1547. setIsLooping: () => void;
  1548. setFramesPerSecond: (fps: number) => void;
  1549. /**
  1550. * Check if the animation has easing predefined
  1551. */
  1552. analyzeAnimationForLerp(animation: Animation | null): boolean;
  1553. /**
  1554. * Timeline
  1555. * This section controls the timeline.
  1556. */
  1557. changeCurrentFrame: (frame: number) => void;
  1558. /**
  1559. * Calculate the value of the selected frame in curve
  1560. */
  1561. calculateCurrentPointInCurve: (frame: number) => number | undefined;
  1562. /**
  1563. * Center the position the canvas depending on Keyframe value and frame
  1564. */
  1565. setCanvasPosition: (keyframe: IAnimationKey) => void;
  1566. setCurrentFrame: (frame: number) => void;
  1567. /**
  1568. * Change the timeline animation frame limit
  1569. */
  1570. changeAnimationLimit: (limit: number) => void;
  1571. /**
  1572. * Update the frame in the selected Keyframe
  1573. */
  1574. updateFrameInKeyFrame: (frame: number, index: number) => void;
  1575. playPause: (direction: number) => void;
  1576. /**
  1577. * Set the frame to selected position on canvas
  1578. */
  1579. moveFrameTo(e: React.MouseEvent<SVGRectElement, MouseEvent>): void;
  1580. registerObs(): void;
  1581. isCurrentFrame(frame: number): boolean;
  1582. setPanningY: (panningY: number) => void;
  1583. setPanningX: (panningX: number) => void;
  1584. canvasPositionEnded: () => void;
  1585. setNotificationMessage: (message: string) => void;
  1586. frameSelectedKeyframes: () => void;
  1587. /**
  1588. * Handle the frames quantity and scale on Window resize width
  1589. */
  1590. onWindowResizeWidth: () => void;
  1591. onWindowEndResize: (framesResized: number) => void;
  1592. onTimelineResize: () => void;
  1593. render(): JSX.Element;
  1594. }
  1595. }
  1596. declare module "babylonjs-inspector/components/popupComponent" {
  1597. import * as React from "react";
  1598. interface IPopupComponentProps {
  1599. id: string;
  1600. title: string;
  1601. size: {
  1602. width: number;
  1603. height: number;
  1604. };
  1605. onOpen: (window: Window) => void;
  1606. onClose: (window: Window) => void;
  1607. }
  1608. export class PopupComponent extends React.Component<IPopupComponentProps, {
  1609. isComponentMounted: boolean;
  1610. blockedByBrowser: boolean;
  1611. }> {
  1612. private _container;
  1613. private _window;
  1614. private _curveEditorHost;
  1615. constructor(props: IPopupComponentProps);
  1616. componentDidMount(): void;
  1617. openPopup(): void;
  1618. componentWillUnmount(): void;
  1619. getWindow(): Window | null;
  1620. render(): React.ReactPortal | null;
  1621. }
  1622. }
  1623. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent" {
  1624. import * as React from "react";
  1625. import { Observable } from "babylonjs/Misc/observable";
  1626. import { Scene } from "babylonjs/scene";
  1627. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1628. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1629. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1630. import { IAnimatable } from "babylonjs/Animations/animatable.interface";
  1631. interface IAnimationGridComponentProps {
  1632. globalState: GlobalState;
  1633. animatable: IAnimatable;
  1634. scene: Scene;
  1635. lockObject: LockObject;
  1636. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1637. }
  1638. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  1639. currentFrame: number;
  1640. }> {
  1641. private _animations;
  1642. private _ranges;
  1643. private _mainAnimatable;
  1644. private _onBeforeRenderObserver;
  1645. private _isPlaying;
  1646. private timelineRef;
  1647. private _isCurveEditorOpen;
  1648. private _animationControl;
  1649. constructor(props: IAnimationGridComponentProps);
  1650. playOrPause(): void;
  1651. componentDidMount(): void;
  1652. componentWillUnmount(): void;
  1653. onCurrentFrameChange(value: number): void;
  1654. onChangeFromOrTo(): void;
  1655. onOpenAnimationCurveEditor(): void;
  1656. onCloseAnimationCurveEditor(window: Window | null): void;
  1657. render(): JSX.Element;
  1658. }
  1659. }
  1660. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent" {
  1661. import * as React from "react";
  1662. import { Observable } from "babylonjs/Misc/observable";
  1663. import { Material } from "babylonjs/Materials/material";
  1664. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1665. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1666. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1667. interface ICommonMaterialPropertyGridComponentProps {
  1668. globalState: GlobalState;
  1669. material: Material;
  1670. lockObject: LockObject;
  1671. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1672. }
  1673. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  1674. constructor(props: ICommonMaterialPropertyGridComponentProps);
  1675. render(): JSX.Element;
  1676. }
  1677. }
  1678. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent" {
  1679. import * as React from "react";
  1680. import { Observable } from "babylonjs/Misc/observable";
  1681. import { Material } from "babylonjs/Materials/material";
  1682. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1683. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1684. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1685. interface IMaterialPropertyGridComponentProps {
  1686. globalState: GlobalState;
  1687. material: Material;
  1688. lockObject: LockObject;
  1689. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1690. }
  1691. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  1692. constructor(props: IMaterialPropertyGridComponentProps);
  1693. render(): JSX.Element;
  1694. }
  1695. }
  1696. declare module "babylonjs-inspector/components/actionTabs/lines/textureLinkLineComponent" {
  1697. import * as React from "react";
  1698. import { Nullable } from "babylonjs/types";
  1699. import { Observable } from "babylonjs/Misc/observable";
  1700. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  1701. import { Material } from "babylonjs/Materials/material";
  1702. export interface ITextureLinkLineComponentProps {
  1703. label: string;
  1704. texture: Nullable<BaseTexture>;
  1705. material?: Material;
  1706. onSelectionChangedObservable?: Observable<any>;
  1707. onDebugSelectionChangeObservable?: Observable<TextureLinkLineComponent>;
  1708. propertyName?: string;
  1709. onTextureCreated?: (texture: BaseTexture) => void;
  1710. customDebugAction?: (state: boolean) => void;
  1711. onTextureRemoved?: () => void;
  1712. }
  1713. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  1714. isDebugSelected: boolean;
  1715. }> {
  1716. private _onDebugSelectionChangeObserver;
  1717. constructor(props: ITextureLinkLineComponentProps);
  1718. componentDidMount(): void;
  1719. componentWillUnmount(): void;
  1720. debugTexture(): void;
  1721. onLink(): void;
  1722. updateTexture(file: File): void;
  1723. removeTexture(): void;
  1724. render(): JSX.Element | null;
  1725. }
  1726. }
  1727. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent" {
  1728. import * as React from "react";
  1729. import { Observable } from "babylonjs/Misc/observable";
  1730. import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
  1731. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  1732. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  1733. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1734. interface IStandardMaterialPropertyGridComponentProps {
  1735. globalState: GlobalState;
  1736. material: StandardMaterial;
  1737. lockObject: LockObject;
  1738. onSelectionChangedObservable?: Observable<any>;
  1739. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  1740. }
  1741. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  1742. private _onDebugSelectionChangeObservable;
  1743. constructor(props: IStandardMaterialPropertyGridComponentProps);
  1744. renderTextures(): JSX.Element;
  1745. render(): JSX.Element;
  1746. }
  1747. }
  1748. declare module "babylonjs-inspector/lod" {
  1749. /** @hidden */
  1750. export var lodPixelShader: {
  1751. name: string;
  1752. shader: string;
  1753. };
  1754. }
  1755. declare module "babylonjs-inspector/lodCube" {
  1756. /** @hidden */
  1757. export var lodCubePixelShader: {
  1758. name: string;
  1759. shader: string;
  1760. };
  1761. }
  1762. declare module "babylonjs-inspector/textureHelper" {
  1763. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1764. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  1765. import "babylonjs-inspector/lod";
  1766. import "babylonjs-inspector/lodCube";
  1767. export interface TextureChannelsToDisplay {
  1768. R: boolean;
  1769. G: boolean;
  1770. B: boolean;
  1771. A: boolean;
  1772. }
  1773. export class TextureHelper {
  1774. private static _ProcessAsync;
  1775. static GetTextureDataAsync(texture: BaseTexture, width: number, height: number, face: number, channels: TextureChannelsToDisplay, globalState?: GlobalState, lod?: number): Promise<Uint8Array>;
  1776. }
  1777. }
  1778. declare module "babylonjs-inspector/components/actionTabs/lines/textureLineComponent" {
  1779. import * as React from "react";
  1780. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  1781. import { GlobalState } from "babylonjs-inspector/components/globalState";
  1782. import { TextureChannelsToDisplay } from "babylonjs-inspector/textureHelper";
  1783. interface ITextureLineComponentProps {
  1784. texture: BaseTexture;
  1785. width: number;
  1786. height: number;
  1787. globalState?: GlobalState;
  1788. hideChannelSelect?: boolean;
  1789. }
  1790. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  1791. channels: TextureChannelsToDisplay;
  1792. face: number;
  1793. }> {
  1794. private canvasRef;
  1795. private static TextureChannelStates;
  1796. constructor(props: ITextureLineComponentProps);
  1797. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  1798. channels: TextureChannelsToDisplay;
  1799. face: number;
  1800. }): boolean;
  1801. componentDidMount(): void;
  1802. componentDidUpdate(): void;
  1803. updatePreview(): Promise<void>;
  1804. render(): JSX.Element;
  1805. }
  1806. }
  1807. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/toolBar" {
  1808. import * as React from 'react';
  1809. import { IToolData, IToolType, IMetadata } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  1810. export interface ITool extends IToolData {
  1811. instance: IToolType;
  1812. }
  1813. interface IToolBarProps {
  1814. tools: ITool[];
  1815. addTool(url: string): void;
  1816. changeTool(toolIndex: number): void;
  1817. activeToolIndex: number;
  1818. metadata: IMetadata;
  1819. setMetadata(data: any): void;
  1820. pickerOpen: boolean;
  1821. setPickerOpen(open: boolean): void;
  1822. pickerRef: React.RefObject<HTMLDivElement>;
  1823. hasAlpha: boolean;
  1824. }
  1825. interface IToolBarState {
  1826. toolURL: string;
  1827. addOpen: boolean;
  1828. }
  1829. export class ToolBar extends React.Component<IToolBarProps, IToolBarState> {
  1830. constructor(props: IToolBarProps);
  1831. computeRGBAColor(): string;
  1832. shouldComponentUpdate(nextProps: IToolBarProps): boolean;
  1833. render(): JSX.Element;
  1834. }
  1835. }
  1836. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar" {
  1837. import * as React from 'react';
  1838. export interface IChannel {
  1839. visible: boolean;
  1840. editable: boolean;
  1841. name: string;
  1842. id: 'R' | 'G' | 'B' | 'A';
  1843. icon: any;
  1844. }
  1845. interface IChannelsBarProps {
  1846. channels: IChannel[];
  1847. setChannels(channelState: IChannel[]): void;
  1848. }
  1849. export class ChannelsBar extends React.PureComponent<IChannelsBarProps> {
  1850. render(): JSX.Element;
  1851. }
  1852. }
  1853. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/canvasShader" {
  1854. export const canvasShader: {
  1855. path: {
  1856. vertexSource: string;
  1857. fragmentSource: string;
  1858. };
  1859. options: {
  1860. attributes: string[];
  1861. uniforms: string[];
  1862. };
  1863. };
  1864. }
  1865. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager" {
  1866. import { Scene } from 'babylonjs/scene';
  1867. import { Vector2 } from 'babylonjs/Maths/math.vector';
  1868. import { Nullable } from 'babylonjs/types';
  1869. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  1870. import { ISize } from 'babylonjs/Maths/math.size';
  1871. import { PointerInfo } from 'babylonjs/Events/pointerEvents';
  1872. import { ITool } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/toolBar";
  1873. import { IChannel } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar";
  1874. import { IMetadata } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  1875. export interface IPixelData {
  1876. x?: number;
  1877. y?: number;
  1878. r?: number;
  1879. g?: number;
  1880. b?: number;
  1881. a?: number;
  1882. }
  1883. export class TextureCanvasManager {
  1884. private _engine;
  1885. private _scene;
  1886. private _camera;
  1887. private _cameraPos;
  1888. private _scale;
  1889. private _isPanning;
  1890. private _mouseX;
  1891. private _mouseY;
  1892. private _UICanvas;
  1893. private _size;
  1894. /** The canvas we paint onto using the canvas API */
  1895. private _2DCanvas;
  1896. /** The canvas we apply post processes to */
  1897. private _3DCanvas;
  1898. /** The canvas which handles channel filtering */
  1899. private _channelsTexture;
  1900. private _3DEngine;
  1901. private _3DPlane;
  1902. private _3DCanvasTexture;
  1903. private _3DScene;
  1904. private _channels;
  1905. private _face;
  1906. private _mipLevel;
  1907. /** The texture from the original engine that we invoked the editor on */
  1908. private _originalTexture;
  1909. /** This is a hidden texture which is only responsible for holding the actual texture memory in the original engine */
  1910. private _target;
  1911. /** The internal texture representation of the original texture */
  1912. private _originalInternalTexture;
  1913. /** Keeps track of whether we have modified the texture */
  1914. private _didEdit;
  1915. private _plane;
  1916. private _planeMaterial;
  1917. /** Tracks which keys are currently pressed */
  1918. private _keyMap;
  1919. private readonly ZOOM_MOUSE_SPEED;
  1920. private readonly ZOOM_KEYBOARD_SPEED;
  1921. private readonly ZOOM_IN_KEY;
  1922. private readonly ZOOM_OUT_KEY;
  1923. private readonly PAN_SPEED;
  1924. private readonly PAN_MOUSE_BUTTON;
  1925. private readonly MIN_SCALE;
  1926. private readonly GRID_SCALE;
  1927. private readonly MAX_SCALE;
  1928. private readonly SELECT_ALL_KEY;
  1929. private readonly SAVE_KEY;
  1930. private readonly RESET_KEY;
  1931. private readonly DESELECT_KEY;
  1932. /** The number of milliseconds between texture updates */
  1933. private readonly PUSH_FREQUENCY;
  1934. private _tool;
  1935. private _setPixelData;
  1936. private _setMipLevel;
  1937. private _window;
  1938. private _metadata;
  1939. private _editing3D;
  1940. private _onUpdate;
  1941. private _setMetadata;
  1942. private _imageData;
  1943. private _canPush;
  1944. private _shouldPush;
  1945. private _paintCanvas;
  1946. constructor(texture: BaseTexture, window: Window, canvasUI: HTMLCanvasElement, canvas2D: HTMLCanvasElement, canvas3D: HTMLCanvasElement, setPixelData: (pixelData: IPixelData) => void, metadata: IMetadata, onUpdate: () => void, setMetadata: (metadata: any) => void, setMipLevel: (level: number) => void);
  1947. updateTexture(): Promise<void>;
  1948. private pushTexture;
  1949. startPainting(): Promise<CanvasRenderingContext2D>;
  1950. updatePainting(): void;
  1951. stopPainting(): void;
  1952. private updateDisplay;
  1953. set channels(channels: IChannel[]);
  1954. paintPixelsOnCanvas(pixelData: Uint8Array, canvas: HTMLCanvasElement): void;
  1955. grabOriginalTexture(): Promise<Uint8Array>;
  1956. getMouseCoordinates(pointerInfo: PointerInfo): Vector2;
  1957. get scene(): Scene;
  1958. get canvas2D(): HTMLCanvasElement;
  1959. get size(): ISize;
  1960. set tool(tool: Nullable<ITool>);
  1961. get tool(): Nullable<ITool>;
  1962. set face(face: number);
  1963. set mipLevel(mipLevel: number);
  1964. /** Returns the 3D scene used for postprocesses */
  1965. get scene3D(): Scene;
  1966. set metadata(metadata: IMetadata);
  1967. private makePlane;
  1968. reset(): void;
  1969. resize(newSize: ISize): Promise<void>;
  1970. setSize(size: ISize): void;
  1971. upload(file: File): void;
  1972. saveTexture(): void;
  1973. dispose(): void;
  1974. }
  1975. }
  1976. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/propertiesBar" {
  1977. import * as React from 'react';
  1978. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  1979. import { IPixelData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager";
  1980. import { ISize } from 'babylonjs/Maths/math.size';
  1981. interface IPropertiesBarProps {
  1982. texture: BaseTexture;
  1983. size: ISize;
  1984. saveTexture(): void;
  1985. pixelData: IPixelData;
  1986. face: number;
  1987. setFace(face: number): void;
  1988. resetTexture(): void;
  1989. resizeTexture(width: number, height: number): void;
  1990. uploadTexture(file: File): void;
  1991. mipLevel: number;
  1992. setMipLevel: (mipLevel: number) => void;
  1993. }
  1994. interface IPropertiesBarState {
  1995. width: number;
  1996. height: number;
  1997. }
  1998. export class PropertiesBar extends React.PureComponent<IPropertiesBarProps, IPropertiesBarState> {
  1999. private _resetButton;
  2000. private _uploadButton;
  2001. private _saveButton;
  2002. private _babylonLogo;
  2003. private _resizeButton;
  2004. private _mipUp;
  2005. private _mipDown;
  2006. private _faces;
  2007. constructor(props: IPropertiesBarProps);
  2008. private pixelData;
  2009. private getNewDimension;
  2010. componentWillUpdate(nextProps: IPropertiesBarProps): void;
  2011. render(): JSX.Element;
  2012. }
  2013. }
  2014. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/bottomBar" {
  2015. import * as React from 'react';
  2016. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  2017. interface IBottomBarProps {
  2018. texture: BaseTexture;
  2019. mipLevel: number;
  2020. }
  2021. export class BottomBar extends React.PureComponent<IBottomBarProps> {
  2022. render(): JSX.Element;
  2023. }
  2024. }
  2025. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasComponent" {
  2026. import * as React from 'react';
  2027. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  2028. interface ITextureCanvasComponentProps {
  2029. canvasUI: React.RefObject<HTMLCanvasElement>;
  2030. canvas2D: React.RefObject<HTMLCanvasElement>;
  2031. canvas3D: React.RefObject<HTMLCanvasElement>;
  2032. texture: BaseTexture;
  2033. }
  2034. export class TextureCanvasComponent extends React.Component<ITextureCanvasComponentProps> {
  2035. render(): JSX.Element;
  2036. }
  2037. }
  2038. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/paintbrush" {
  2039. import { IToolData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  2040. export const Paintbrush: IToolData;
  2041. }
  2042. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/eyedropper" {
  2043. import { IToolData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  2044. export const Eyedropper: IToolData;
  2045. }
  2046. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/floodfill" {
  2047. import { IToolData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  2048. export const Floodfill: IToolData;
  2049. }
  2050. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/rectangleSelect" {
  2051. import { IToolData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  2052. export const RectangleSelect: IToolData;
  2053. }
  2054. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/defaultTools" {
  2055. const _default: import("babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent").IToolData[];
  2056. export default _default;
  2057. }
  2058. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/toolSettings" {
  2059. import * as React from 'react';
  2060. import { ITool } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/toolBar";
  2061. interface IToolSettingsProps {
  2062. tool: ITool | undefined;
  2063. }
  2064. export class ToolSettings extends React.Component<IToolSettingsProps> {
  2065. render(): JSX.Element;
  2066. }
  2067. }
  2068. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent" {
  2069. import * as React from 'react';
  2070. import { IPixelData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager";
  2071. import { ITool } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/toolBar";
  2072. import { IChannel } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar";
  2073. import { BaseTexture } from 'babylonjs/Materials/Textures/baseTexture';
  2074. import { Scene } from 'babylonjs/scene';
  2075. import { ISize } from 'babylonjs/Maths/math.size';
  2076. import { Vector2 } from 'babylonjs/Maths/math.vector';
  2077. import { PointerInfo } from 'babylonjs/Events/pointerEvents';
  2078. import { PopupComponent } from "babylonjs-inspector/components/popupComponent";
  2079. interface ITextureEditorComponentProps {
  2080. texture: BaseTexture;
  2081. url: string;
  2082. window: React.RefObject<PopupComponent>;
  2083. onUpdate: () => void;
  2084. }
  2085. interface ITextureEditorComponentState {
  2086. tools: ITool[];
  2087. activeToolIndex: number;
  2088. metadata: IMetadata;
  2089. channels: IChannel[];
  2090. pixelData: IPixelData;
  2091. face: number;
  2092. mipLevel: number;
  2093. pickerOpen: boolean;
  2094. }
  2095. export interface IToolParameters {
  2096. /** The visible scene in the editor. Useful for adding pointer and keyboard events. */
  2097. scene: Scene;
  2098. /** The 2D canvas which you can sample pixel data from. Tools should not paint directly on this canvas. */
  2099. canvas2D: HTMLCanvasElement;
  2100. /** The 3D scene which tools can add post processes to. */
  2101. scene3D: Scene;
  2102. /** The size of the texture. */
  2103. size: ISize;
  2104. /** Pushes the editor texture back to the original scene. This should be called every time a tool makes any modification to a texture. */
  2105. updateTexture: () => void;
  2106. /** The metadata object which is shared between all tools. Feel free to store any information here. Do not set this directly: instead call setMetadata. */
  2107. metadata: IMetadata;
  2108. /** Call this when you want to mutate the metadata. */
  2109. setMetadata: (data: any) => void;
  2110. /** Returns the texture coordinates under the cursor */
  2111. getMouseCoordinates: (pointerInfo: PointerInfo) => Vector2;
  2112. /** Provides access to the BABYLON namespace */
  2113. BABYLON: any;
  2114. /** Provides a canvas that you can use the canvas API to paint on. */
  2115. startPainting: () => Promise<CanvasRenderingContext2D>;
  2116. /** After you have painted on your canvas, call this method to push the updates back to the texture. */
  2117. updatePainting: () => void;
  2118. /** Call this when you are finished painting. */
  2119. stopPainting: () => void;
  2120. }
  2121. export interface IToolGUIProps {
  2122. instance: IToolType;
  2123. }
  2124. /** An interface representing the definition of a tool */
  2125. export interface IToolData {
  2126. /** Name to display on the toolbar */
  2127. name: string;
  2128. /** A class definition for the tool including setup and cleanup methods */
  2129. type: IToolConstructable;
  2130. /** An SVG icon encoded in Base64 */
  2131. icon: string;
  2132. /** Whether the tool uses postprocesses */
  2133. is3D?: boolean;
  2134. cursor?: string;
  2135. settingsComponent?: React.ComponentType<IToolGUIProps>;
  2136. }
  2137. export interface IToolType {
  2138. /** Called when the tool is selected. */
  2139. setup: () => void;
  2140. /** Called when the tool is deselected. */
  2141. cleanup: () => void;
  2142. /** Optional. Called when the user resets the texture or uploads a new texture. Tools may want to reset their state when this happens. */
  2143. onReset?: () => void;
  2144. }
  2145. /** For constructable types, TS requires that you define a seperate interface which constructs your actual interface */
  2146. interface IToolConstructable {
  2147. new (getParameters: () => IToolParameters): IToolType;
  2148. }
  2149. export interface IMetadata {
  2150. color: string;
  2151. alpha: number;
  2152. select: {
  2153. x1: number;
  2154. y1: number;
  2155. x2: number;
  2156. y2: number;
  2157. };
  2158. [key: string]: any;
  2159. }
  2160. global {
  2161. var _TOOL_DATA_: IToolData;
  2162. }
  2163. export class TextureEditorComponent extends React.Component<ITextureEditorComponentProps, ITextureEditorComponentState> {
  2164. private _textureCanvasManager;
  2165. private _UICanvas;
  2166. private _2DCanvas;
  2167. private _3DCanvas;
  2168. private _pickerRef;
  2169. private _timer;
  2170. private static PREVIEW_UPDATE_DELAY_MS;
  2171. constructor(props: ITextureEditorComponentProps);
  2172. componentDidMount(): void;
  2173. componentDidUpdate(): void;
  2174. componentWillUnmount(): void;
  2175. textureDidUpdate(): void;
  2176. loadToolFromURL(url: string): void;
  2177. addTools(tools: IToolData[]): void;
  2178. getToolParameters(): IToolParameters;
  2179. changeTool(index: number): void;
  2180. setMetadata(newMetadata: any): void;
  2181. setPickerOpen(open: boolean): void;
  2182. onPointerDown(evt: React.PointerEvent): void;
  2183. saveTexture(): void;
  2184. resetTexture(): void;
  2185. resizeTexture(width: number, height: number): void;
  2186. uploadTexture(file: File): void;
  2187. render(): JSX.Element;
  2188. }
  2189. }
  2190. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent" {
  2191. import * as React from "react";
  2192. import { Nullable } from "babylonjs/types";
  2193. import { Observable } from "babylonjs/Misc/observable";
  2194. import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
  2195. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2196. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2197. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2198. interface ITexturePropertyGridComponentProps {
  2199. texture: BaseTexture;
  2200. lockObject: LockObject;
  2201. globalState: GlobalState;
  2202. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2203. }
  2204. interface ITexturePropertyGridComponentState {
  2205. isTextureEditorOpen: boolean;
  2206. textureEditing: Nullable<BaseTexture>;
  2207. }
  2208. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps, ITexturePropertyGridComponentState> {
  2209. private _adtInstrumentation;
  2210. private popoutWindowRef;
  2211. private textureLineRef;
  2212. private _textureInspectorSize;
  2213. constructor(props: ITexturePropertyGridComponentProps);
  2214. componentWillUnmount(): void;
  2215. updateTexture(file: File): void;
  2216. openTextureEditor(): void;
  2217. onOpenTextureEditor(window: Window): void;
  2218. onCloseTextureEditor(callback?: {
  2219. (): void;
  2220. }): void;
  2221. forceRefresh(): void;
  2222. render(): JSX.Element;
  2223. }
  2224. }
  2225. declare module "babylonjs-inspector/components/actionTabs/lines/vector2LineComponent" {
  2226. import * as React from "react";
  2227. import { Vector2 } from "babylonjs/Maths/math.vector";
  2228. import { Observable } from "babylonjs/Misc/observable";
  2229. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2230. interface IVector2LineComponentProps {
  2231. label: string;
  2232. target: any;
  2233. propertyName: string;
  2234. step?: number;
  2235. onChange?: (newvalue: Vector2) => void;
  2236. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2237. }
  2238. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  2239. isExpanded: boolean;
  2240. value: Vector2;
  2241. }> {
  2242. static defaultProps: {
  2243. step: number;
  2244. };
  2245. private _localChange;
  2246. constructor(props: IVector2LineComponentProps);
  2247. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  2248. isExpanded: boolean;
  2249. value: Vector2;
  2250. }): boolean;
  2251. switchExpandState(): void;
  2252. raiseOnPropertyChanged(previousValue: Vector2): void;
  2253. updateStateX(value: number): void;
  2254. updateStateY(value: number): void;
  2255. render(): JSX.Element;
  2256. }
  2257. }
  2258. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent" {
  2259. import * as React from "react";
  2260. import { Observable } from "babylonjs/Misc/observable";
  2261. import { PBRMaterial } from "babylonjs/Materials/PBR/pbrMaterial";
  2262. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2263. import { TextureLinkLineComponent } from "babylonjs-inspector/components/actionTabs/lines/textureLinkLineComponent";
  2264. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2265. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2266. interface IPBRMaterialPropertyGridComponentProps {
  2267. globalState: GlobalState;
  2268. material: PBRMaterial;
  2269. lockObject: LockObject;
  2270. onSelectionChangedObservable?: Observable<any>;
  2271. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2272. }
  2273. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  2274. private _onDebugSelectionChangeObservable;
  2275. constructor(props: IPBRMaterialPropertyGridComponentProps);
  2276. switchAmbientMode(state: boolean): void;
  2277. switchMetallicMode(state: boolean): void;
  2278. switchRoughnessMode(state: boolean): void;
  2279. renderTextures(onDebugSelectionChangeObservable: Observable<TextureLinkLineComponent>): JSX.Element;
  2280. render(): JSX.Element;
  2281. }
  2282. }
  2283. declare module "babylonjs-inspector/components/actionTabs/lines/radioLineComponent" {
  2284. import * as React from "react";
  2285. import { Observable } from "babylonjs/Misc/observable";
  2286. interface IRadioButtonLineComponentProps {
  2287. onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
  2288. label: string;
  2289. isSelected: () => boolean;
  2290. onSelect: () => void;
  2291. }
  2292. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  2293. isSelected: boolean;
  2294. }> {
  2295. private _onSelectionChangedObserver;
  2296. constructor(props: IRadioButtonLineComponentProps);
  2297. componentDidMount(): void;
  2298. componentWillUnmount(): void;
  2299. onChange(): void;
  2300. render(): JSX.Element;
  2301. }
  2302. }
  2303. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent" {
  2304. import * as React from "react";
  2305. import { Observable } from "babylonjs/Misc/observable";
  2306. import { Scene } from "babylonjs/scene";
  2307. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2308. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2309. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2310. interface IFogPropertyGridComponentProps {
  2311. globalState: GlobalState;
  2312. scene: Scene;
  2313. lockObject: LockObject;
  2314. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2315. }
  2316. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  2317. mode: number;
  2318. }> {
  2319. constructor(props: IFogPropertyGridComponentProps);
  2320. render(): JSX.Element;
  2321. }
  2322. }
  2323. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent" {
  2324. import * as React from "react";
  2325. import { Observable } from "babylonjs/Misc/observable";
  2326. import { Vector3 } from "babylonjs/Maths/math.vector";
  2327. import { Scene } from "babylonjs/scene";
  2328. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2329. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2330. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2331. interface IScenePropertyGridComponentProps {
  2332. globalState: GlobalState;
  2333. scene: Scene;
  2334. lockObject: LockObject;
  2335. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2336. onSelectionChangedObservable?: Observable<any>;
  2337. }
  2338. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  2339. private _storedEnvironmentTexture;
  2340. private _renderingModeGroupObservable;
  2341. constructor(props: IScenePropertyGridComponentProps);
  2342. setRenderingModes(point: boolean, wireframe: boolean): void;
  2343. switchIBL(): void;
  2344. updateEnvironmentTexture(file: File): void;
  2345. updateGravity(newValue: Vector3): void;
  2346. updateTimeStep(newValue: number): void;
  2347. normalizeScene(): void;
  2348. render(): JSX.Element;
  2349. }
  2350. }
  2351. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent" {
  2352. import * as React from "react";
  2353. import { Observable } from "babylonjs/Misc/observable";
  2354. import { Light } from "babylonjs/Lights/light";
  2355. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2356. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2357. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2358. interface ICommonLightPropertyGridComponentProps {
  2359. globalState: GlobalState;
  2360. light: Light;
  2361. lockObject: LockObject;
  2362. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2363. }
  2364. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  2365. constructor(props: ICommonLightPropertyGridComponentProps);
  2366. render(): JSX.Element;
  2367. }
  2368. }
  2369. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent" {
  2370. import * as React from "react";
  2371. import { Observable } from "babylonjs/Misc/observable";
  2372. import { HemisphericLight } from "babylonjs/Lights/hemisphericLight";
  2373. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2374. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2375. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2376. interface IHemisphericLightPropertyGridComponentProps {
  2377. globalState: GlobalState;
  2378. light: HemisphericLight;
  2379. lockObject: LockObject;
  2380. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2381. }
  2382. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  2383. constructor(props: IHemisphericLightPropertyGridComponentProps);
  2384. render(): JSX.Element;
  2385. }
  2386. }
  2387. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent" {
  2388. import * as React from "react";
  2389. import { Observable } from "babylonjs/Misc/observable";
  2390. import { IShadowLight } from "babylonjs/Lights/shadowLight";
  2391. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2392. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2393. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2394. interface ICommonShadowLightPropertyGridComponentProps {
  2395. globalState: GlobalState;
  2396. light: IShadowLight;
  2397. lockObject: LockObject;
  2398. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2399. }
  2400. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  2401. private _internals;
  2402. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  2403. createShadowGenerator(): void;
  2404. disposeShadowGenerator(): void;
  2405. render(): JSX.Element;
  2406. }
  2407. }
  2408. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent" {
  2409. import * as React from "react";
  2410. import { Observable } from "babylonjs/Misc/observable";
  2411. import { PointLight } from "babylonjs/Lights/pointLight";
  2412. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2413. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2414. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2415. interface IPointLightPropertyGridComponentProps {
  2416. globalState: GlobalState;
  2417. light: PointLight;
  2418. lockObject: LockObject;
  2419. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2420. }
  2421. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  2422. constructor(props: IPointLightPropertyGridComponentProps);
  2423. render(): JSX.Element;
  2424. }
  2425. }
  2426. declare module "babylonjs-inspector/components/actionTabs/lines/hexLineComponent" {
  2427. import * as React from "react";
  2428. import { Observable } from "babylonjs/Misc/observable";
  2429. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2430. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2431. interface IHexLineComponentProps {
  2432. label: string;
  2433. target: any;
  2434. propertyName: string;
  2435. lockObject?: LockObject;
  2436. onChange?: (newValue: number) => void;
  2437. isInteger?: boolean;
  2438. replaySourceReplacement?: string;
  2439. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2440. additionalClass?: string;
  2441. step?: string;
  2442. digits?: number;
  2443. useEuler?: boolean;
  2444. min?: number;
  2445. }
  2446. export class HexLineComponent extends React.Component<IHexLineComponentProps, {
  2447. value: string;
  2448. }> {
  2449. private _localChange;
  2450. private _store;
  2451. private _propertyChange;
  2452. constructor(props: IHexLineComponentProps);
  2453. componentWillUnmount(): void;
  2454. shouldComponentUpdate(nextProps: IHexLineComponentProps, nextState: {
  2455. value: string;
  2456. }): boolean;
  2457. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  2458. convertToHexString(valueString: string): string;
  2459. updateValue(valueString: string, raisePropertyChanged: boolean): void;
  2460. lock(): void;
  2461. unlock(): void;
  2462. render(): JSX.Element;
  2463. }
  2464. }
  2465. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent" {
  2466. import * as React from "react";
  2467. import { Camera } from "babylonjs/Cameras/camera";
  2468. import { Observable } from "babylonjs/Misc/observable";
  2469. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2470. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2471. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2472. interface ICommonCameraPropertyGridComponentProps {
  2473. globalState: GlobalState;
  2474. camera: Camera;
  2475. lockObject: LockObject;
  2476. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2477. }
  2478. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  2479. mode: number;
  2480. }> {
  2481. constructor(props: ICommonCameraPropertyGridComponentProps);
  2482. render(): JSX.Element;
  2483. }
  2484. }
  2485. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent" {
  2486. import * as React from "react";
  2487. import { FreeCamera } from "babylonjs/Cameras/freeCamera";
  2488. import { Observable } from "babylonjs/Misc/observable";
  2489. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2490. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2491. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2492. interface IFreeCameraPropertyGridComponentProps {
  2493. globalState: GlobalState;
  2494. camera: FreeCamera;
  2495. lockObject: LockObject;
  2496. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2497. }
  2498. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  2499. constructor(props: IFreeCameraPropertyGridComponentProps);
  2500. render(): JSX.Element;
  2501. }
  2502. }
  2503. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent" {
  2504. import * as React from "react";
  2505. import { ArcRotateCamera } from "babylonjs/Cameras/arcRotateCamera";
  2506. import { Observable } from "babylonjs/Misc/observable";
  2507. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2508. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2509. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2510. interface IArcRotateCameraPropertyGridComponentProps {
  2511. globalState: GlobalState;
  2512. camera: ArcRotateCamera;
  2513. lockObject: LockObject;
  2514. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2515. }
  2516. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  2517. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  2518. render(): JSX.Element;
  2519. }
  2520. }
  2521. declare module "babylonjs-inspector/components/actionTabs/lines/indentedTextLineComponent" {
  2522. import * as React from "react";
  2523. interface IIndentedTextLineComponentProps {
  2524. value?: string;
  2525. color?: string;
  2526. underline?: boolean;
  2527. onLink?: () => void;
  2528. url?: string;
  2529. additionalClass?: string;
  2530. }
  2531. export class IndentedTextLineComponent extends React.Component<IIndentedTextLineComponentProps> {
  2532. constructor(props: IIndentedTextLineComponentProps);
  2533. onLink(): void;
  2534. renderContent(): JSX.Element;
  2535. render(): JSX.Element;
  2536. }
  2537. }
  2538. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/commonPropertyGridComponent" {
  2539. import * as React from "react";
  2540. import { Observable } from "babylonjs/Misc/observable";
  2541. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2542. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2543. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2544. interface ICommonPropertyGridComponentProps {
  2545. globalState: GlobalState;
  2546. host: {
  2547. metadata: any;
  2548. };
  2549. lockObject: LockObject;
  2550. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2551. }
  2552. export class CommonPropertyGridComponent extends React.Component<ICommonPropertyGridComponentProps> {
  2553. constructor(props: ICommonPropertyGridComponentProps);
  2554. renderLevel(jsonObject: any): JSX.Element[];
  2555. render(): JSX.Element | null;
  2556. }
  2557. }
  2558. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/variantsPropertyGridComponent" {
  2559. import * as React from "react";
  2560. import { Observable } from "babylonjs/Misc/observable";
  2561. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2562. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2563. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2564. interface IVariantsPropertyGridComponentProps {
  2565. globalState: GlobalState;
  2566. host: any;
  2567. lockObject: LockObject;
  2568. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2569. }
  2570. export class VariantsPropertyGridComponent extends React.Component<IVariantsPropertyGridComponentProps> {
  2571. constructor(props: IVariantsPropertyGridComponentProps);
  2572. private _getVariantsExtension;
  2573. render(): JSX.Element | null;
  2574. }
  2575. }
  2576. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent" {
  2577. import * as React from "react";
  2578. import { Observable } from "babylonjs/Misc/observable";
  2579. import { Mesh } from "babylonjs/Meshes/mesh";
  2580. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2581. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2582. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2583. interface IMeshPropertyGridComponentProps {
  2584. globalState: GlobalState;
  2585. mesh: Mesh;
  2586. lockObject: LockObject;
  2587. onSelectionChangedObservable?: Observable<any>;
  2588. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2589. }
  2590. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  2591. displayNormals: boolean;
  2592. displayVertexColors: boolean;
  2593. displayBoneWeights: boolean;
  2594. displayBoneIndex: number;
  2595. displaySkeletonMap: boolean;
  2596. }> {
  2597. constructor(props: IMeshPropertyGridComponentProps);
  2598. renderWireframeOver(): void;
  2599. renderNormalVectors(): void;
  2600. displayNormals(): void;
  2601. displayVertexColors(): void;
  2602. displayBoneWeights(): void;
  2603. displaySkeletonMap(): void;
  2604. onBoneDisplayIndexChange(value: number): void;
  2605. onMaterialLink(): void;
  2606. onSourceMeshLink(): void;
  2607. onSkeletonLink(): void;
  2608. convertPhysicsTypeToString(): string;
  2609. render(): JSX.Element;
  2610. }
  2611. }
  2612. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent" {
  2613. import * as React from "react";
  2614. import { TransformNode } from "babylonjs/Meshes/transformNode";
  2615. import { Observable } from "babylonjs/Misc/observable";
  2616. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2617. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2618. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2619. interface ITransformNodePropertyGridComponentProps {
  2620. globalState: GlobalState;
  2621. transformNode: TransformNode;
  2622. lockObject: LockObject;
  2623. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2624. }
  2625. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  2626. constructor(props: ITransformNodePropertyGridComponentProps);
  2627. render(): JSX.Element;
  2628. }
  2629. }
  2630. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent" {
  2631. import * as React from "react";
  2632. import { Observable } from "babylonjs/Misc/observable";
  2633. import { BackgroundMaterial } from "babylonjs/Materials/Background/backgroundMaterial";
  2634. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2635. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2636. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2637. interface IBackgroundMaterialPropertyGridComponentProps {
  2638. globalState: GlobalState;
  2639. material: BackgroundMaterial;
  2640. lockObject: LockObject;
  2641. onSelectionChangedObservable?: Observable<any>;
  2642. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2643. }
  2644. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  2645. private _onDebugSelectionChangeObservable;
  2646. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  2647. renderTextures(): JSX.Element;
  2648. render(): JSX.Element;
  2649. }
  2650. }
  2651. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent" {
  2652. import * as React from "react";
  2653. import { Observable } from "babylonjs/Misc/observable";
  2654. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2655. import { Control } from "babylonjs-gui/2D/controls/control";
  2656. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2657. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2658. interface ICommonControlPropertyGridComponentProps {
  2659. globalState: GlobalState;
  2660. control: Control;
  2661. lockObject: LockObject;
  2662. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2663. }
  2664. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  2665. constructor(props: ICommonControlPropertyGridComponentProps);
  2666. renderGridInformation(): JSX.Element | null;
  2667. render(): JSX.Element;
  2668. }
  2669. }
  2670. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent" {
  2671. import * as React from "react";
  2672. import { Observable } from "babylonjs/Misc/observable";
  2673. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2674. import { Control } from "babylonjs-gui/2D/controls/control";
  2675. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2676. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2677. interface IControlPropertyGridComponentProps {
  2678. globalState: GlobalState;
  2679. control: Control;
  2680. lockObject: LockObject;
  2681. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2682. }
  2683. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  2684. constructor(props: IControlPropertyGridComponentProps);
  2685. render(): JSX.Element;
  2686. }
  2687. }
  2688. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent" {
  2689. import * as React from "react";
  2690. import { Observable } from "babylonjs/Misc/observable";
  2691. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2692. import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
  2693. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2694. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2695. interface ITextBlockPropertyGridComponentProps {
  2696. globalState: GlobalState;
  2697. textBlock: TextBlock;
  2698. lockObject: LockObject;
  2699. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2700. }
  2701. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  2702. constructor(props: ITextBlockPropertyGridComponentProps);
  2703. render(): JSX.Element;
  2704. }
  2705. }
  2706. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent" {
  2707. import * as React from "react";
  2708. import { Observable } from "babylonjs/Misc/observable";
  2709. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2710. import { InputText } from "babylonjs-gui/2D/controls/inputText";
  2711. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2712. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2713. interface IInputTextPropertyGridComponentProps {
  2714. globalState: GlobalState;
  2715. inputText: InputText;
  2716. lockObject: LockObject;
  2717. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2718. }
  2719. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  2720. constructor(props: IInputTextPropertyGridComponentProps);
  2721. render(): JSX.Element;
  2722. }
  2723. }
  2724. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent" {
  2725. import * as React from "react";
  2726. import { Observable } from "babylonjs/Misc/observable";
  2727. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2728. import { ColorPicker } from "babylonjs-gui/2D/controls/colorpicker";
  2729. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2730. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2731. interface IColorPickerPropertyGridComponentProps {
  2732. globalState: GlobalState;
  2733. colorPicker: ColorPicker;
  2734. lockObject: LockObject;
  2735. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2736. }
  2737. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  2738. constructor(props: IColorPickerPropertyGridComponentProps);
  2739. render(): JSX.Element;
  2740. }
  2741. }
  2742. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationGroupPropertyGridComponent" {
  2743. import * as React from "react";
  2744. import { Observable } from "babylonjs/Misc/observable";
  2745. import { AnimationGroup } from "babylonjs/Animations/animationGroup";
  2746. import { Scene } from "babylonjs/scene";
  2747. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2748. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2749. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2750. interface IAnimationGroupGridComponentProps {
  2751. globalState: GlobalState;
  2752. animationGroup: AnimationGroup;
  2753. scene: Scene;
  2754. lockObject: LockObject;
  2755. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2756. }
  2757. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  2758. playButtonText: string;
  2759. currentFrame: number;
  2760. }> {
  2761. private _onAnimationGroupPlayObserver;
  2762. private _onAnimationGroupPauseObserver;
  2763. private _onBeforeRenderObserver;
  2764. private timelineRef;
  2765. constructor(props: IAnimationGroupGridComponentProps);
  2766. disconnect(animationGroup: AnimationGroup): void;
  2767. connect(animationGroup: AnimationGroup): void;
  2768. updateCurrentFrame(animationGroup: AnimationGroup): void;
  2769. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  2770. componentWillUnmount(): void;
  2771. playOrPause(): void;
  2772. onCurrentFrameChange(value: number): void;
  2773. render(): JSX.Element;
  2774. }
  2775. }
  2776. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent" {
  2777. import * as React from "react";
  2778. import { Observable } from "babylonjs/Misc/observable";
  2779. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2780. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2781. import { Image } from "babylonjs-gui/2D/controls/image";
  2782. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2783. interface IImagePropertyGridComponentProps {
  2784. globalState: GlobalState;
  2785. image: Image;
  2786. lockObject: LockObject;
  2787. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2788. }
  2789. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  2790. constructor(props: IImagePropertyGridComponentProps);
  2791. render(): JSX.Element;
  2792. }
  2793. }
  2794. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent" {
  2795. import * as React from "react";
  2796. import { Observable } from "babylonjs/Misc/observable";
  2797. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2798. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2799. import { Slider } from "babylonjs-gui/2D/controls/sliders/slider";
  2800. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2801. interface ISliderPropertyGridComponentProps {
  2802. globalState: GlobalState;
  2803. slider: Slider;
  2804. lockObject: LockObject;
  2805. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2806. }
  2807. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  2808. constructor(props: ISliderPropertyGridComponentProps);
  2809. render(): JSX.Element;
  2810. }
  2811. }
  2812. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent" {
  2813. import * as React from "react";
  2814. import { Observable } from "babylonjs/Misc/observable";
  2815. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2816. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2817. import { ImageBasedSlider } from "babylonjs-gui/2D/controls/sliders/imageBasedSlider";
  2818. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2819. interface IImageBasedSliderPropertyGridComponentProps {
  2820. globalState: GlobalState;
  2821. imageBasedSlider: ImageBasedSlider;
  2822. lockObject: LockObject;
  2823. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2824. }
  2825. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  2826. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  2827. render(): JSX.Element;
  2828. }
  2829. }
  2830. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent" {
  2831. import * as React from "react";
  2832. import { Observable } from "babylonjs/Misc/observable";
  2833. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2834. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2835. import { Rectangle } from "babylonjs-gui/2D/controls/rectangle";
  2836. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2837. interface IRectanglePropertyGridComponentProps {
  2838. globalState: GlobalState;
  2839. rectangle: Rectangle;
  2840. lockObject: LockObject;
  2841. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2842. }
  2843. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  2844. constructor(props: IRectanglePropertyGridComponentProps);
  2845. render(): JSX.Element;
  2846. }
  2847. }
  2848. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent" {
  2849. import * as React from "react";
  2850. import { Observable } from "babylonjs/Misc/observable";
  2851. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2852. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2853. import { Ellipse } from "babylonjs-gui/2D/controls/ellipse";
  2854. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2855. interface IEllipsePropertyGridComponentProps {
  2856. globalState: GlobalState;
  2857. ellipse: Ellipse;
  2858. lockObject: LockObject;
  2859. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2860. }
  2861. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  2862. constructor(props: IEllipsePropertyGridComponentProps);
  2863. render(): JSX.Element;
  2864. }
  2865. }
  2866. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent" {
  2867. import * as React from "react";
  2868. import { Observable } from "babylonjs/Misc/observable";
  2869. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2870. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2871. import { Checkbox } from "babylonjs-gui/2D/controls/checkbox";
  2872. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2873. interface ICheckboxPropertyGridComponentProps {
  2874. globalState: GlobalState;
  2875. checkbox: Checkbox;
  2876. lockObject: LockObject;
  2877. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2878. }
  2879. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  2880. constructor(props: ICheckboxPropertyGridComponentProps);
  2881. render(): JSX.Element;
  2882. }
  2883. }
  2884. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent" {
  2885. import * as React from "react";
  2886. import { Observable } from "babylonjs/Misc/observable";
  2887. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2888. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2889. import { RadioButton } from "babylonjs-gui/2D/controls/radioButton";
  2890. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2891. interface IRadioButtonPropertyGridComponentProps {
  2892. globalState: GlobalState;
  2893. radioButton: RadioButton;
  2894. lockObject: LockObject;
  2895. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2896. }
  2897. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  2898. constructor(props: IRadioButtonPropertyGridComponentProps);
  2899. render(): JSX.Element;
  2900. }
  2901. }
  2902. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent" {
  2903. import * as React from "react";
  2904. import { Observable } from "babylonjs/Misc/observable";
  2905. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2906. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2907. import { Line } from "babylonjs-gui/2D/controls/line";
  2908. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2909. interface ILinePropertyGridComponentProps {
  2910. globalState: GlobalState;
  2911. line: Line;
  2912. lockObject: LockObject;
  2913. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2914. }
  2915. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  2916. constructor(props: ILinePropertyGridComponentProps);
  2917. onDashChange(value: string): void;
  2918. render(): JSX.Element;
  2919. }
  2920. }
  2921. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent" {
  2922. import * as React from "react";
  2923. import { Observable } from "babylonjs/Misc/observable";
  2924. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2925. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2926. import { ScrollViewer } from "babylonjs-gui/2D/controls/scrollViewers/scrollViewer";
  2927. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2928. interface IScrollViewerPropertyGridComponentProps {
  2929. globalState: GlobalState;
  2930. scrollViewer: ScrollViewer;
  2931. lockObject: LockObject;
  2932. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2933. }
  2934. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  2935. constructor(props: IScrollViewerPropertyGridComponentProps);
  2936. render(): JSX.Element;
  2937. }
  2938. }
  2939. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent" {
  2940. import * as React from "react";
  2941. import { Observable } from "babylonjs/Misc/observable";
  2942. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2943. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2944. import { Grid } from "babylonjs-gui/2D/controls/grid";
  2945. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2946. interface IGridPropertyGridComponentProps {
  2947. globalState: GlobalState;
  2948. grid: Grid;
  2949. lockObject: LockObject;
  2950. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2951. }
  2952. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  2953. constructor(props: IGridPropertyGridComponentProps);
  2954. renderRows(): JSX.Element[];
  2955. renderColumns(): JSX.Element[];
  2956. render(): JSX.Element;
  2957. }
  2958. }
  2959. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent" {
  2960. import * as React from "react";
  2961. import { Observable } from "babylonjs/Misc/observable";
  2962. import { PBRMetallicRoughnessMaterial } from "babylonjs/Materials/PBR/pbrMetallicRoughnessMaterial";
  2963. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2964. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2965. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2966. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  2967. globalState: GlobalState;
  2968. material: PBRMetallicRoughnessMaterial;
  2969. lockObject: LockObject;
  2970. onSelectionChangedObservable?: Observable<any>;
  2971. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2972. }
  2973. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  2974. private _onDebugSelectionChangeObservable;
  2975. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  2976. renderTextures(): JSX.Element;
  2977. render(): JSX.Element;
  2978. }
  2979. }
  2980. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent" {
  2981. import * as React from "react";
  2982. import { Observable } from "babylonjs/Misc/observable";
  2983. import { PBRSpecularGlossinessMaterial } from "babylonjs/Materials/PBR/pbrSpecularGlossinessMaterial";
  2984. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  2985. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  2986. import { GlobalState } from "babylonjs-inspector/components/globalState";
  2987. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  2988. globalState: GlobalState;
  2989. material: PBRSpecularGlossinessMaterial;
  2990. lockObject: LockObject;
  2991. onSelectionChangedObservable?: Observable<any>;
  2992. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  2993. }
  2994. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  2995. private _onDebugSelectionChangeObservable;
  2996. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  2997. renderTextures(): JSX.Element;
  2998. render(): JSX.Element;
  2999. }
  3000. }
  3001. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent" {
  3002. import * as React from "react";
  3003. import { Observable } from "babylonjs/Misc/observable";
  3004. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3005. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3006. import { StackPanel } from "babylonjs-gui/2D/controls/stackPanel";
  3007. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3008. interface IStackPanelPropertyGridComponentProps {
  3009. globalState: GlobalState;
  3010. stackPanel: StackPanel;
  3011. lockObject: LockObject;
  3012. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3013. }
  3014. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  3015. constructor(props: IStackPanelPropertyGridComponentProps);
  3016. render(): JSX.Element;
  3017. }
  3018. }
  3019. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent" {
  3020. import * as React from "react";
  3021. import { Observable } from "babylonjs/Misc/observable";
  3022. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3023. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3024. import { PostProcess } from 'babylonjs/PostProcesses/postProcess';
  3025. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3026. interface ICommonPostProcessPropertyGridComponentProps {
  3027. globalState: GlobalState;
  3028. postProcess: PostProcess;
  3029. lockObject: LockObject;
  3030. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3031. }
  3032. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  3033. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  3034. render(): JSX.Element;
  3035. }
  3036. }
  3037. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent" {
  3038. import * as React from "react";
  3039. import { Observable } from "babylonjs/Misc/observable";
  3040. import { PostProcess } from "babylonjs/PostProcesses/postProcess";
  3041. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3042. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3043. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3044. interface IPostProcessPropertyGridComponentProps {
  3045. globalState: GlobalState;
  3046. postProcess: PostProcess;
  3047. lockObject: LockObject;
  3048. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3049. }
  3050. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  3051. constructor(props: IPostProcessPropertyGridComponentProps);
  3052. edit(): void;
  3053. render(): JSX.Element;
  3054. }
  3055. }
  3056. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent" {
  3057. import * as React from "react";
  3058. import { Observable } from "babylonjs/Misc/observable";
  3059. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3060. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3061. import { PostProcessRenderPipeline } from 'babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline';
  3062. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3063. interface ICommonRenderingPipelinePropertyGridComponentProps {
  3064. globalState: GlobalState;
  3065. renderPipeline: PostProcessRenderPipeline;
  3066. lockObject: LockObject;
  3067. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3068. }
  3069. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  3070. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  3071. render(): JSX.Element;
  3072. }
  3073. }
  3074. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent" {
  3075. import * as React from "react";
  3076. import { Observable } from "babylonjs/Misc/observable";
  3077. import { PostProcessRenderPipeline } from "babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline";
  3078. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3079. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3080. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3081. interface IRenderingPipelinePropertyGridComponentProps {
  3082. globalState: GlobalState;
  3083. renderPipeline: PostProcessRenderPipeline;
  3084. lockObject: LockObject;
  3085. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3086. }
  3087. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  3088. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  3089. render(): JSX.Element;
  3090. }
  3091. }
  3092. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent" {
  3093. import * as React from "react";
  3094. import { Observable } from "babylonjs/Misc/observable";
  3095. import { DefaultRenderingPipeline } from "babylonjs/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline";
  3096. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3097. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3098. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3099. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  3100. globalState: GlobalState;
  3101. renderPipeline: DefaultRenderingPipeline;
  3102. lockObject: LockObject;
  3103. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3104. }
  3105. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  3106. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  3107. render(): JSX.Element;
  3108. }
  3109. }
  3110. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent" {
  3111. import * as React from "react";
  3112. import { Observable } from "babylonjs/Misc/observable";
  3113. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3114. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3115. import { SSAORenderingPipeline } from 'babylonjs/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline';
  3116. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3117. interface ISSAORenderingPipelinePropertyGridComponentProps {
  3118. globalState: GlobalState;
  3119. renderPipeline: SSAORenderingPipeline;
  3120. lockObject: LockObject;
  3121. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3122. }
  3123. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  3124. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  3125. render(): JSX.Element;
  3126. }
  3127. }
  3128. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent" {
  3129. import * as React from "react";
  3130. import { Observable } from "babylonjs/Misc/observable";
  3131. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3132. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3133. import { SSAO2RenderingPipeline } from 'babylonjs/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline';
  3134. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3135. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  3136. globalState: GlobalState;
  3137. renderPipeline: SSAO2RenderingPipeline;
  3138. lockObject: LockObject;
  3139. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3140. }
  3141. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  3142. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  3143. render(): JSX.Element;
  3144. }
  3145. }
  3146. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent" {
  3147. import * as React from "react";
  3148. import { Observable } from "babylonjs/Misc/observable";
  3149. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3150. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3151. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3152. import { Skeleton } from 'babylonjs/Bones/skeleton';
  3153. interface ISkeletonPropertyGridComponentProps {
  3154. globalState: GlobalState;
  3155. skeleton: Skeleton;
  3156. lockObject: LockObject;
  3157. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3158. }
  3159. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  3160. private _skeletonViewersEnabled;
  3161. private _skeletonViewerDisplayOptions;
  3162. private _skeletonViewers;
  3163. constructor(props: ISkeletonPropertyGridComponentProps);
  3164. switchSkeletonViewers(): void;
  3165. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  3166. changeDisplayMode(): void;
  3167. changeDisplayOptions(option: string, value: number): void;
  3168. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  3169. onOverrideMeshLink(): void;
  3170. render(): JSX.Element;
  3171. }
  3172. }
  3173. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent" {
  3174. import * as React from "react";
  3175. import { Observable } from "babylonjs/Misc/observable";
  3176. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3177. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3178. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3179. import { Bone } from 'babylonjs/Bones/bone';
  3180. interface IBonePropertyGridComponentProps {
  3181. globalState: GlobalState;
  3182. bone: Bone;
  3183. lockObject: LockObject;
  3184. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3185. }
  3186. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  3187. constructor(props: IBonePropertyGridComponentProps);
  3188. onTransformNodeLink(): void;
  3189. render(): JSX.Element;
  3190. }
  3191. }
  3192. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent" {
  3193. import * as React from "react";
  3194. import { Observable } from "babylonjs/Misc/observable";
  3195. import { DirectionalLight } from "babylonjs/Lights/directionalLight";
  3196. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3197. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3198. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3199. interface IDirectionalLightPropertyGridComponentProps {
  3200. globalState: GlobalState;
  3201. light: DirectionalLight;
  3202. lockObject: LockObject;
  3203. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3204. }
  3205. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  3206. constructor(props: IDirectionalLightPropertyGridComponentProps);
  3207. render(): JSX.Element;
  3208. }
  3209. }
  3210. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent" {
  3211. import * as React from "react";
  3212. import { Observable } from "babylonjs/Misc/observable";
  3213. import { SpotLight } from "babylonjs/Lights/spotLight";
  3214. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3215. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3216. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3217. interface ISpotLightPropertyGridComponentProps {
  3218. globalState: GlobalState;
  3219. light: SpotLight;
  3220. lockObject: LockObject;
  3221. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3222. }
  3223. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  3224. constructor(props: ISpotLightPropertyGridComponentProps);
  3225. render(): JSX.Element;
  3226. }
  3227. }
  3228. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent" {
  3229. import * as React from "react";
  3230. import { Observable } from "babylonjs/Misc/observable";
  3231. import { LensRenderingPipeline } from "babylonjs/PostProcesses/RenderPipeline/Pipelines/lensRenderingPipeline";
  3232. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3233. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3234. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3235. interface ILenstRenderingPipelinePropertyGridComponentProps {
  3236. globalState: GlobalState;
  3237. renderPipeline: LensRenderingPipeline;
  3238. lockObject: LockObject;
  3239. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3240. }
  3241. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  3242. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  3243. render(): JSX.Element;
  3244. }
  3245. }
  3246. declare module "babylonjs-inspector/components/actionTabs/lines/vector4LineComponent" {
  3247. import * as React from "react";
  3248. import { Vector4 } from "babylonjs/Maths/math.vector";
  3249. import { Observable } from "babylonjs/Misc/observable";
  3250. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3251. interface IVector4LineComponentProps {
  3252. label: string;
  3253. target: any;
  3254. propertyName: string;
  3255. step?: number;
  3256. onChange?: (newvalue: Vector4) => void;
  3257. useEuler?: boolean;
  3258. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3259. }
  3260. export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
  3261. isExpanded: boolean;
  3262. value: Vector4;
  3263. }> {
  3264. static defaultProps: {
  3265. step: number;
  3266. };
  3267. private _localChange;
  3268. constructor(props: IVector4LineComponentProps);
  3269. getCurrentValue(): any;
  3270. shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
  3271. isExpanded: boolean;
  3272. value: Vector4;
  3273. }): boolean;
  3274. switchExpandState(): void;
  3275. raiseOnPropertyChanged(previousValue: Vector4): void;
  3276. updateVector4(): void;
  3277. updateStateX(value: number): void;
  3278. updateStateY(value: number): void;
  3279. updateStateZ(value: number): void;
  3280. updateStateW(value: number): void;
  3281. render(): JSX.Element;
  3282. }
  3283. }
  3284. declare module "babylonjs-inspector/components/actionTabs/lines/color4LineComponent" {
  3285. import * as React from "react";
  3286. import { Observable } from "babylonjs/Misc/observable";
  3287. import { Color4 } from "babylonjs/Maths/math.color";
  3288. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3289. export interface IColor4LineComponentProps {
  3290. label: string;
  3291. target: any;
  3292. propertyName: string;
  3293. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3294. onChange?: () => void;
  3295. isLinear?: boolean;
  3296. }
  3297. export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
  3298. isExpanded: boolean;
  3299. color: Color4;
  3300. }> {
  3301. private _localChange;
  3302. constructor(props: IColor4LineComponentProps);
  3303. shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
  3304. color: Color4;
  3305. }): boolean;
  3306. setPropertyValue(newColor: Color4): void;
  3307. onChange(newValue: string): void;
  3308. switchExpandState(): void;
  3309. raiseOnPropertyChanged(previousValue: Color4): void;
  3310. updateStateR(value: number): void;
  3311. updateStateG(value: number): void;
  3312. updateStateB(value: number): void;
  3313. updateStateA(value: number): void;
  3314. copyToClipboard(): void;
  3315. render(): JSX.Element;
  3316. }
  3317. }
  3318. declare module "babylonjs-inspector/components/actionTabs/tabs/gradientStepComponent" {
  3319. import * as React from 'react';
  3320. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3321. import { GradientBlockColorStep } from 'babylonjs/Materials/Node/Blocks/gradientBlock';
  3322. interface IGradientStepComponentProps {
  3323. globalState: GlobalState;
  3324. step: GradientBlockColorStep;
  3325. lineIndex: number;
  3326. onDelete: () => void;
  3327. onUpdateStep: () => void;
  3328. onCheckForReOrder: () => void;
  3329. onCopy?: () => void;
  3330. }
  3331. export class GradientStepComponent extends React.Component<IGradientStepComponentProps, {
  3332. gradient: number;
  3333. }> {
  3334. constructor(props: IGradientStepComponentProps);
  3335. updateColor(color: string): void;
  3336. updateStep(gradient: number): void;
  3337. onPointerUp(): void;
  3338. render(): JSX.Element;
  3339. }
  3340. }
  3341. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyComponentProps" {
  3342. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3343. import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock';
  3344. export interface IPropertyComponentProps {
  3345. globalState: GlobalState;
  3346. block: NodeMaterialBlock;
  3347. }
  3348. }
  3349. declare module "babylonjs-inspector/components/actionTabs/tabs/gradientNodePropertyComponent" {
  3350. import * as React from "react";
  3351. import { GradientBlockColorStep } from 'babylonjs/Materials/Node/Blocks/gradientBlock';
  3352. import { IPropertyComponentProps } from "babylonjs-inspector/components/actionTabs/tabs/propertyComponentProps";
  3353. export class GradientPropertyTabComponent extends React.Component<IPropertyComponentProps> {
  3354. private _gradientBlock;
  3355. constructor(props: IPropertyComponentProps);
  3356. forceRebuild(): void;
  3357. deleteStep(step: GradientBlockColorStep): void;
  3358. copyStep(step: GradientBlockColorStep): void;
  3359. addNewStep(): void;
  3360. checkForReOrder(): void;
  3361. render(): JSX.Element;
  3362. }
  3363. }
  3364. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent" {
  3365. import * as React from "react";
  3366. import { Observable } from "babylonjs/Misc/observable";
  3367. import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial";
  3368. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3369. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3370. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3371. import { InputBlock } from 'babylonjs/Materials/Node/Blocks/Input/inputBlock';
  3372. interface INodeMaterialPropertyGridComponentProps {
  3373. globalState: GlobalState;
  3374. material: NodeMaterial;
  3375. lockObject: LockObject;
  3376. onSelectionChangedObservable?: Observable<any>;
  3377. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3378. }
  3379. export class NodeMaterialPropertyGridComponent extends React.Component<INodeMaterialPropertyGridComponentProps> {
  3380. private _onDebugSelectionChangeObservable;
  3381. constructor(props: INodeMaterialPropertyGridComponentProps);
  3382. edit(): void;
  3383. renderTextures(): JSX.Element | null;
  3384. renderInputBlock(block: InputBlock): JSX.Element | null;
  3385. renderInputValues(): JSX.Element;
  3386. render(): JSX.Element;
  3387. }
  3388. }
  3389. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent" {
  3390. import * as React from "react";
  3391. import { Observable } from "babylonjs/Misc/observable";
  3392. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3393. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3394. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3395. import { Material } from 'babylonjs/Materials/material';
  3396. import { MultiMaterial } from 'babylonjs/Materials/multiMaterial';
  3397. interface IMultiMaterialPropertyGridComponentProps {
  3398. globalState: GlobalState;
  3399. material: MultiMaterial;
  3400. lockObject: LockObject;
  3401. onSelectionChangedObservable?: Observable<any>;
  3402. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3403. }
  3404. export class MultiMaterialPropertyGridComponent extends React.Component<IMultiMaterialPropertyGridComponentProps> {
  3405. constructor(props: IMultiMaterialPropertyGridComponentProps);
  3406. onMaterialLink(mat: Material): void;
  3407. renderChildMaterial(): JSX.Element;
  3408. render(): JSX.Element;
  3409. }
  3410. }
  3411. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent" {
  3412. import * as React from "react";
  3413. import { Observable } from "babylonjs/Misc/observable";
  3414. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3415. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3416. import { BoxParticleEmitter } from 'babylonjs/Particles/EmitterTypes/boxParticleEmitter';
  3417. interface IBoxEmitterGridComponentProps {
  3418. globalState: GlobalState;
  3419. emitter: BoxParticleEmitter;
  3420. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3421. }
  3422. export class BoxEmitterGridComponent extends React.Component<IBoxEmitterGridComponentProps> {
  3423. constructor(props: IBoxEmitterGridComponentProps);
  3424. render(): JSX.Element;
  3425. }
  3426. }
  3427. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent" {
  3428. import * as React from "react";
  3429. import { Observable } from "babylonjs/Misc/observable";
  3430. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3431. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3432. import { ConeParticleEmitter } from 'babylonjs/Particles/EmitterTypes/coneParticleEmitter';
  3433. interface IConeEmitterGridComponentProps {
  3434. globalState: GlobalState;
  3435. emitter: ConeParticleEmitter;
  3436. onSelectionChangedObservable?: Observable<any>;
  3437. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3438. }
  3439. export class ConeEmitterGridComponent extends React.Component<IConeEmitterGridComponentProps> {
  3440. constructor(props: IConeEmitterGridComponentProps);
  3441. render(): JSX.Element;
  3442. }
  3443. }
  3444. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent" {
  3445. import * as React from "react";
  3446. import { Observable } from "babylonjs/Misc/observable";
  3447. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3448. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3449. import { CylinderParticleEmitter } from 'babylonjs/Particles/EmitterTypes/cylinderParticleEmitter';
  3450. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3451. interface ICylinderEmitterGridComponentProps {
  3452. globalState: GlobalState;
  3453. emitter: CylinderParticleEmitter;
  3454. lockObject: LockObject;
  3455. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3456. }
  3457. export class CylinderEmitterGridComponent extends React.Component<ICylinderEmitterGridComponentProps> {
  3458. constructor(props: ICylinderEmitterGridComponentProps);
  3459. render(): JSX.Element;
  3460. }
  3461. }
  3462. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent" {
  3463. import * as React from "react";
  3464. import { Observable } from "babylonjs/Misc/observable";
  3465. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3466. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3467. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3468. import { HemisphericParticleEmitter } from 'babylonjs/Particles/EmitterTypes/hemisphericParticleEmitter';
  3469. interface IHemisphericEmitterGridComponentProps {
  3470. globalState: GlobalState;
  3471. emitter: HemisphericParticleEmitter;
  3472. lockObject: LockObject;
  3473. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3474. }
  3475. export class HemisphericEmitterGridComponent extends React.Component<IHemisphericEmitterGridComponentProps> {
  3476. constructor(props: IHemisphericEmitterGridComponentProps);
  3477. render(): JSX.Element;
  3478. }
  3479. }
  3480. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent" {
  3481. import * as React from "react";
  3482. import { Observable } from "babylonjs/Misc/observable";
  3483. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3484. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3485. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3486. import { PointParticleEmitter } from 'babylonjs/Particles/EmitterTypes/pointParticleEmitter';
  3487. interface IPointEmitterGridComponentProps {
  3488. globalState: GlobalState;
  3489. emitter: PointParticleEmitter;
  3490. lockObject: LockObject;
  3491. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3492. }
  3493. export class PointEmitterGridComponent extends React.Component<IPointEmitterGridComponentProps> {
  3494. constructor(props: IPointEmitterGridComponentProps);
  3495. render(): JSX.Element;
  3496. }
  3497. }
  3498. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent" {
  3499. import * as React from "react";
  3500. import { Observable } from "babylonjs/Misc/observable";
  3501. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3502. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3503. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3504. import { SphereParticleEmitter } from 'babylonjs/Particles/EmitterTypes/sphereParticleEmitter';
  3505. interface ISphereEmitterGridComponentProps {
  3506. globalState: GlobalState;
  3507. emitter: SphereParticleEmitter;
  3508. lockObject: LockObject;
  3509. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3510. }
  3511. export class SphereEmitterGridComponent extends React.Component<ISphereEmitterGridComponentProps> {
  3512. constructor(props: ISphereEmitterGridComponentProps);
  3513. render(): JSX.Element;
  3514. }
  3515. }
  3516. declare module "babylonjs-inspector/components/actionTabs/lines/meshPickerComponent" {
  3517. import * as React from "react";
  3518. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3519. import { Observable } from 'babylonjs/Misc/observable';
  3520. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3521. import { Scene } from 'babylonjs/scene';
  3522. interface IMeshPickerComponentProps {
  3523. globalState: GlobalState;
  3524. target: any;
  3525. property: string;
  3526. scene: Scene;
  3527. label: string;
  3528. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3529. }
  3530. export class MeshPickerComponent extends React.Component<IMeshPickerComponentProps> {
  3531. constructor(props: IMeshPickerComponentProps);
  3532. render(): JSX.Element;
  3533. }
  3534. }
  3535. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent" {
  3536. import * as React from "react";
  3537. import { Observable } from "babylonjs/Misc/observable";
  3538. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3539. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3540. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3541. import { MeshParticleEmitter } from 'babylonjs/Particles/EmitterTypes/meshParticleEmitter';
  3542. import { Scene } from 'babylonjs/scene';
  3543. interface IMeshEmitterGridComponentProps {
  3544. globalState: GlobalState;
  3545. emitter: MeshParticleEmitter;
  3546. scene: Scene;
  3547. lockObject: LockObject;
  3548. onSelectionChangedObservable?: Observable<any>;
  3549. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3550. }
  3551. export class MeshEmitterGridComponent extends React.Component<IMeshEmitterGridComponentProps> {
  3552. constructor(props: IMeshEmitterGridComponentProps);
  3553. render(): JSX.Element;
  3554. }
  3555. }
  3556. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/factorGradientStepGridComponent" {
  3557. import * as React from 'react';
  3558. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3559. import { FactorGradient } from 'babylonjs/Misc/gradients';
  3560. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3561. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  3562. interface IFactorGradientStepGridComponent {
  3563. globalState: GlobalState;
  3564. gradient: FactorGradient;
  3565. lockObject: LockObject;
  3566. lineIndex: number;
  3567. onDelete: () => void;
  3568. onUpdateGradient: () => void;
  3569. onCheckForReOrder: () => void;
  3570. host: IParticleSystem;
  3571. codeRecorderPropertyName: string;
  3572. }
  3573. export class FactorGradientStepGridComponent extends React.Component<IFactorGradientStepGridComponent, {
  3574. gradient: number;
  3575. factor1: string;
  3576. factor2?: string;
  3577. }> {
  3578. constructor(props: IFactorGradientStepGridComponent);
  3579. shouldComponentUpdate(nextProps: IFactorGradientStepGridComponent, nextState: {
  3580. gradient: number;
  3581. factor1: string;
  3582. factor2?: string;
  3583. }): boolean;
  3584. updateFactor1(valueString: string): void;
  3585. updateFactor2(valueString: string): void;
  3586. updateGradient(gradient: number): void;
  3587. onPointerUp(): void;
  3588. lock(): void;
  3589. unlock(): void;
  3590. render(): JSX.Element;
  3591. }
  3592. }
  3593. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/colorGradientStepGridComponent" {
  3594. import * as React from 'react';
  3595. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3596. import { ColorGradient, Color3Gradient } from 'babylonjs/Misc/gradients';
  3597. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3598. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  3599. interface IColorGradientStepGridComponent {
  3600. globalState: GlobalState;
  3601. gradient: ColorGradient | Color3Gradient;
  3602. lockObject: LockObject;
  3603. lineIndex: number;
  3604. isColor3: boolean;
  3605. onDelete: () => void;
  3606. onUpdateGradient: () => void;
  3607. onCheckForReOrder: () => void;
  3608. host: IParticleSystem;
  3609. codeRecorderPropertyName: string;
  3610. }
  3611. export class ColorGradientStepGridComponent extends React.Component<IColorGradientStepGridComponent, {
  3612. gradient: number;
  3613. }> {
  3614. constructor(props: IColorGradientStepGridComponent);
  3615. updateColor1(color: string): void;
  3616. updateColor2(color: string): void;
  3617. updateGradient(gradient: number): void;
  3618. onPointerUp(): void;
  3619. lock(): void;
  3620. unlock(): void;
  3621. render(): JSX.Element;
  3622. }
  3623. }
  3624. declare module "babylonjs-inspector/components/actionTabs/lines/linkButtonComponent" {
  3625. import * as React from "react";
  3626. interface ILinkButtonComponentProps {
  3627. label: string;
  3628. buttonLabel: string;
  3629. url?: string;
  3630. onClick: () => void;
  3631. onIconClick?: () => void;
  3632. }
  3633. export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
  3634. constructor(props: ILinkButtonComponentProps);
  3635. onLink(): void;
  3636. render(): JSX.Element;
  3637. }
  3638. }
  3639. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent" {
  3640. import * as React from "react";
  3641. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3642. import { IValueGradient } from 'babylonjs/Misc/gradients';
  3643. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3644. import { Nullable } from 'babylonjs/types';
  3645. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  3646. export enum GradientGridMode {
  3647. Factor = 0,
  3648. Color3 = 1,
  3649. Color4 = 2
  3650. }
  3651. interface IValueGradientGridComponent {
  3652. globalState: GlobalState;
  3653. label: string;
  3654. gradients: Nullable<Array<IValueGradient>>;
  3655. lockObject: LockObject;
  3656. docLink?: string;
  3657. mode: GradientGridMode;
  3658. host: IParticleSystem;
  3659. codeRecorderPropertyName: string;
  3660. onCreateRequired: () => void;
  3661. }
  3662. export class ValueGradientGridComponent extends React.Component<IValueGradientGridComponent> {
  3663. constructor(props: IValueGradientGridComponent);
  3664. deleteStep(step: IValueGradient): void;
  3665. addNewStep(): void;
  3666. checkForReOrder(): void;
  3667. updateAndSync(): void;
  3668. render(): JSX.Element;
  3669. }
  3670. }
  3671. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent" {
  3672. import * as React from "react";
  3673. import { Observable } from "babylonjs/Misc/observable";
  3674. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3675. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3676. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3677. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  3678. interface IParticleSystemPropertyGridComponentProps {
  3679. globalState: GlobalState;
  3680. system: IParticleSystem;
  3681. lockObject: LockObject;
  3682. onSelectionChangedObservable?: Observable<any>;
  3683. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3684. }
  3685. export class ParticleSystemPropertyGridComponent extends React.Component<IParticleSystemPropertyGridComponentProps> {
  3686. private _snippetUrl;
  3687. constructor(props: IParticleSystemPropertyGridComponentProps);
  3688. renderEmitter(): JSX.Element | null;
  3689. raiseOnPropertyChanged(property: string, newValue: any, previousValue: any): void;
  3690. renderControls(): JSX.Element;
  3691. saveToFile(): void;
  3692. loadFromFile(file: File): void;
  3693. loadFromSnippet(): void;
  3694. saveToSnippet(): void;
  3695. render(): JSX.Element;
  3696. }
  3697. }
  3698. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/sprites/spriteManagerPropertyGridComponent" {
  3699. import * as React from "react";
  3700. import { Observable } from "babylonjs/Misc/observable";
  3701. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3702. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3703. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3704. import { SpriteManager } from 'babylonjs/Sprites/spriteManager';
  3705. interface ISpriteManagerPropertyGridComponentProps {
  3706. globalState: GlobalState;
  3707. spriteManager: SpriteManager;
  3708. lockObject: LockObject;
  3709. onSelectionChangedObservable?: Observable<any>;
  3710. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3711. }
  3712. export class SpriteManagerPropertyGridComponent extends React.Component<ISpriteManagerPropertyGridComponentProps> {
  3713. private _snippetUrl;
  3714. constructor(props: ISpriteManagerPropertyGridComponentProps);
  3715. addNewSprite(): void;
  3716. disposeManager(): void;
  3717. saveToFile(): void;
  3718. loadFromFile(file: File): void;
  3719. loadFromSnippet(): void;
  3720. saveToSnippet(): void;
  3721. render(): JSX.Element;
  3722. }
  3723. }
  3724. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/sprites/spritePropertyGridComponent" {
  3725. import * as React from "react";
  3726. import { Observable } from "babylonjs/Misc/observable";
  3727. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3728. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3729. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3730. import { Sprite } from 'babylonjs/Sprites/sprite';
  3731. interface ISpritePropertyGridComponentProps {
  3732. globalState: GlobalState;
  3733. sprite: Sprite;
  3734. lockObject: LockObject;
  3735. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3736. onSelectionChangedObservable?: Observable<any>;
  3737. }
  3738. export class SpritePropertyGridComponent extends React.Component<ISpritePropertyGridComponentProps> {
  3739. private canvasRef;
  3740. private imageData;
  3741. private cachedCellIndex;
  3742. constructor(props: ISpritePropertyGridComponentProps);
  3743. onManagerLink(): void;
  3744. switchPlayStopState(): void;
  3745. disposeSprite(): void;
  3746. componentDidMount(): void;
  3747. componentDidUpdate(): void;
  3748. shouldComponentUpdate(nextProps: ISpritePropertyGridComponentProps): boolean;
  3749. updatePreview(): void;
  3750. render(): JSX.Element;
  3751. }
  3752. }
  3753. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/targetedAnimationPropertyGridComponent" {
  3754. import * as React from "react";
  3755. import { Observable } from "babylonjs/Misc/observable";
  3756. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  3757. import { Scene } from "babylonjs/scene";
  3758. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3759. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3760. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3761. interface ITargetedAnimationGridComponentProps {
  3762. globalState: GlobalState;
  3763. targetedAnimation: TargetedAnimation;
  3764. scene: Scene;
  3765. lockObject: LockObject;
  3766. onSelectionChangedObservable?: Observable<any>;
  3767. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3768. }
  3769. export class TargetedAnimationGridComponent extends React.Component<ITargetedAnimationGridComponentProps> {
  3770. private _isCurveEditorOpen;
  3771. private _animationGroup;
  3772. constructor(props: ITargetedAnimationGridComponentProps);
  3773. onOpenAnimationCurveEditor: () => void;
  3774. onCloseAnimationCurveEditor: (window: Window | null) => void;
  3775. playOrPause: () => void;
  3776. deleteAnimation: () => void;
  3777. render(): JSX.Element;
  3778. }
  3779. }
  3780. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/cameras/followCameraPropertyGridComponent" {
  3781. import * as React from "react";
  3782. import { Observable } from "babylonjs/Misc/observable";
  3783. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  3784. import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
  3785. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3786. import { FollowCamera } from 'babylonjs/Cameras/followCamera';
  3787. interface IFollowCameraPropertyGridComponentProps {
  3788. globalState: GlobalState;
  3789. camera: FollowCamera;
  3790. lockObject: LockObject;
  3791. onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
  3792. }
  3793. export class FollowCameraPropertyGridComponent extends React.Component<IFollowCameraPropertyGridComponentProps> {
  3794. constructor(props: IFollowCameraPropertyGridComponentProps);
  3795. render(): JSX.Element;
  3796. }
  3797. }
  3798. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGridTabComponent" {
  3799. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  3800. export class PropertyGridTabComponent extends PaneComponent {
  3801. private _timerIntervalId;
  3802. private _lockObject;
  3803. constructor(props: IPaneComponentProps);
  3804. timerRefresh(): void;
  3805. componentDidMount(): void;
  3806. componentWillUnmount(): void;
  3807. render(): JSX.Element | null;
  3808. }
  3809. }
  3810. declare module "babylonjs-inspector/components/headerComponent" {
  3811. import * as React from "react";
  3812. import { Observable } from "babylonjs/Misc/observable";
  3813. export interface IHeaderComponentProps {
  3814. title: string;
  3815. handleBack?: boolean;
  3816. noExpand?: boolean;
  3817. noClose?: boolean;
  3818. noCommands?: boolean;
  3819. onPopup: () => void;
  3820. onClose: () => void;
  3821. onSelectionChangedObservable?: Observable<any>;
  3822. }
  3823. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  3824. isBackVisible: boolean;
  3825. }> {
  3826. private _backStack;
  3827. private _onSelectionChangeObserver;
  3828. constructor(props: IHeaderComponentProps);
  3829. componentDidMount(): void;
  3830. componentWillUnmount(): void;
  3831. goBack(): void;
  3832. renderLogo(): JSX.Element | null;
  3833. render(): JSX.Element;
  3834. }
  3835. }
  3836. declare module "babylonjs-inspector/components/actionTabs/lines/messageLineComponent" {
  3837. import * as React from "react";
  3838. interface IMessageLineComponentProps {
  3839. text: string;
  3840. color?: string;
  3841. }
  3842. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  3843. constructor(props: IMessageLineComponentProps);
  3844. render(): JSX.Element;
  3845. }
  3846. }
  3847. declare module "babylonjs-inspector/components/actionTabs/tabs/tools/gltfComponent" {
  3848. import * as React from "react";
  3849. import { Scene } from "babylonjs/scene";
  3850. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3851. interface IGLTFComponentProps {
  3852. scene: Scene;
  3853. globalState: GlobalState;
  3854. }
  3855. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  3856. private _onValidationResultsUpdatedObserver;
  3857. openValidationDetails(): void;
  3858. prepareText(singularForm: string, count: number): string;
  3859. componentDidMount(): void;
  3860. componentWillUnmount(): void;
  3861. renderValidation(): JSX.Element | null;
  3862. render(): JSX.Element;
  3863. }
  3864. }
  3865. declare module "babylonjs-inspector/components/actionTabs/lines/fileMultipleButtonLineComponent" {
  3866. import * as React from "react";
  3867. interface IFileMultipleButtonLineComponentProps {
  3868. label: string;
  3869. onClick: (event: any) => void;
  3870. accept: string;
  3871. }
  3872. export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
  3873. private static _IDGenerator;
  3874. private _id;
  3875. private uploadInputRef;
  3876. constructor(props: IFileMultipleButtonLineComponentProps);
  3877. onChange(evt: any): void;
  3878. render(): JSX.Element;
  3879. }
  3880. }
  3881. declare module "babylonjs-inspector/components/actionTabs/tabs/toolsTabComponent" {
  3882. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  3883. import { Node } from "babylonjs/node";
  3884. export class ToolsTabComponent extends PaneComponent {
  3885. private _videoRecorder;
  3886. private _screenShotSize;
  3887. private _gifOptions;
  3888. private _useWidthHeight;
  3889. private _isExporting;
  3890. private _gifWorkerBlob;
  3891. private _gifRecorder;
  3892. private _previousRenderingScale;
  3893. private _crunchingGIF;
  3894. constructor(props: IPaneComponentProps);
  3895. componentDidMount(): void;
  3896. componentWillUnmount(): void;
  3897. captureScreenshot(): void;
  3898. captureRender(): void;
  3899. recordVideo(): void;
  3900. recordGIFInternal(): void;
  3901. recordGIF(): void;
  3902. importAnimations(event: any): void;
  3903. shouldExport(node: Node): boolean;
  3904. exportGLTF(): void;
  3905. exportBabylon(): void;
  3906. createEnvTexture(): void;
  3907. exportReplay(): void;
  3908. startRecording(): void;
  3909. applyDelta(file: File): void;
  3910. render(): JSX.Element | null;
  3911. }
  3912. }
  3913. declare module "babylonjs-inspector/components/actionTabs/tabs/settingsTabComponent" {
  3914. import { PaneComponent, IPaneComponentProps } from "babylonjs-inspector/components/actionTabs/paneComponent";
  3915. export class SettingsTabComponent extends PaneComponent {
  3916. constructor(props: IPaneComponentProps);
  3917. render(): JSX.Element;
  3918. }
  3919. }
  3920. declare module "babylonjs-inspector/components/actionTabs/actionTabsComponent" {
  3921. import * as React from "react";
  3922. import { Scene } from "babylonjs/scene";
  3923. import { DebugLayerTab } from "babylonjs/Debug/debugLayer";
  3924. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3925. interface IActionTabsComponentProps {
  3926. scene?: Scene;
  3927. noCommands?: boolean;
  3928. noHeader?: boolean;
  3929. noExpand?: boolean;
  3930. noClose?: boolean;
  3931. popupMode?: boolean;
  3932. onPopup?: () => void;
  3933. onClose?: () => void;
  3934. globalState?: GlobalState;
  3935. initialTab?: DebugLayerTab;
  3936. }
  3937. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  3938. selectedEntity: any;
  3939. selectedIndex: number;
  3940. }> {
  3941. private _onSelectionChangeObserver;
  3942. private _onTabChangedObserver;
  3943. private _once;
  3944. constructor(props: IActionTabsComponentProps);
  3945. componentDidMount(): void;
  3946. componentWillUnmount(): void;
  3947. changeSelectedTab(index: number): void;
  3948. renderContent(): JSX.Element | null;
  3949. onClose(): void;
  3950. onPopup(): void;
  3951. render(): JSX.Element;
  3952. }
  3953. }
  3954. declare module "babylonjs-inspector/components/sceneExplorer/treeItemLabelComponent" {
  3955. import * as React from "react";
  3956. interface ITreeItemLabelComponentProps {
  3957. label: string;
  3958. onClick?: () => void;
  3959. color: string;
  3960. }
  3961. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  3962. constructor(props: ITreeItemLabelComponentProps);
  3963. onClick(): void;
  3964. render(): JSX.Element;
  3965. }
  3966. }
  3967. declare module "babylonjs-inspector/components/sceneExplorer/extensionsComponent" {
  3968. import * as React from "react";
  3969. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  3970. interface IExtensionsComponentProps {
  3971. target: any;
  3972. extensibilityGroups?: IExplorerExtensibilityGroup[];
  3973. }
  3974. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  3975. popupVisible: boolean;
  3976. }> {
  3977. private _popup;
  3978. private extensionRef;
  3979. constructor(props: IExtensionsComponentProps);
  3980. showPopup(): void;
  3981. componentDidMount(): void;
  3982. componentDidUpdate(): void;
  3983. render(): JSX.Element | null;
  3984. }
  3985. }
  3986. declare module "babylonjs-inspector/components/sceneExplorer/entities/meshTreeItemComponent" {
  3987. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  3988. import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
  3989. import * as React from "react";
  3990. import { GlobalState } from "babylonjs-inspector/components/globalState";
  3991. interface IMeshTreeItemComponentProps {
  3992. mesh: AbstractMesh;
  3993. extensibilityGroups?: IExplorerExtensibilityGroup[];
  3994. onClick: () => void;
  3995. globalState: GlobalState;
  3996. }
  3997. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  3998. isBoundingBoxEnabled: boolean;
  3999. isVisible: boolean;
  4000. }> {
  4001. constructor(props: IMeshTreeItemComponentProps);
  4002. showBoundingBox(): void;
  4003. switchVisibility(): void;
  4004. render(): JSX.Element;
  4005. }
  4006. }
  4007. declare module "babylonjs-inspector/components/sceneExplorer/entities/cameraTreeItemComponent" {
  4008. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4009. import { Camera } from "babylonjs/Cameras/camera";
  4010. import * as React from "react";
  4011. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4012. interface ICameraTreeItemComponentProps {
  4013. camera: Camera;
  4014. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4015. onClick: () => void;
  4016. globalState: GlobalState;
  4017. }
  4018. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  4019. isActive: boolean;
  4020. isGizmoEnabled: boolean;
  4021. }> {
  4022. private _onBeforeRenderObserver;
  4023. constructor(props: ICameraTreeItemComponentProps);
  4024. setActive(): void;
  4025. componentDidMount(): void;
  4026. componentWillUnmount(): void;
  4027. toggleGizmo(): void;
  4028. render(): JSX.Element;
  4029. }
  4030. }
  4031. declare module "babylonjs-inspector/components/sceneExplorer/entities/lightTreeItemComponent" {
  4032. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4033. import { Light } from "babylonjs/Lights/light";
  4034. import * as React from "react";
  4035. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4036. interface ILightTreeItemComponentProps {
  4037. light: Light;
  4038. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4039. onClick: () => void;
  4040. globalState: GlobalState;
  4041. }
  4042. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  4043. isEnabled: boolean;
  4044. isGizmoEnabled: boolean;
  4045. }> {
  4046. constructor(props: ILightTreeItemComponentProps);
  4047. switchIsEnabled(): void;
  4048. toggleGizmo(): void;
  4049. render(): JSX.Element;
  4050. }
  4051. }
  4052. declare module "babylonjs-inspector/components/sceneExplorer/entities/materialTreeItemComponent" {
  4053. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4054. import { Material } from "babylonjs/Materials/material";
  4055. import * as React from 'react';
  4056. import { NodeMaterial } from 'babylonjs/Materials/Node/nodeMaterial';
  4057. interface IMaterialTreeItemComponentProps {
  4058. material: Material | NodeMaterial;
  4059. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4060. onClick: () => void;
  4061. }
  4062. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  4063. constructor(props: IMaterialTreeItemComponentProps);
  4064. render(): JSX.Element;
  4065. }
  4066. }
  4067. declare module "babylonjs-inspector/components/sceneExplorer/entities/textureTreeItemComponent" {
  4068. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4069. import { Texture } from "babylonjs/Materials/Textures/texture";
  4070. import * as React from 'react';
  4071. interface ITextureTreeItemComponentProps {
  4072. texture: Texture;
  4073. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4074. onClick: () => void;
  4075. }
  4076. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  4077. constructor(props: ITextureTreeItemComponentProps);
  4078. render(): JSX.Element;
  4079. }
  4080. }
  4081. declare module "babylonjs-inspector/components/sceneExplorer/entities/transformNodeTreeItemComponent" {
  4082. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4083. import { TransformNode } from "babylonjs/Meshes/transformNode";
  4084. import * as React from "react";
  4085. interface ITransformNodeItemComponentProps {
  4086. transformNode: TransformNode;
  4087. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4088. onClick: () => void;
  4089. }
  4090. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  4091. constructor(props: ITransformNodeItemComponentProps);
  4092. render(): JSX.Element;
  4093. }
  4094. }
  4095. declare module "babylonjs-inspector/components/sceneExplorer/entities/gui/controlTreeItemComponent" {
  4096. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4097. import { Control } from "babylonjs-gui/2D/controls/control";
  4098. import * as React from 'react';
  4099. interface IControlTreeItemComponentProps {
  4100. control: Control;
  4101. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4102. onClick: () => void;
  4103. }
  4104. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  4105. isActive: boolean;
  4106. isVisible: boolean;
  4107. }> {
  4108. constructor(props: IControlTreeItemComponentProps);
  4109. highlight(): void;
  4110. switchVisibility(): void;
  4111. render(): JSX.Element;
  4112. }
  4113. }
  4114. declare module "babylonjs-inspector/components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent" {
  4115. import { Observable } from "babylonjs/Misc/observable";
  4116. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4117. import { AdvancedDynamicTexture } from 'babylonjs-gui/2D/advancedDynamicTexture';
  4118. import * as React from 'react';
  4119. interface IAdvancedDynamicTextureTreeItemComponentProps {
  4120. texture: AdvancedDynamicTexture;
  4121. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4122. onSelectionChangedObservable?: Observable<any>;
  4123. onClick: () => void;
  4124. }
  4125. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  4126. isInPickingMode: boolean;
  4127. }> {
  4128. private _onControlPickedObserver;
  4129. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  4130. componentWillUnmount(): void;
  4131. onPickingMode(): void;
  4132. render(): JSX.Element;
  4133. }
  4134. }
  4135. declare module "babylonjs-inspector/components/sceneExplorer/entities/animationGroupTreeItemComponent" {
  4136. import { AnimationGroup } from "babylonjs/Animations/animationGroup";
  4137. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4138. import * as React from "react";
  4139. interface IAnimationGroupItemComponentProps {
  4140. animationGroup: AnimationGroup;
  4141. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4142. onClick: () => void;
  4143. }
  4144. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  4145. constructor(props: IAnimationGroupItemComponentProps);
  4146. render(): JSX.Element;
  4147. }
  4148. }
  4149. declare module "babylonjs-inspector/components/sceneExplorer/entities/postProcessTreeItemComponent" {
  4150. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4151. import { PostProcess } from 'babylonjs/PostProcesses/postProcess';
  4152. import * as React from 'react';
  4153. interface IPostProcessItemComponentProps {
  4154. postProcess: PostProcess;
  4155. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4156. onClick: () => void;
  4157. }
  4158. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  4159. constructor(props: IPostProcessItemComponentProps);
  4160. render(): JSX.Element;
  4161. }
  4162. }
  4163. declare module "babylonjs-inspector/components/sceneExplorer/entities/renderingPipelineTreeItemComponent" {
  4164. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4165. import { PostProcessRenderPipeline } from 'babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline';
  4166. import * as React from 'react';
  4167. interface IRenderPipelineItemComponenttProps {
  4168. renderPipeline: PostProcessRenderPipeline;
  4169. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4170. onClick: () => void;
  4171. }
  4172. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  4173. constructor(props: IRenderPipelineItemComponenttProps);
  4174. render(): JSX.Element;
  4175. }
  4176. }
  4177. declare module "babylonjs-inspector/components/sceneExplorer/entities/skeletonTreeItemComponent" {
  4178. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4179. import * as React from "react";
  4180. import { Skeleton } from 'babylonjs/Bones/skeleton';
  4181. interface ISkeletonTreeItemComponentProps {
  4182. skeleton: Skeleton;
  4183. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4184. onClick: () => void;
  4185. }
  4186. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  4187. constructor(props: ISkeletonTreeItemComponentProps);
  4188. render(): JSX.Element;
  4189. }
  4190. }
  4191. declare module "babylonjs-inspector/components/sceneExplorer/entities/boneTreeItemComponent" {
  4192. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4193. import * as React from "react";
  4194. import { Bone } from 'babylonjs/Bones/bone';
  4195. interface IBoneTreeItemComponenttProps {
  4196. bone: Bone;
  4197. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4198. onClick: () => void;
  4199. }
  4200. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  4201. constructor(props: IBoneTreeItemComponenttProps);
  4202. render(): JSX.Element;
  4203. }
  4204. }
  4205. declare module "babylonjs-inspector/components/sceneExplorer/entities/particleSystemTreeItemComponent" {
  4206. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4207. import * as React from 'react';
  4208. import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
  4209. interface IParticleSystemTreeItemComponentProps {
  4210. system: IParticleSystem;
  4211. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4212. onClick: () => void;
  4213. }
  4214. export class ParticleSystemTreeItemComponent extends React.Component<IParticleSystemTreeItemComponentProps> {
  4215. constructor(props: IParticleSystemTreeItemComponentProps);
  4216. render(): JSX.Element;
  4217. }
  4218. }
  4219. declare module "babylonjs-inspector/components/sceneExplorer/entities/spriteManagerTreeItemComponent" {
  4220. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4221. import * as React from 'react';
  4222. import { SpriteManager } from 'babylonjs/Sprites/spriteManager';
  4223. interface ISpriteManagerTreeItemComponentProps {
  4224. spriteManager: SpriteManager;
  4225. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4226. onClick: () => void;
  4227. }
  4228. export class SpriteManagerTreeItemComponent extends React.Component<ISpriteManagerTreeItemComponentProps> {
  4229. constructor(props: ISpriteManagerTreeItemComponentProps);
  4230. render(): JSX.Element;
  4231. }
  4232. }
  4233. declare module "babylonjs-inspector/components/sceneExplorer/entities/spriteTreeItemComponent" {
  4234. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4235. import * as React from 'react';
  4236. import { Sprite } from 'babylonjs/Sprites/sprite';
  4237. interface ISpriteTreeItemComponentProps {
  4238. sprite: Sprite;
  4239. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4240. onClick: () => void;
  4241. }
  4242. export class SpriteTreeItemComponent extends React.Component<ISpriteTreeItemComponentProps> {
  4243. constructor(props: ISpriteTreeItemComponentProps);
  4244. render(): JSX.Element;
  4245. }
  4246. }
  4247. declare module "babylonjs-inspector/components/sceneExplorer/entities/targetedAnimationTreeItemComponent" {
  4248. import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
  4249. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4250. import * as React from "react";
  4251. interface ITargetedAnimationItemComponentProps {
  4252. targetedAnimation: TargetedAnimation;
  4253. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4254. onClick: () => void;
  4255. }
  4256. export class TargetedAnimationItemComponent extends React.Component<ITargetedAnimationItemComponentProps> {
  4257. constructor(props: ITargetedAnimationItemComponentProps);
  4258. render(): JSX.Element;
  4259. }
  4260. }
  4261. declare module "babylonjs-inspector/components/sceneExplorer/treeItemSpecializedComponent" {
  4262. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4263. import * as React from "react";
  4264. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4265. interface ITreeItemSpecializedComponentProps {
  4266. label: string;
  4267. entity?: any;
  4268. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4269. globalState: GlobalState;
  4270. onClick?: () => void;
  4271. }
  4272. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  4273. constructor(props: ITreeItemSpecializedComponentProps);
  4274. onClick(): void;
  4275. render(): JSX.Element;
  4276. }
  4277. }
  4278. declare module "babylonjs-inspector/tools" {
  4279. export class Tools {
  4280. static LookForItem(item: any, selectedEntity: any): boolean;
  4281. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  4282. static SortAndFilter(parent: any, items: any[]): any[];
  4283. }
  4284. }
  4285. declare module "babylonjs-inspector/components/sceneExplorer/treeItemSelectableComponent" {
  4286. import { Nullable } from "babylonjs/types";
  4287. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4288. import * as React from "react";
  4289. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4290. export interface ITreeItemSelectableComponentProps {
  4291. entity: any;
  4292. selectedEntity?: any;
  4293. mustExpand?: boolean;
  4294. offset: number;
  4295. globalState: GlobalState;
  4296. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4297. filter: Nullable<string>;
  4298. }
  4299. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  4300. isExpanded: boolean;
  4301. isSelected: boolean;
  4302. }> {
  4303. private _wasSelected;
  4304. constructor(props: ITreeItemSelectableComponentProps);
  4305. switchExpandedState(): void;
  4306. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  4307. isExpanded: boolean;
  4308. isSelected: boolean;
  4309. }): boolean;
  4310. scrollIntoView(): void;
  4311. componentDidMount(): void;
  4312. componentDidUpdate(): void;
  4313. onSelect(): void;
  4314. renderChildren(): JSX.Element[] | null;
  4315. render(): JSX.Element | null;
  4316. }
  4317. }
  4318. declare module "babylonjs-inspector/components/sceneExplorer/treeItemComponent" {
  4319. import * as React from "react";
  4320. import { Nullable } from "babylonjs/types";
  4321. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4322. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4323. export interface ITreeItemComponentProps {
  4324. items?: Nullable<any[]>;
  4325. label: string;
  4326. offset: number;
  4327. filter: Nullable<string>;
  4328. forceSubitems?: boolean;
  4329. globalState: GlobalState;
  4330. entity?: any;
  4331. selectedEntity: any;
  4332. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4333. contextMenuItems?: {
  4334. label: string;
  4335. action: () => void;
  4336. }[];
  4337. }
  4338. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  4339. isExpanded: boolean;
  4340. mustExpand: boolean;
  4341. }> {
  4342. static _ContextMenuUniqueIdGenerator: number;
  4343. constructor(props: ITreeItemComponentProps);
  4344. switchExpandedState(): void;
  4345. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  4346. isExpanded: boolean;
  4347. }): boolean;
  4348. expandAll(expand: boolean): void;
  4349. renderContextMenu(): JSX.Element | null;
  4350. render(): JSX.Element;
  4351. }
  4352. }
  4353. declare module "babylonjs-inspector/components/sceneExplorer/entities/sceneTreeItemComponent" {
  4354. import { Observable } from "babylonjs/Misc/observable";
  4355. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4356. import { Scene } from "babylonjs/scene";
  4357. import * as React from "react";
  4358. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4359. interface ISceneTreeItemComponentProps {
  4360. scene: Scene;
  4361. onRefresh: () => void;
  4362. selectedEntity?: any;
  4363. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4364. onSelectionChangedObservable?: Observable<any>;
  4365. globalState: GlobalState;
  4366. }
  4367. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  4368. isSelected: boolean;
  4369. isInPickingMode: boolean;
  4370. gizmoMode: number;
  4371. }> {
  4372. private _gizmoLayerOnPointerObserver;
  4373. private _onPointerObserver;
  4374. private _onSelectionChangeObserver;
  4375. private _selectedEntity;
  4376. private _posDragEnd;
  4377. private _scaleDragEnd;
  4378. private _rotateDragEnd;
  4379. constructor(props: ISceneTreeItemComponentProps);
  4380. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  4381. isSelected: boolean;
  4382. isInPickingMode: boolean;
  4383. }): boolean;
  4384. componentDidMount(): void;
  4385. componentWillUnmount(): void;
  4386. onSelect(): void;
  4387. onPickingMode(): void;
  4388. setGizmoMode(mode: number): void;
  4389. render(): JSX.Element;
  4390. }
  4391. }
  4392. declare module "babylonjs-inspector/components/sceneExplorer/sceneExplorerComponent" {
  4393. import * as React from "react";
  4394. import { Nullable } from "babylonjs/types";
  4395. import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
  4396. import { Scene } from "babylonjs/scene";
  4397. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4398. interface ISceneExplorerFilterComponentProps {
  4399. onFilter: (filter: string) => void;
  4400. }
  4401. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  4402. constructor(props: ISceneExplorerFilterComponentProps);
  4403. render(): JSX.Element;
  4404. }
  4405. interface ISceneExplorerComponentProps {
  4406. scene: Scene;
  4407. noCommands?: boolean;
  4408. noHeader?: boolean;
  4409. noExpand?: boolean;
  4410. noClose?: boolean;
  4411. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4412. globalState: GlobalState;
  4413. popupMode?: boolean;
  4414. onPopup?: () => void;
  4415. onClose?: () => void;
  4416. }
  4417. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  4418. filter: Nullable<string>;
  4419. selectedEntity: any;
  4420. scene: Scene;
  4421. }> {
  4422. private _onSelectionChangeObserver;
  4423. private _onSelectionRenamedObserver;
  4424. private _onNewSceneAddedObserver;
  4425. private _onNewSceneObserver;
  4426. private sceneExplorerRef;
  4427. private _once;
  4428. private _hooked;
  4429. private sceneMutationFunc;
  4430. constructor(props: ISceneExplorerComponentProps);
  4431. processMutation(): void;
  4432. componentDidMount(): void;
  4433. componentWillUnmount(): void;
  4434. filterContent(filter: string): void;
  4435. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  4436. previousOne?: any;
  4437. found?: boolean;
  4438. }): boolean;
  4439. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  4440. renderContent(): JSX.Element | null;
  4441. onClose(): void;
  4442. onPopup(): void;
  4443. render(): JSX.Element;
  4444. }
  4445. }
  4446. declare module "babylonjs-inspector/components/embedHost/embedHostComponent" {
  4447. import * as React from "react";
  4448. import { Scene } from "babylonjs/scene";
  4449. import { GlobalState } from "babylonjs-inspector/components/globalState";
  4450. import { IExplorerExtensibilityGroup, DebugLayerTab } from 'babylonjs/Debug/debugLayer';
  4451. interface IEmbedHostComponentProps {
  4452. scene: Scene;
  4453. globalState: GlobalState;
  4454. popupMode: boolean;
  4455. noClose?: boolean;
  4456. noExpand?: boolean;
  4457. onClose: () => void;
  4458. onPopup: () => void;
  4459. extensibilityGroups?: IExplorerExtensibilityGroup[];
  4460. initialTab?: DebugLayerTab;
  4461. }
  4462. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  4463. private _once;
  4464. private splitRef;
  4465. private topPartRef;
  4466. private bottomPartRef;
  4467. constructor(props: IEmbedHostComponentProps);
  4468. componentDidMount(): void;
  4469. renderContent(): JSX.Element;
  4470. render(): JSX.Element;
  4471. }
  4472. }
  4473. declare module "babylonjs-inspector/inspector" {
  4474. import { IInspectorOptions } from "babylonjs/Debug/debugLayer";
  4475. import { Observable } from "babylonjs/Misc/observable";
  4476. import { Scene } from "babylonjs/scene";
  4477. import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
  4478. export class Inspector {
  4479. private static _SceneExplorerHost;
  4480. private static _ActionTabsHost;
  4481. private static _EmbedHost;
  4482. private static _NewCanvasContainer;
  4483. private static _SceneExplorerWindow;
  4484. private static _ActionTabsWindow;
  4485. private static _EmbedHostWindow;
  4486. private static _Scene;
  4487. private static _OpenedPane;
  4488. private static _OnBeforeRenderObserver;
  4489. static OnSelectionChangeObservable: Observable<any>;
  4490. static OnPropertyChangedObservable: Observable<PropertyChangedEvent>;
  4491. private static _GlobalState;
  4492. static MarkLineContainerTitleForHighlighting(title: string): void;
  4493. static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
  4494. private static _CopyStyles;
  4495. private static _CreateSceneExplorer;
  4496. private static _CreateActionTabs;
  4497. private static _CreateEmbedHost;
  4498. static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
  4499. static get IsVisible(): boolean;
  4500. static EarlyAttachToLoader(): void;
  4501. static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
  4502. static _SetNewScene(scene: Scene): void;
  4503. static _CreateCanvasContainer(parentControl: HTMLElement): void;
  4504. private static _DestroyCanvasContainer;
  4505. private static _Cleanup;
  4506. private static _RemoveElementFromDOM;
  4507. static Hide(): void;
  4508. }
  4509. }
  4510. declare module "babylonjs-inspector/index" {
  4511. export * from "babylonjs-inspector/inspector";
  4512. }
  4513. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/playhead" {
  4514. import * as React from 'react';
  4515. interface IPlayheadProps {
  4516. frame: number;
  4517. offset: number;
  4518. onCurrentFrameChange: (frame: number) => void;
  4519. }
  4520. /**
  4521. * Renders the Playhead
  4522. */
  4523. export class Playhead extends React.Component<IPlayheadProps> {
  4524. private _direction;
  4525. private _active;
  4526. constructor(props: IPlayheadProps);
  4527. dragStart(e: React.TouchEvent<HTMLDivElement>): void;
  4528. dragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  4529. drag(e: React.TouchEvent<HTMLDivElement>): void;
  4530. drag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  4531. dragEnd(e: React.TouchEvent<HTMLDivElement>): void;
  4532. dragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  4533. calculateMove(): string;
  4534. render(): JSX.Element;
  4535. }
  4536. }
  4537. declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/contrast" {
  4538. import { IToolData } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent";
  4539. export const Contrast: IToolData;
  4540. }
  4541. declare module "babylonjs-inspector/legacy/legacy" {
  4542. export * from "babylonjs-inspector/index";
  4543. }
  4544. declare module "babylonjs-inspector" {
  4545. export * from "babylonjs-inspector/legacy/legacy";
  4546. }
  4547. /// <reference types="react" />
  4548. declare module INSPECTOR {
  4549. export class PropertyChangedEvent {
  4550. object: any;
  4551. property: string;
  4552. value: any;
  4553. initialValue: any;
  4554. allowNullValue?: boolean;
  4555. }
  4556. }
  4557. declare module INSPECTOR {
  4558. export class ReplayRecorder {
  4559. private _sceneRecorder;
  4560. private _isRecording;
  4561. get isRecording(): boolean;
  4562. cancel(): void;
  4563. trackScene(scene: BABYLON.Scene): void;
  4564. applyDelta(json: any, scene: BABYLON.Scene): void;
  4565. export(): void;
  4566. }
  4567. }
  4568. declare module INSPECTOR {
  4569. export class GlobalState {
  4570. onSelectionChangedObservable: BABYLON.Observable<any>;
  4571. onPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  4572. onInspectorClosedObservable: BABYLON.Observable<BABYLON.Scene>;
  4573. onTabChangedObservable: BABYLON.Observable<number>;
  4574. onSelectionRenamedObservable: BABYLON.Observable<void>;
  4575. onPluginActivatedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.ISceneLoaderPlugin | BABYLON.ISceneLoaderPluginAsync>>;
  4576. onNewSceneObservable: BABYLON.Observable<BABYLON.Scene>;
  4577. sceneImportDefaults: {
  4578. [key: string]: any;
  4579. };
  4580. validationResults: BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>;
  4581. onValidationResultsUpdatedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>>;
  4582. onExtensionLoadedObservable: BABYLON.Observable<import("babylonjs-loaders/glTF/index").IGLTFLoaderExtension>;
  4583. glTFLoaderExtensionDefaults: {
  4584. [name: string]: {
  4585. [key: string]: any;
  4586. };
  4587. };
  4588. glTFLoaderDefaults: {
  4589. [key: string]: any;
  4590. };
  4591. glTFLoaderExtensions: {
  4592. [key: string]: import("babylonjs-loaders/glTF/index").IGLTFLoaderExtension;
  4593. };
  4594. blockMutationUpdates: boolean;
  4595. selectedLineContainerTitles: Array<string>;
  4596. selectedLineContainerTitlesNoFocus: Array<string>;
  4597. recorder: ReplayRecorder;
  4598. private _onlyUseEulers;
  4599. get onlyUseEulers(): boolean;
  4600. set onlyUseEulers(value: boolean);
  4601. private _ignoreBackfacesForPicking;
  4602. get ignoreBackfacesForPicking(): boolean;
  4603. set ignoreBackfacesForPicking(value: boolean);
  4604. init(propertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>): void;
  4605. prepareGLTFPlugin(loader: import("babylonjs-loaders/glTF/index").GLTFFileLoader): void;
  4606. lightGizmos: Array<BABYLON.LightGizmo>;
  4607. enableLightGizmo(light: BABYLON.Light, enable?: boolean): void;
  4608. cameraGizmos: Array<BABYLON.CameraGizmo>;
  4609. enableCameraGizmo(camera: BABYLON.Camera, enable?: boolean): void;
  4610. }
  4611. }
  4612. declare module INSPECTOR {
  4613. export interface IPaneComponentProps {
  4614. title: string;
  4615. scene: BABYLON.Scene;
  4616. selectedEntity?: any;
  4617. onSelectionChangedObservable?: BABYLON.Observable<any>;
  4618. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4619. globalState: GlobalState;
  4620. }
  4621. export class PaneComponent extends React.Component<IPaneComponentProps, {
  4622. tag: any;
  4623. }> {
  4624. constructor(props: IPaneComponentProps);
  4625. render(): JSX.Element | null;
  4626. }
  4627. }
  4628. declare module INSPECTOR {
  4629. interface ITabsComponentProps {
  4630. children: any[];
  4631. selectedIndex: number;
  4632. onSelectedIndexChange: (value: number) => void;
  4633. }
  4634. export class TabsComponent extends React.Component<ITabsComponentProps> {
  4635. constructor(props: ITabsComponentProps);
  4636. onSelect(index: number): void;
  4637. renderLabel(child: PaneComponent, index: number): JSX.Element;
  4638. render(): JSX.Element;
  4639. }
  4640. }
  4641. declare module INSPECTOR {
  4642. interface ITextLineComponentProps {
  4643. label?: string;
  4644. value?: string;
  4645. color?: string;
  4646. underline?: boolean;
  4647. onLink?: () => void;
  4648. url?: string;
  4649. ignoreValue?: boolean;
  4650. additionalClass?: string;
  4651. }
  4652. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  4653. constructor(props: ITextLineComponentProps);
  4654. onLink(): void;
  4655. renderContent(): JSX.Element | null;
  4656. render(): JSX.Element;
  4657. }
  4658. }
  4659. declare module INSPECTOR {
  4660. interface ILineContainerComponentProps {
  4661. globalState?: GlobalState;
  4662. title: string;
  4663. children: any[] | any;
  4664. closed?: boolean;
  4665. }
  4666. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  4667. isExpanded: boolean;
  4668. isHighlighted: boolean;
  4669. }> {
  4670. constructor(props: ILineContainerComponentProps);
  4671. switchExpandedState(): void;
  4672. componentDidMount(): void;
  4673. renderHeader(): JSX.Element;
  4674. render(): JSX.Element;
  4675. }
  4676. }
  4677. declare module INSPECTOR {
  4678. interface IValueLineComponentProps {
  4679. label: string;
  4680. value: number;
  4681. color?: string;
  4682. fractionDigits?: number;
  4683. units?: string;
  4684. }
  4685. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  4686. constructor(props: IValueLineComponentProps);
  4687. render(): JSX.Element;
  4688. }
  4689. }
  4690. declare module INSPECTOR {
  4691. export interface IBooleanLineComponentProps {
  4692. label: string;
  4693. value: boolean;
  4694. }
  4695. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  4696. constructor(props: IBooleanLineComponentProps);
  4697. render(): JSX.Element;
  4698. }
  4699. }
  4700. declare module INSPECTOR {
  4701. export class StatisticsTabComponent extends PaneComponent {
  4702. private _sceneInstrumentation;
  4703. private _engineInstrumentation;
  4704. private _timerIntervalId;
  4705. constructor(props: IPaneComponentProps);
  4706. componentWillUnmount(): void;
  4707. render(): JSX.Element | null;
  4708. }
  4709. }
  4710. declare module INSPECTOR {
  4711. export interface ICheckBoxLineComponentProps {
  4712. label: string;
  4713. target?: any;
  4714. propertyName?: string;
  4715. isSelected?: () => boolean;
  4716. onSelect?: (value: boolean) => void;
  4717. onValueChanged?: () => void;
  4718. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4719. }
  4720. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  4721. isSelected: boolean;
  4722. }> {
  4723. private static _UniqueIdSeed;
  4724. private _uniqueId;
  4725. private _localChange;
  4726. constructor(props: ICheckBoxLineComponentProps);
  4727. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  4728. isSelected: boolean;
  4729. }): boolean;
  4730. onChange(): void;
  4731. render(): JSX.Element;
  4732. }
  4733. }
  4734. declare module INSPECTOR {
  4735. interface IRenderGridPropertyGridComponentProps {
  4736. globalState: GlobalState;
  4737. scene: BABYLON.Scene;
  4738. }
  4739. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  4740. isEnabled: boolean;
  4741. }> {
  4742. private _gridMesh;
  4743. constructor(props: IRenderGridPropertyGridComponentProps);
  4744. componentDidMount(): void;
  4745. addOrRemoveGrid(): void;
  4746. render(): JSX.Element;
  4747. }
  4748. }
  4749. declare module INSPECTOR {
  4750. export class DebugTabComponent extends PaneComponent {
  4751. private _physicsViewersEnabled;
  4752. constructor(props: IPaneComponentProps);
  4753. switchPhysicsViewers(): void;
  4754. render(): JSX.Element | null;
  4755. }
  4756. }
  4757. declare module INSPECTOR {
  4758. /**
  4759. * Class used to provide lock mechanism
  4760. */
  4761. export class LockObject {
  4762. /**
  4763. * Gets or set if the lock is engaged
  4764. */
  4765. lock: boolean;
  4766. }
  4767. }
  4768. declare module INSPECTOR {
  4769. interface IFloatLineComponentProps {
  4770. label: string;
  4771. target: any;
  4772. propertyName: string;
  4773. lockObject?: LockObject;
  4774. onChange?: (newValue: number) => void;
  4775. isInteger?: boolean;
  4776. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4777. additionalClass?: string;
  4778. step?: string;
  4779. digits?: number;
  4780. useEuler?: boolean;
  4781. min?: number;
  4782. max?: number;
  4783. smallUI?: boolean;
  4784. onEnter?: (newValue: number) => void;
  4785. }
  4786. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  4787. value: string;
  4788. }> {
  4789. private _localChange;
  4790. private _store;
  4791. constructor(props: IFloatLineComponentProps);
  4792. componentWillUnmount(): void;
  4793. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  4794. value: string;
  4795. }): boolean;
  4796. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  4797. updateValue(valueString: string): void;
  4798. lock(): void;
  4799. unlock(): void;
  4800. render(): JSX.Element;
  4801. }
  4802. }
  4803. declare module INSPECTOR {
  4804. interface ISliderLineComponentProps {
  4805. label: string;
  4806. target?: any;
  4807. propertyName?: string;
  4808. minimum: number;
  4809. maximum: number;
  4810. step: number;
  4811. directValue?: number;
  4812. useEuler?: boolean;
  4813. onChange?: (value: number) => void;
  4814. onInput?: (value: number) => void;
  4815. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4816. decimalCount?: number;
  4817. margin?: boolean;
  4818. }
  4819. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  4820. value: number;
  4821. }> {
  4822. private _localChange;
  4823. constructor(props: ISliderLineComponentProps);
  4824. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  4825. value: number;
  4826. }): boolean;
  4827. onChange(newValueString: any): void;
  4828. onInput(newValueString: any): void;
  4829. prepareDataToRead(value: number): number;
  4830. render(): JSX.Element;
  4831. }
  4832. }
  4833. declare module INSPECTOR {
  4834. export const Null_Value: number;
  4835. export class ListLineOption {
  4836. label: string;
  4837. value: number;
  4838. selected?: boolean;
  4839. }
  4840. export interface IOptionsLineComponentProps {
  4841. label: string;
  4842. target: any;
  4843. propertyName: string;
  4844. options: ListLineOption[];
  4845. noDirectUpdate?: boolean;
  4846. onSelect?: (value: number) => void;
  4847. extractValue?: () => number;
  4848. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4849. allowNullValue?: boolean;
  4850. }
  4851. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  4852. value: number;
  4853. }> {
  4854. private _localChange;
  4855. private remapValueIn;
  4856. private remapValueOut;
  4857. constructor(props: IOptionsLineComponentProps);
  4858. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  4859. value: number;
  4860. }): boolean;
  4861. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  4862. updateValue(valueString: string): void;
  4863. render(): JSX.Element;
  4864. }
  4865. }
  4866. declare module INSPECTOR {
  4867. interface INumericInputComponentProps {
  4868. label: string;
  4869. value: number;
  4870. step?: number;
  4871. onChange: (value: number) => void;
  4872. precision?: number;
  4873. }
  4874. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  4875. value: string;
  4876. }> {
  4877. static defaultProps: {
  4878. step: number;
  4879. };
  4880. private _localChange;
  4881. constructor(props: INumericInputComponentProps);
  4882. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  4883. value: string;
  4884. }): boolean;
  4885. updateValue(evt: any): void;
  4886. onBlur(): void;
  4887. render(): JSX.Element;
  4888. }
  4889. }
  4890. declare module INSPECTOR {
  4891. export interface IColorPickerComponentProps {
  4892. value: BABYLON.Color4 | BABYLON.Color3;
  4893. onColorChanged: (newOne: string) => void;
  4894. disableAlpha?: boolean;
  4895. }
  4896. interface IColorPickerComponentState {
  4897. pickerEnabled: boolean;
  4898. color: {
  4899. r: number;
  4900. g: number;
  4901. b: number;
  4902. a?: number;
  4903. };
  4904. hex: string;
  4905. }
  4906. export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
  4907. private _floatRef;
  4908. private _floatHostRef;
  4909. constructor(props: IColorPickerComponentProps);
  4910. syncPositions(): void;
  4911. shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
  4912. componentDidUpdate(): void;
  4913. componentDidMount(): void;
  4914. render(): JSX.Element;
  4915. }
  4916. }
  4917. declare module INSPECTOR {
  4918. export interface IColor3LineComponentProps {
  4919. label: string;
  4920. target: any;
  4921. propertyName: string;
  4922. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4923. isLinear?: boolean;
  4924. }
  4925. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  4926. isExpanded: boolean;
  4927. color: BABYLON.Color3;
  4928. }> {
  4929. private _localChange;
  4930. constructor(props: IColor3LineComponentProps);
  4931. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  4932. color: BABYLON.Color3;
  4933. }): boolean;
  4934. setPropertyValue(newColor: BABYLON.Color3): void;
  4935. onChange(newValue: string): void;
  4936. switchExpandState(): void;
  4937. raiseOnPropertyChanged(previousValue: BABYLON.Color3): void;
  4938. updateStateR(value: number): void;
  4939. updateStateG(value: number): void;
  4940. updateStateB(value: number): void;
  4941. copyToClipboard(): void;
  4942. render(): JSX.Element;
  4943. }
  4944. }
  4945. declare module INSPECTOR {
  4946. interface IVector3LineComponentProps {
  4947. label: string;
  4948. target: any;
  4949. propertyName: string;
  4950. step?: number;
  4951. onChange?: (newvalue: BABYLON.Vector3) => void;
  4952. useEuler?: boolean;
  4953. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4954. noSlider?: boolean;
  4955. }
  4956. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  4957. isExpanded: boolean;
  4958. value: BABYLON.Vector3;
  4959. }> {
  4960. static defaultProps: {
  4961. step: number;
  4962. };
  4963. private _localChange;
  4964. constructor(props: IVector3LineComponentProps);
  4965. getCurrentValue(): any;
  4966. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  4967. isExpanded: boolean;
  4968. value: BABYLON.Vector3;
  4969. }): boolean;
  4970. switchExpandState(): void;
  4971. raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
  4972. updateVector3(): void;
  4973. updateStateX(value: number): void;
  4974. updateStateY(value: number): void;
  4975. updateStateZ(value: number): void;
  4976. render(): JSX.Element;
  4977. }
  4978. }
  4979. declare module INSPECTOR {
  4980. interface IQuaternionLineComponentProps {
  4981. label: string;
  4982. target: any;
  4983. useEuler?: boolean;
  4984. propertyName: string;
  4985. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  4986. }
  4987. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  4988. isExpanded: boolean;
  4989. value: BABYLON.Quaternion;
  4990. eulerValue: BABYLON.Vector3;
  4991. }> {
  4992. private _localChange;
  4993. constructor(props: IQuaternionLineComponentProps);
  4994. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  4995. isExpanded: boolean;
  4996. value: BABYLON.Quaternion;
  4997. eulerValue: BABYLON.Vector3;
  4998. }): boolean;
  4999. switchExpandState(): void;
  5000. raiseOnPropertyChanged(currentValue: BABYLON.Quaternion, previousValue: BABYLON.Quaternion): void;
  5001. updateQuaternion(): void;
  5002. updateStateX(value: number): void;
  5003. updateStateY(value: number): void;
  5004. updateStateZ(value: number): void;
  5005. updateStateW(value: number): void;
  5006. updateQuaternionFromEuler(): void;
  5007. updateStateEulerX(value: number): void;
  5008. updateStateEulerY(value: number): void;
  5009. updateStateEulerZ(value: number): void;
  5010. render(): JSX.Element;
  5011. }
  5012. }
  5013. declare module INSPECTOR {
  5014. interface ITextInputLineComponentProps {
  5015. label: string;
  5016. lockObject: LockObject;
  5017. target?: any;
  5018. propertyName?: string;
  5019. value?: string;
  5020. onChange?: (value: string) => void;
  5021. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5022. }
  5023. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  5024. value: string;
  5025. }> {
  5026. private _localChange;
  5027. constructor(props: ITextInputLineComponentProps);
  5028. componentWillUnmount(): void;
  5029. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  5030. value: string;
  5031. }): boolean;
  5032. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  5033. updateValue(value: string): void;
  5034. render(): JSX.Element;
  5035. }
  5036. }
  5037. declare module INSPECTOR {
  5038. interface ICustomPropertyGridComponentProps {
  5039. globalState: GlobalState;
  5040. target: any;
  5041. lockObject: LockObject;
  5042. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5043. }
  5044. export class CustomPropertyGridComponent extends React.Component<ICustomPropertyGridComponentProps, {
  5045. mode: number;
  5046. }> {
  5047. constructor(props: ICustomPropertyGridComponentProps);
  5048. renderInspectable(inspectable: BABYLON.IInspectable): JSX.Element | null;
  5049. render(): JSX.Element | null;
  5050. }
  5051. }
  5052. declare module INSPECTOR {
  5053. export interface IButtonLineComponentProps {
  5054. label: string;
  5055. onClick: () => void;
  5056. }
  5057. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  5058. constructor(props: IButtonLineComponentProps);
  5059. render(): JSX.Element;
  5060. }
  5061. }
  5062. declare module INSPECTOR {
  5063. interface IAnchorSvgPointProps {
  5064. control: BABYLON.Vector2;
  5065. anchor: BABYLON.Vector2;
  5066. active: boolean;
  5067. type: string;
  5068. index: string;
  5069. selected: boolean;
  5070. selectControlPoint: (id: string) => void;
  5071. framesInCanvasView: {
  5072. from: number;
  5073. to: number;
  5074. };
  5075. }
  5076. /**
  5077. * Renders the control point to a keyframe.
  5078. */
  5079. export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps, {
  5080. visiblePoint: BABYLON.Vector2;
  5081. }> {
  5082. constructor(props: IAnchorSvgPointProps);
  5083. componentDidUpdate(prevProps: IAnchorSvgPointProps, prevState: any): void;
  5084. select: () => void;
  5085. setVisiblePoint(): BABYLON.Vector2;
  5086. render(): JSX.Element;
  5087. }
  5088. }
  5089. declare module INSPECTOR {
  5090. export interface IKeyframeSvgPoint {
  5091. keyframePoint: BABYLON.Vector2;
  5092. rightControlPoint: BABYLON.Vector2 | null;
  5093. leftControlPoint: BABYLON.Vector2 | null;
  5094. id: string;
  5095. selected: boolean;
  5096. isLeftActive: boolean;
  5097. isRightActive: boolean;
  5098. curveId?: ICurveMetaData;
  5099. }
  5100. export interface ICurveMetaData {
  5101. id: number;
  5102. animationName: string;
  5103. property: string;
  5104. }
  5105. interface IKeyframeSvgPointProps {
  5106. keyframePoint: BABYLON.Vector2;
  5107. leftControlPoint: BABYLON.Vector2 | null;
  5108. rightControlPoint: BABYLON.Vector2 | null;
  5109. id: string;
  5110. selected: boolean;
  5111. selectKeyframe: (id: string, multiselect: boolean) => void;
  5112. selectedControlPoint: (type: string, id: string) => void;
  5113. isLeftActive: boolean;
  5114. isRightActive: boolean;
  5115. framesInCanvasView: {
  5116. from: number;
  5117. to: number;
  5118. };
  5119. }
  5120. /**
  5121. * Renders the Keyframe as an SVG Element for the Canvas component.
  5122. * Holds the two control points to generate the proper curve.
  5123. */
  5124. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps> {
  5125. constructor(props: IKeyframeSvgPointProps);
  5126. select: (e: React.MouseEvent<SVGImageElement>) => void;
  5127. selectedControlPointId: (type: string) => void;
  5128. render(): JSX.Element;
  5129. }
  5130. }
  5131. declare module INSPECTOR {
  5132. interface ISvgDraggableAreaProps {
  5133. keyframeSvgPoints: IKeyframeSvgPoint[];
  5134. updatePosition: (updatedKeyframe: IKeyframeSvgPoint, id: string) => void;
  5135. scale: number;
  5136. viewBoxScale: number;
  5137. deselectKeyframes: () => void;
  5138. removeSelectedKeyframes: (points: IKeyframeSvgPoint[]) => void;
  5139. panningY: (panningY: number) => void;
  5140. panningX: (panningX: number) => void;
  5141. setCurrentFrame: (direction: number) => void;
  5142. positionCanvas?: BABYLON.Vector2;
  5143. repositionCanvas?: boolean;
  5144. canvasPositionEnded: () => void;
  5145. resetActionableKeyframe: () => void;
  5146. framesInCanvasView: {
  5147. from: number;
  5148. to: number;
  5149. };
  5150. framesResized: number;
  5151. }
  5152. /**
  5153. * The SvgDraggableArea is a wrapper for SVG Canvas the interaction
  5154. *
  5155. * Here we control the drag and key behavior for the SVG components.
  5156. */
  5157. export class SvgDraggableArea extends React.Component<ISvgDraggableAreaProps, {
  5158. panX: number;
  5159. panY: number;
  5160. }> {
  5161. private _active;
  5162. private _isCurrentPointControl;
  5163. private _currentPointId;
  5164. private _draggableArea;
  5165. private _panStart;
  5166. private _panStop;
  5167. private _playheadDrag;
  5168. private _playheadSelected;
  5169. private _movedX;
  5170. private _movedY;
  5171. private _isControlKeyPress;
  5172. readonly _dragBuffer: number;
  5173. readonly _draggingMultiplier: number;
  5174. constructor(props: ISvgDraggableAreaProps);
  5175. componentDidMount(): void;
  5176. componentDidUpdate(prevProps: ISvgDraggableAreaProps): void;
  5177. dragStart: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5178. drag: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5179. dragEnd: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5180. getMousePosition: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => BABYLON.Vector2 | undefined;
  5181. /**
  5182. * Handles the canvas panning direction and sets the X and Y values to move the
  5183. * SVG canvas
  5184. */
  5185. panDirection(): void;
  5186. keyDown(e: KeyboardEvent): void;
  5187. keyUp(e: KeyboardEvent): void;
  5188. focus: (e: React.MouseEvent<SVGSVGElement>) => void;
  5189. isNotControlPointActive(): boolean;
  5190. render(): JSX.Element;
  5191. }
  5192. }
  5193. declare module INSPECTOR {
  5194. export interface IIconButtonLineComponentProps {
  5195. icon: string;
  5196. onClick: () => void;
  5197. tooltip: string;
  5198. active?: boolean;
  5199. }
  5200. export class IconButtonLineComponent extends React.Component<IIconButtonLineComponentProps> {
  5201. constructor(props: IIconButtonLineComponentProps);
  5202. render(): JSX.Element;
  5203. }
  5204. }
  5205. declare module INSPECTOR {
  5206. interface IControlsProps {
  5207. keyframes: BABYLON.IAnimationKey[] | null;
  5208. selected: BABYLON.IAnimationKey | null;
  5209. currentFrame: number;
  5210. onCurrentFrameChange: (frame: number) => void;
  5211. repositionCanvas: (keyframe: BABYLON.IAnimationKey) => void;
  5212. playPause: (direction: number) => void;
  5213. isPlaying: boolean;
  5214. scrollable: React.RefObject<HTMLDivElement>;
  5215. }
  5216. /**
  5217. * The playback controls for the animation editor
  5218. */
  5219. export class Controls extends React.Component<IControlsProps, {
  5220. selected: BABYLON.IAnimationKey;
  5221. playingType: string;
  5222. }> {
  5223. readonly _sizeOfKeyframe: number;
  5224. constructor(props: IControlsProps);
  5225. playBackwards: () => void;
  5226. play: () => void;
  5227. pause: () => void;
  5228. moveToAnimationStart: () => void;
  5229. moveToAnimationEnd: () => void;
  5230. nextKeyframe: () => void;
  5231. previousKeyframe: () => void;
  5232. render(): JSX.Element;
  5233. }
  5234. }
  5235. declare module INSPECTOR {
  5236. interface ITimelineProps {
  5237. keyframes: BABYLON.IAnimationKey[] | null;
  5238. selected: BABYLON.IAnimationKey | null;
  5239. currentFrame: number;
  5240. onCurrentFrameChange: (frame: number) => void;
  5241. onAnimationLimitChange: (limit: number) => void;
  5242. dragKeyframe: (frame: number, index: number) => void;
  5243. playPause: (direction: number) => void;
  5244. isPlaying: boolean;
  5245. animationLimit: number;
  5246. fps: number;
  5247. repositionCanvas: (keyframe: BABYLON.IAnimationKey) => void;
  5248. resizeWindowProportion: number;
  5249. }
  5250. /**
  5251. * The Timeline for the curve editor
  5252. *
  5253. * Has a scrollbar that can be resized and move to left and right.
  5254. * The timeline does not affect the Canvas but only the frame container.
  5255. */
  5256. export class Timeline extends React.Component<ITimelineProps, {
  5257. selected: BABYLON.IAnimationKey;
  5258. activeKeyframe: number | null;
  5259. start: number;
  5260. end: number;
  5261. scrollWidth: number | undefined;
  5262. selectionLength: number[];
  5263. limitValue: number;
  5264. }> {
  5265. private _scrollable;
  5266. private _scrollbarHandle;
  5267. private _scrollContainer;
  5268. private _inputAnimationLimit;
  5269. private _direction;
  5270. private _scrolling;
  5271. private _shiftX;
  5272. private _active;
  5273. readonly _marginScrollbar: number;
  5274. constructor(props: ITimelineProps);
  5275. componentDidMount(): void;
  5276. componentDidUpdate(prevProps: ITimelineProps): void;
  5277. componentWillUnmount(): void;
  5278. isEnterKeyUp(event: KeyboardEvent): void;
  5279. onInputBlur(event: React.FocusEvent<HTMLInputElement>): void;
  5280. setControlState(): void;
  5281. /**
  5282. * @param {number} start Frame from which the scrollbar should begin.
  5283. * @param {number} end Last frame for the timeline.
  5284. */
  5285. calculateScrollWidth(start: number, end: number): number | undefined;
  5286. playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
  5287. play(event: React.MouseEvent<HTMLDivElement>): void;
  5288. pause(event: React.MouseEvent<HTMLDivElement>): void;
  5289. setCurrentFrame: (event: React.MouseEvent<HTMLDivElement>) => void;
  5290. /**
  5291. * Handles the change of number of frames available in the timeline.
  5292. */
  5293. handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
  5294. dragStart: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5295. drag: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5296. /**
  5297. * Check if the frame is being used as a Keyframe by the animation
  5298. */
  5299. isFrameBeingUsed(frame: number, direction: number): number | false;
  5300. dragEnd: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;
  5301. scrollDragStart: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  5302. scrollDrag: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  5303. scrollDragEnd: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  5304. /**
  5305. * Sets the start, end and selection length of the scrollbar. This will control the width and
  5306. * height of the scrollbar as well as the number of frames available
  5307. * @param {number} pageX Controls the X axis of the scrollbar movement.
  5308. */
  5309. moveScrollbar(pageX: number): void;
  5310. /**
  5311. * Controls the resizing of the scrollbar from the right handle
  5312. */
  5313. resizeScrollbarRight(clientX: number): void;
  5314. /**
  5315. * Controls the resizing of the scrollbar from the left handle
  5316. */
  5317. resizeScrollbarLeft(clientX: number): void;
  5318. /**
  5319. * Returns array with the expected length between two numbers
  5320. */
  5321. range(start: number, end: number): number[];
  5322. getKeyframe(frame: number): false | BABYLON.IAnimationKey | undefined;
  5323. getCurrentFrame(frame: number): boolean;
  5324. dragDomFalse: () => boolean;
  5325. render(): JSX.Element;
  5326. }
  5327. }
  5328. declare module INSPECTOR {
  5329. interface IPlayheadProps {
  5330. message: string;
  5331. open: boolean;
  5332. close: () => void;
  5333. }
  5334. /**
  5335. * Renders the notification for the user
  5336. */
  5337. export class Notification extends React.Component<IPlayheadProps> {
  5338. constructor(props: IPlayheadProps);
  5339. render(): JSX.Element;
  5340. }
  5341. }
  5342. declare module INSPECTOR {
  5343. interface IGraphActionsBarProps {
  5344. addKeyframe: () => void;
  5345. removeKeyframe: () => void;
  5346. frameSelectedKeyframes: () => void;
  5347. handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  5348. handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  5349. flatTangent: () => void;
  5350. brokeTangents: () => void;
  5351. setLerpToActiveControlPoint: () => void;
  5352. brokenMode: boolean;
  5353. lerpMode: boolean;
  5354. actionableKeyframe: IActionableKeyFrame;
  5355. title: string;
  5356. enabled: boolean;
  5357. setKeyframeValue: (actionableKeyframe: IActionableKeyFrame) => void;
  5358. frameRange: {
  5359. min: number | undefined;
  5360. max: number | undefined;
  5361. };
  5362. }
  5363. /**
  5364. * Has the buttons and actions for the Canvas Graph.
  5365. * Handles input change and actions (flat, broken mode, set linear control points)
  5366. */
  5367. export class GraphActionsBar extends React.Component<IGraphActionsBarProps, {
  5368. frame: string;
  5369. value: string;
  5370. min: number | undefined;
  5371. max: number | undefined;
  5372. }> {
  5373. private _frameInput;
  5374. private _valueInput;
  5375. constructor(props: IGraphActionsBarProps);
  5376. componentDidMount(): void;
  5377. componentDidUpdate(prevProps: IGraphActionsBarProps, prevState: any): void;
  5378. selectedKeyframeChanged(keyframe: IActionableKeyFrame): {
  5379. frame: string;
  5380. value: string;
  5381. };
  5382. componentWillUnmount(): void;
  5383. isEnterKeyUp(event: KeyboardEvent): void;
  5384. onBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
  5385. getFrame(): string | number;
  5386. getValue(): string | number;
  5387. handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  5388. handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  5389. render(): JSX.Element;
  5390. }
  5391. }
  5392. declare module INSPECTOR {
  5393. interface IAddAnimationProps {
  5394. isOpen: boolean;
  5395. close: () => void;
  5396. entity: BABYLON.IAnimatable;
  5397. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5398. setNotificationMessage: (message: string) => void;
  5399. finishedUpdate: () => void;
  5400. addedNewAnimation: (animation: BABYLON.Animation) => void;
  5401. fps: number;
  5402. selectedToUpdate?: BABYLON.Animation | undefined;
  5403. }
  5404. /**
  5405. * Controls the creation of a new animation
  5406. */
  5407. export class AddAnimation extends React.Component<IAddAnimationProps, {
  5408. animationName: string;
  5409. animationTargetProperty: string;
  5410. animationType: number;
  5411. loopMode: number;
  5412. animationTargetPath: string;
  5413. isUpdating: boolean;
  5414. }> {
  5415. constructor(props: IAddAnimationProps);
  5416. setInitialState(editingAnimation?: BABYLON.Animation): {
  5417. animationName: string;
  5418. animationTargetPath: string;
  5419. animationType: number;
  5420. loopMode: number;
  5421. animationTargetProperty: string;
  5422. isUpdating: boolean;
  5423. };
  5424. componentDidUpdate(prevProps: IAddAnimationProps, prevState: any): void;
  5425. updateAnimation: () => void;
  5426. getTypeAsString(type: number): "Float" | "Quaternion" | "Vector3" | "Vector2" | "Size" | "Color3" | "Color4";
  5427. addAnimation: () => void;
  5428. raiseOnPropertyChanged(newValue: BABYLON.Animation[], previousValue: BABYLON.Animation[]): void;
  5429. raiseOnPropertyUpdated(newValue: string | number | undefined, previousValue: string | number, property: string): void;
  5430. handlePathChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  5431. handleNameChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  5432. handleTypeChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
  5433. handlePropertyChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  5434. handleLoopModeChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
  5435. render(): JSX.Element;
  5436. }
  5437. }
  5438. declare module INSPECTOR {
  5439. interface IAnimationListTreeProps {
  5440. isTargetedAnimation: boolean;
  5441. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  5442. selected: BABYLON.Animation | null;
  5443. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5444. selectAnimation: (selected: BABYLON.Animation, coordinate?: SelectedCoordinate) => void;
  5445. empty: () => void;
  5446. editAnimation: (selected: BABYLON.Animation) => void;
  5447. deselectAnimation: () => void;
  5448. }
  5449. interface Item {
  5450. index: number;
  5451. name: string;
  5452. property: string;
  5453. selected: boolean;
  5454. open: boolean;
  5455. }
  5456. export enum SelectedCoordinate {
  5457. x = 0,
  5458. y = 1,
  5459. z = 2,
  5460. w = 3,
  5461. r = 0,
  5462. g = 1,
  5463. b = 2,
  5464. a = 3,
  5465. width = 0,
  5466. height = 1
  5467. }
  5468. interface ItemCoordinate {
  5469. id: string;
  5470. color: string;
  5471. coordinate: SelectedCoordinate;
  5472. }
  5473. /**
  5474. * Renders a list of current animations.
  5475. */
  5476. export class AnimationListTree extends React.Component<IAnimationListTreeProps, {
  5477. selectedCoordinate: SelectedCoordinate;
  5478. selectedAnimation: number;
  5479. animationList: Item[] | null;
  5480. animations: BABYLON.Nullable<BABYLON.Animation[]> | BABYLON.Animation;
  5481. }> {
  5482. constructor(props: IAnimationListTreeProps);
  5483. componentDidUpdate(prevProps: IAnimationListTreeProps): void;
  5484. deleteAnimation: () => void;
  5485. raiseOnPropertyChanged(newValue: BABYLON.Animation[], previousValue: BABYLON.Animation[]): void;
  5486. generateList(): Item[] | null;
  5487. toggleProperty(index: number): void;
  5488. setSelectedCoordinate(animation: BABYLON.Animation, coordinate: SelectedCoordinate, index: number): void;
  5489. coordinateItem(i: number, animation: BABYLON.Animation, coordinate: string, color: string, selectedCoordinate: SelectedCoordinate): JSX.Element;
  5490. typeAnimationItem(animation: BABYLON.Animation, i: number, childrenElements: ItemCoordinate[]): JSX.Element;
  5491. setListItem(animation: BABYLON.Animation, i: number): JSX.Element | null;
  5492. render(): JSX.Element;
  5493. }
  5494. }
  5495. declare module INSPECTOR {
  5496. interface IFileButtonLineComponentProps {
  5497. label: string;
  5498. onClick: (file: File) => void;
  5499. accept: string;
  5500. }
  5501. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  5502. private static _IDGenerator;
  5503. private _id;
  5504. private uploadInputRef;
  5505. constructor(props: IFileButtonLineComponentProps);
  5506. onChange(evt: any): void;
  5507. render(): JSX.Element;
  5508. }
  5509. }
  5510. declare module INSPECTOR {
  5511. interface ILoadSnippetProps {
  5512. animations: BABYLON.Animation[];
  5513. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5514. lockObject: LockObject;
  5515. globalState: GlobalState;
  5516. snippetServer: string;
  5517. setSnippetId: (id: string) => void;
  5518. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  5519. setNotificationMessage: (message: string) => void;
  5520. animationsLoaded: (numberOfAnimations: number) => void;
  5521. }
  5522. /**
  5523. * Loads animation locally or from the Babylon.js Snippet Server
  5524. */
  5525. export class LoadSnippet extends React.Component<ILoadSnippetProps, {
  5526. snippetId: string;
  5527. }> {
  5528. private _serverAddress;
  5529. constructor(props: ILoadSnippetProps);
  5530. change: (value: string) => void;
  5531. loadFromFile: (file: File) => void;
  5532. loadFromSnippet: () => void;
  5533. render(): JSX.Element;
  5534. }
  5535. }
  5536. declare module INSPECTOR {
  5537. interface ISaveSnippetProps {
  5538. animations: BABYLON.Nullable<BABYLON.Animation[]>;
  5539. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5540. lockObject: LockObject;
  5541. globalState: GlobalState;
  5542. snippetServer: string;
  5543. snippetId: string;
  5544. }
  5545. export interface Snippet {
  5546. url: string;
  5547. id: string;
  5548. }
  5549. interface SelectedAnimation {
  5550. id: string;
  5551. name: string;
  5552. index: number;
  5553. selected: boolean;
  5554. }
  5555. /**
  5556. * Saves the animation snippet to the Babylon.js site or downloads the animation file locally
  5557. */
  5558. export class SaveSnippet extends React.Component<ISaveSnippetProps, {
  5559. selectedAnimations: SelectedAnimation[];
  5560. }> {
  5561. constructor(props: ISaveSnippetProps);
  5562. handleCheckboxChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  5563. stringifySelectedAnimations(): string;
  5564. saveToFile: () => void;
  5565. saveToSnippet: () => void;
  5566. render(): JSX.Element;
  5567. }
  5568. }
  5569. declare module INSPECTOR {
  5570. interface IEditorControlsProps {
  5571. isTargetedAnimation: boolean;
  5572. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  5573. selected: BABYLON.Animation | null;
  5574. lockObject: LockObject;
  5575. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  5576. setNotificationMessage: (message: string) => void;
  5577. selectAnimation: (selected: BABYLON.Animation, axis?: SelectedCoordinate) => void;
  5578. setFps: (fps: number) => void;
  5579. setIsLooping: () => void;
  5580. globalState: GlobalState;
  5581. snippetServer: string;
  5582. deselectAnimation: () => void;
  5583. fps: number;
  5584. }
  5585. /**
  5586. * Renders the Curve Editor controls to create, save, remove, load and edit animations
  5587. */
  5588. export class EditorControls extends React.Component<IEditorControlsProps, {
  5589. isAnimationTabOpen: boolean;
  5590. isEditTabOpen: boolean;
  5591. isLoadTabOpen: boolean;
  5592. isSaveTabOpen: boolean;
  5593. isLoopActive: boolean;
  5594. animationsCount: number;
  5595. framesPerSecond: number;
  5596. snippetId: string;
  5597. selected: BABYLON.Animation | undefined;
  5598. }> {
  5599. constructor(props: IEditorControlsProps);
  5600. componentDidUpdate(prevProps: IEditorControlsProps): void;
  5601. onAnimationAdded: (animation: BABYLON.Animation) => void;
  5602. finishedUpdate: () => void;
  5603. recountAnimations(): number;
  5604. changeLoopBehavior: () => void;
  5605. handleFirstTab: () => void;
  5606. handleSecondTab: () => void;
  5607. handleThirdTab: () => void;
  5608. handleFourthTab: () => void;
  5609. handleTabs(tab: number): void;
  5610. handleChangeFps: (fps: number) => void;
  5611. /**
  5612. * Cleans the list when has been emptied
  5613. */
  5614. onEmptiedList: () => void;
  5615. /**
  5616. * When animations have been reloaded update tabs
  5617. */
  5618. animationsLoaded: (numberOfAnimations: number) => void;
  5619. editAnimation: (selected: BABYLON.Animation) => void;
  5620. setSnippetId: (id: string) => void;
  5621. /**
  5622. * Marks animation tab closed and hides the tab
  5623. */
  5624. onCloseAddAnimation: () => void;
  5625. render(): JSX.Element;
  5626. }
  5627. }
  5628. declare module INSPECTOR {
  5629. interface ISwitchButtonProps {
  5630. current: CurveScale;
  5631. action?: (event: CurveScale) => void;
  5632. }
  5633. /**
  5634. * Displays the current scale
  5635. */
  5636. export class ScaleLabel extends React.Component<ISwitchButtonProps, {
  5637. current: CurveScale;
  5638. }> {
  5639. constructor(props: ISwitchButtonProps);
  5640. renderLabel(scale: CurveScale): "" | "DEG" | "FLT" | "INT" | "RAD";
  5641. onClickHandle: () => void;
  5642. render(): JSX.Element;
  5643. }
  5644. }
  5645. declare module INSPECTOR {
  5646. interface IAnimationCurveEditorComponentProps {
  5647. playOrPause?: () => void;
  5648. scene: BABYLON.Scene;
  5649. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  5650. lockObject: LockObject;
  5651. globalState: GlobalState;
  5652. }
  5653. interface ICanvasAxis {
  5654. value: number;
  5655. label: number;
  5656. }
  5657. export enum CurveScale {
  5658. float = 0,
  5659. radians = 1,
  5660. degrees = 2,
  5661. integers = 3,
  5662. default = 4
  5663. }
  5664. export interface IActionableKeyFrame {
  5665. frame?: number | string;
  5666. value?: any;
  5667. }
  5668. interface ICurveData {
  5669. pathData: string;
  5670. pathLength: number;
  5671. domCurve: React.RefObject<SVGPathElement>;
  5672. color: string;
  5673. id: string;
  5674. }
  5675. /**
  5676. * BABYLON.Animation curve Editor Component
  5677. */
  5678. export class AnimationCurveEditorComponent extends React.Component<IAnimationCurveEditorComponentProps, {
  5679. isOpen: boolean;
  5680. selected: BABYLON.Animation | null;
  5681. svgKeyframes: IKeyframeSvgPoint[] | undefined;
  5682. currentFrame: number;
  5683. currentValue: number;
  5684. frameAxisLength: ICanvasAxis[];
  5685. valueAxisLength: ICanvasAxis[];
  5686. isFlatTangentMode: boolean;
  5687. isTangentMode: boolean;
  5688. isBrokenMode: boolean;
  5689. lerpMode: boolean;
  5690. scale: number;
  5691. playheadOffset: number;
  5692. notification: string;
  5693. currentPoint: SVGPoint | undefined;
  5694. playheadPos: number;
  5695. isPlaying: boolean;
  5696. selectedPathData: ICurveData[] | undefined;
  5697. selectedCoordinate: number;
  5698. animationLimit: number;
  5699. fps: number;
  5700. isLooping: boolean;
  5701. panningY: number;
  5702. panningX: number;
  5703. repositionCanvas: boolean;
  5704. actionableKeyframe: IActionableKeyFrame;
  5705. valueScaleType: CurveScale;
  5706. valueScale: number;
  5707. canvasLength: number;
  5708. lastKeyframeCreated: BABYLON.Nullable<string>;
  5709. canvasWidthScale: number;
  5710. valuesPositionResize: number;
  5711. framesInCanvasView: {
  5712. from: number;
  5713. to: number;
  5714. };
  5715. maxFrame: number | undefined;
  5716. minFrame: number | undefined;
  5717. framesResized: number;
  5718. }> {
  5719. readonly _entityName: string;
  5720. private _snippetUrl;
  5721. private _heightScale;
  5722. private _scaleFactor;
  5723. private _currentScale;
  5724. private _pixelFrameUnit;
  5725. private _svgKeyframes;
  5726. private _isPlaying;
  5727. private _graphCanvas;
  5728. private _editor;
  5729. private _editorWindow;
  5730. private _resizeId;
  5731. private _svgCanvas;
  5732. private _isTargetedAnimation;
  5733. private _resizedTimeline;
  5734. private _onBeforeRenderObserver;
  5735. private _mainAnimatable;
  5736. constructor(props: IAnimationCurveEditorComponentProps);
  5737. componentDidMount(): void;
  5738. componentDidUpdate(prevProps: IAnimationCurveEditorComponentProps, prevState: any): void;
  5739. componentWillUnmount(): void;
  5740. onCurrentFrameChangeChangeScene(value: number): void;
  5741. /**
  5742. * Notifications
  5743. * To add notification we set the state and clear to make the notification bar hide.
  5744. */
  5745. clearNotification: () => void;
  5746. /**
  5747. * Zoom and Scroll
  5748. * This section handles zoom and scroll
  5749. * of the graph area.
  5750. */
  5751. zoom: (e: React.WheelEvent<HTMLDivElement>) => void;
  5752. /**
  5753. * Returns Array with labels and values for Frame axis in Canvas
  5754. */
  5755. setFrameAxis(currentLength: number): {
  5756. value: number;
  5757. label: number;
  5758. }[];
  5759. /**
  5760. * Returns Array with labels, lines and values for Value axis in Canvas
  5761. */
  5762. setValueLines(): {
  5763. value: number;
  5764. label: string;
  5765. }[];
  5766. /**
  5767. * Creates a string id from animation name and the keyframe index
  5768. */
  5769. encodeCurveId(animationName: string, keyframeIndex: number): string;
  5770. /**
  5771. * Returns the animation keyframe index and the animation selected coordinate (x, y, z)
  5772. */
  5773. decodeCurveId(id: string): {
  5774. order: number;
  5775. coordinate: number;
  5776. };
  5777. /**
  5778. * Returns the value from a keyframe
  5779. */
  5780. getKeyframeValueFromAnimation(id: string): {
  5781. frame: number;
  5782. value: number;
  5783. } | undefined;
  5784. /**
  5785. * Keyframe Manipulation
  5786. * This section handles events from SvgDraggableArea.
  5787. */
  5788. selectKeyframe: (id: string, multiselect: boolean) => void;
  5789. /**
  5790. * Determine if two control points are collinear (flat tangent)
  5791. */
  5792. hasCollinearPoints: (kf: IKeyframeSvgPoint | undefined) => boolean;
  5793. /**
  5794. * Returns the previous and next keyframe from a selected frame.
  5795. */
  5796. getPreviousAndNextKeyframe: (frame: number) => {
  5797. prev: number | undefined;
  5798. next: number | undefined;
  5799. };
  5800. /**
  5801. * Selects a keyframe in animation based on its Id
  5802. */
  5803. selectKeyframeFromId: (id: string, actionableKeyframe: IActionableKeyFrame) => void;
  5804. /**
  5805. * Resets the current selected keyframe as an updatable pairs by Graph BABYLON.GUI.Control Bar
  5806. */
  5807. resetActionableKeyframe: () => void;
  5808. /**
  5809. * Sets the selected control point.
  5810. */
  5811. selectedControlPoint: (type: string, id: string) => void;
  5812. /**
  5813. * Sets the selected control point.
  5814. */
  5815. deselectKeyframes: () => void;
  5816. /**
  5817. * Update the BABYLON.Animation Key values based on its type
  5818. */
  5819. updateValuePerCoordinate(dataType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion, newValue: number, coordinate?: number): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  5820. /**
  5821. * BABYLON.Animation should always have a keyframe at Frame Zero
  5822. */
  5823. forceFrameZeroToExist(keys: BABYLON.IAnimationKey[]): void;
  5824. /**
  5825. * Renders SVG points with dragging of the curve
  5826. */
  5827. renderPoints: (updatedSvgKeyFrame: IKeyframeSvgPoint, id: string) => void;
  5828. /**
  5829. * Updates the left control point on render points
  5830. */
  5831. updateLeftControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: BABYLON.IAnimationKey, dataType: number, coordinate: number): void;
  5832. /**
  5833. * Updates the right control point on render points
  5834. */
  5835. updateRightControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: BABYLON.IAnimationKey, dataType: number, coordinate: number): void;
  5836. /**
  5837. * Get the current BABYLON.GUI.Control Point weight (how far the X value is multiplied)
  5838. */
  5839. getControlPointWeight(updatedSvgKeyFrame: IKeyframeSvgPoint): number;
  5840. /**
  5841. * Handles a Frame selection change
  5842. */
  5843. handleFrameChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  5844. /**
  5845. * Handles how a value change on a selected frame
  5846. */
  5847. handleValueChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
  5848. /**
  5849. * Set the Keyframe from input control in Graph BABYLON.GUI.Control Bar
  5850. */
  5851. setKeyframeValueFromInput: (actionableKeyframe: IActionableKeyFrame) => void;
  5852. /**
  5853. * Sets the SVG Keyframe value
  5854. */
  5855. setKeyframeValue: () => void;
  5856. /**
  5857. * Set the flat tangent to the current selected control points.
  5858. */
  5859. setFlatTangent: () => void;
  5860. /**
  5861. * Sets Broken mode of lines
  5862. */
  5863. setBrokenMode: () => void;
  5864. /**
  5865. * Sets a control point to be a linear interpolation with its Keyframe
  5866. */
  5867. setLerpToActiveControlPoint: () => void;
  5868. /**
  5869. * Adds a new keyframe to the curve on canvas click
  5870. */
  5871. addKeyframeClick: () => void;
  5872. /**
  5873. * Remove keyframe on click
  5874. */
  5875. removeKeyframeClick: () => void;
  5876. /**
  5877. * Remove the selected keyframes
  5878. */
  5879. removeKeyframes: (points: IKeyframeSvgPoint[]) => void;
  5880. /**
  5881. * Adds a keyframe
  5882. */
  5883. addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
  5884. /**
  5885. * Curve Rendering Functions
  5886. * This section handles how to render curves.
  5887. */
  5888. setKeyframePointLinear(point: BABYLON.Vector2, index: number): void;
  5889. flatTangents(keyframes: BABYLON.IAnimationKey[], dataType: number): BABYLON.IAnimationKey[];
  5890. /**
  5891. * Return a Keyframe zero value depending on Type
  5892. */
  5893. returnZero(dataType: number): 0 | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  5894. /**
  5895. * Return the keyframe value as an array depending on type
  5896. */
  5897. getValueAsArray(valueType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion): number[];
  5898. /**
  5899. * Sets the keyframe value as an array depending on type
  5900. */
  5901. setValueAsType(valueType: number, arrayValue: number[]): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  5902. /**
  5903. * Returns the SVG Path Data to render the curve
  5904. */
  5905. getPathData(animation: BABYLON.Animation | null): ICurveData[] | undefined;
  5906. getAnimationData(animation: BABYLON.Animation): {
  5907. loopMode: number | undefined;
  5908. name: string;
  5909. blendingSpeed: number;
  5910. targetPropertyPath: string[];
  5911. targetProperty: string;
  5912. framesPerSecond: number;
  5913. highestFrame: number;
  5914. usesTangents: boolean;
  5915. easingType: string | undefined;
  5916. easingMode: number | undefined;
  5917. valueType: number;
  5918. };
  5919. calculateLinearTangents(keyframes: BABYLON.IAnimationKey[]): BABYLON.IAnimationKey[];
  5920. /**
  5921. * Calculates the proper linear tangents if there is no tangents defined
  5922. */
  5923. curvePathWithoutTangents(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, type: number, coordinate: number, animationName: string): string;
  5924. /**
  5925. * Calculates the curve data and control points for animation
  5926. */
  5927. curvePathWithTangents(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, type: number, coordinate: number, animationName: string): string;
  5928. /**
  5929. * Calculates a curve path from predefined easing function
  5930. */
  5931. curvePath(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, easingFunction: BABYLON.EasingFunction): string;
  5932. /**
  5933. * Sets the proper SVG Keyframe points
  5934. */
  5935. setKeyframePoint(controlPoints: BABYLON.Vector2[], index: number, keyframesCount: number): void;
  5936. interpolateControlPoints(p0: BABYLON.Vector2, p1: BABYLON.Vector2, u: number, p2: BABYLON.Vector2, v: number, p3: BABYLON.Vector2): BABYLON.Vector2[] | undefined;
  5937. deselectAnimation: () => void;
  5938. /**
  5939. * Remove all curves from canvas
  5940. */
  5941. cleanCanvas: () => void;
  5942. /**
  5943. * Selects the animation and renders the curve
  5944. */
  5945. selectAnimation: (animation: BABYLON.Animation, coordinate?: SelectedCoordinate | undefined) => void;
  5946. /**
  5947. * Set the state for the last selected keyframe
  5948. */
  5949. postSelectionEvents: () => void;
  5950. /**
  5951. * Set main animatable to play or pause the animation
  5952. */
  5953. setMainAnimatable(): void;
  5954. isAnimationPlaying(): boolean;
  5955. stopAnimation(): void;
  5956. setIsLooping: () => void;
  5957. setFramesPerSecond: (fps: number) => void;
  5958. /**
  5959. * Check if the animation has easing predefined
  5960. */
  5961. analyzeAnimationForLerp(animation: BABYLON.Animation | null): boolean;
  5962. /**
  5963. * Timeline
  5964. * This section controls the timeline.
  5965. */
  5966. changeCurrentFrame: (frame: number) => void;
  5967. /**
  5968. * Calculate the value of the selected frame in curve
  5969. */
  5970. calculateCurrentPointInCurve: (frame: number) => number | undefined;
  5971. /**
  5972. * Center the position the canvas depending on Keyframe value and frame
  5973. */
  5974. setCanvasPosition: (keyframe: BABYLON.IAnimationKey) => void;
  5975. setCurrentFrame: (frame: number) => void;
  5976. /**
  5977. * Change the timeline animation frame limit
  5978. */
  5979. changeAnimationLimit: (limit: number) => void;
  5980. /**
  5981. * Update the frame in the selected Keyframe
  5982. */
  5983. updateFrameInKeyFrame: (frame: number, index: number) => void;
  5984. playPause: (direction: number) => void;
  5985. /**
  5986. * Set the frame to selected position on canvas
  5987. */
  5988. moveFrameTo(e: React.MouseEvent<SVGRectElement, MouseEvent>): void;
  5989. registerObs(): void;
  5990. isCurrentFrame(frame: number): boolean;
  5991. setPanningY: (panningY: number) => void;
  5992. setPanningX: (panningX: number) => void;
  5993. canvasPositionEnded: () => void;
  5994. setNotificationMessage: (message: string) => void;
  5995. frameSelectedKeyframes: () => void;
  5996. /**
  5997. * Handle the frames quantity and scale on Window resize width
  5998. */
  5999. onWindowResizeWidth: () => void;
  6000. onWindowEndResize: (framesResized: number) => void;
  6001. onTimelineResize: () => void;
  6002. render(): JSX.Element;
  6003. }
  6004. }
  6005. declare module INSPECTOR {
  6006. interface IPopupComponentProps {
  6007. id: string;
  6008. title: string;
  6009. size: {
  6010. width: number;
  6011. height: number;
  6012. };
  6013. onOpen: (window: Window) => void;
  6014. onClose: (window: Window) => void;
  6015. }
  6016. export class PopupComponent extends React.Component<IPopupComponentProps, {
  6017. isComponentMounted: boolean;
  6018. blockedByBrowser: boolean;
  6019. }> {
  6020. private _container;
  6021. private _window;
  6022. private _curveEditorHost;
  6023. constructor(props: IPopupComponentProps);
  6024. componentDidMount(): void;
  6025. openPopup(): void;
  6026. componentWillUnmount(): void;
  6027. getWindow(): Window | null;
  6028. render(): React.ReactPortal | null;
  6029. }
  6030. }
  6031. declare module INSPECTOR {
  6032. interface IAnimationGridComponentProps {
  6033. globalState: GlobalState;
  6034. animatable: BABYLON.IAnimatable;
  6035. scene: BABYLON.Scene;
  6036. lockObject: LockObject;
  6037. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6038. }
  6039. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  6040. currentFrame: number;
  6041. }> {
  6042. private _animations;
  6043. private _ranges;
  6044. private _mainAnimatable;
  6045. private _onBeforeRenderObserver;
  6046. private _isPlaying;
  6047. private timelineRef;
  6048. private _isCurveEditorOpen;
  6049. private _animationControl;
  6050. constructor(props: IAnimationGridComponentProps);
  6051. playOrPause(): void;
  6052. componentDidMount(): void;
  6053. componentWillUnmount(): void;
  6054. onCurrentFrameChange(value: number): void;
  6055. onChangeFromOrTo(): void;
  6056. onOpenAnimationCurveEditor(): void;
  6057. onCloseAnimationCurveEditor(window: Window | null): void;
  6058. render(): JSX.Element;
  6059. }
  6060. }
  6061. declare module INSPECTOR {
  6062. interface ICommonMaterialPropertyGridComponentProps {
  6063. globalState: GlobalState;
  6064. material: BABYLON.Material;
  6065. lockObject: LockObject;
  6066. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6067. }
  6068. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  6069. constructor(props: ICommonMaterialPropertyGridComponentProps);
  6070. render(): JSX.Element;
  6071. }
  6072. }
  6073. declare module INSPECTOR {
  6074. interface IMaterialPropertyGridComponentProps {
  6075. globalState: GlobalState;
  6076. material: BABYLON.Material;
  6077. lockObject: LockObject;
  6078. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6079. }
  6080. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  6081. constructor(props: IMaterialPropertyGridComponentProps);
  6082. render(): JSX.Element;
  6083. }
  6084. }
  6085. declare module INSPECTOR {
  6086. export interface ITextureLinkLineComponentProps {
  6087. label: string;
  6088. texture: BABYLON.Nullable<BABYLON.BaseTexture>;
  6089. material?: BABYLON.Material;
  6090. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6091. onDebugSelectionChangeObservable?: BABYLON.Observable<TextureLinkLineComponent>;
  6092. propertyName?: string;
  6093. onTextureCreated?: (texture: BABYLON.BaseTexture) => void;
  6094. customDebugAction?: (state: boolean) => void;
  6095. onTextureRemoved?: () => void;
  6096. }
  6097. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  6098. isDebugSelected: boolean;
  6099. }> {
  6100. private _onDebugSelectionChangeObserver;
  6101. constructor(props: ITextureLinkLineComponentProps);
  6102. componentDidMount(): void;
  6103. componentWillUnmount(): void;
  6104. debugTexture(): void;
  6105. onLink(): void;
  6106. updateTexture(file: File): void;
  6107. removeTexture(): void;
  6108. render(): JSX.Element | null;
  6109. }
  6110. }
  6111. declare module INSPECTOR {
  6112. interface IStandardMaterialPropertyGridComponentProps {
  6113. globalState: GlobalState;
  6114. material: BABYLON.StandardMaterial;
  6115. lockObject: LockObject;
  6116. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6117. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6118. }
  6119. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  6120. private _onDebugSelectionChangeObservable;
  6121. constructor(props: IStandardMaterialPropertyGridComponentProps);
  6122. renderTextures(): JSX.Element;
  6123. render(): JSX.Element;
  6124. }
  6125. }
  6126. declare module INSPECTOR {
  6127. /** @hidden */
  6128. export var lodPixelShader: {
  6129. name: string;
  6130. shader: string;
  6131. };
  6132. }
  6133. declare module INSPECTOR {
  6134. /** @hidden */
  6135. export var lodCubePixelShader: {
  6136. name: string;
  6137. shader: string;
  6138. };
  6139. }
  6140. declare module INSPECTOR {
  6141. export interface TextureChannelsToDisplay {
  6142. R: boolean;
  6143. G: boolean;
  6144. B: boolean;
  6145. A: boolean;
  6146. }
  6147. export class TextureHelper {
  6148. private static _ProcessAsync;
  6149. static GetTextureDataAsync(texture: BABYLON.BaseTexture, width: number, height: number, face: number, channels: TextureChannelsToDisplay, globalState?: GlobalState, lod?: number): Promise<Uint8Array>;
  6150. }
  6151. }
  6152. declare module INSPECTOR {
  6153. interface ITextureLineComponentProps {
  6154. texture: BABYLON.BaseTexture;
  6155. width: number;
  6156. height: number;
  6157. globalState?: GlobalState;
  6158. hideChannelSelect?: boolean;
  6159. }
  6160. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  6161. channels: TextureChannelsToDisplay;
  6162. face: number;
  6163. }> {
  6164. private canvasRef;
  6165. private static TextureChannelStates;
  6166. constructor(props: ITextureLineComponentProps);
  6167. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  6168. channels: TextureChannelsToDisplay;
  6169. face: number;
  6170. }): boolean;
  6171. componentDidMount(): void;
  6172. componentDidUpdate(): void;
  6173. updatePreview(): Promise<void>;
  6174. render(): JSX.Element;
  6175. }
  6176. }
  6177. declare module INSPECTOR {
  6178. export interface ITool extends IToolData {
  6179. instance: IToolType;
  6180. }
  6181. interface IToolBarProps {
  6182. tools: ITool[];
  6183. addTool(url: string): void;
  6184. changeTool(toolIndex: number): void;
  6185. activeToolIndex: number;
  6186. metadata: IMetadata;
  6187. setMetadata(data: any): void;
  6188. pickerOpen: boolean;
  6189. setPickerOpen(open: boolean): void;
  6190. pickerRef: React.RefObject<HTMLDivElement>;
  6191. hasAlpha: boolean;
  6192. }
  6193. interface IToolBarState {
  6194. toolURL: string;
  6195. addOpen: boolean;
  6196. }
  6197. export class ToolBar extends React.Component<IToolBarProps, IToolBarState> {
  6198. constructor(props: IToolBarProps);
  6199. computeRGBAColor(): string;
  6200. shouldComponentUpdate(nextProps: IToolBarProps): boolean;
  6201. render(): JSX.Element;
  6202. }
  6203. }
  6204. declare module INSPECTOR {
  6205. export interface IChannel {
  6206. visible: boolean;
  6207. editable: boolean;
  6208. name: string;
  6209. id: 'R' | 'G' | 'B' | 'A';
  6210. icon: any;
  6211. }
  6212. interface IChannelsBarProps {
  6213. channels: IChannel[];
  6214. setChannels(channelState: IChannel[]): void;
  6215. }
  6216. export class ChannelsBar extends React.PureComponent<IChannelsBarProps> {
  6217. render(): JSX.Element;
  6218. }
  6219. }
  6220. declare module INSPECTOR {
  6221. export const canvasShader: {
  6222. path: {
  6223. vertexSource: string;
  6224. fragmentSource: string;
  6225. };
  6226. options: {
  6227. attributes: string[];
  6228. uniforms: string[];
  6229. };
  6230. };
  6231. }
  6232. declare module INSPECTOR {
  6233. export interface IPixelData {
  6234. x?: number;
  6235. y?: number;
  6236. r?: number;
  6237. g?: number;
  6238. b?: number;
  6239. a?: number;
  6240. }
  6241. export class TextureCanvasManager {
  6242. private _engine;
  6243. private _scene;
  6244. private _camera;
  6245. private _cameraPos;
  6246. private _scale;
  6247. private _isPanning;
  6248. private _mouseX;
  6249. private _mouseY;
  6250. private _UICanvas;
  6251. private _size;
  6252. /** The canvas we paint onto using the canvas API */
  6253. private _2DCanvas;
  6254. /** The canvas we apply post processes to */
  6255. private _3DCanvas;
  6256. /** The canvas which handles channel filtering */
  6257. private _channelsTexture;
  6258. private _3DEngine;
  6259. private _3DPlane;
  6260. private _3DCanvasTexture;
  6261. private _3DScene;
  6262. private _channels;
  6263. private _face;
  6264. private _mipLevel;
  6265. /** The texture from the original engine that we invoked the editor on */
  6266. private _originalTexture;
  6267. /** This is a hidden texture which is only responsible for holding the actual texture memory in the original engine */
  6268. private _target;
  6269. /** The internal texture representation of the original texture */
  6270. private _originalInternalTexture;
  6271. /** Keeps track of whether we have modified the texture */
  6272. private _didEdit;
  6273. private _plane;
  6274. private _planeMaterial;
  6275. /** Tracks which keys are currently pressed */
  6276. private _keyMap;
  6277. private readonly ZOOM_MOUSE_SPEED;
  6278. private readonly ZOOM_KEYBOARD_SPEED;
  6279. private readonly ZOOM_IN_KEY;
  6280. private readonly ZOOM_OUT_KEY;
  6281. private readonly PAN_SPEED;
  6282. private readonly PAN_MOUSE_BUTTON;
  6283. private readonly MIN_SCALE;
  6284. private readonly GRID_SCALE;
  6285. private readonly MAX_SCALE;
  6286. private readonly SELECT_ALL_KEY;
  6287. private readonly SAVE_KEY;
  6288. private readonly RESET_KEY;
  6289. private readonly DESELECT_KEY;
  6290. /** The number of milliseconds between texture updates */
  6291. private readonly PUSH_FREQUENCY;
  6292. private _tool;
  6293. private _setPixelData;
  6294. private _setMipLevel;
  6295. private _window;
  6296. private _metadata;
  6297. private _editing3D;
  6298. private _onUpdate;
  6299. private _setMetadata;
  6300. private _imageData;
  6301. private _canPush;
  6302. private _shouldPush;
  6303. private _paintCanvas;
  6304. constructor(texture: BABYLON.BaseTexture, window: Window, canvasUI: HTMLCanvasElement, canvas2D: HTMLCanvasElement, canvas3D: HTMLCanvasElement, setPixelData: (pixelData: IPixelData) => void, metadata: IMetadata, onUpdate: () => void, setMetadata: (metadata: any) => void, setMipLevel: (level: number) => void);
  6305. updateTexture(): Promise<void>;
  6306. private pushTexture;
  6307. startPainting(): Promise<CanvasRenderingContext2D>;
  6308. updatePainting(): void;
  6309. stopPainting(): void;
  6310. private updateDisplay;
  6311. set channels(channels: IChannel[]);
  6312. paintPixelsOnCanvas(pixelData: Uint8Array, canvas: HTMLCanvasElement): void;
  6313. grabOriginalTexture(): Promise<Uint8Array>;
  6314. getMouseCoordinates(pointerInfo: BABYLON.PointerInfo): BABYLON.Vector2;
  6315. get scene(): BABYLON.Scene;
  6316. get canvas2D(): HTMLCanvasElement;
  6317. get size(): BABYLON.ISize;
  6318. set tool(tool: BABYLON.Nullable<ITool>);
  6319. get tool(): BABYLON.Nullable<ITool>;
  6320. set face(face: number);
  6321. set mipLevel(mipLevel: number);
  6322. /** Returns the 3D scene used for postprocesses */
  6323. get scene3D(): BABYLON.Scene;
  6324. set metadata(metadata: IMetadata);
  6325. private makePlane;
  6326. reset(): void;
  6327. resize(newSize: BABYLON.ISize): Promise<void>;
  6328. setSize(size: BABYLON.ISize): void;
  6329. upload(file: File): void;
  6330. saveTexture(): void;
  6331. dispose(): void;
  6332. }
  6333. }
  6334. declare module INSPECTOR {
  6335. interface IPropertiesBarProps {
  6336. texture: BABYLON.BaseTexture;
  6337. size: BABYLON.ISize;
  6338. saveTexture(): void;
  6339. pixelData: IPixelData;
  6340. face: number;
  6341. setFace(face: number): void;
  6342. resetTexture(): void;
  6343. resizeTexture(width: number, height: number): void;
  6344. uploadTexture(file: File): void;
  6345. mipLevel: number;
  6346. setMipLevel: (mipLevel: number) => void;
  6347. }
  6348. interface IPropertiesBarState {
  6349. width: number;
  6350. height: number;
  6351. }
  6352. export class PropertiesBar extends React.PureComponent<IPropertiesBarProps, IPropertiesBarState> {
  6353. private _resetButton;
  6354. private _uploadButton;
  6355. private _saveButton;
  6356. private _babylonLogo;
  6357. private _resizeButton;
  6358. private _mipUp;
  6359. private _mipDown;
  6360. private _faces;
  6361. constructor(props: IPropertiesBarProps);
  6362. private pixelData;
  6363. private getNewDimension;
  6364. componentWillUpdate(nextProps: IPropertiesBarProps): void;
  6365. render(): JSX.Element;
  6366. }
  6367. }
  6368. declare module INSPECTOR {
  6369. interface IBottomBarProps {
  6370. texture: BABYLON.BaseTexture;
  6371. mipLevel: number;
  6372. }
  6373. export class BottomBar extends React.PureComponent<IBottomBarProps> {
  6374. render(): JSX.Element;
  6375. }
  6376. }
  6377. declare module INSPECTOR {
  6378. interface ITextureCanvasComponentProps {
  6379. canvasUI: React.RefObject<HTMLCanvasElement>;
  6380. canvas2D: React.RefObject<HTMLCanvasElement>;
  6381. canvas3D: React.RefObject<HTMLCanvasElement>;
  6382. texture: BABYLON.BaseTexture;
  6383. }
  6384. export class TextureCanvasComponent extends React.Component<ITextureCanvasComponentProps> {
  6385. render(): JSX.Element;
  6386. }
  6387. }
  6388. declare module INSPECTOR {
  6389. export const Paintbrush: IToolData;
  6390. }
  6391. declare module INSPECTOR {
  6392. export const Eyedropper: IToolData;
  6393. }
  6394. declare module INSPECTOR {
  6395. export const Floodfill: IToolData;
  6396. }
  6397. declare module INSPECTOR {
  6398. export const RectangleSelect: IToolData;
  6399. }
  6400. declare module INSPECTOR {
  6401. const _default: import("babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent").IToolData[];
  6402. export default _default;
  6403. }
  6404. declare module INSPECTOR {
  6405. interface IToolSettingsProps {
  6406. tool: ITool | undefined;
  6407. }
  6408. export class ToolSettings extends React.Component<IToolSettingsProps> {
  6409. render(): JSX.Element;
  6410. }
  6411. }
  6412. declare module INSPECTOR {
  6413. interface ITextureEditorComponentProps {
  6414. texture: BABYLON.BaseTexture;
  6415. url: string;
  6416. window: React.RefObject<PopupComponent>;
  6417. onUpdate: () => void;
  6418. }
  6419. interface ITextureEditorComponentState {
  6420. tools: ITool[];
  6421. activeToolIndex: number;
  6422. metadata: IMetadata;
  6423. channels: IChannel[];
  6424. pixelData: IPixelData;
  6425. face: number;
  6426. mipLevel: number;
  6427. pickerOpen: boolean;
  6428. }
  6429. export interface IToolParameters {
  6430. /** The visible scene in the editor. Useful for adding pointer and keyboard events. */
  6431. scene: BABYLON.Scene;
  6432. /** The 2D canvas which you can sample pixel data from. Tools should not paint directly on this canvas. */
  6433. canvas2D: HTMLCanvasElement;
  6434. /** The 3D scene which tools can add post processes to. */
  6435. scene3D: BABYLON.Scene;
  6436. /** The size of the texture. */
  6437. size: BABYLON.ISize;
  6438. /** Pushes the editor texture back to the original scene. This should be called every time a tool makes any modification to a texture. */
  6439. updateTexture: () => void;
  6440. /** The metadata object which is shared between all tools. Feel free to store any information here. Do not set this directly: instead call setMetadata. */
  6441. metadata: IMetadata;
  6442. /** Call this when you want to mutate the metadata. */
  6443. setMetadata: (data: any) => void;
  6444. /** Returns the texture coordinates under the cursor */
  6445. getMouseCoordinates: (pointerInfo: BABYLON.PointerInfo) => BABYLON.Vector2;
  6446. /** Provides access to the BABYLON namespace */
  6447. BABYLON: any;
  6448. /** Provides a canvas that you can use the canvas API to paint on. */
  6449. startPainting: () => Promise<CanvasRenderingContext2D>;
  6450. /** After you have painted on your canvas, call this method to push the updates back to the texture. */
  6451. updatePainting: () => void;
  6452. /** Call this when you are finished painting. */
  6453. stopPainting: () => void;
  6454. }
  6455. export interface IToolGUIProps {
  6456. instance: IToolType;
  6457. }
  6458. /** An interface representing the definition of a tool */
  6459. export interface IToolData {
  6460. /** Name to display on the toolbar */
  6461. name: string;
  6462. /** A class definition for the tool including setup and cleanup methods */
  6463. type: IToolConstructable;
  6464. /** An SVG icon encoded in Base64 */
  6465. icon: string;
  6466. /** Whether the tool uses postprocesses */
  6467. is3D?: boolean;
  6468. cursor?: string;
  6469. settingsComponent?: React.ComponentType<IToolGUIProps>;
  6470. }
  6471. export interface IToolType {
  6472. /** Called when the tool is selected. */
  6473. setup: () => void;
  6474. /** Called when the tool is deselected. */
  6475. cleanup: () => void;
  6476. /** Optional. Called when the user resets the texture or uploads a new texture. Tools may want to reset their state when this happens. */
  6477. onReset?: () => void;
  6478. }
  6479. /** For constructable types, TS requires that you define a seperate interface which constructs your actual interface */
  6480. interface IToolConstructable {
  6481. new (getParameters: () => IToolParameters): IToolType;
  6482. }
  6483. export interface IMetadata {
  6484. color: string;
  6485. alpha: number;
  6486. select: {
  6487. x1: number;
  6488. y1: number;
  6489. x2: number;
  6490. y2: number;
  6491. };
  6492. [key: string]: any;
  6493. }
  6494. global {
  6495. var _TOOL_DATA_: IToolData;
  6496. }
  6497. export class TextureEditorComponent extends React.Component<ITextureEditorComponentProps, ITextureEditorComponentState> {
  6498. private _textureCanvasManager;
  6499. private _UICanvas;
  6500. private _2DCanvas;
  6501. private _3DCanvas;
  6502. private _pickerRef;
  6503. private _timer;
  6504. private static PREVIEW_UPDATE_DELAY_MS;
  6505. constructor(props: ITextureEditorComponentProps);
  6506. componentDidMount(): void;
  6507. componentDidUpdate(): void;
  6508. componentWillUnmount(): void;
  6509. textureDidUpdate(): void;
  6510. loadToolFromURL(url: string): void;
  6511. addTools(tools: IToolData[]): void;
  6512. getToolParameters(): IToolParameters;
  6513. changeTool(index: number): void;
  6514. setMetadata(newMetadata: any): void;
  6515. setPickerOpen(open: boolean): void;
  6516. onPointerDown(evt: React.PointerEvent): void;
  6517. saveTexture(): void;
  6518. resetTexture(): void;
  6519. resizeTexture(width: number, height: number): void;
  6520. uploadTexture(file: File): void;
  6521. render(): JSX.Element;
  6522. }
  6523. }
  6524. declare module INSPECTOR {
  6525. interface ITexturePropertyGridComponentProps {
  6526. texture: BABYLON.BaseTexture;
  6527. lockObject: LockObject;
  6528. globalState: GlobalState;
  6529. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6530. }
  6531. interface ITexturePropertyGridComponentState {
  6532. isTextureEditorOpen: boolean;
  6533. textureEditing: BABYLON.Nullable<BABYLON.BaseTexture>;
  6534. }
  6535. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps, ITexturePropertyGridComponentState> {
  6536. private _adtInstrumentation;
  6537. private popoutWindowRef;
  6538. private textureLineRef;
  6539. private _textureInspectorSize;
  6540. constructor(props: ITexturePropertyGridComponentProps);
  6541. componentWillUnmount(): void;
  6542. updateTexture(file: File): void;
  6543. openTextureEditor(): void;
  6544. onOpenTextureEditor(window: Window): void;
  6545. onCloseTextureEditor(callback?: {
  6546. (): void;
  6547. }): void;
  6548. forceRefresh(): void;
  6549. render(): JSX.Element;
  6550. }
  6551. }
  6552. declare module INSPECTOR {
  6553. interface IVector2LineComponentProps {
  6554. label: string;
  6555. target: any;
  6556. propertyName: string;
  6557. step?: number;
  6558. onChange?: (newvalue: BABYLON.Vector2) => void;
  6559. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6560. }
  6561. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  6562. isExpanded: boolean;
  6563. value: BABYLON.Vector2;
  6564. }> {
  6565. static defaultProps: {
  6566. step: number;
  6567. };
  6568. private _localChange;
  6569. constructor(props: IVector2LineComponentProps);
  6570. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  6571. isExpanded: boolean;
  6572. value: BABYLON.Vector2;
  6573. }): boolean;
  6574. switchExpandState(): void;
  6575. raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
  6576. updateStateX(value: number): void;
  6577. updateStateY(value: number): void;
  6578. render(): JSX.Element;
  6579. }
  6580. }
  6581. declare module INSPECTOR {
  6582. interface IPBRMaterialPropertyGridComponentProps {
  6583. globalState: GlobalState;
  6584. material: BABYLON.PBRMaterial;
  6585. lockObject: LockObject;
  6586. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6587. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6588. }
  6589. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  6590. private _onDebugSelectionChangeObservable;
  6591. constructor(props: IPBRMaterialPropertyGridComponentProps);
  6592. switchAmbientMode(state: boolean): void;
  6593. switchMetallicMode(state: boolean): void;
  6594. switchRoughnessMode(state: boolean): void;
  6595. renderTextures(onDebugSelectionChangeObservable: BABYLON.Observable<TextureLinkLineComponent>): JSX.Element;
  6596. render(): JSX.Element;
  6597. }
  6598. }
  6599. declare module INSPECTOR {
  6600. interface IRadioButtonLineComponentProps {
  6601. onSelectionChangedObservable: BABYLON.Observable<RadioButtonLineComponent>;
  6602. label: string;
  6603. isSelected: () => boolean;
  6604. onSelect: () => void;
  6605. }
  6606. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  6607. isSelected: boolean;
  6608. }> {
  6609. private _onSelectionChangedObserver;
  6610. constructor(props: IRadioButtonLineComponentProps);
  6611. componentDidMount(): void;
  6612. componentWillUnmount(): void;
  6613. onChange(): void;
  6614. render(): JSX.Element;
  6615. }
  6616. }
  6617. declare module INSPECTOR {
  6618. interface IFogPropertyGridComponentProps {
  6619. globalState: GlobalState;
  6620. scene: BABYLON.Scene;
  6621. lockObject: LockObject;
  6622. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6623. }
  6624. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  6625. mode: number;
  6626. }> {
  6627. constructor(props: IFogPropertyGridComponentProps);
  6628. render(): JSX.Element;
  6629. }
  6630. }
  6631. declare module INSPECTOR {
  6632. interface IScenePropertyGridComponentProps {
  6633. globalState: GlobalState;
  6634. scene: BABYLON.Scene;
  6635. lockObject: LockObject;
  6636. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6637. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6638. }
  6639. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  6640. private _storedEnvironmentTexture;
  6641. private _renderingModeGroupObservable;
  6642. constructor(props: IScenePropertyGridComponentProps);
  6643. setRenderingModes(point: boolean, wireframe: boolean): void;
  6644. switchIBL(): void;
  6645. updateEnvironmentTexture(file: File): void;
  6646. updateGravity(newValue: BABYLON.Vector3): void;
  6647. updateTimeStep(newValue: number): void;
  6648. normalizeScene(): void;
  6649. render(): JSX.Element;
  6650. }
  6651. }
  6652. declare module INSPECTOR {
  6653. interface ICommonLightPropertyGridComponentProps {
  6654. globalState: GlobalState;
  6655. light: BABYLON.Light;
  6656. lockObject: LockObject;
  6657. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6658. }
  6659. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  6660. constructor(props: ICommonLightPropertyGridComponentProps);
  6661. render(): JSX.Element;
  6662. }
  6663. }
  6664. declare module INSPECTOR {
  6665. interface IHemisphericLightPropertyGridComponentProps {
  6666. globalState: GlobalState;
  6667. light: BABYLON.HemisphericLight;
  6668. lockObject: LockObject;
  6669. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6670. }
  6671. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  6672. constructor(props: IHemisphericLightPropertyGridComponentProps);
  6673. render(): JSX.Element;
  6674. }
  6675. }
  6676. declare module INSPECTOR {
  6677. interface ICommonShadowLightPropertyGridComponentProps {
  6678. globalState: GlobalState;
  6679. light: BABYLON.IShadowLight;
  6680. lockObject: LockObject;
  6681. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6682. }
  6683. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  6684. private _internals;
  6685. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  6686. createShadowGenerator(): void;
  6687. disposeShadowGenerator(): void;
  6688. render(): JSX.Element;
  6689. }
  6690. }
  6691. declare module INSPECTOR {
  6692. interface IPointLightPropertyGridComponentProps {
  6693. globalState: GlobalState;
  6694. light: BABYLON.PointLight;
  6695. lockObject: LockObject;
  6696. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6697. }
  6698. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  6699. constructor(props: IPointLightPropertyGridComponentProps);
  6700. render(): JSX.Element;
  6701. }
  6702. }
  6703. declare module INSPECTOR {
  6704. interface IHexLineComponentProps {
  6705. label: string;
  6706. target: any;
  6707. propertyName: string;
  6708. lockObject?: LockObject;
  6709. onChange?: (newValue: number) => void;
  6710. isInteger?: boolean;
  6711. replaySourceReplacement?: string;
  6712. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6713. additionalClass?: string;
  6714. step?: string;
  6715. digits?: number;
  6716. useEuler?: boolean;
  6717. min?: number;
  6718. }
  6719. export class HexLineComponent extends React.Component<IHexLineComponentProps, {
  6720. value: string;
  6721. }> {
  6722. private _localChange;
  6723. private _store;
  6724. private _propertyChange;
  6725. constructor(props: IHexLineComponentProps);
  6726. componentWillUnmount(): void;
  6727. shouldComponentUpdate(nextProps: IHexLineComponentProps, nextState: {
  6728. value: string;
  6729. }): boolean;
  6730. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  6731. convertToHexString(valueString: string): string;
  6732. updateValue(valueString: string, raisePropertyChanged: boolean): void;
  6733. lock(): void;
  6734. unlock(): void;
  6735. render(): JSX.Element;
  6736. }
  6737. }
  6738. declare module INSPECTOR {
  6739. interface ICommonCameraPropertyGridComponentProps {
  6740. globalState: GlobalState;
  6741. camera: BABYLON.Camera;
  6742. lockObject: LockObject;
  6743. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6744. }
  6745. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  6746. mode: number;
  6747. }> {
  6748. constructor(props: ICommonCameraPropertyGridComponentProps);
  6749. render(): JSX.Element;
  6750. }
  6751. }
  6752. declare module INSPECTOR {
  6753. interface IFreeCameraPropertyGridComponentProps {
  6754. globalState: GlobalState;
  6755. camera: BABYLON.FreeCamera;
  6756. lockObject: LockObject;
  6757. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6758. }
  6759. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  6760. constructor(props: IFreeCameraPropertyGridComponentProps);
  6761. render(): JSX.Element;
  6762. }
  6763. }
  6764. declare module INSPECTOR {
  6765. interface IArcRotateCameraPropertyGridComponentProps {
  6766. globalState: GlobalState;
  6767. camera: BABYLON.ArcRotateCamera;
  6768. lockObject: LockObject;
  6769. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6770. }
  6771. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  6772. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  6773. render(): JSX.Element;
  6774. }
  6775. }
  6776. declare module INSPECTOR {
  6777. interface IIndentedTextLineComponentProps {
  6778. value?: string;
  6779. color?: string;
  6780. underline?: boolean;
  6781. onLink?: () => void;
  6782. url?: string;
  6783. additionalClass?: string;
  6784. }
  6785. export class IndentedTextLineComponent extends React.Component<IIndentedTextLineComponentProps> {
  6786. constructor(props: IIndentedTextLineComponentProps);
  6787. onLink(): void;
  6788. renderContent(): JSX.Element;
  6789. render(): JSX.Element;
  6790. }
  6791. }
  6792. declare module INSPECTOR {
  6793. interface ICommonPropertyGridComponentProps {
  6794. globalState: GlobalState;
  6795. host: {
  6796. metadata: any;
  6797. };
  6798. lockObject: LockObject;
  6799. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6800. }
  6801. export class CommonPropertyGridComponent extends React.Component<ICommonPropertyGridComponentProps> {
  6802. constructor(props: ICommonPropertyGridComponentProps);
  6803. renderLevel(jsonObject: any): JSX.Element[];
  6804. render(): JSX.Element | null;
  6805. }
  6806. }
  6807. declare module INSPECTOR {
  6808. interface IVariantsPropertyGridComponentProps {
  6809. globalState: GlobalState;
  6810. host: any;
  6811. lockObject: LockObject;
  6812. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6813. }
  6814. export class VariantsPropertyGridComponent extends React.Component<IVariantsPropertyGridComponentProps> {
  6815. constructor(props: IVariantsPropertyGridComponentProps);
  6816. private _getVariantsExtension;
  6817. render(): JSX.Element | null;
  6818. }
  6819. }
  6820. declare module INSPECTOR {
  6821. interface IMeshPropertyGridComponentProps {
  6822. globalState: GlobalState;
  6823. mesh: BABYLON.Mesh;
  6824. lockObject: LockObject;
  6825. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6826. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6827. }
  6828. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  6829. displayNormals: boolean;
  6830. displayVertexColors: boolean;
  6831. displayBoneWeights: boolean;
  6832. displayBoneIndex: number;
  6833. displaySkeletonMap: boolean;
  6834. }> {
  6835. constructor(props: IMeshPropertyGridComponentProps);
  6836. renderWireframeOver(): void;
  6837. renderNormalVectors(): void;
  6838. displayNormals(): void;
  6839. displayVertexColors(): void;
  6840. displayBoneWeights(): void;
  6841. displaySkeletonMap(): void;
  6842. onBoneDisplayIndexChange(value: number): void;
  6843. onMaterialLink(): void;
  6844. onSourceMeshLink(): void;
  6845. onSkeletonLink(): void;
  6846. convertPhysicsTypeToString(): string;
  6847. render(): JSX.Element;
  6848. }
  6849. }
  6850. declare module INSPECTOR {
  6851. interface ITransformNodePropertyGridComponentProps {
  6852. globalState: GlobalState;
  6853. transformNode: BABYLON.TransformNode;
  6854. lockObject: LockObject;
  6855. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6856. }
  6857. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  6858. constructor(props: ITransformNodePropertyGridComponentProps);
  6859. render(): JSX.Element;
  6860. }
  6861. }
  6862. declare module INSPECTOR {
  6863. interface IBackgroundMaterialPropertyGridComponentProps {
  6864. globalState: GlobalState;
  6865. material: BABYLON.BackgroundMaterial;
  6866. lockObject: LockObject;
  6867. onSelectionChangedObservable?: BABYLON.Observable<any>;
  6868. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6869. }
  6870. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  6871. private _onDebugSelectionChangeObservable;
  6872. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  6873. renderTextures(): JSX.Element;
  6874. render(): JSX.Element;
  6875. }
  6876. }
  6877. declare module INSPECTOR {
  6878. interface ICommonControlPropertyGridComponentProps {
  6879. globalState: GlobalState;
  6880. control: BABYLON.GUI.Control;
  6881. lockObject: LockObject;
  6882. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6883. }
  6884. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  6885. constructor(props: ICommonControlPropertyGridComponentProps);
  6886. renderGridInformation(): JSX.Element | null;
  6887. render(): JSX.Element;
  6888. }
  6889. }
  6890. declare module INSPECTOR {
  6891. interface IControlPropertyGridComponentProps {
  6892. globalState: GlobalState;
  6893. control: BABYLON.GUI.Control;
  6894. lockObject: LockObject;
  6895. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6896. }
  6897. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  6898. constructor(props: IControlPropertyGridComponentProps);
  6899. render(): JSX.Element;
  6900. }
  6901. }
  6902. declare module INSPECTOR {
  6903. interface ITextBlockPropertyGridComponentProps {
  6904. globalState: GlobalState;
  6905. textBlock: BABYLON.GUI.TextBlock;
  6906. lockObject: LockObject;
  6907. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6908. }
  6909. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  6910. constructor(props: ITextBlockPropertyGridComponentProps);
  6911. render(): JSX.Element;
  6912. }
  6913. }
  6914. declare module INSPECTOR {
  6915. interface IInputTextPropertyGridComponentProps {
  6916. globalState: GlobalState;
  6917. inputText: BABYLON.GUI.InputText;
  6918. lockObject: LockObject;
  6919. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6920. }
  6921. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  6922. constructor(props: IInputTextPropertyGridComponentProps);
  6923. render(): JSX.Element;
  6924. }
  6925. }
  6926. declare module INSPECTOR {
  6927. interface IColorPickerPropertyGridComponentProps {
  6928. globalState: GlobalState;
  6929. colorPicker: BABYLON.GUI.ColorPicker;
  6930. lockObject: LockObject;
  6931. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6932. }
  6933. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  6934. constructor(props: IColorPickerPropertyGridComponentProps);
  6935. render(): JSX.Element;
  6936. }
  6937. }
  6938. declare module INSPECTOR {
  6939. interface IAnimationGroupGridComponentProps {
  6940. globalState: GlobalState;
  6941. animationGroup: BABYLON.AnimationGroup;
  6942. scene: BABYLON.Scene;
  6943. lockObject: LockObject;
  6944. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6945. }
  6946. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  6947. playButtonText: string;
  6948. currentFrame: number;
  6949. }> {
  6950. private _onAnimationGroupPlayObserver;
  6951. private _onAnimationGroupPauseObserver;
  6952. private _onBeforeRenderObserver;
  6953. private timelineRef;
  6954. constructor(props: IAnimationGroupGridComponentProps);
  6955. disconnect(animationGroup: BABYLON.AnimationGroup): void;
  6956. connect(animationGroup: BABYLON.AnimationGroup): void;
  6957. updateCurrentFrame(animationGroup: BABYLON.AnimationGroup): void;
  6958. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  6959. componentWillUnmount(): void;
  6960. playOrPause(): void;
  6961. onCurrentFrameChange(value: number): void;
  6962. render(): JSX.Element;
  6963. }
  6964. }
  6965. declare module INSPECTOR {
  6966. interface IImagePropertyGridComponentProps {
  6967. globalState: GlobalState;
  6968. image: BABYLON.GUI.Image;
  6969. lockObject: LockObject;
  6970. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6971. }
  6972. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  6973. constructor(props: IImagePropertyGridComponentProps);
  6974. render(): JSX.Element;
  6975. }
  6976. }
  6977. declare module INSPECTOR {
  6978. interface ISliderPropertyGridComponentProps {
  6979. globalState: GlobalState;
  6980. slider: BABYLON.GUI.Slider;
  6981. lockObject: LockObject;
  6982. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6983. }
  6984. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  6985. constructor(props: ISliderPropertyGridComponentProps);
  6986. render(): JSX.Element;
  6987. }
  6988. }
  6989. declare module INSPECTOR {
  6990. interface IImageBasedSliderPropertyGridComponentProps {
  6991. globalState: GlobalState;
  6992. imageBasedSlider: BABYLON.GUI.ImageBasedSlider;
  6993. lockObject: LockObject;
  6994. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  6995. }
  6996. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  6997. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  6998. render(): JSX.Element;
  6999. }
  7000. }
  7001. declare module INSPECTOR {
  7002. interface IRectanglePropertyGridComponentProps {
  7003. globalState: GlobalState;
  7004. rectangle: BABYLON.GUI.Rectangle;
  7005. lockObject: LockObject;
  7006. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7007. }
  7008. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  7009. constructor(props: IRectanglePropertyGridComponentProps);
  7010. render(): JSX.Element;
  7011. }
  7012. }
  7013. declare module INSPECTOR {
  7014. interface IEllipsePropertyGridComponentProps {
  7015. globalState: GlobalState;
  7016. ellipse: BABYLON.GUI.Ellipse;
  7017. lockObject: LockObject;
  7018. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7019. }
  7020. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  7021. constructor(props: IEllipsePropertyGridComponentProps);
  7022. render(): JSX.Element;
  7023. }
  7024. }
  7025. declare module INSPECTOR {
  7026. interface ICheckboxPropertyGridComponentProps {
  7027. globalState: GlobalState;
  7028. checkbox: BABYLON.GUI.Checkbox;
  7029. lockObject: LockObject;
  7030. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7031. }
  7032. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  7033. constructor(props: ICheckboxPropertyGridComponentProps);
  7034. render(): JSX.Element;
  7035. }
  7036. }
  7037. declare module INSPECTOR {
  7038. interface IRadioButtonPropertyGridComponentProps {
  7039. globalState: GlobalState;
  7040. radioButton: BABYLON.GUI.RadioButton;
  7041. lockObject: LockObject;
  7042. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7043. }
  7044. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  7045. constructor(props: IRadioButtonPropertyGridComponentProps);
  7046. render(): JSX.Element;
  7047. }
  7048. }
  7049. declare module INSPECTOR {
  7050. interface ILinePropertyGridComponentProps {
  7051. globalState: GlobalState;
  7052. line: BABYLON.GUI.Line;
  7053. lockObject: LockObject;
  7054. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7055. }
  7056. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  7057. constructor(props: ILinePropertyGridComponentProps);
  7058. onDashChange(value: string): void;
  7059. render(): JSX.Element;
  7060. }
  7061. }
  7062. declare module INSPECTOR {
  7063. interface IScrollViewerPropertyGridComponentProps {
  7064. globalState: GlobalState;
  7065. scrollViewer: BABYLON.GUI.ScrollViewer;
  7066. lockObject: LockObject;
  7067. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7068. }
  7069. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  7070. constructor(props: IScrollViewerPropertyGridComponentProps);
  7071. render(): JSX.Element;
  7072. }
  7073. }
  7074. declare module INSPECTOR {
  7075. interface IGridPropertyGridComponentProps {
  7076. globalState: GlobalState;
  7077. grid: BABYLON.GUI.Grid;
  7078. lockObject: LockObject;
  7079. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7080. }
  7081. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  7082. constructor(props: IGridPropertyGridComponentProps);
  7083. renderRows(): JSX.Element[];
  7084. renderColumns(): JSX.Element[];
  7085. render(): JSX.Element;
  7086. }
  7087. }
  7088. declare module INSPECTOR {
  7089. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  7090. globalState: GlobalState;
  7091. material: BABYLON.PBRMetallicRoughnessMaterial;
  7092. lockObject: LockObject;
  7093. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7094. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7095. }
  7096. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  7097. private _onDebugSelectionChangeObservable;
  7098. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  7099. renderTextures(): JSX.Element;
  7100. render(): JSX.Element;
  7101. }
  7102. }
  7103. declare module INSPECTOR {
  7104. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  7105. globalState: GlobalState;
  7106. material: BABYLON.PBRSpecularGlossinessMaterial;
  7107. lockObject: LockObject;
  7108. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7109. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7110. }
  7111. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  7112. private _onDebugSelectionChangeObservable;
  7113. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  7114. renderTextures(): JSX.Element;
  7115. render(): JSX.Element;
  7116. }
  7117. }
  7118. declare module INSPECTOR {
  7119. interface IStackPanelPropertyGridComponentProps {
  7120. globalState: GlobalState;
  7121. stackPanel: BABYLON.GUI.StackPanel;
  7122. lockObject: LockObject;
  7123. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7124. }
  7125. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  7126. constructor(props: IStackPanelPropertyGridComponentProps);
  7127. render(): JSX.Element;
  7128. }
  7129. }
  7130. declare module INSPECTOR {
  7131. interface ICommonPostProcessPropertyGridComponentProps {
  7132. globalState: GlobalState;
  7133. postProcess: BABYLON.PostProcess;
  7134. lockObject: LockObject;
  7135. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7136. }
  7137. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  7138. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  7139. render(): JSX.Element;
  7140. }
  7141. }
  7142. declare module INSPECTOR {
  7143. interface IPostProcessPropertyGridComponentProps {
  7144. globalState: GlobalState;
  7145. postProcess: BABYLON.PostProcess;
  7146. lockObject: LockObject;
  7147. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7148. }
  7149. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  7150. constructor(props: IPostProcessPropertyGridComponentProps);
  7151. edit(): void;
  7152. render(): JSX.Element;
  7153. }
  7154. }
  7155. declare module INSPECTOR {
  7156. interface ICommonRenderingPipelinePropertyGridComponentProps {
  7157. globalState: GlobalState;
  7158. renderPipeline: BABYLON.PostProcessRenderPipeline;
  7159. lockObject: LockObject;
  7160. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7161. }
  7162. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  7163. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  7164. render(): JSX.Element;
  7165. }
  7166. }
  7167. declare module INSPECTOR {
  7168. interface IRenderingPipelinePropertyGridComponentProps {
  7169. globalState: GlobalState;
  7170. renderPipeline: BABYLON.PostProcessRenderPipeline;
  7171. lockObject: LockObject;
  7172. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7173. }
  7174. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  7175. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  7176. render(): JSX.Element;
  7177. }
  7178. }
  7179. declare module INSPECTOR {
  7180. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  7181. globalState: GlobalState;
  7182. renderPipeline: BABYLON.DefaultRenderingPipeline;
  7183. lockObject: LockObject;
  7184. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7185. }
  7186. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  7187. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  7188. render(): JSX.Element;
  7189. }
  7190. }
  7191. declare module INSPECTOR {
  7192. interface ISSAORenderingPipelinePropertyGridComponentProps {
  7193. globalState: GlobalState;
  7194. renderPipeline: BABYLON.SSAORenderingPipeline;
  7195. lockObject: LockObject;
  7196. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7197. }
  7198. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  7199. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  7200. render(): JSX.Element;
  7201. }
  7202. }
  7203. declare module INSPECTOR {
  7204. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  7205. globalState: GlobalState;
  7206. renderPipeline: BABYLON.SSAO2RenderingPipeline;
  7207. lockObject: LockObject;
  7208. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7209. }
  7210. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  7211. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  7212. render(): JSX.Element;
  7213. }
  7214. }
  7215. declare module INSPECTOR {
  7216. interface ISkeletonPropertyGridComponentProps {
  7217. globalState: GlobalState;
  7218. skeleton: BABYLON.Skeleton;
  7219. lockObject: LockObject;
  7220. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7221. }
  7222. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  7223. private _skeletonViewersEnabled;
  7224. private _skeletonViewerDisplayOptions;
  7225. private _skeletonViewers;
  7226. constructor(props: ISkeletonPropertyGridComponentProps);
  7227. switchSkeletonViewers(): void;
  7228. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  7229. changeDisplayMode(): void;
  7230. changeDisplayOptions(option: string, value: number): void;
  7231. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  7232. onOverrideMeshLink(): void;
  7233. render(): JSX.Element;
  7234. }
  7235. }
  7236. declare module INSPECTOR {
  7237. interface IBonePropertyGridComponentProps {
  7238. globalState: GlobalState;
  7239. bone: BABYLON.Bone;
  7240. lockObject: LockObject;
  7241. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7242. }
  7243. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  7244. constructor(props: IBonePropertyGridComponentProps);
  7245. onTransformNodeLink(): void;
  7246. render(): JSX.Element;
  7247. }
  7248. }
  7249. declare module INSPECTOR {
  7250. interface IDirectionalLightPropertyGridComponentProps {
  7251. globalState: GlobalState;
  7252. light: BABYLON.DirectionalLight;
  7253. lockObject: LockObject;
  7254. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7255. }
  7256. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  7257. constructor(props: IDirectionalLightPropertyGridComponentProps);
  7258. render(): JSX.Element;
  7259. }
  7260. }
  7261. declare module INSPECTOR {
  7262. interface ISpotLightPropertyGridComponentProps {
  7263. globalState: GlobalState;
  7264. light: BABYLON.SpotLight;
  7265. lockObject: LockObject;
  7266. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7267. }
  7268. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  7269. constructor(props: ISpotLightPropertyGridComponentProps);
  7270. render(): JSX.Element;
  7271. }
  7272. }
  7273. declare module INSPECTOR {
  7274. interface ILenstRenderingPipelinePropertyGridComponentProps {
  7275. globalState: GlobalState;
  7276. renderPipeline: BABYLON.LensRenderingPipeline;
  7277. lockObject: LockObject;
  7278. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7279. }
  7280. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  7281. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  7282. render(): JSX.Element;
  7283. }
  7284. }
  7285. declare module INSPECTOR {
  7286. interface IVector4LineComponentProps {
  7287. label: string;
  7288. target: any;
  7289. propertyName: string;
  7290. step?: number;
  7291. onChange?: (newvalue: BABYLON.Vector4) => void;
  7292. useEuler?: boolean;
  7293. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7294. }
  7295. export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
  7296. isExpanded: boolean;
  7297. value: BABYLON.Vector4;
  7298. }> {
  7299. static defaultProps: {
  7300. step: number;
  7301. };
  7302. private _localChange;
  7303. constructor(props: IVector4LineComponentProps);
  7304. getCurrentValue(): any;
  7305. shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
  7306. isExpanded: boolean;
  7307. value: BABYLON.Vector4;
  7308. }): boolean;
  7309. switchExpandState(): void;
  7310. raiseOnPropertyChanged(previousValue: BABYLON.Vector4): void;
  7311. updateVector4(): void;
  7312. updateStateX(value: number): void;
  7313. updateStateY(value: number): void;
  7314. updateStateZ(value: number): void;
  7315. updateStateW(value: number): void;
  7316. render(): JSX.Element;
  7317. }
  7318. }
  7319. declare module INSPECTOR {
  7320. export interface IColor4LineComponentProps {
  7321. label: string;
  7322. target: any;
  7323. propertyName: string;
  7324. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7325. onChange?: () => void;
  7326. isLinear?: boolean;
  7327. }
  7328. export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
  7329. isExpanded: boolean;
  7330. color: BABYLON.Color4;
  7331. }> {
  7332. private _localChange;
  7333. constructor(props: IColor4LineComponentProps);
  7334. shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
  7335. color: BABYLON.Color4;
  7336. }): boolean;
  7337. setPropertyValue(newColor: BABYLON.Color4): void;
  7338. onChange(newValue: string): void;
  7339. switchExpandState(): void;
  7340. raiseOnPropertyChanged(previousValue: BABYLON.Color4): void;
  7341. updateStateR(value: number): void;
  7342. updateStateG(value: number): void;
  7343. updateStateB(value: number): void;
  7344. updateStateA(value: number): void;
  7345. copyToClipboard(): void;
  7346. render(): JSX.Element;
  7347. }
  7348. }
  7349. declare module INSPECTOR {
  7350. interface IGradientStepComponentProps {
  7351. globalState: GlobalState;
  7352. step: BABYLON.GradientBlockColorStep;
  7353. lineIndex: number;
  7354. onDelete: () => void;
  7355. onUpdateStep: () => void;
  7356. onCheckForReOrder: () => void;
  7357. onCopy?: () => void;
  7358. }
  7359. export class GradientStepComponent extends React.Component<IGradientStepComponentProps, {
  7360. gradient: number;
  7361. }> {
  7362. constructor(props: IGradientStepComponentProps);
  7363. updateColor(color: string): void;
  7364. updateStep(gradient: number): void;
  7365. onPointerUp(): void;
  7366. render(): JSX.Element;
  7367. }
  7368. }
  7369. declare module INSPECTOR {
  7370. export interface IPropertyComponentProps {
  7371. globalState: GlobalState;
  7372. block: BABYLON.NodeMaterialBlock;
  7373. }
  7374. }
  7375. declare module INSPECTOR {
  7376. export class GradientPropertyTabComponent extends React.Component<IPropertyComponentProps> {
  7377. private _gradientBlock;
  7378. constructor(props: IPropertyComponentProps);
  7379. forceRebuild(): void;
  7380. deleteStep(step: BABYLON.GradientBlockColorStep): void;
  7381. copyStep(step: BABYLON.GradientBlockColorStep): void;
  7382. addNewStep(): void;
  7383. checkForReOrder(): void;
  7384. render(): JSX.Element;
  7385. }
  7386. }
  7387. declare module INSPECTOR {
  7388. interface INodeMaterialPropertyGridComponentProps {
  7389. globalState: GlobalState;
  7390. material: BABYLON.NodeMaterial;
  7391. lockObject: LockObject;
  7392. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7393. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7394. }
  7395. export class NodeMaterialPropertyGridComponent extends React.Component<INodeMaterialPropertyGridComponentProps> {
  7396. private _onDebugSelectionChangeObservable;
  7397. constructor(props: INodeMaterialPropertyGridComponentProps);
  7398. edit(): void;
  7399. renderTextures(): JSX.Element | null;
  7400. renderInputBlock(block: BABYLON.InputBlock): JSX.Element | null;
  7401. renderInputValues(): JSX.Element;
  7402. render(): JSX.Element;
  7403. }
  7404. }
  7405. declare module INSPECTOR {
  7406. interface IMultiMaterialPropertyGridComponentProps {
  7407. globalState: GlobalState;
  7408. material: BABYLON.MultiMaterial;
  7409. lockObject: LockObject;
  7410. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7411. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7412. }
  7413. export class MultiMaterialPropertyGridComponent extends React.Component<IMultiMaterialPropertyGridComponentProps> {
  7414. constructor(props: IMultiMaterialPropertyGridComponentProps);
  7415. onMaterialLink(mat: BABYLON.Material): void;
  7416. renderChildMaterial(): JSX.Element;
  7417. render(): JSX.Element;
  7418. }
  7419. }
  7420. declare module INSPECTOR {
  7421. interface IBoxEmitterGridComponentProps {
  7422. globalState: GlobalState;
  7423. emitter: BABYLON.BoxParticleEmitter;
  7424. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7425. }
  7426. export class BoxEmitterGridComponent extends React.Component<IBoxEmitterGridComponentProps> {
  7427. constructor(props: IBoxEmitterGridComponentProps);
  7428. render(): JSX.Element;
  7429. }
  7430. }
  7431. declare module INSPECTOR {
  7432. interface IConeEmitterGridComponentProps {
  7433. globalState: GlobalState;
  7434. emitter: BABYLON.ConeParticleEmitter;
  7435. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7436. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7437. }
  7438. export class ConeEmitterGridComponent extends React.Component<IConeEmitterGridComponentProps> {
  7439. constructor(props: IConeEmitterGridComponentProps);
  7440. render(): JSX.Element;
  7441. }
  7442. }
  7443. declare module INSPECTOR {
  7444. interface ICylinderEmitterGridComponentProps {
  7445. globalState: GlobalState;
  7446. emitter: BABYLON.CylinderParticleEmitter;
  7447. lockObject: LockObject;
  7448. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7449. }
  7450. export class CylinderEmitterGridComponent extends React.Component<ICylinderEmitterGridComponentProps> {
  7451. constructor(props: ICylinderEmitterGridComponentProps);
  7452. render(): JSX.Element;
  7453. }
  7454. }
  7455. declare module INSPECTOR {
  7456. interface IHemisphericEmitterGridComponentProps {
  7457. globalState: GlobalState;
  7458. emitter: BABYLON.HemisphericParticleEmitter;
  7459. lockObject: LockObject;
  7460. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7461. }
  7462. export class HemisphericEmitterGridComponent extends React.Component<IHemisphericEmitterGridComponentProps> {
  7463. constructor(props: IHemisphericEmitterGridComponentProps);
  7464. render(): JSX.Element;
  7465. }
  7466. }
  7467. declare module INSPECTOR {
  7468. interface IPointEmitterGridComponentProps {
  7469. globalState: GlobalState;
  7470. emitter: BABYLON.PointParticleEmitter;
  7471. lockObject: LockObject;
  7472. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7473. }
  7474. export class PointEmitterGridComponent extends React.Component<IPointEmitterGridComponentProps> {
  7475. constructor(props: IPointEmitterGridComponentProps);
  7476. render(): JSX.Element;
  7477. }
  7478. }
  7479. declare module INSPECTOR {
  7480. interface ISphereEmitterGridComponentProps {
  7481. globalState: GlobalState;
  7482. emitter: BABYLON.SphereParticleEmitter;
  7483. lockObject: LockObject;
  7484. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7485. }
  7486. export class SphereEmitterGridComponent extends React.Component<ISphereEmitterGridComponentProps> {
  7487. constructor(props: ISphereEmitterGridComponentProps);
  7488. render(): JSX.Element;
  7489. }
  7490. }
  7491. declare module INSPECTOR {
  7492. interface IMeshPickerComponentProps {
  7493. globalState: GlobalState;
  7494. target: any;
  7495. property: string;
  7496. scene: BABYLON.Scene;
  7497. label: string;
  7498. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7499. }
  7500. export class MeshPickerComponent extends React.Component<IMeshPickerComponentProps> {
  7501. constructor(props: IMeshPickerComponentProps);
  7502. render(): JSX.Element;
  7503. }
  7504. }
  7505. declare module INSPECTOR {
  7506. interface IMeshEmitterGridComponentProps {
  7507. globalState: GlobalState;
  7508. emitter: BABYLON.MeshParticleEmitter;
  7509. scene: BABYLON.Scene;
  7510. lockObject: LockObject;
  7511. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7512. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7513. }
  7514. export class MeshEmitterGridComponent extends React.Component<IMeshEmitterGridComponentProps> {
  7515. constructor(props: IMeshEmitterGridComponentProps);
  7516. render(): JSX.Element;
  7517. }
  7518. }
  7519. declare module INSPECTOR {
  7520. interface IFactorGradientStepGridComponent {
  7521. globalState: GlobalState;
  7522. gradient: BABYLON.FactorGradient;
  7523. lockObject: LockObject;
  7524. lineIndex: number;
  7525. onDelete: () => void;
  7526. onUpdateGradient: () => void;
  7527. onCheckForReOrder: () => void;
  7528. host: BABYLON.IParticleSystem;
  7529. codeRecorderPropertyName: string;
  7530. }
  7531. export class FactorGradientStepGridComponent extends React.Component<IFactorGradientStepGridComponent, {
  7532. gradient: number;
  7533. factor1: string;
  7534. factor2?: string;
  7535. }> {
  7536. constructor(props: IFactorGradientStepGridComponent);
  7537. shouldComponentUpdate(nextProps: IFactorGradientStepGridComponent, nextState: {
  7538. gradient: number;
  7539. factor1: string;
  7540. factor2?: string;
  7541. }): boolean;
  7542. updateFactor1(valueString: string): void;
  7543. updateFactor2(valueString: string): void;
  7544. updateGradient(gradient: number): void;
  7545. onPointerUp(): void;
  7546. lock(): void;
  7547. unlock(): void;
  7548. render(): JSX.Element;
  7549. }
  7550. }
  7551. declare module INSPECTOR {
  7552. interface IColorGradientStepGridComponent {
  7553. globalState: GlobalState;
  7554. gradient: BABYLON.ColorGradient | BABYLON.Color3Gradient;
  7555. lockObject: LockObject;
  7556. lineIndex: number;
  7557. isColor3: boolean;
  7558. onDelete: () => void;
  7559. onUpdateGradient: () => void;
  7560. onCheckForReOrder: () => void;
  7561. host: BABYLON.IParticleSystem;
  7562. codeRecorderPropertyName: string;
  7563. }
  7564. export class ColorGradientStepGridComponent extends React.Component<IColorGradientStepGridComponent, {
  7565. gradient: number;
  7566. }> {
  7567. constructor(props: IColorGradientStepGridComponent);
  7568. updateColor1(color: string): void;
  7569. updateColor2(color: string): void;
  7570. updateGradient(gradient: number): void;
  7571. onPointerUp(): void;
  7572. lock(): void;
  7573. unlock(): void;
  7574. render(): JSX.Element;
  7575. }
  7576. }
  7577. declare module INSPECTOR {
  7578. interface ILinkButtonComponentProps {
  7579. label: string;
  7580. buttonLabel: string;
  7581. url?: string;
  7582. onClick: () => void;
  7583. onIconClick?: () => void;
  7584. }
  7585. export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
  7586. constructor(props: ILinkButtonComponentProps);
  7587. onLink(): void;
  7588. render(): JSX.Element;
  7589. }
  7590. }
  7591. declare module INSPECTOR {
  7592. export enum GradientGridMode {
  7593. Factor = 0,
  7594. BABYLON.Color3 = 1,
  7595. BABYLON.Color4 = 2
  7596. }
  7597. interface IValueGradientGridComponent {
  7598. globalState: GlobalState;
  7599. label: string;
  7600. gradients: BABYLON.Nullable<Array<BABYLON.IValueGradient>>;
  7601. lockObject: LockObject;
  7602. docLink?: string;
  7603. mode: GradientGridMode;
  7604. host: BABYLON.IParticleSystem;
  7605. codeRecorderPropertyName: string;
  7606. onCreateRequired: () => void;
  7607. }
  7608. export class ValueGradientGridComponent extends React.Component<IValueGradientGridComponent> {
  7609. constructor(props: IValueGradientGridComponent);
  7610. deleteStep(step: BABYLON.IValueGradient): void;
  7611. addNewStep(): void;
  7612. checkForReOrder(): void;
  7613. updateAndSync(): void;
  7614. render(): JSX.Element;
  7615. }
  7616. }
  7617. declare module INSPECTOR {
  7618. interface IParticleSystemPropertyGridComponentProps {
  7619. globalState: GlobalState;
  7620. system: BABYLON.IParticleSystem;
  7621. lockObject: LockObject;
  7622. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7623. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7624. }
  7625. export class ParticleSystemPropertyGridComponent extends React.Component<IParticleSystemPropertyGridComponentProps> {
  7626. private _snippetUrl;
  7627. constructor(props: IParticleSystemPropertyGridComponentProps);
  7628. renderEmitter(): JSX.Element | null;
  7629. raiseOnPropertyChanged(property: string, newValue: any, previousValue: any): void;
  7630. renderControls(): JSX.Element;
  7631. saveToFile(): void;
  7632. loadFromFile(file: File): void;
  7633. loadFromSnippet(): void;
  7634. saveToSnippet(): void;
  7635. render(): JSX.Element;
  7636. }
  7637. }
  7638. declare module INSPECTOR {
  7639. interface ISpriteManagerPropertyGridComponentProps {
  7640. globalState: GlobalState;
  7641. spriteManager: BABYLON.SpriteManager;
  7642. lockObject: LockObject;
  7643. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7644. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7645. }
  7646. export class SpriteManagerPropertyGridComponent extends React.Component<ISpriteManagerPropertyGridComponentProps> {
  7647. private _snippetUrl;
  7648. constructor(props: ISpriteManagerPropertyGridComponentProps);
  7649. addNewSprite(): void;
  7650. disposeManager(): void;
  7651. saveToFile(): void;
  7652. loadFromFile(file: File): void;
  7653. loadFromSnippet(): void;
  7654. saveToSnippet(): void;
  7655. render(): JSX.Element;
  7656. }
  7657. }
  7658. declare module INSPECTOR {
  7659. interface ISpritePropertyGridComponentProps {
  7660. globalState: GlobalState;
  7661. sprite: BABYLON.Sprite;
  7662. lockObject: LockObject;
  7663. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7664. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7665. }
  7666. export class SpritePropertyGridComponent extends React.Component<ISpritePropertyGridComponentProps> {
  7667. private canvasRef;
  7668. private imageData;
  7669. private cachedCellIndex;
  7670. constructor(props: ISpritePropertyGridComponentProps);
  7671. onManagerLink(): void;
  7672. switchPlayStopState(): void;
  7673. disposeSprite(): void;
  7674. componentDidMount(): void;
  7675. componentDidUpdate(): void;
  7676. shouldComponentUpdate(nextProps: ISpritePropertyGridComponentProps): boolean;
  7677. updatePreview(): void;
  7678. render(): JSX.Element;
  7679. }
  7680. }
  7681. declare module INSPECTOR {
  7682. interface ITargetedAnimationGridComponentProps {
  7683. globalState: GlobalState;
  7684. targetedAnimation: BABYLON.TargetedAnimation;
  7685. scene: BABYLON.Scene;
  7686. lockObject: LockObject;
  7687. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7688. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7689. }
  7690. export class TargetedAnimationGridComponent extends React.Component<ITargetedAnimationGridComponentProps> {
  7691. private _isCurveEditorOpen;
  7692. private _animationGroup;
  7693. constructor(props: ITargetedAnimationGridComponentProps);
  7694. onOpenAnimationCurveEditor: () => void;
  7695. onCloseAnimationCurveEditor: (window: Window | null) => void;
  7696. playOrPause: () => void;
  7697. deleteAnimation: () => void;
  7698. render(): JSX.Element;
  7699. }
  7700. }
  7701. declare module INSPECTOR {
  7702. interface IFollowCameraPropertyGridComponentProps {
  7703. globalState: GlobalState;
  7704. camera: BABYLON.FollowCamera;
  7705. lockObject: LockObject;
  7706. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  7707. }
  7708. export class FollowCameraPropertyGridComponent extends React.Component<IFollowCameraPropertyGridComponentProps> {
  7709. constructor(props: IFollowCameraPropertyGridComponentProps);
  7710. render(): JSX.Element;
  7711. }
  7712. }
  7713. declare module INSPECTOR {
  7714. export class PropertyGridTabComponent extends PaneComponent {
  7715. private _timerIntervalId;
  7716. private _lockObject;
  7717. constructor(props: IPaneComponentProps);
  7718. timerRefresh(): void;
  7719. componentDidMount(): void;
  7720. componentWillUnmount(): void;
  7721. render(): JSX.Element | null;
  7722. }
  7723. }
  7724. declare module INSPECTOR {
  7725. export interface IHeaderComponentProps {
  7726. title: string;
  7727. handleBack?: boolean;
  7728. noExpand?: boolean;
  7729. noClose?: boolean;
  7730. noCommands?: boolean;
  7731. onPopup: () => void;
  7732. onClose: () => void;
  7733. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7734. }
  7735. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  7736. isBackVisible: boolean;
  7737. }> {
  7738. private _backStack;
  7739. private _onSelectionChangeObserver;
  7740. constructor(props: IHeaderComponentProps);
  7741. componentDidMount(): void;
  7742. componentWillUnmount(): void;
  7743. goBack(): void;
  7744. renderLogo(): JSX.Element | null;
  7745. render(): JSX.Element;
  7746. }
  7747. }
  7748. declare module INSPECTOR {
  7749. interface IMessageLineComponentProps {
  7750. text: string;
  7751. color?: string;
  7752. }
  7753. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  7754. constructor(props: IMessageLineComponentProps);
  7755. render(): JSX.Element;
  7756. }
  7757. }
  7758. declare module INSPECTOR {
  7759. interface IGLTFComponentProps {
  7760. scene: BABYLON.Scene;
  7761. globalState: GlobalState;
  7762. }
  7763. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  7764. private _onValidationResultsUpdatedObserver;
  7765. openValidationDetails(): void;
  7766. prepareText(singularForm: string, count: number): string;
  7767. componentDidMount(): void;
  7768. componentWillUnmount(): void;
  7769. renderValidation(): JSX.Element | null;
  7770. render(): JSX.Element;
  7771. }
  7772. }
  7773. declare module INSPECTOR {
  7774. interface IFileMultipleButtonLineComponentProps {
  7775. label: string;
  7776. onClick: (event: any) => void;
  7777. accept: string;
  7778. }
  7779. export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
  7780. private static _IDGenerator;
  7781. private _id;
  7782. private uploadInputRef;
  7783. constructor(props: IFileMultipleButtonLineComponentProps);
  7784. onChange(evt: any): void;
  7785. render(): JSX.Element;
  7786. }
  7787. }
  7788. declare module INSPECTOR {
  7789. export class ToolsTabComponent extends PaneComponent {
  7790. private _videoRecorder;
  7791. private _screenShotSize;
  7792. private _gifOptions;
  7793. private _useWidthHeight;
  7794. private _isExporting;
  7795. private _gifWorkerBlob;
  7796. private _gifRecorder;
  7797. private _previousRenderingScale;
  7798. private _crunchingGIF;
  7799. constructor(props: IPaneComponentProps);
  7800. componentDidMount(): void;
  7801. componentWillUnmount(): void;
  7802. captureScreenshot(): void;
  7803. captureRender(): void;
  7804. recordVideo(): void;
  7805. recordGIFInternal(): void;
  7806. recordGIF(): void;
  7807. importAnimations(event: any): void;
  7808. shouldExport(node: BABYLON.Node): boolean;
  7809. exportGLTF(): void;
  7810. exportBabylon(): void;
  7811. createEnvTexture(): void;
  7812. exportReplay(): void;
  7813. startRecording(): void;
  7814. applyDelta(file: File): void;
  7815. render(): JSX.Element | null;
  7816. }
  7817. }
  7818. declare module INSPECTOR {
  7819. export class SettingsTabComponent extends PaneComponent {
  7820. constructor(props: IPaneComponentProps);
  7821. render(): JSX.Element;
  7822. }
  7823. }
  7824. declare module INSPECTOR {
  7825. interface IActionTabsComponentProps {
  7826. scene?: BABYLON.Scene;
  7827. noCommands?: boolean;
  7828. noHeader?: boolean;
  7829. noExpand?: boolean;
  7830. noClose?: boolean;
  7831. popupMode?: boolean;
  7832. onPopup?: () => void;
  7833. onClose?: () => void;
  7834. globalState?: GlobalState;
  7835. initialTab?: BABYLON.DebugLayerTab;
  7836. }
  7837. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  7838. selectedEntity: any;
  7839. selectedIndex: number;
  7840. }> {
  7841. private _onSelectionChangeObserver;
  7842. private _onTabChangedObserver;
  7843. private _once;
  7844. constructor(props: IActionTabsComponentProps);
  7845. componentDidMount(): void;
  7846. componentWillUnmount(): void;
  7847. changeSelectedTab(index: number): void;
  7848. renderContent(): JSX.Element | null;
  7849. onClose(): void;
  7850. onPopup(): void;
  7851. render(): JSX.Element;
  7852. }
  7853. }
  7854. declare module INSPECTOR {
  7855. interface ITreeItemLabelComponentProps {
  7856. label: string;
  7857. onClick?: () => void;
  7858. color: string;
  7859. }
  7860. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  7861. constructor(props: ITreeItemLabelComponentProps);
  7862. onClick(): void;
  7863. render(): JSX.Element;
  7864. }
  7865. }
  7866. declare module INSPECTOR {
  7867. interface IExtensionsComponentProps {
  7868. target: any;
  7869. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7870. }
  7871. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  7872. popupVisible: boolean;
  7873. }> {
  7874. private _popup;
  7875. private extensionRef;
  7876. constructor(props: IExtensionsComponentProps);
  7877. showPopup(): void;
  7878. componentDidMount(): void;
  7879. componentDidUpdate(): void;
  7880. render(): JSX.Element | null;
  7881. }
  7882. }
  7883. declare module INSPECTOR {
  7884. interface IMeshTreeItemComponentProps {
  7885. mesh: BABYLON.AbstractMesh;
  7886. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7887. onClick: () => void;
  7888. globalState: GlobalState;
  7889. }
  7890. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  7891. isBoundingBoxEnabled: boolean;
  7892. isVisible: boolean;
  7893. }> {
  7894. constructor(props: IMeshTreeItemComponentProps);
  7895. showBoundingBox(): void;
  7896. switchVisibility(): void;
  7897. render(): JSX.Element;
  7898. }
  7899. }
  7900. declare module INSPECTOR {
  7901. interface ICameraTreeItemComponentProps {
  7902. camera: BABYLON.Camera;
  7903. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7904. onClick: () => void;
  7905. globalState: GlobalState;
  7906. }
  7907. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  7908. isActive: boolean;
  7909. isGizmoEnabled: boolean;
  7910. }> {
  7911. private _onBeforeRenderObserver;
  7912. constructor(props: ICameraTreeItemComponentProps);
  7913. setActive(): void;
  7914. componentDidMount(): void;
  7915. componentWillUnmount(): void;
  7916. toggleGizmo(): void;
  7917. render(): JSX.Element;
  7918. }
  7919. }
  7920. declare module INSPECTOR {
  7921. interface ILightTreeItemComponentProps {
  7922. light: BABYLON.Light;
  7923. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7924. onClick: () => void;
  7925. globalState: GlobalState;
  7926. }
  7927. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  7928. isEnabled: boolean;
  7929. isGizmoEnabled: boolean;
  7930. }> {
  7931. constructor(props: ILightTreeItemComponentProps);
  7932. switchIsEnabled(): void;
  7933. toggleGizmo(): void;
  7934. render(): JSX.Element;
  7935. }
  7936. }
  7937. declare module INSPECTOR {
  7938. interface IMaterialTreeItemComponentProps {
  7939. material: BABYLON.Material | BABYLON.NodeMaterial;
  7940. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7941. onClick: () => void;
  7942. }
  7943. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  7944. constructor(props: IMaterialTreeItemComponentProps);
  7945. render(): JSX.Element;
  7946. }
  7947. }
  7948. declare module INSPECTOR {
  7949. interface ITextureTreeItemComponentProps {
  7950. texture: BABYLON.Texture;
  7951. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7952. onClick: () => void;
  7953. }
  7954. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  7955. constructor(props: ITextureTreeItemComponentProps);
  7956. render(): JSX.Element;
  7957. }
  7958. }
  7959. declare module INSPECTOR {
  7960. interface ITransformNodeItemComponentProps {
  7961. transformNode: BABYLON.TransformNode;
  7962. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7963. onClick: () => void;
  7964. }
  7965. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  7966. constructor(props: ITransformNodeItemComponentProps);
  7967. render(): JSX.Element;
  7968. }
  7969. }
  7970. declare module INSPECTOR {
  7971. interface IControlTreeItemComponentProps {
  7972. control: BABYLON.GUI.Control;
  7973. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7974. onClick: () => void;
  7975. }
  7976. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  7977. isActive: boolean;
  7978. isVisible: boolean;
  7979. }> {
  7980. constructor(props: IControlTreeItemComponentProps);
  7981. highlight(): void;
  7982. switchVisibility(): void;
  7983. render(): JSX.Element;
  7984. }
  7985. }
  7986. declare module INSPECTOR {
  7987. interface IAdvancedDynamicTextureTreeItemComponentProps {
  7988. texture: BABYLON.GUI.AdvancedDynamicTexture;
  7989. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  7990. onSelectionChangedObservable?: BABYLON.Observable<any>;
  7991. onClick: () => void;
  7992. }
  7993. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  7994. isInPickingMode: boolean;
  7995. }> {
  7996. private _onControlPickedObserver;
  7997. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  7998. componentWillUnmount(): void;
  7999. onPickingMode(): void;
  8000. render(): JSX.Element;
  8001. }
  8002. }
  8003. declare module INSPECTOR {
  8004. interface IAnimationGroupItemComponentProps {
  8005. animationGroup: BABYLON.AnimationGroup;
  8006. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8007. onClick: () => void;
  8008. }
  8009. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  8010. constructor(props: IAnimationGroupItemComponentProps);
  8011. render(): JSX.Element;
  8012. }
  8013. }
  8014. declare module INSPECTOR {
  8015. interface IPostProcessItemComponentProps {
  8016. postProcess: BABYLON.PostProcess;
  8017. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8018. onClick: () => void;
  8019. }
  8020. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  8021. constructor(props: IPostProcessItemComponentProps);
  8022. render(): JSX.Element;
  8023. }
  8024. }
  8025. declare module INSPECTOR {
  8026. interface IRenderPipelineItemComponenttProps {
  8027. renderPipeline: BABYLON.PostProcessRenderPipeline;
  8028. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8029. onClick: () => void;
  8030. }
  8031. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  8032. constructor(props: IRenderPipelineItemComponenttProps);
  8033. render(): JSX.Element;
  8034. }
  8035. }
  8036. declare module INSPECTOR {
  8037. interface ISkeletonTreeItemComponentProps {
  8038. skeleton: BABYLON.Skeleton;
  8039. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8040. onClick: () => void;
  8041. }
  8042. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  8043. constructor(props: ISkeletonTreeItemComponentProps);
  8044. render(): JSX.Element;
  8045. }
  8046. }
  8047. declare module INSPECTOR {
  8048. interface IBoneTreeItemComponenttProps {
  8049. bone: BABYLON.Bone;
  8050. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8051. onClick: () => void;
  8052. }
  8053. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  8054. constructor(props: IBoneTreeItemComponenttProps);
  8055. render(): JSX.Element;
  8056. }
  8057. }
  8058. declare module INSPECTOR {
  8059. interface IParticleSystemTreeItemComponentProps {
  8060. system: BABYLON.IParticleSystem;
  8061. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8062. onClick: () => void;
  8063. }
  8064. export class ParticleSystemTreeItemComponent extends React.Component<IParticleSystemTreeItemComponentProps> {
  8065. constructor(props: IParticleSystemTreeItemComponentProps);
  8066. render(): JSX.Element;
  8067. }
  8068. }
  8069. declare module INSPECTOR {
  8070. interface ISpriteManagerTreeItemComponentProps {
  8071. spriteManager: BABYLON.SpriteManager;
  8072. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8073. onClick: () => void;
  8074. }
  8075. export class SpriteManagerTreeItemComponent extends React.Component<ISpriteManagerTreeItemComponentProps> {
  8076. constructor(props: ISpriteManagerTreeItemComponentProps);
  8077. render(): JSX.Element;
  8078. }
  8079. }
  8080. declare module INSPECTOR {
  8081. interface ISpriteTreeItemComponentProps {
  8082. sprite: BABYLON.Sprite;
  8083. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8084. onClick: () => void;
  8085. }
  8086. export class SpriteTreeItemComponent extends React.Component<ISpriteTreeItemComponentProps> {
  8087. constructor(props: ISpriteTreeItemComponentProps);
  8088. render(): JSX.Element;
  8089. }
  8090. }
  8091. declare module INSPECTOR {
  8092. interface ITargetedAnimationItemComponentProps {
  8093. targetedAnimation: BABYLON.TargetedAnimation;
  8094. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8095. onClick: () => void;
  8096. }
  8097. export class TargetedAnimationItemComponent extends React.Component<ITargetedAnimationItemComponentProps> {
  8098. constructor(props: ITargetedAnimationItemComponentProps);
  8099. render(): JSX.Element;
  8100. }
  8101. }
  8102. declare module INSPECTOR {
  8103. interface ITreeItemSpecializedComponentProps {
  8104. label: string;
  8105. entity?: any;
  8106. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8107. globalState: GlobalState;
  8108. onClick?: () => void;
  8109. }
  8110. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  8111. constructor(props: ITreeItemSpecializedComponentProps);
  8112. onClick(): void;
  8113. render(): JSX.Element;
  8114. }
  8115. }
  8116. declare module INSPECTOR {
  8117. export class Tools {
  8118. static LookForItem(item: any, selectedEntity: any): boolean;
  8119. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  8120. static SortAndFilter(parent: any, items: any[]): any[];
  8121. }
  8122. }
  8123. declare module INSPECTOR {
  8124. export interface ITreeItemSelectableComponentProps {
  8125. entity: any;
  8126. selectedEntity?: any;
  8127. mustExpand?: boolean;
  8128. offset: number;
  8129. globalState: GlobalState;
  8130. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8131. filter: BABYLON.Nullable<string>;
  8132. }
  8133. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  8134. isExpanded: boolean;
  8135. isSelected: boolean;
  8136. }> {
  8137. private _wasSelected;
  8138. constructor(props: ITreeItemSelectableComponentProps);
  8139. switchExpandedState(): void;
  8140. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  8141. isExpanded: boolean;
  8142. isSelected: boolean;
  8143. }): boolean;
  8144. scrollIntoView(): void;
  8145. componentDidMount(): void;
  8146. componentDidUpdate(): void;
  8147. onSelect(): void;
  8148. renderChildren(): JSX.Element[] | null;
  8149. render(): JSX.Element | null;
  8150. }
  8151. }
  8152. declare module INSPECTOR {
  8153. export interface ITreeItemComponentProps {
  8154. items?: BABYLON.Nullable<any[]>;
  8155. label: string;
  8156. offset: number;
  8157. filter: BABYLON.Nullable<string>;
  8158. forceSubitems?: boolean;
  8159. globalState: GlobalState;
  8160. entity?: any;
  8161. selectedEntity: any;
  8162. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8163. contextMenuItems?: {
  8164. label: string;
  8165. action: () => void;
  8166. }[];
  8167. }
  8168. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  8169. isExpanded: boolean;
  8170. mustExpand: boolean;
  8171. }> {
  8172. static _ContextMenuUniqueIdGenerator: number;
  8173. constructor(props: ITreeItemComponentProps);
  8174. switchExpandedState(): void;
  8175. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  8176. isExpanded: boolean;
  8177. }): boolean;
  8178. expandAll(expand: boolean): void;
  8179. renderContextMenu(): JSX.Element | null;
  8180. render(): JSX.Element;
  8181. }
  8182. }
  8183. declare module INSPECTOR {
  8184. interface ISceneTreeItemComponentProps {
  8185. scene: BABYLON.Scene;
  8186. onRefresh: () => void;
  8187. selectedEntity?: any;
  8188. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8189. onSelectionChangedObservable?: BABYLON.Observable<any>;
  8190. globalState: GlobalState;
  8191. }
  8192. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  8193. isSelected: boolean;
  8194. isInPickingMode: boolean;
  8195. gizmoMode: number;
  8196. }> {
  8197. private _gizmoLayerOnPointerObserver;
  8198. private _onPointerObserver;
  8199. private _onSelectionChangeObserver;
  8200. private _selectedEntity;
  8201. private _posDragEnd;
  8202. private _scaleDragEnd;
  8203. private _rotateDragEnd;
  8204. constructor(props: ISceneTreeItemComponentProps);
  8205. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  8206. isSelected: boolean;
  8207. isInPickingMode: boolean;
  8208. }): boolean;
  8209. componentDidMount(): void;
  8210. componentWillUnmount(): void;
  8211. onSelect(): void;
  8212. onPickingMode(): void;
  8213. setGizmoMode(mode: number): void;
  8214. render(): JSX.Element;
  8215. }
  8216. }
  8217. declare module INSPECTOR {
  8218. interface ISceneExplorerFilterComponentProps {
  8219. onFilter: (filter: string) => void;
  8220. }
  8221. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  8222. constructor(props: ISceneExplorerFilterComponentProps);
  8223. render(): JSX.Element;
  8224. }
  8225. interface ISceneExplorerComponentProps {
  8226. scene: BABYLON.Scene;
  8227. noCommands?: boolean;
  8228. noHeader?: boolean;
  8229. noExpand?: boolean;
  8230. noClose?: boolean;
  8231. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8232. globalState: GlobalState;
  8233. popupMode?: boolean;
  8234. onPopup?: () => void;
  8235. onClose?: () => void;
  8236. }
  8237. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  8238. filter: BABYLON.Nullable<string>;
  8239. selectedEntity: any;
  8240. scene: BABYLON.Scene;
  8241. }> {
  8242. private _onSelectionChangeObserver;
  8243. private _onSelectionRenamedObserver;
  8244. private _onNewSceneAddedObserver;
  8245. private _onNewSceneObserver;
  8246. private sceneExplorerRef;
  8247. private _once;
  8248. private _hooked;
  8249. private sceneMutationFunc;
  8250. constructor(props: ISceneExplorerComponentProps);
  8251. processMutation(): void;
  8252. componentDidMount(): void;
  8253. componentWillUnmount(): void;
  8254. filterContent(filter: string): void;
  8255. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  8256. previousOne?: any;
  8257. found?: boolean;
  8258. }): boolean;
  8259. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  8260. renderContent(): JSX.Element | null;
  8261. onClose(): void;
  8262. onPopup(): void;
  8263. render(): JSX.Element;
  8264. }
  8265. }
  8266. declare module INSPECTOR {
  8267. interface IEmbedHostComponentProps {
  8268. scene: BABYLON.Scene;
  8269. globalState: GlobalState;
  8270. popupMode: boolean;
  8271. noClose?: boolean;
  8272. noExpand?: boolean;
  8273. onClose: () => void;
  8274. onPopup: () => void;
  8275. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  8276. initialTab?: BABYLON.DebugLayerTab;
  8277. }
  8278. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  8279. private _once;
  8280. private splitRef;
  8281. private topPartRef;
  8282. private bottomPartRef;
  8283. constructor(props: IEmbedHostComponentProps);
  8284. componentDidMount(): void;
  8285. renderContent(): JSX.Element;
  8286. render(): JSX.Element;
  8287. }
  8288. }
  8289. declare module INSPECTOR {
  8290. export class Inspector {
  8291. private static _SceneExplorerHost;
  8292. private static _ActionTabsHost;
  8293. private static _EmbedHost;
  8294. private static _NewCanvasContainer;
  8295. private static _SceneExplorerWindow;
  8296. private static _ActionTabsWindow;
  8297. private static _EmbedHostWindow;
  8298. private static _Scene;
  8299. private static _OpenedPane;
  8300. private static _OnBeforeRenderObserver;
  8301. static OnSelectionChangeObservable: BABYLON.Observable<any>;
  8302. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  8303. private static _GlobalState;
  8304. static MarkLineContainerTitleForHighlighting(title: string): void;
  8305. static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
  8306. private static _CopyStyles;
  8307. private static _CreateSceneExplorer;
  8308. private static _CreateActionTabs;
  8309. private static _CreateEmbedHost;
  8310. static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
  8311. static get IsVisible(): boolean;
  8312. static EarlyAttachToLoader(): void;
  8313. static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
  8314. static _SetNewScene(scene: BABYLON.Scene): void;
  8315. static _CreateCanvasContainer(parentControl: HTMLElement): void;
  8316. private static _DestroyCanvasContainer;
  8317. private static _Cleanup;
  8318. private static _RemoveElementFromDOM;
  8319. static Hide(): void;
  8320. }
  8321. }
  8322. declare module INSPECTOR {
  8323. interface IPlayheadProps {
  8324. frame: number;
  8325. offset: number;
  8326. onCurrentFrameChange: (frame: number) => void;
  8327. }
  8328. /**
  8329. * Renders the Playhead
  8330. */
  8331. export class Playhead extends React.Component<IPlayheadProps> {
  8332. private _direction;
  8333. private _active;
  8334. constructor(props: IPlayheadProps);
  8335. dragStart(e: React.TouchEvent<HTMLDivElement>): void;
  8336. dragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  8337. drag(e: React.TouchEvent<HTMLDivElement>): void;
  8338. drag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  8339. dragEnd(e: React.TouchEvent<HTMLDivElement>): void;
  8340. dragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  8341. calculateMove(): string;
  8342. render(): JSX.Element;
  8343. }
  8344. }
  8345. declare module INSPECTOR {
  8346. export const Contrast: IToolData;
  8347. }