babylon.inspector.module.d.ts 214 KB

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