babylon.inspector.module.d.ts 186 KB

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