babylon.inspector.module.d.ts 173 KB

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