babylon.inspector.module.d.ts 210 KB

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