babylon.inspector.module.d.ts 146 KB

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