babylon.inspector.d.ts 124 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277
  1. /// <reference types="react" />
  2. declare module INSPECTOR {
  3. export class PropertyChangedEvent {
  4. object: any;
  5. property: string;
  6. value: any;
  7. initialValue: any;
  8. allowNullValue?: boolean;
  9. }
  10. }
  11. declare module INSPECTOR {
  12. export class ReplayRecorder {
  13. private _sceneRecorder;
  14. private _isRecording;
  15. get isRecording(): boolean;
  16. cancel(): void;
  17. trackScene(scene: BABYLON.Scene): void;
  18. export(): void;
  19. }
  20. }
  21. declare module INSPECTOR {
  22. export class GlobalState {
  23. onSelectionChangedObservable: BABYLON.Observable<any>;
  24. onPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  25. onInspectorClosedObservable: BABYLON.Observable<BABYLON.Scene>;
  26. onTabChangedObservable: BABYLON.Observable<number>;
  27. onSelectionRenamedObservable: BABYLON.Observable<void>;
  28. onPluginActivatedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.ISceneLoaderPlugin | BABYLON.ISceneLoaderPluginAsync>>;
  29. onNewSceneObservable: BABYLON.Observable<BABYLON.Scene>;
  30. sceneImportDefaults: {
  31. [key: string]: any;
  32. };
  33. validationResults: BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>;
  34. onValidationResultsUpdatedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.GLTF2.IGLTFValidationResults>>;
  35. onExtensionLoadedObservable: BABYLON.Observable<BABYLON.IGLTFLoaderExtension>;
  36. glTFLoaderExtensionDefaults: {
  37. [name: string]: {
  38. [key: string]: any;
  39. };
  40. };
  41. glTFLoaderDefaults: {
  42. [key: string]: any;
  43. };
  44. glTFLoaderExtenstions: {
  45. [key: string]: BABYLON.IGLTFLoaderExtension;
  46. };
  47. blockMutationUpdates: boolean;
  48. selectedLineContainerTitles: Array<string>;
  49. selectedLineContainerTitlesNoFocus: Array<string>;
  50. recorder: ReplayRecorder;
  51. private _onlyUseEulers;
  52. get onlyUseEulers(): boolean;
  53. set onlyUseEulers(value: boolean);
  54. private _ignoreBackfacesForPicking;
  55. get ignoreBackfacesForPicking(): boolean;
  56. set ignoreBackfacesForPicking(value: boolean);
  57. init(propertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>): void;
  58. prepareGLTFPlugin(loader: BABYLON.GLTFFileLoader): void;
  59. lightGizmos: Array<BABYLON.LightGizmo>;
  60. enableLightGizmo(light: BABYLON.Light, enable?: boolean): void;
  61. }
  62. }
  63. declare module INSPECTOR {
  64. export interface IPaneComponentProps {
  65. title: string;
  66. scene: BABYLON.Scene;
  67. selectedEntity?: any;
  68. onSelectionChangedObservable?: BABYLON.Observable<any>;
  69. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  70. globalState: GlobalState;
  71. }
  72. export class PaneComponent extends React.Component<IPaneComponentProps, {
  73. tag: any;
  74. }> {
  75. constructor(props: IPaneComponentProps);
  76. render(): JSX.Element | null;
  77. }
  78. }
  79. declare module INSPECTOR {
  80. interface ITabsComponentProps {
  81. children: any[];
  82. selectedIndex: number;
  83. onSelectedIndexChange: (value: number) => void;
  84. }
  85. export class TabsComponent extends React.Component<ITabsComponentProps> {
  86. constructor(props: ITabsComponentProps);
  87. onSelect(index: number): void;
  88. renderLabel(child: PaneComponent, index: number): JSX.Element;
  89. render(): JSX.Element;
  90. }
  91. }
  92. declare module INSPECTOR {
  93. interface ITextLineComponentProps {
  94. label?: string;
  95. value?: string;
  96. color?: string;
  97. underline?: boolean;
  98. onLink?: () => void;
  99. url?: string;
  100. ignoreValue?: boolean;
  101. additionalClass?: string;
  102. }
  103. export class TextLineComponent extends React.Component<ITextLineComponentProps> {
  104. constructor(props: ITextLineComponentProps);
  105. onLink(): void;
  106. renderContent(): JSX.Element | null;
  107. render(): JSX.Element;
  108. }
  109. }
  110. declare module INSPECTOR {
  111. interface ILineContainerComponentProps {
  112. globalState?: GlobalState;
  113. title: string;
  114. children: any[] | any;
  115. closed?: boolean;
  116. }
  117. export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
  118. isExpanded: boolean;
  119. isHighlighted: boolean;
  120. }> {
  121. constructor(props: ILineContainerComponentProps);
  122. switchExpandedState(): void;
  123. componentDidMount(): void;
  124. renderHeader(): JSX.Element;
  125. render(): JSX.Element;
  126. }
  127. }
  128. declare module INSPECTOR {
  129. interface IValueLineComponentProps {
  130. label: string;
  131. value: number;
  132. color?: string;
  133. fractionDigits?: number;
  134. units?: string;
  135. }
  136. export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
  137. constructor(props: IValueLineComponentProps);
  138. render(): JSX.Element;
  139. }
  140. }
  141. declare module INSPECTOR {
  142. export interface IBooleanLineComponentProps {
  143. label: string;
  144. value: boolean;
  145. }
  146. export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
  147. constructor(props: IBooleanLineComponentProps);
  148. render(): JSX.Element;
  149. }
  150. }
  151. declare module INSPECTOR {
  152. export class StatisticsTabComponent extends PaneComponent {
  153. private _sceneInstrumentation;
  154. private _engineInstrumentation;
  155. private _timerIntervalId;
  156. constructor(props: IPaneComponentProps);
  157. componentWillUnmount(): void;
  158. render(): JSX.Element | null;
  159. }
  160. }
  161. declare module INSPECTOR {
  162. export interface ICheckBoxLineComponentProps {
  163. label: string;
  164. target?: any;
  165. propertyName?: string;
  166. isSelected?: () => boolean;
  167. onSelect?: (value: boolean) => void;
  168. onValueChanged?: () => void;
  169. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  170. }
  171. export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
  172. isSelected: boolean;
  173. }> {
  174. private static _UniqueIdSeed;
  175. private _uniqueId;
  176. private _localChange;
  177. constructor(props: ICheckBoxLineComponentProps);
  178. shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
  179. isSelected: boolean;
  180. }): boolean;
  181. onChange(): void;
  182. render(): JSX.Element;
  183. }
  184. }
  185. declare module INSPECTOR {
  186. interface IRenderGridPropertyGridComponentProps {
  187. globalState: GlobalState;
  188. scene: BABYLON.Scene;
  189. }
  190. export class RenderGridPropertyGridComponent extends React.Component<IRenderGridPropertyGridComponentProps, {
  191. isEnabled: boolean;
  192. }> {
  193. private _gridMesh;
  194. constructor(props: IRenderGridPropertyGridComponentProps);
  195. componentDidMount(): void;
  196. addOrRemoveGrid(): void;
  197. render(): JSX.Element;
  198. }
  199. }
  200. declare module INSPECTOR {
  201. export class DebugTabComponent extends PaneComponent {
  202. private _physicsViewersEnabled;
  203. constructor(props: IPaneComponentProps);
  204. switchPhysicsViewers(): void;
  205. render(): JSX.Element | null;
  206. }
  207. }
  208. declare module INSPECTOR {
  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. useEuler?: boolean;
  218. onChange?: (value: number) => void;
  219. onInput?: (value: number) => void;
  220. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  221. decimalCount?: number;
  222. }
  223. export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
  224. value: number;
  225. }> {
  226. private _localChange;
  227. constructor(props: ISliderLineComponentProps);
  228. shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
  229. value: number;
  230. }): boolean;
  231. onChange(newValueString: any): void;
  232. onInput(newValueString: any): void;
  233. prepareDataToRead(value: number): number;
  234. render(): JSX.Element;
  235. }
  236. }
  237. declare module INSPECTOR {
  238. export const Null_Value: number;
  239. class ListLineOption {
  240. label: string;
  241. value: number;
  242. }
  243. interface IOptionsLineComponentProps {
  244. label: string;
  245. target: any;
  246. propertyName: string;
  247. options: ListLineOption[];
  248. noDirectUpdate?: boolean;
  249. onSelect?: (value: number) => void;
  250. extractValue?: () => number;
  251. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  252. allowNullValue?: boolean;
  253. }
  254. export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
  255. value: number;
  256. }> {
  257. private _localChange;
  258. private remapValueIn;
  259. private remapValueOut;
  260. constructor(props: IOptionsLineComponentProps);
  261. shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
  262. value: number;
  263. }): boolean;
  264. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  265. updateValue(valueString: string): void;
  266. render(): JSX.Element;
  267. }
  268. }
  269. declare module INSPECTOR {
  270. /**
  271. * Class used to provide lock mechanism
  272. */
  273. export class LockObject {
  274. /**
  275. * Gets or set if the lock is engaged
  276. */
  277. lock: boolean;
  278. }
  279. }
  280. declare module INSPECTOR {
  281. interface INumericInputComponentProps {
  282. label: string;
  283. value: number;
  284. step?: number;
  285. onChange: (value: number) => void;
  286. precision?: number;
  287. }
  288. export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
  289. value: string;
  290. }> {
  291. static defaultProps: {
  292. step: number;
  293. };
  294. private _localChange;
  295. constructor(props: INumericInputComponentProps);
  296. shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
  297. value: string;
  298. }): boolean;
  299. updateValue(evt: any): void;
  300. render(): JSX.Element;
  301. }
  302. }
  303. declare module INSPECTOR {
  304. export interface IColorPickerComponentProps {
  305. value: BABYLON.Color4 | BABYLON.Color3;
  306. onColorChanged: (newOne: string) => void;
  307. disableAlpha?: boolean;
  308. }
  309. interface IColorPickerComponentState {
  310. pickerEnabled: boolean;
  311. color: {
  312. r: number;
  313. g: number;
  314. b: number;
  315. a?: number;
  316. };
  317. hex: string;
  318. }
  319. export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
  320. private _floatRef;
  321. private _floatHostRef;
  322. constructor(props: IColorPickerComponentProps);
  323. syncPositions(): void;
  324. shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
  325. componentDidUpdate(): void;
  326. componentDidMount(): void;
  327. render(): JSX.Element;
  328. }
  329. }
  330. declare module INSPECTOR {
  331. export interface IColor3LineComponentProps {
  332. label: string;
  333. target: any;
  334. propertyName: string;
  335. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  336. isLinear?: boolean;
  337. }
  338. export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
  339. isExpanded: boolean;
  340. color: BABYLON.Color3;
  341. }> {
  342. private _localChange;
  343. constructor(props: IColor3LineComponentProps);
  344. shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
  345. color: BABYLON.Color3;
  346. }): boolean;
  347. setPropertyValue(newColor: BABYLON.Color3): void;
  348. onChange(newValue: string): void;
  349. switchExpandState(): void;
  350. raiseOnPropertyChanged(previousValue: BABYLON.Color3): void;
  351. updateStateR(value: number): void;
  352. updateStateG(value: number): void;
  353. updateStateB(value: number): void;
  354. copyToClipboard(): void;
  355. render(): JSX.Element;
  356. }
  357. }
  358. declare module INSPECTOR {
  359. interface IVector3LineComponentProps {
  360. label: string;
  361. target: any;
  362. propertyName: string;
  363. step?: number;
  364. onChange?: (newvalue: BABYLON.Vector3) => void;
  365. useEuler?: boolean;
  366. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  367. }
  368. export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
  369. isExpanded: boolean;
  370. value: BABYLON.Vector3;
  371. }> {
  372. static defaultProps: {
  373. step: number;
  374. };
  375. private _localChange;
  376. constructor(props: IVector3LineComponentProps);
  377. getCurrentValue(): any;
  378. shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
  379. isExpanded: boolean;
  380. value: BABYLON.Vector3;
  381. }): boolean;
  382. switchExpandState(): void;
  383. raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
  384. updateVector3(): void;
  385. updateStateX(value: number): void;
  386. updateStateY(value: number): void;
  387. updateStateZ(value: number): void;
  388. render(): JSX.Element;
  389. }
  390. }
  391. declare module INSPECTOR {
  392. interface IQuaternionLineComponentProps {
  393. label: string;
  394. target: any;
  395. useEuler?: boolean;
  396. propertyName: string;
  397. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  398. }
  399. export class QuaternionLineComponent extends React.Component<IQuaternionLineComponentProps, {
  400. isExpanded: boolean;
  401. value: BABYLON.Quaternion;
  402. eulerValue: BABYLON.Vector3;
  403. }> {
  404. private _localChange;
  405. constructor(props: IQuaternionLineComponentProps);
  406. shouldComponentUpdate(nextProps: IQuaternionLineComponentProps, nextState: {
  407. isExpanded: boolean;
  408. value: BABYLON.Quaternion;
  409. eulerValue: BABYLON.Vector3;
  410. }): boolean;
  411. switchExpandState(): void;
  412. raiseOnPropertyChanged(currentValue: BABYLON.Quaternion, previousValue: BABYLON.Quaternion): void;
  413. updateQuaternion(): void;
  414. updateStateX(value: number): void;
  415. updateStateY(value: number): void;
  416. updateStateZ(value: number): void;
  417. updateStateW(value: number): void;
  418. updateQuaternionFromEuler(): void;
  419. updateStateEulerX(value: number): void;
  420. updateStateEulerY(value: number): void;
  421. updateStateEulerZ(value: number): void;
  422. render(): JSX.Element;
  423. }
  424. }
  425. declare module INSPECTOR {
  426. interface ITextInputLineComponentProps {
  427. label: string;
  428. lockObject: LockObject;
  429. target?: any;
  430. propertyName?: string;
  431. value?: string;
  432. onChange?: (value: string) => void;
  433. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  434. }
  435. export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
  436. value: string;
  437. }> {
  438. private _localChange;
  439. constructor(props: ITextInputLineComponentProps);
  440. componentWillUnmount(): void;
  441. shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
  442. value: string;
  443. }): boolean;
  444. raiseOnPropertyChanged(newValue: string, previousValue: string): void;
  445. updateValue(value: string): void;
  446. render(): JSX.Element;
  447. }
  448. }
  449. declare module INSPECTOR {
  450. interface ICustomPropertyGridComponentProps {
  451. globalState: GlobalState;
  452. target: any;
  453. lockObject: LockObject;
  454. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  455. }
  456. export class CustomPropertyGridComponent extends React.Component<ICustomPropertyGridComponentProps, {
  457. mode: number;
  458. }> {
  459. constructor(props: ICustomPropertyGridComponentProps);
  460. renderInspectable(inspectable: BABYLON.IInspectable): JSX.Element | null;
  461. render(): JSX.Element | null;
  462. }
  463. }
  464. declare module INSPECTOR {
  465. export interface IButtonLineComponentProps {
  466. label: string;
  467. onClick: () => void;
  468. }
  469. export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
  470. constructor(props: IButtonLineComponentProps);
  471. render(): JSX.Element;
  472. }
  473. }
  474. declare module INSPECTOR {
  475. interface IFloatLineComponentProps {
  476. label: string;
  477. target: any;
  478. propertyName: string;
  479. lockObject?: LockObject;
  480. onChange?: (newValue: number) => void;
  481. isInteger?: boolean;
  482. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  483. additionalClass?: string;
  484. step?: string;
  485. digits?: number;
  486. useEuler?: boolean;
  487. min?: number;
  488. }
  489. export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
  490. value: string;
  491. }> {
  492. private _localChange;
  493. private _store;
  494. constructor(props: IFloatLineComponentProps);
  495. componentWillUnmount(): void;
  496. shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
  497. value: string;
  498. }): boolean;
  499. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  500. updateValue(valueString: string): void;
  501. lock(): void;
  502. unlock(): void;
  503. render(): JSX.Element;
  504. }
  505. }
  506. declare module INSPECTOR {
  507. interface IAnchorSvgPointProps {
  508. control: BABYLON.Vector2;
  509. anchor: BABYLON.Vector2;
  510. active: boolean;
  511. type: string;
  512. index: string;
  513. selected: boolean;
  514. selectControlPoint: (id: string) => void;
  515. }
  516. export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
  517. constructor(props: IAnchorSvgPointProps);
  518. select(): void;
  519. render(): JSX.Element;
  520. }
  521. }
  522. declare module INSPECTOR {
  523. export interface IKeyframeSvgPoint {
  524. keyframePoint: BABYLON.Vector2;
  525. rightControlPoint: BABYLON.Vector2 | null;
  526. leftControlPoint: BABYLON.Vector2 | null;
  527. id: string;
  528. selected: boolean;
  529. isLeftActive: boolean;
  530. isRightActive: boolean;
  531. curveId?: ICurveMetaData;
  532. }
  533. export interface ICurveMetaData {
  534. id: number;
  535. animationName: string;
  536. property: string;
  537. }
  538. interface IKeyframeSvgPointProps {
  539. keyframePoint: BABYLON.Vector2;
  540. leftControlPoint: BABYLON.Vector2 | null;
  541. rightControlPoint: BABYLON.Vector2 | null;
  542. id: string;
  543. selected: boolean;
  544. selectKeyframe: (id: string, multiselect: boolean) => void;
  545. selectedControlPoint: (type: string, id: string) => void;
  546. isLeftActive: boolean;
  547. isRightActive: boolean;
  548. }
  549. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps> {
  550. constructor(props: IKeyframeSvgPointProps);
  551. select(e: React.MouseEvent<SVGImageElement>): void;
  552. render(): JSX.Element;
  553. }
  554. }
  555. declare module INSPECTOR {
  556. interface ISvgDraggableAreaProps {
  557. keyframeSvgPoints: IKeyframeSvgPoint[];
  558. updatePosition: (updatedKeyframe: IKeyframeSvgPoint, id: string) => void;
  559. scale: number;
  560. viewBoxScale: number;
  561. selectKeyframe: (id: string, multiselect: boolean) => void;
  562. selectedControlPoint: (type: string, id: string) => void;
  563. deselectKeyframes: () => void;
  564. removeSelectedKeyframes: (points: IKeyframeSvgPoint[]) => void;
  565. panningY: (panningY: number) => void;
  566. panningX: (panningX: number) => void;
  567. setCurrentFrame: (direction: number) => void;
  568. positionCanvas?: number;
  569. repositionCanvas?: boolean;
  570. canvasPositionEnded: () => void;
  571. resetActionableKeyframe: () => void;
  572. }
  573. export class SvgDraggableArea extends React.Component<ISvgDraggableAreaProps, {
  574. panX: number;
  575. panY: number;
  576. }> {
  577. private _active;
  578. private _isCurrentPointControl;
  579. private _currentPointId;
  580. private _draggableArea;
  581. private _panStart;
  582. private _panStop;
  583. private _playheadDrag;
  584. private _playheadSelected;
  585. constructor(props: ISvgDraggableAreaProps);
  586. componentDidMount(): void;
  587. componentWillReceiveProps(newProps: ISvgDraggableAreaProps): void;
  588. dragStart(e: React.TouchEvent<SVGSVGElement>): void;
  589. dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  590. drag(e: React.TouchEvent<SVGSVGElement>): void;
  591. drag(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  592. dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
  593. dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  594. getMousePosition(e: React.TouchEvent<SVGSVGElement>): BABYLON.Vector2 | undefined;
  595. getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): BABYLON.Vector2 | undefined;
  596. panDirection(): void;
  597. panTo(direction: string, value: number): void;
  598. keyDown(e: KeyboardEvent): void;
  599. keyUp(e: KeyboardEvent): void;
  600. focus(e: React.MouseEvent<SVGSVGElement>): void;
  601. isNotControlPointActive(): boolean;
  602. render(): JSX.Element;
  603. }
  604. }
  605. declare module INSPECTOR {
  606. export interface IIconButtonLineComponentProps {
  607. icon: string;
  608. onClick: () => void;
  609. tooltip: string;
  610. active?: boolean;
  611. }
  612. export class IconButtonLineComponent extends React.Component<IIconButtonLineComponentProps> {
  613. constructor(props: IIconButtonLineComponentProps);
  614. render(): JSX.Element;
  615. }
  616. }
  617. declare module INSPECTOR {
  618. interface IControlsProps {
  619. keyframes: BABYLON.IAnimationKey[] | null;
  620. selected: BABYLON.IAnimationKey | null;
  621. currentFrame: number;
  622. onCurrentFrameChange: (frame: number) => void;
  623. playPause: (direction: number) => void;
  624. isPlaying: boolean;
  625. scrollable: React.RefObject<HTMLDivElement>;
  626. }
  627. export class Controls extends React.Component<IControlsProps, {
  628. selected: BABYLON.IAnimationKey;
  629. playingType: string;
  630. }> {
  631. constructor(props: IControlsProps);
  632. playBackwards(): void;
  633. play(): void;
  634. pause(): void;
  635. nextFrame(): void;
  636. previousFrame(): void;
  637. nextKeyframe(): void;
  638. previousKeyframe(): void;
  639. render(): JSX.Element;
  640. }
  641. }
  642. declare module INSPECTOR {
  643. interface ITimelineProps {
  644. keyframes: BABYLON.IAnimationKey[] | null;
  645. selected: BABYLON.IAnimationKey | null;
  646. currentFrame: number;
  647. onCurrentFrameChange: (frame: number) => void;
  648. onAnimationLimitChange: (limit: number) => void;
  649. dragKeyframe: (frame: number, index: number) => void;
  650. playPause: (direction: number) => void;
  651. isPlaying: boolean;
  652. animationLimit: number;
  653. fps: number;
  654. repositionCanvas: (frame: number) => void;
  655. }
  656. export class Timeline extends React.Component<ITimelineProps, {
  657. selected: BABYLON.IAnimationKey;
  658. activeKeyframe: number | null;
  659. start: number;
  660. end: number;
  661. scrollWidth: number | undefined;
  662. selectionLength: number[];
  663. }> {
  664. readonly _frames: object[];
  665. private _scrollable;
  666. private _scrollbarHandle;
  667. private _scrollContainer;
  668. private _direction;
  669. private _scrolling;
  670. private _shiftX;
  671. private _active;
  672. constructor(props: ITimelineProps);
  673. componentDidMount(): void;
  674. calculateScrollWidth(start: number, end: number): number | undefined;
  675. playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
  676. play(event: React.MouseEvent<HTMLDivElement>): void;
  677. pause(event: React.MouseEvent<HTMLDivElement>): void;
  678. handleInputChange(event: React.ChangeEvent<HTMLInputElement>): void;
  679. setCurrentFrame(event: React.MouseEvent<HTMLDivElement>): void;
  680. handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
  681. nextFrame(event: React.MouseEvent<HTMLDivElement>): void;
  682. previousFrame(event: React.MouseEvent<HTMLDivElement>): void;
  683. nextKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
  684. previousKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
  685. dragStart(e: React.TouchEvent<SVGSVGElement>): void;
  686. dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  687. drag(e: React.TouchEvent<SVGSVGElement>): void;
  688. drag(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  689. isFrameBeingUsed(frame: number, direction: number): number | false;
  690. dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
  691. dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
  692. scrollDragStart(e: React.TouchEvent<HTMLDivElement>): void;
  693. scrollDragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  694. scrollDrag(e: React.TouchEvent<HTMLDivElement>): void;
  695. scrollDrag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  696. scrollDragEnd(e: React.TouchEvent<HTMLDivElement>): void;
  697. scrollDragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  698. moveScrollbar(pageX: number): void;
  699. resizeScrollbarRight(clientX: number): void;
  700. resizeScrollbarLeft(clientX: number): void;
  701. range(start: number, end: number): number[];
  702. getKeyframe(frame: number): false | BABYLON.IAnimationKey | undefined;
  703. getCurrentFrame(frame: number): boolean;
  704. render(): JSX.Element;
  705. }
  706. }
  707. declare module INSPECTOR {
  708. interface IPlayheadProps {
  709. message: string;
  710. open: boolean;
  711. close: () => void;
  712. }
  713. export class Notification extends React.Component<IPlayheadProps> {
  714. constructor(props: IPlayheadProps);
  715. render(): JSX.Element;
  716. }
  717. }
  718. declare module INSPECTOR {
  719. interface IGraphActionsBarProps {
  720. addKeyframe: () => void;
  721. removeKeyframe: () => void;
  722. handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  723. handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
  724. flatTangent: () => void;
  725. brokeTangents: () => void;
  726. setLerpMode: () => void;
  727. brokenMode: boolean;
  728. lerpMode: boolean;
  729. actionableKeyframe: IActionableKeyFrame;
  730. title: string;
  731. close: (event: any) => void;
  732. enabled: boolean;
  733. setKeyframeValue: () => void;
  734. }
  735. export class GraphActionsBar extends React.Component<IGraphActionsBarProps> {
  736. private _frameInput;
  737. private _valueInput;
  738. constructor(props: IGraphActionsBarProps);
  739. componentDidMount(): void;
  740. componentWillUnmount(): void;
  741. isEnterKeyUp(event: KeyboardEvent): void;
  742. onBlur(event: React.FocusEvent<HTMLInputElement>): void;
  743. render(): JSX.Element;
  744. }
  745. }
  746. declare module INSPECTOR {
  747. interface IAddAnimationProps {
  748. isOpen: boolean;
  749. close: () => void;
  750. entity: BABYLON.IAnimatable;
  751. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  752. setNotificationMessage: (message: string) => void;
  753. finishedUpdate: () => void;
  754. addedNewAnimation: () => void;
  755. fps: number;
  756. selectedToUpdate?: BABYLON.Animation | undefined;
  757. }
  758. export class AddAnimation extends React.Component<IAddAnimationProps, {
  759. animationName: string;
  760. animationTargetProperty: string;
  761. animationType: number;
  762. loopMode: number;
  763. animationTargetPath: string;
  764. isUpdating: boolean;
  765. }> {
  766. constructor(props: IAddAnimationProps);
  767. setInitialState(editingAnimation?: BABYLON.Animation): {
  768. animationName: string;
  769. animationTargetPath: string;
  770. animationType: number;
  771. loopMode: number;
  772. animationTargetProperty: string;
  773. isUpdating: boolean;
  774. };
  775. componentWillReceiveProps(nextProps: IAddAnimationProps): void;
  776. updateAnimation(): void;
  777. getTypeAsString(type: number): "Float" | "Quaternion" | "Vector3" | "Vector2" | "Size" | "Color3" | "Color4";
  778. addAnimation(): void;
  779. raiseOnPropertyChanged(newValue: BABYLON.Animation[], previousValue: BABYLON.Animation[]): void;
  780. raiseOnPropertyUpdated(newValue: string | number | undefined, previousValue: string | number, property: string): void;
  781. handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
  782. handlePathChange(event: React.ChangeEvent<HTMLInputElement>): void;
  783. handleTypeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
  784. handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
  785. handleLoopModeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
  786. render(): JSX.Element;
  787. }
  788. }
  789. declare module INSPECTOR {
  790. interface IAnimationListTreeProps {
  791. isTargetedAnimation: boolean;
  792. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  793. selected: BABYLON.Animation | null;
  794. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  795. selectAnimation: (selected: BABYLON.Animation, coordinate?: SelectedCoordinate) => void;
  796. empty: () => void;
  797. editAnimation: (selected: BABYLON.Animation) => void;
  798. deselectAnimation: () => void;
  799. }
  800. interface Item {
  801. index: number;
  802. name: string;
  803. property: string;
  804. selected: boolean;
  805. open: boolean;
  806. }
  807. export enum SelectedCoordinate {
  808. x = 0,
  809. y = 1,
  810. z = 2,
  811. w = 3,
  812. r = 0,
  813. g = 1,
  814. b = 2,
  815. a = 3,
  816. width = 0,
  817. height = 1
  818. }
  819. interface ItemCoordinate {
  820. id: string;
  821. color: string;
  822. coordinate: SelectedCoordinate;
  823. }
  824. export class AnimationListTree extends React.Component<IAnimationListTreeProps, {
  825. selectedCoordinate: SelectedCoordinate;
  826. selectedAnimation: number;
  827. animationList: Item[] | null;
  828. }> {
  829. constructor(props: IAnimationListTreeProps);
  830. deleteAnimation(): void;
  831. generateList(): Item[] | null;
  832. toggleProperty(index: number): void;
  833. setSelectedCoordinate(animation: BABYLON.Animation, coordinate: SelectedCoordinate, index: number): void;
  834. coordinateItem(i: number, animation: BABYLON.Animation, coordinate: string, color: string, selectedCoordinate: SelectedCoordinate): JSX.Element;
  835. typeAnimationItem(animation: BABYLON.Animation, i: number, childrenElements: ItemCoordinate[]): JSX.Element;
  836. setListItem(animation: BABYLON.Animation, i: number): JSX.Element | null;
  837. render(): JSX.Element;
  838. }
  839. }
  840. declare module INSPECTOR {
  841. interface IFileButtonLineComponentProps {
  842. label: string;
  843. onClick: (file: File) => void;
  844. accept: string;
  845. }
  846. export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
  847. private static _IDGenerator;
  848. private _id;
  849. private uploadInputRef;
  850. constructor(props: IFileButtonLineComponentProps);
  851. onChange(evt: any): void;
  852. render(): JSX.Element;
  853. }
  854. }
  855. declare module INSPECTOR {
  856. interface ILoadSnippetProps {
  857. animations: BABYLON.Animation[];
  858. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  859. lockObject: LockObject;
  860. globalState: GlobalState;
  861. snippetServer: string;
  862. setSnippetId: (id: string) => void;
  863. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  864. setNotificationMessage: (message: string) => void;
  865. animationsLoaded: (numberOfAnimations: number) => void;
  866. }
  867. export class LoadSnippet extends React.Component<ILoadSnippetProps, {
  868. snippetId: string;
  869. }> {
  870. private _serverAddress;
  871. constructor(props: ILoadSnippetProps);
  872. change(value: string): void;
  873. loadFromFile(file: File): void;
  874. loadFromSnippet(): void;
  875. render(): JSX.Element;
  876. }
  877. }
  878. declare module INSPECTOR {
  879. interface ISaveSnippetProps {
  880. animations: BABYLON.Nullable<BABYLON.Animation[]>;
  881. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  882. lockObject: LockObject;
  883. globalState: GlobalState;
  884. snippetServer: string;
  885. snippetId: string;
  886. }
  887. export interface Snippet {
  888. url: string;
  889. id: string;
  890. }
  891. interface SelectedAnimation {
  892. id: string;
  893. name: string;
  894. index: number;
  895. selected: boolean;
  896. }
  897. export class SaveSnippet extends React.Component<ISaveSnippetProps, {
  898. selectedAnimations: SelectedAnimation[];
  899. }> {
  900. constructor(props: ISaveSnippetProps);
  901. handleCheckboxChange(e: React.ChangeEvent<HTMLInputElement>): void;
  902. stringifySelectedAnimations(): string;
  903. saveToFile(): void;
  904. saveToSnippet(): void;
  905. render(): JSX.Element;
  906. }
  907. }
  908. declare module INSPECTOR {
  909. interface IEditorControlsProps {
  910. isTargetedAnimation: boolean;
  911. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  912. selected: BABYLON.Animation | null;
  913. lockObject: LockObject;
  914. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  915. setNotificationMessage: (message: string) => void;
  916. selectAnimation: (selected: BABYLON.Animation, axis?: SelectedCoordinate) => void;
  917. setFps: (fps: number) => void;
  918. setIsLooping: () => void;
  919. globalState: GlobalState;
  920. snippetServer: string;
  921. deselectAnimation: () => void;
  922. fps: number;
  923. }
  924. export class EditorControls extends React.Component<IEditorControlsProps, {
  925. isAnimationTabOpen: boolean;
  926. isEditTabOpen: boolean;
  927. isLoadTabOpen: boolean;
  928. isSaveTabOpen: boolean;
  929. isLoopActive: boolean;
  930. animationsCount: number;
  931. framesPerSecond: number;
  932. snippetId: string;
  933. selected: BABYLON.Animation | undefined;
  934. }> {
  935. constructor(props: IEditorControlsProps);
  936. componentWillReceiveProps(newProps: IEditorControlsProps): void;
  937. animationAdded(): void;
  938. finishedUpdate(): void;
  939. recountAnimations(): number;
  940. changeLoopBehavior(): void;
  941. handleTabs(tab: number): void;
  942. handleChangeFps(fps: number): void;
  943. emptiedList(): void;
  944. animationsLoaded(numberOfAnimations: number): void;
  945. editAnimation(selected: BABYLON.Animation): void;
  946. render(): JSX.Element;
  947. }
  948. }
  949. declare module INSPECTOR {
  950. interface ISwitchButtonProps {
  951. current: CurveScale;
  952. action?: (event: CurveScale) => void;
  953. }
  954. export class ScaleLabel extends React.Component<ISwitchButtonProps, {
  955. current: CurveScale;
  956. }> {
  957. constructor(props: ISwitchButtonProps);
  958. renderLabel(scale: CurveScale): "" | "DEG" | "FLT" | "INT" | "RAD";
  959. render(): JSX.Element;
  960. }
  961. }
  962. declare module INSPECTOR {
  963. interface IAnimationCurveEditorComponentProps {
  964. close: (event: any) => void;
  965. playOrPause?: () => void;
  966. scene: BABYLON.Scene;
  967. entity: BABYLON.IAnimatable | BABYLON.TargetedAnimation;
  968. lockObject: LockObject;
  969. globalState: GlobalState;
  970. }
  971. interface ICanvasAxis {
  972. value: number;
  973. label: number;
  974. }
  975. export enum CurveScale {
  976. float = 0,
  977. radians = 1,
  978. degrees = 2,
  979. integers = 3,
  980. default = 4
  981. }
  982. export interface IActionableKeyFrame {
  983. frame?: number | string;
  984. value?: any;
  985. }
  986. interface ICurveData {
  987. pathData: string;
  988. pathLength: number;
  989. domCurve: React.RefObject<SVGPathElement>;
  990. color: string;
  991. id: string;
  992. }
  993. export class AnimationCurveEditorComponent extends React.Component<IAnimationCurveEditorComponentProps, {
  994. isOpen: boolean;
  995. selected: BABYLON.Animation | null;
  996. svgKeyframes: IKeyframeSvgPoint[] | undefined;
  997. currentFrame: number;
  998. currentValue: number;
  999. frameAxisLength: ICanvasAxis[];
  1000. valueAxisLength: ICanvasAxis[];
  1001. isFlatTangentMode: boolean;
  1002. isTangentMode: boolean;
  1003. isBrokenMode: boolean;
  1004. lerpMode: boolean;
  1005. scale: number;
  1006. playheadOffset: number;
  1007. notification: string;
  1008. currentPoint: SVGPoint | undefined;
  1009. playheadPos: number;
  1010. isPlaying: boolean;
  1011. selectedPathData: ICurveData[] | undefined;
  1012. selectedCoordinate: number;
  1013. animationLimit: number;
  1014. fps: number;
  1015. isLooping: boolean;
  1016. panningY: number;
  1017. panningX: number;
  1018. repositionCanvas: boolean;
  1019. actionableKeyframe: IActionableKeyFrame;
  1020. valueScale: CurveScale;
  1021. }> {
  1022. private _snippetUrl;
  1023. private _heightScale;
  1024. private _scaleFactor;
  1025. private _currentScale;
  1026. readonly _entityName: string;
  1027. readonly _canvasLength: number;
  1028. private _svgKeyframes;
  1029. private _isPlaying;
  1030. private _graphCanvas;
  1031. private _svgCanvas;
  1032. private _isTargetedAnimation;
  1033. private _pixelFrameUnit;
  1034. private _onBeforeRenderObserver;
  1035. private _mainAnimatable;
  1036. constructor(props: IAnimationCurveEditorComponentProps);
  1037. componentDidMount(): void;
  1038. /**
  1039. * Notifications
  1040. * To add notification we set the state and clear to make the notification bar hide.
  1041. */
  1042. clearNotification(): void;
  1043. /**
  1044. * Zoom and Scroll
  1045. * This section handles zoom and scroll
  1046. * of the graph area.
  1047. */
  1048. zoom(e: React.WheelEvent<HTMLDivElement>): void;
  1049. setFrameAxis(currentLength: number): {
  1050. value: number;
  1051. label: number;
  1052. }[];
  1053. setValueLines(type: CurveScale): ({
  1054. value: number;
  1055. label: string;
  1056. } | {
  1057. value: number;
  1058. label: number;
  1059. })[];
  1060. getValueLabel(i: number): number;
  1061. resetPlayheadOffset(): void;
  1062. encodeCurveId(animationName: string, coordinate: number): string;
  1063. decodeCurveId(id: string): {
  1064. order: number;
  1065. coordinate: number;
  1066. };
  1067. getKeyframeValueFromAnimation(id: string): {
  1068. frame: number;
  1069. value: number;
  1070. } | undefined;
  1071. /**
  1072. * Keyframe Manipulation
  1073. * This section handles events from SvgDraggableArea.
  1074. */
  1075. selectKeyframe(id: string, multiselect: boolean): void;
  1076. resetActionableKeyframe(): void;
  1077. selectedControlPoint(type: string, id: string): void;
  1078. deselectKeyframes(): void;
  1079. updateValuePerCoordinate(dataType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion, newValue: number, coordinate?: number): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  1080. renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, id: string): void;
  1081. updateLeftControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: BABYLON.IAnimationKey, dataType: number, coordinate: number): void;
  1082. updateRightControlPoint(updatedSvgKeyFrame: IKeyframeSvgPoint, key: BABYLON.IAnimationKey, dataType: number, coordinate: number): void;
  1083. handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
  1084. handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
  1085. setKeyframeValue(): void;
  1086. setFlatTangent(): void;
  1087. setTangentMode(): void;
  1088. setBrokenMode(): void;
  1089. setLerpMode(): void;
  1090. addKeyframeClick(): void;
  1091. removeKeyframeClick(): void;
  1092. removeKeyframes(points: IKeyframeSvgPoint[]): void;
  1093. addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
  1094. /**
  1095. * Curve Rendering Functions
  1096. * This section handles how to render curves.
  1097. */
  1098. setKeyframePointLinear(point: BABYLON.Vector2, index: number): void;
  1099. flatTangents(keyframes: BABYLON.IAnimationKey[], dataType: number): BABYLON.IAnimationKey[];
  1100. returnZero(dataType: number): 0 | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  1101. getValueAsArray(valueType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion): number[];
  1102. setValueAsType(valueType: number, arrayValue: number[]): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
  1103. getPathData(animation: BABYLON.Animation | null): ICurveData[] | undefined;
  1104. getAnimationData(animation: BABYLON.Animation): {
  1105. loopMode: number | undefined;
  1106. name: string;
  1107. blendingSpeed: number;
  1108. targetPropertyPath: string[];
  1109. targetProperty: string;
  1110. framesPerSecond: number;
  1111. highestFrame: number;
  1112. usesTangents: boolean;
  1113. easingType: string | undefined;
  1114. easingMode: number | undefined;
  1115. valueType: number;
  1116. };
  1117. curvePathWithTangents(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, type: number, coordinate: number, animationName: string): string;
  1118. curvePath(keyframes: BABYLON.IAnimationKey[], data: string, middle: number, easingFunction: BABYLON.EasingFunction): string;
  1119. setKeyframePoint(controlPoints: BABYLON.Vector2[], index: number, keyframesCount: number): void;
  1120. interpolateControlPoints(p0: BABYLON.Vector2, p1: BABYLON.Vector2, u: number, p2: BABYLON.Vector2, v: number, p3: BABYLON.Vector2): BABYLON.Vector2[] | undefined;
  1121. deselectAnimation(): void;
  1122. /**
  1123. * Core functions
  1124. * This section handles main Curve Editor Functions.
  1125. */
  1126. selectAnimation(animation: BABYLON.Animation, coordinate?: SelectedCoordinate): void;
  1127. isAnimationPlaying(): boolean;
  1128. stopAnimation(): void;
  1129. setIsLooping(): void;
  1130. setFramesPerSecond(fps: number): void;
  1131. analizeAnimationForLerp(animation: BABYLON.Animation | null): boolean;
  1132. /**
  1133. * Timeline
  1134. * This section controls the timeline.
  1135. */
  1136. changeCurrentFrame(frame: number): void;
  1137. setCanvasPosition(frame: number): void;
  1138. setCurrentFrame(direction: number): void;
  1139. changeAnimationLimit(limit: number): void;
  1140. updateFrameInKeyFrame(frame: number, index: number): void;
  1141. playPause(direction: number): void;
  1142. moveFrameTo(e: React.MouseEvent<SVGRectElement, MouseEvent>): void;
  1143. registerObs(): void;
  1144. componentWillUnmount(): void;
  1145. isCurrentFrame(frame: number): boolean;
  1146. render(): JSX.Element;
  1147. }
  1148. }
  1149. declare module INSPECTOR {
  1150. interface IPopupComponentProps {
  1151. id: string;
  1152. title: string;
  1153. size: {
  1154. width: number;
  1155. height: number;
  1156. };
  1157. onOpen: (window: Window) => void;
  1158. onClose: (window: Window) => void;
  1159. }
  1160. export class PopupComponent extends React.Component<IPopupComponentProps, {
  1161. isComponentMounted: boolean;
  1162. blockedByBrowser: boolean;
  1163. }> {
  1164. private _container;
  1165. private _window;
  1166. private _curveEditorHost;
  1167. constructor(props: IPopupComponentProps);
  1168. componentDidMount(): void;
  1169. openPopup(): void;
  1170. componentWillUnmount(): void;
  1171. render(): React.ReactPortal | null;
  1172. }
  1173. }
  1174. declare module INSPECTOR {
  1175. interface IAnimationGridComponentProps {
  1176. globalState: GlobalState;
  1177. animatable: BABYLON.IAnimatable;
  1178. scene: BABYLON.Scene;
  1179. lockObject: LockObject;
  1180. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1181. }
  1182. export class AnimationGridComponent extends React.Component<IAnimationGridComponentProps, {
  1183. currentFrame: number;
  1184. }> {
  1185. private _animations;
  1186. private _ranges;
  1187. private _mainAnimatable;
  1188. private _onBeforeRenderObserver;
  1189. private _isPlaying;
  1190. private timelineRef;
  1191. private _isCurveEditorOpen;
  1192. private _animationControl;
  1193. constructor(props: IAnimationGridComponentProps);
  1194. playOrPause(): void;
  1195. componentDidMount(): void;
  1196. componentWillUnmount(): void;
  1197. onCurrentFrameChange(value: number): void;
  1198. onChangeFromOrTo(): void;
  1199. onOpenAnimationCurveEditor(): void;
  1200. onCloseAnimationCurveEditor(window: Window | null): void;
  1201. render(): JSX.Element;
  1202. }
  1203. }
  1204. declare module INSPECTOR {
  1205. interface ICommonMaterialPropertyGridComponentProps {
  1206. globalState: GlobalState;
  1207. material: BABYLON.Material;
  1208. lockObject: LockObject;
  1209. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1210. }
  1211. export class CommonMaterialPropertyGridComponent extends React.Component<ICommonMaterialPropertyGridComponentProps> {
  1212. constructor(props: ICommonMaterialPropertyGridComponentProps);
  1213. render(): JSX.Element;
  1214. }
  1215. }
  1216. declare module INSPECTOR {
  1217. interface IMaterialPropertyGridComponentProps {
  1218. globalState: GlobalState;
  1219. material: BABYLON.Material;
  1220. lockObject: LockObject;
  1221. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1222. }
  1223. export class MaterialPropertyGridComponent extends React.Component<IMaterialPropertyGridComponentProps> {
  1224. constructor(props: IMaterialPropertyGridComponentProps);
  1225. render(): JSX.Element;
  1226. }
  1227. }
  1228. declare module INSPECTOR {
  1229. export interface ITextureLinkLineComponentProps {
  1230. label: string;
  1231. texture: BABYLON.Nullable<BABYLON.BaseTexture>;
  1232. material?: BABYLON.Material;
  1233. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1234. onDebugSelectionChangeObservable?: BABYLON.Observable<TextureLinkLineComponent>;
  1235. propertyName?: string;
  1236. onTextureCreated?: (texture: BABYLON.BaseTexture) => void;
  1237. customDebugAction?: (state: boolean) => void;
  1238. onTextureRemoved?: () => void;
  1239. }
  1240. export class TextureLinkLineComponent extends React.Component<ITextureLinkLineComponentProps, {
  1241. isDebugSelected: boolean;
  1242. }> {
  1243. private _onDebugSelectionChangeObserver;
  1244. constructor(props: ITextureLinkLineComponentProps);
  1245. componentDidMount(): void;
  1246. componentWillUnmount(): void;
  1247. debugTexture(): void;
  1248. onLink(): void;
  1249. updateTexture(file: File): void;
  1250. removeTexture(): void;
  1251. render(): JSX.Element | null;
  1252. }
  1253. }
  1254. declare module INSPECTOR {
  1255. interface IStandardMaterialPropertyGridComponentProps {
  1256. globalState: GlobalState;
  1257. material: BABYLON.StandardMaterial;
  1258. lockObject: LockObject;
  1259. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1260. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1261. }
  1262. export class StandardMaterialPropertyGridComponent extends React.Component<IStandardMaterialPropertyGridComponentProps> {
  1263. private _onDebugSelectionChangeObservable;
  1264. constructor(props: IStandardMaterialPropertyGridComponentProps);
  1265. renderTextures(): JSX.Element;
  1266. render(): JSX.Element;
  1267. }
  1268. }
  1269. declare module INSPECTOR {
  1270. export interface TextureChannelsToDisplay {
  1271. R: boolean;
  1272. G: boolean;
  1273. B: boolean;
  1274. A: boolean;
  1275. }
  1276. export class TextureHelper {
  1277. private static _ProcessAsync;
  1278. static GetTextureDataAsync(texture: BABYLON.BaseTexture, width: number, height: number, face: number, channels: TextureChannelsToDisplay, globalState?: GlobalState): Promise<Uint8Array>;
  1279. }
  1280. }
  1281. declare module INSPECTOR {
  1282. interface ITextureLineComponentProps {
  1283. texture: BABYLON.BaseTexture;
  1284. width: number;
  1285. height: number;
  1286. globalState?: GlobalState;
  1287. hideChannelSelect?: boolean;
  1288. }
  1289. export class TextureLineComponent extends React.Component<ITextureLineComponentProps, {
  1290. channels: TextureChannelsToDisplay;
  1291. face: number;
  1292. }> {
  1293. private canvasRef;
  1294. private static TextureChannelStates;
  1295. constructor(props: ITextureLineComponentProps);
  1296. shouldComponentUpdate(nextProps: ITextureLineComponentProps, nextState: {
  1297. channels: TextureChannelsToDisplay;
  1298. face: number;
  1299. }): boolean;
  1300. componentDidMount(): void;
  1301. componentDidUpdate(): void;
  1302. updatePreview(): Promise<void>;
  1303. render(): JSX.Element;
  1304. }
  1305. }
  1306. declare module INSPECTOR {
  1307. export interface Tool {
  1308. type: any;
  1309. name: string;
  1310. instance: any;
  1311. icon: string;
  1312. }
  1313. interface ToolBarProps {
  1314. tools: Tool[];
  1315. addTool(url: string): void;
  1316. changeTool(toolIndex: number): void;
  1317. activeToolIndex: number;
  1318. metadata: any;
  1319. setMetadata(data: any): void;
  1320. }
  1321. interface ToolBarState {
  1322. toolURL: string;
  1323. pickerOpen: boolean;
  1324. addOpen: boolean;
  1325. }
  1326. export class ToolBar extends React.Component<ToolBarProps, ToolBarState> {
  1327. private pickerRef;
  1328. constructor(props: ToolBarProps);
  1329. computeRGBAColor(): string;
  1330. render(): JSX.Element;
  1331. }
  1332. }
  1333. declare module INSPECTOR {
  1334. export interface Channel {
  1335. visible: boolean;
  1336. editable: boolean;
  1337. name: string;
  1338. id: 'R' | 'G' | 'B' | 'A';
  1339. icon: any;
  1340. }
  1341. interface ChannelsBarProps {
  1342. channels: Channel[];
  1343. setChannels(channelState: Channel[]): void;
  1344. }
  1345. export class ChannelsBar extends React.Component<ChannelsBarProps> {
  1346. render(): JSX.Element;
  1347. }
  1348. }
  1349. declare module INSPECTOR {
  1350. export interface PixelData {
  1351. x?: number;
  1352. y?: number;
  1353. r?: number;
  1354. g?: number;
  1355. b?: number;
  1356. a?: number;
  1357. }
  1358. export class TextureCanvasManager {
  1359. private _engine;
  1360. private _scene;
  1361. private _camera;
  1362. private _scale;
  1363. private _isPanning;
  1364. private _mouseX;
  1365. private _mouseY;
  1366. private _UICanvas;
  1367. private _size;
  1368. private _2DCanvas;
  1369. private _displayCanvas;
  1370. private _channels;
  1371. private _face;
  1372. private _displayTexture;
  1373. private _originalTexture;
  1374. private _target;
  1375. private _originalInternalTexture;
  1376. private _didEdit;
  1377. private _plane;
  1378. private _planeMaterial;
  1379. private _planeFallbackMaterial;
  1380. private _keyMap;
  1381. private static ZOOM_MOUSE_SPEED;
  1382. private static ZOOM_KEYBOARD_SPEED;
  1383. private static ZOOM_IN_KEY;
  1384. private static ZOOM_OUT_KEY;
  1385. private static PAN_SPEED;
  1386. private static PAN_MOUSE_BUTTON;
  1387. private static PAN_KEY;
  1388. private static MIN_SCALE;
  1389. private static MAX_SCALE;
  1390. private _tool;
  1391. private _setPixelData;
  1392. metadata: any;
  1393. constructor(texture: BABYLON.BaseTexture, canvasUI: HTMLCanvasElement, canvas2D: HTMLCanvasElement, canvasDisplay: HTMLCanvasElement, setPixelData: (pixelData: PixelData) => void);
  1394. updateTexture(): Promise<void>;
  1395. private copyTextureToDisplayTexture;
  1396. set channels(channels: Channel[]);
  1397. static paintPixelsOnCanvas(pixelData: Uint8Array, canvas: HTMLCanvasElement): void;
  1398. grabOriginalTexture(): void;
  1399. getMouseCoordinates(pointerInfo: BABYLON.PointerInfo): BABYLON.Vector2;
  1400. get scene(): BABYLON.Scene;
  1401. get canvas2D(): HTMLCanvasElement;
  1402. get size(): BABYLON.ISize;
  1403. set tool(tool: BABYLON.Nullable<Tool>);
  1404. get tool(): BABYLON.Nullable<Tool>;
  1405. set face(face: number);
  1406. private makePlane;
  1407. reset(): void;
  1408. resize(newSize: BABYLON.ISize): Promise<void>;
  1409. private updateSize;
  1410. upload(file: File): void;
  1411. dispose(): void;
  1412. }
  1413. }
  1414. declare module INSPECTOR {
  1415. interface PropertiesBarProps {
  1416. texture: BABYLON.BaseTexture;
  1417. saveTexture(): void;
  1418. pixelData: PixelData;
  1419. face: number;
  1420. setFace(face: number): void;
  1421. resetTexture(): void;
  1422. resizeTexture(width: number, height: number): void;
  1423. uploadTexture(file: File): void;
  1424. }
  1425. interface PropertiesBarState {
  1426. width: number;
  1427. height: number;
  1428. }
  1429. interface PixelDataProps {
  1430. name: string;
  1431. data?: number;
  1432. }
  1433. function PixelData(props: PixelDataProps): JSX.Element;
  1434. export class PropertiesBar extends React.Component<PropertiesBarProps, PropertiesBarState> {
  1435. constructor(props: PropertiesBarProps);
  1436. render(): JSX.Element;
  1437. }
  1438. }
  1439. declare module INSPECTOR {
  1440. interface BottomBarProps {
  1441. name: string;
  1442. }
  1443. export class BottomBar extends React.Component<BottomBarProps> {
  1444. render(): JSX.Element;
  1445. }
  1446. }
  1447. declare module INSPECTOR {
  1448. interface TextureCanvasComponentProps {
  1449. canvasUI: React.RefObject<HTMLCanvasElement>;
  1450. canvas2D: React.RefObject<HTMLCanvasElement>;
  1451. canvasDisplay: React.RefObject<HTMLCanvasElement>;
  1452. texture: BABYLON.BaseTexture;
  1453. }
  1454. export class TextureCanvasComponent extends React.Component<TextureCanvasComponentProps> {
  1455. shouldComponentUpdate(nextProps: TextureCanvasComponentProps): boolean;
  1456. render(): JSX.Element;
  1457. }
  1458. }
  1459. declare module INSPECTOR {
  1460. export const Paintbrush: ToolData;
  1461. }
  1462. declare module INSPECTOR {
  1463. export const Eyedropper: ToolData;
  1464. }
  1465. declare module INSPECTOR {
  1466. export const Floodfill: ToolData;
  1467. }
  1468. declare module INSPECTOR {
  1469. const _default: import("babylonjs-inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent").ToolData[];
  1470. export default _default;
  1471. }
  1472. declare module INSPECTOR {
  1473. interface TextureEditorComponentProps {
  1474. globalState: GlobalState;
  1475. texture: BABYLON.BaseTexture;
  1476. url: string;
  1477. }
  1478. interface TextureEditorComponentState {
  1479. tools: Tool[];
  1480. activeToolIndex: number;
  1481. metadata: any;
  1482. channels: Channel[];
  1483. pixelData: PixelData;
  1484. face: number;
  1485. }
  1486. export interface ToolParameters {
  1487. scene: BABYLON.Scene;
  1488. canvas2D: HTMLCanvasElement;
  1489. size: BABYLON.ISize;
  1490. updateTexture: () => void;
  1491. getMetadata: () => any;
  1492. setMetadata: (data: any) => void;
  1493. }
  1494. export interface ToolData {
  1495. name: string;
  1496. type: any;
  1497. icon: string;
  1498. }
  1499. global {
  1500. var _TOOL_DATA_: ToolData;
  1501. }
  1502. export class TextureEditorComponent extends React.Component<TextureEditorComponentProps, TextureEditorComponentState> {
  1503. private _textureCanvasManager;
  1504. private canvasUI;
  1505. private canvas2D;
  1506. private canvasDisplay;
  1507. constructor(props: TextureEditorComponentProps);
  1508. componentDidMount(): void;
  1509. componentDidUpdate(): void;
  1510. componentWillUnmount(): void;
  1511. loadToolFromURL(url: string): void;
  1512. addTools(tools: ToolData[]): void;
  1513. getToolParameters(): ToolParameters;
  1514. changeTool(index: number): void;
  1515. setMetadata(newMetadata: any): void;
  1516. setFace(face: number): void;
  1517. saveTexture(): void;
  1518. resetTexture(): void;
  1519. resizeTexture(width: number, height: number): void;
  1520. uploadTexture(file: File): void;
  1521. render(): JSX.Element;
  1522. }
  1523. }
  1524. declare module INSPECTOR {
  1525. interface ITexturePropertyGridComponentProps {
  1526. texture: BABYLON.BaseTexture;
  1527. lockObject: LockObject;
  1528. globalState: GlobalState;
  1529. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1530. }
  1531. interface ITexturePropertyGridComponentState {
  1532. isTextureEditorOpen: boolean;
  1533. textureEditing: BABYLON.Nullable<BABYLON.BaseTexture>;
  1534. }
  1535. export class TexturePropertyGridComponent extends React.Component<ITexturePropertyGridComponentProps, ITexturePropertyGridComponentState> {
  1536. private _adtInstrumentation;
  1537. private textureLineRef;
  1538. constructor(props: ITexturePropertyGridComponentProps);
  1539. componentWillUnmount(): void;
  1540. updateTexture(file: File): void;
  1541. onOpenTextureEditor(): void;
  1542. onCloseTextureEditor(window: Window | null, callback?: {
  1543. (): void;
  1544. }): void;
  1545. forceRefresh(): void;
  1546. render(): JSX.Element;
  1547. }
  1548. }
  1549. declare module INSPECTOR {
  1550. interface IVector2LineComponentProps {
  1551. label: string;
  1552. target: any;
  1553. propertyName: string;
  1554. step?: number;
  1555. onChange?: (newvalue: BABYLON.Vector2) => void;
  1556. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1557. }
  1558. export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
  1559. isExpanded: boolean;
  1560. value: BABYLON.Vector2;
  1561. }> {
  1562. static defaultProps: {
  1563. step: number;
  1564. };
  1565. private _localChange;
  1566. constructor(props: IVector2LineComponentProps);
  1567. shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
  1568. isExpanded: boolean;
  1569. value: BABYLON.Vector2;
  1570. }): boolean;
  1571. switchExpandState(): void;
  1572. raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
  1573. updateStateX(value: number): void;
  1574. updateStateY(value: number): void;
  1575. render(): JSX.Element;
  1576. }
  1577. }
  1578. declare module INSPECTOR {
  1579. interface IPBRMaterialPropertyGridComponentProps {
  1580. globalState: GlobalState;
  1581. material: BABYLON.PBRMaterial;
  1582. lockObject: LockObject;
  1583. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1584. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1585. }
  1586. export class PBRMaterialPropertyGridComponent extends React.Component<IPBRMaterialPropertyGridComponentProps> {
  1587. private _onDebugSelectionChangeObservable;
  1588. constructor(props: IPBRMaterialPropertyGridComponentProps);
  1589. switchAmbientMode(state: boolean): void;
  1590. switchMetallicMode(state: boolean): void;
  1591. switchRoughnessMode(state: boolean): void;
  1592. renderTextures(onDebugSelectionChangeObservable: BABYLON.Observable<TextureLinkLineComponent>): JSX.Element;
  1593. render(): JSX.Element;
  1594. }
  1595. }
  1596. declare module INSPECTOR {
  1597. interface IRadioButtonLineComponentProps {
  1598. onSelectionChangedObservable: BABYLON.Observable<RadioButtonLineComponent>;
  1599. label: string;
  1600. isSelected: () => boolean;
  1601. onSelect: () => void;
  1602. }
  1603. export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
  1604. isSelected: boolean;
  1605. }> {
  1606. private _onSelectionChangedObserver;
  1607. constructor(props: IRadioButtonLineComponentProps);
  1608. componentDidMount(): void;
  1609. componentWillUnmount(): void;
  1610. onChange(): void;
  1611. render(): JSX.Element;
  1612. }
  1613. }
  1614. declare module INSPECTOR {
  1615. interface IFogPropertyGridComponentProps {
  1616. globalState: GlobalState;
  1617. scene: BABYLON.Scene;
  1618. lockObject: LockObject;
  1619. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1620. }
  1621. export class FogPropertyGridComponent extends React.Component<IFogPropertyGridComponentProps, {
  1622. mode: number;
  1623. }> {
  1624. constructor(props: IFogPropertyGridComponentProps);
  1625. render(): JSX.Element;
  1626. }
  1627. }
  1628. declare module INSPECTOR {
  1629. interface IScenePropertyGridComponentProps {
  1630. globalState: GlobalState;
  1631. scene: BABYLON.Scene;
  1632. lockObject: LockObject;
  1633. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1634. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1635. }
  1636. export class ScenePropertyGridComponent extends React.Component<IScenePropertyGridComponentProps> {
  1637. private _storedEnvironmentTexture;
  1638. private _renderingModeGroupObservable;
  1639. constructor(props: IScenePropertyGridComponentProps);
  1640. setRenderingModes(point: boolean, wireframe: boolean): void;
  1641. switchIBL(): void;
  1642. updateEnvironmentTexture(file: File): void;
  1643. updateGravity(newValue: BABYLON.Vector3): void;
  1644. updateTimeStep(newValue: number): void;
  1645. normalizeScene(): void;
  1646. render(): JSX.Element;
  1647. }
  1648. }
  1649. declare module INSPECTOR {
  1650. interface ICommonLightPropertyGridComponentProps {
  1651. globalState: GlobalState;
  1652. light: BABYLON.Light;
  1653. lockObject: LockObject;
  1654. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1655. }
  1656. export class CommonLightPropertyGridComponent extends React.Component<ICommonLightPropertyGridComponentProps> {
  1657. constructor(props: ICommonLightPropertyGridComponentProps);
  1658. render(): JSX.Element;
  1659. }
  1660. }
  1661. declare module INSPECTOR {
  1662. interface IHemisphericLightPropertyGridComponentProps {
  1663. globalState: GlobalState;
  1664. light: BABYLON.HemisphericLight;
  1665. lockObject: LockObject;
  1666. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1667. }
  1668. export class HemisphericLightPropertyGridComponent extends React.Component<IHemisphericLightPropertyGridComponentProps> {
  1669. constructor(props: IHemisphericLightPropertyGridComponentProps);
  1670. render(): JSX.Element;
  1671. }
  1672. }
  1673. declare module INSPECTOR {
  1674. interface ICommonShadowLightPropertyGridComponentProps {
  1675. globalState: GlobalState;
  1676. light: BABYLON.IShadowLight;
  1677. lockObject: LockObject;
  1678. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1679. }
  1680. export class CommonShadowLightPropertyGridComponent extends React.Component<ICommonShadowLightPropertyGridComponentProps> {
  1681. private _internals;
  1682. constructor(props: ICommonShadowLightPropertyGridComponentProps);
  1683. createShadowGenerator(): void;
  1684. disposeShadowGenerator(): void;
  1685. render(): JSX.Element;
  1686. }
  1687. }
  1688. declare module INSPECTOR {
  1689. interface IPointLightPropertyGridComponentProps {
  1690. globalState: GlobalState;
  1691. light: BABYLON.PointLight;
  1692. lockObject: LockObject;
  1693. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1694. }
  1695. export class PointLightPropertyGridComponent extends React.Component<IPointLightPropertyGridComponentProps> {
  1696. constructor(props: IPointLightPropertyGridComponentProps);
  1697. render(): JSX.Element;
  1698. }
  1699. }
  1700. declare module INSPECTOR {
  1701. interface IHexLineComponentProps {
  1702. label: string;
  1703. target: any;
  1704. propertyName: string;
  1705. lockObject?: LockObject;
  1706. onChange?: (newValue: number) => void;
  1707. isInteger?: boolean;
  1708. replaySourceReplacement?: string;
  1709. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1710. additionalClass?: string;
  1711. step?: string;
  1712. digits?: number;
  1713. useEuler?: boolean;
  1714. min?: number;
  1715. }
  1716. export class HexLineComponent extends React.Component<IHexLineComponentProps, {
  1717. value: string;
  1718. }> {
  1719. private _localChange;
  1720. private _store;
  1721. private _propertyChange;
  1722. constructor(props: IHexLineComponentProps);
  1723. componentWillUnmount(): void;
  1724. shouldComponentUpdate(nextProps: IHexLineComponentProps, nextState: {
  1725. value: string;
  1726. }): boolean;
  1727. raiseOnPropertyChanged(newValue: number, previousValue: number): void;
  1728. convertToHexString(valueString: string): string;
  1729. updateValue(valueString: string, raisePropertyChanged: boolean): void;
  1730. lock(): void;
  1731. unlock(): void;
  1732. render(): JSX.Element;
  1733. }
  1734. }
  1735. declare module INSPECTOR {
  1736. interface ICommonCameraPropertyGridComponentProps {
  1737. globalState: GlobalState;
  1738. camera: BABYLON.Camera;
  1739. lockObject: LockObject;
  1740. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1741. }
  1742. export class CommonCameraPropertyGridComponent extends React.Component<ICommonCameraPropertyGridComponentProps, {
  1743. mode: number;
  1744. }> {
  1745. constructor(props: ICommonCameraPropertyGridComponentProps);
  1746. render(): JSX.Element;
  1747. }
  1748. }
  1749. declare module INSPECTOR {
  1750. interface IFreeCameraPropertyGridComponentProps {
  1751. globalState: GlobalState;
  1752. camera: BABYLON.FreeCamera;
  1753. lockObject: LockObject;
  1754. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1755. }
  1756. export class FreeCameraPropertyGridComponent extends React.Component<IFreeCameraPropertyGridComponentProps> {
  1757. constructor(props: IFreeCameraPropertyGridComponentProps);
  1758. render(): JSX.Element;
  1759. }
  1760. }
  1761. declare module INSPECTOR {
  1762. interface IArcRotateCameraPropertyGridComponentProps {
  1763. globalState: GlobalState;
  1764. camera: BABYLON.ArcRotateCamera;
  1765. lockObject: LockObject;
  1766. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1767. }
  1768. export class ArcRotateCameraPropertyGridComponent extends React.Component<IArcRotateCameraPropertyGridComponentProps> {
  1769. constructor(props: IArcRotateCameraPropertyGridComponentProps);
  1770. render(): JSX.Element;
  1771. }
  1772. }
  1773. declare module INSPECTOR {
  1774. interface IIndentedTextLineComponentProps {
  1775. value?: string;
  1776. color?: string;
  1777. underline?: boolean;
  1778. onLink?: () => void;
  1779. url?: string;
  1780. additionalClass?: string;
  1781. }
  1782. export class IndentedTextLineComponent extends React.Component<IIndentedTextLineComponentProps> {
  1783. constructor(props: IIndentedTextLineComponentProps);
  1784. onLink(): void;
  1785. renderContent(): JSX.Element;
  1786. render(): JSX.Element;
  1787. }
  1788. }
  1789. declare module INSPECTOR {
  1790. interface ICommonPropertyGridComponentProps {
  1791. globalState: GlobalState;
  1792. host: {
  1793. metadata: any;
  1794. };
  1795. lockObject: LockObject;
  1796. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1797. }
  1798. export class CommonPropertyGridComponent extends React.Component<ICommonPropertyGridComponentProps> {
  1799. constructor(props: ICommonPropertyGridComponentProps);
  1800. renderLevel(jsonObject: any): JSX.Element[];
  1801. render(): JSX.Element | null;
  1802. }
  1803. }
  1804. declare module INSPECTOR {
  1805. interface IVariantsPropertyGridComponentProps {
  1806. globalState: GlobalState;
  1807. host: any;
  1808. lockObject: LockObject;
  1809. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1810. }
  1811. export class VariantsPropertyGridComponent extends React.Component<IVariantsPropertyGridComponentProps> {
  1812. private _selectedVariants;
  1813. constructor(props: IVariantsPropertyGridComponentProps);
  1814. private _getVariantsExtension;
  1815. render(): JSX.Element | null;
  1816. }
  1817. }
  1818. declare module INSPECTOR {
  1819. interface IMeshPropertyGridComponentProps {
  1820. globalState: GlobalState;
  1821. mesh: BABYLON.Mesh;
  1822. lockObject: LockObject;
  1823. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1824. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1825. }
  1826. export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGridComponentProps, {
  1827. displayNormals: boolean;
  1828. displayVertexColors: boolean;
  1829. }> {
  1830. constructor(props: IMeshPropertyGridComponentProps);
  1831. renderWireframeOver(): void;
  1832. renderNormalVectors(): void;
  1833. displayNormals(): void;
  1834. displayVertexColors(): void;
  1835. onMaterialLink(): void;
  1836. onSourceMeshLink(): void;
  1837. onSkeletonLink(): void;
  1838. convertPhysicsTypeToString(): string;
  1839. render(): JSX.Element;
  1840. }
  1841. }
  1842. declare module INSPECTOR {
  1843. interface ITransformNodePropertyGridComponentProps {
  1844. globalState: GlobalState;
  1845. transformNode: BABYLON.TransformNode;
  1846. lockObject: LockObject;
  1847. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1848. }
  1849. export class TransformNodePropertyGridComponent extends React.Component<ITransformNodePropertyGridComponentProps> {
  1850. constructor(props: ITransformNodePropertyGridComponentProps);
  1851. render(): JSX.Element;
  1852. }
  1853. }
  1854. declare module INSPECTOR {
  1855. interface IBackgroundMaterialPropertyGridComponentProps {
  1856. globalState: GlobalState;
  1857. material: BABYLON.BackgroundMaterial;
  1858. lockObject: LockObject;
  1859. onSelectionChangedObservable?: BABYLON.Observable<any>;
  1860. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1861. }
  1862. export class BackgroundMaterialPropertyGridComponent extends React.Component<IBackgroundMaterialPropertyGridComponentProps> {
  1863. private _onDebugSelectionChangeObservable;
  1864. constructor(props: IBackgroundMaterialPropertyGridComponentProps);
  1865. renderTextures(): JSX.Element;
  1866. render(): JSX.Element;
  1867. }
  1868. }
  1869. declare module INSPECTOR {
  1870. interface ICommonControlPropertyGridComponentProps {
  1871. globalState: GlobalState;
  1872. control: BABYLON.GUI.Control;
  1873. lockObject: LockObject;
  1874. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1875. }
  1876. export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
  1877. constructor(props: ICommonControlPropertyGridComponentProps);
  1878. renderGridInformation(): JSX.Element | null;
  1879. render(): JSX.Element;
  1880. }
  1881. }
  1882. declare module INSPECTOR {
  1883. interface IControlPropertyGridComponentProps {
  1884. globalState: GlobalState;
  1885. control: BABYLON.GUI.Control;
  1886. lockObject: LockObject;
  1887. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1888. }
  1889. export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
  1890. constructor(props: IControlPropertyGridComponentProps);
  1891. render(): JSX.Element;
  1892. }
  1893. }
  1894. declare module INSPECTOR {
  1895. interface ITextBlockPropertyGridComponentProps {
  1896. globalState: GlobalState;
  1897. textBlock: BABYLON.GUI.TextBlock;
  1898. lockObject: LockObject;
  1899. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1900. }
  1901. export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
  1902. constructor(props: ITextBlockPropertyGridComponentProps);
  1903. render(): JSX.Element;
  1904. }
  1905. }
  1906. declare module INSPECTOR {
  1907. interface IInputTextPropertyGridComponentProps {
  1908. globalState: GlobalState;
  1909. inputText: BABYLON.GUI.InputText;
  1910. lockObject: LockObject;
  1911. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1912. }
  1913. export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
  1914. constructor(props: IInputTextPropertyGridComponentProps);
  1915. render(): JSX.Element;
  1916. }
  1917. }
  1918. declare module INSPECTOR {
  1919. interface IColorPickerPropertyGridComponentProps {
  1920. globalState: GlobalState;
  1921. colorPicker: BABYLON.GUI.ColorPicker;
  1922. lockObject: LockObject;
  1923. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1924. }
  1925. export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
  1926. constructor(props: IColorPickerPropertyGridComponentProps);
  1927. render(): JSX.Element;
  1928. }
  1929. }
  1930. declare module INSPECTOR {
  1931. interface IAnimationGroupGridComponentProps {
  1932. globalState: GlobalState;
  1933. animationGroup: BABYLON.AnimationGroup;
  1934. scene: BABYLON.Scene;
  1935. lockObject: LockObject;
  1936. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1937. }
  1938. export class AnimationGroupGridComponent extends React.Component<IAnimationGroupGridComponentProps, {
  1939. playButtonText: string;
  1940. currentFrame: number;
  1941. }> {
  1942. private _onAnimationGroupPlayObserver;
  1943. private _onAnimationGroupPauseObserver;
  1944. private _onBeforeRenderObserver;
  1945. private timelineRef;
  1946. constructor(props: IAnimationGroupGridComponentProps);
  1947. disconnect(animationGroup: BABYLON.AnimationGroup): void;
  1948. connect(animationGroup: BABYLON.AnimationGroup): void;
  1949. updateCurrentFrame(animationGroup: BABYLON.AnimationGroup): void;
  1950. shouldComponentUpdate(nextProps: IAnimationGroupGridComponentProps): boolean;
  1951. componentWillUnmount(): void;
  1952. playOrPause(): void;
  1953. onCurrentFrameChange(value: number): void;
  1954. render(): JSX.Element;
  1955. }
  1956. }
  1957. declare module INSPECTOR {
  1958. interface IImagePropertyGridComponentProps {
  1959. globalState: GlobalState;
  1960. image: BABYLON.GUI.Image;
  1961. lockObject: LockObject;
  1962. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1963. }
  1964. export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
  1965. constructor(props: IImagePropertyGridComponentProps);
  1966. render(): JSX.Element;
  1967. }
  1968. }
  1969. declare module INSPECTOR {
  1970. interface ISliderPropertyGridComponentProps {
  1971. globalState: GlobalState;
  1972. slider: BABYLON.GUI.Slider;
  1973. lockObject: LockObject;
  1974. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1975. }
  1976. export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
  1977. constructor(props: ISliderPropertyGridComponentProps);
  1978. render(): JSX.Element;
  1979. }
  1980. }
  1981. declare module INSPECTOR {
  1982. interface IImageBasedSliderPropertyGridComponentProps {
  1983. globalState: GlobalState;
  1984. imageBasedSlider: BABYLON.GUI.ImageBasedSlider;
  1985. lockObject: LockObject;
  1986. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1987. }
  1988. export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
  1989. constructor(props: IImageBasedSliderPropertyGridComponentProps);
  1990. render(): JSX.Element;
  1991. }
  1992. }
  1993. declare module INSPECTOR {
  1994. interface IRectanglePropertyGridComponentProps {
  1995. globalState: GlobalState;
  1996. rectangle: BABYLON.GUI.Rectangle;
  1997. lockObject: LockObject;
  1998. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  1999. }
  2000. export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
  2001. constructor(props: IRectanglePropertyGridComponentProps);
  2002. render(): JSX.Element;
  2003. }
  2004. }
  2005. declare module INSPECTOR {
  2006. interface IEllipsePropertyGridComponentProps {
  2007. globalState: GlobalState;
  2008. ellipse: BABYLON.GUI.Ellipse;
  2009. lockObject: LockObject;
  2010. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2011. }
  2012. export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
  2013. constructor(props: IEllipsePropertyGridComponentProps);
  2014. render(): JSX.Element;
  2015. }
  2016. }
  2017. declare module INSPECTOR {
  2018. interface ICheckboxPropertyGridComponentProps {
  2019. globalState: GlobalState;
  2020. checkbox: BABYLON.GUI.Checkbox;
  2021. lockObject: LockObject;
  2022. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2023. }
  2024. export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
  2025. constructor(props: ICheckboxPropertyGridComponentProps);
  2026. render(): JSX.Element;
  2027. }
  2028. }
  2029. declare module INSPECTOR {
  2030. interface IRadioButtonPropertyGridComponentProps {
  2031. globalState: GlobalState;
  2032. radioButton: BABYLON.GUI.RadioButton;
  2033. lockObject: LockObject;
  2034. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2035. }
  2036. export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
  2037. constructor(props: IRadioButtonPropertyGridComponentProps);
  2038. render(): JSX.Element;
  2039. }
  2040. }
  2041. declare module INSPECTOR {
  2042. interface ILinePropertyGridComponentProps {
  2043. globalState: GlobalState;
  2044. line: BABYLON.GUI.Line;
  2045. lockObject: LockObject;
  2046. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2047. }
  2048. export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
  2049. constructor(props: ILinePropertyGridComponentProps);
  2050. onDashChange(value: string): void;
  2051. render(): JSX.Element;
  2052. }
  2053. }
  2054. declare module INSPECTOR {
  2055. interface IScrollViewerPropertyGridComponentProps {
  2056. globalState: GlobalState;
  2057. scrollViewer: BABYLON.GUI.ScrollViewer;
  2058. lockObject: LockObject;
  2059. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2060. }
  2061. export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
  2062. constructor(props: IScrollViewerPropertyGridComponentProps);
  2063. render(): JSX.Element;
  2064. }
  2065. }
  2066. declare module INSPECTOR {
  2067. interface IGridPropertyGridComponentProps {
  2068. globalState: GlobalState;
  2069. grid: BABYLON.GUI.Grid;
  2070. lockObject: LockObject;
  2071. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2072. }
  2073. export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
  2074. constructor(props: IGridPropertyGridComponentProps);
  2075. renderRows(): JSX.Element[];
  2076. renderColumns(): JSX.Element[];
  2077. render(): JSX.Element;
  2078. }
  2079. }
  2080. declare module INSPECTOR {
  2081. interface IPBRMetallicRoughnessMaterialPropertyGridComponentProps {
  2082. globalState: GlobalState;
  2083. material: BABYLON.PBRMetallicRoughnessMaterial;
  2084. lockObject: LockObject;
  2085. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2086. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2087. }
  2088. export class PBRMetallicRoughnessMaterialPropertyGridComponent extends React.Component<IPBRMetallicRoughnessMaterialPropertyGridComponentProps> {
  2089. private _onDebugSelectionChangeObservable;
  2090. constructor(props: IPBRMetallicRoughnessMaterialPropertyGridComponentProps);
  2091. renderTextures(): JSX.Element;
  2092. render(): JSX.Element;
  2093. }
  2094. }
  2095. declare module INSPECTOR {
  2096. interface IPBRSpecularGlossinessMaterialPropertyGridComponentProps {
  2097. globalState: GlobalState;
  2098. material: BABYLON.PBRSpecularGlossinessMaterial;
  2099. lockObject: LockObject;
  2100. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2101. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2102. }
  2103. export class PBRSpecularGlossinessMaterialPropertyGridComponent extends React.Component<IPBRSpecularGlossinessMaterialPropertyGridComponentProps> {
  2104. private _onDebugSelectionChangeObservable;
  2105. constructor(props: IPBRSpecularGlossinessMaterialPropertyGridComponentProps);
  2106. renderTextures(): JSX.Element;
  2107. render(): JSX.Element;
  2108. }
  2109. }
  2110. declare module INSPECTOR {
  2111. interface IStackPanelPropertyGridComponentProps {
  2112. globalState: GlobalState;
  2113. stackPanel: BABYLON.GUI.StackPanel;
  2114. lockObject: LockObject;
  2115. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2116. }
  2117. export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
  2118. constructor(props: IStackPanelPropertyGridComponentProps);
  2119. render(): JSX.Element;
  2120. }
  2121. }
  2122. declare module INSPECTOR {
  2123. interface ICommonPostProcessPropertyGridComponentProps {
  2124. globalState: GlobalState;
  2125. postProcess: BABYLON.PostProcess;
  2126. lockObject: LockObject;
  2127. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2128. }
  2129. export class CommonPostProcessPropertyGridComponent extends React.Component<ICommonPostProcessPropertyGridComponentProps> {
  2130. constructor(props: ICommonPostProcessPropertyGridComponentProps);
  2131. render(): JSX.Element;
  2132. }
  2133. }
  2134. declare module INSPECTOR {
  2135. interface IPostProcessPropertyGridComponentProps {
  2136. globalState: GlobalState;
  2137. postProcess: BABYLON.PostProcess;
  2138. lockObject: LockObject;
  2139. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2140. }
  2141. export class PostProcessPropertyGridComponent extends React.Component<IPostProcessPropertyGridComponentProps> {
  2142. constructor(props: IPostProcessPropertyGridComponentProps);
  2143. edit(): void;
  2144. render(): JSX.Element;
  2145. }
  2146. }
  2147. declare module INSPECTOR {
  2148. interface ICommonRenderingPipelinePropertyGridComponentProps {
  2149. globalState: GlobalState;
  2150. renderPipeline: BABYLON.PostProcessRenderPipeline;
  2151. lockObject: LockObject;
  2152. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2153. }
  2154. export class CommonRenderingPipelinePropertyGridComponent extends React.Component<ICommonRenderingPipelinePropertyGridComponentProps> {
  2155. constructor(props: ICommonRenderingPipelinePropertyGridComponentProps);
  2156. render(): JSX.Element;
  2157. }
  2158. }
  2159. declare module INSPECTOR {
  2160. interface IRenderingPipelinePropertyGridComponentProps {
  2161. globalState: GlobalState;
  2162. renderPipeline: BABYLON.PostProcessRenderPipeline;
  2163. lockObject: LockObject;
  2164. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2165. }
  2166. export class RenderingPipelinePropertyGridComponent extends React.Component<IRenderingPipelinePropertyGridComponentProps> {
  2167. constructor(props: IRenderingPipelinePropertyGridComponentProps);
  2168. render(): JSX.Element;
  2169. }
  2170. }
  2171. declare module INSPECTOR {
  2172. interface IDefaultRenderingPipelinePropertyGridComponentProps {
  2173. globalState: GlobalState;
  2174. renderPipeline: BABYLON.DefaultRenderingPipeline;
  2175. lockObject: LockObject;
  2176. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2177. }
  2178. export class DefaultRenderingPipelinePropertyGridComponent extends React.Component<IDefaultRenderingPipelinePropertyGridComponentProps> {
  2179. constructor(props: IDefaultRenderingPipelinePropertyGridComponentProps);
  2180. render(): JSX.Element;
  2181. }
  2182. }
  2183. declare module INSPECTOR {
  2184. interface ISSAORenderingPipelinePropertyGridComponentProps {
  2185. globalState: GlobalState;
  2186. renderPipeline: BABYLON.SSAORenderingPipeline;
  2187. lockObject: LockObject;
  2188. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2189. }
  2190. export class SSAORenderingPipelinePropertyGridComponent extends React.Component<ISSAORenderingPipelinePropertyGridComponentProps> {
  2191. constructor(props: ISSAORenderingPipelinePropertyGridComponentProps);
  2192. render(): JSX.Element;
  2193. }
  2194. }
  2195. declare module INSPECTOR {
  2196. interface ISSAO2RenderingPipelinePropertyGridComponentProps {
  2197. globalState: GlobalState;
  2198. renderPipeline: BABYLON.SSAO2RenderingPipeline;
  2199. lockObject: LockObject;
  2200. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2201. }
  2202. export class SSAO2RenderingPipelinePropertyGridComponent extends React.Component<ISSAO2RenderingPipelinePropertyGridComponentProps> {
  2203. constructor(props: ISSAO2RenderingPipelinePropertyGridComponentProps);
  2204. render(): JSX.Element;
  2205. }
  2206. }
  2207. declare module INSPECTOR {
  2208. interface ISkeletonPropertyGridComponentProps {
  2209. globalState: GlobalState;
  2210. skeleton: BABYLON.Skeleton;
  2211. lockObject: LockObject;
  2212. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2213. }
  2214. export class SkeletonPropertyGridComponent extends React.Component<ISkeletonPropertyGridComponentProps> {
  2215. private _skeletonViewersEnabled;
  2216. private _skeletonViewers;
  2217. constructor(props: ISkeletonPropertyGridComponentProps);
  2218. switchSkeletonViewers(): void;
  2219. checkSkeletonViewerState(props: ISkeletonPropertyGridComponentProps): void;
  2220. shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
  2221. onOverrideMeshLink(): void;
  2222. render(): JSX.Element;
  2223. }
  2224. }
  2225. declare module INSPECTOR {
  2226. interface IBonePropertyGridComponentProps {
  2227. globalState: GlobalState;
  2228. bone: BABYLON.Bone;
  2229. lockObject: LockObject;
  2230. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2231. }
  2232. export class BonePropertyGridComponent extends React.Component<IBonePropertyGridComponentProps> {
  2233. constructor(props: IBonePropertyGridComponentProps);
  2234. onTransformNodeLink(): void;
  2235. render(): JSX.Element;
  2236. }
  2237. }
  2238. declare module INSPECTOR {
  2239. interface IDirectionalLightPropertyGridComponentProps {
  2240. globalState: GlobalState;
  2241. light: BABYLON.DirectionalLight;
  2242. lockObject: LockObject;
  2243. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2244. }
  2245. export class DirectionalLightPropertyGridComponent extends React.Component<IDirectionalLightPropertyGridComponentProps> {
  2246. constructor(props: IDirectionalLightPropertyGridComponentProps);
  2247. render(): JSX.Element;
  2248. }
  2249. }
  2250. declare module INSPECTOR {
  2251. interface ISpotLightPropertyGridComponentProps {
  2252. globalState: GlobalState;
  2253. light: BABYLON.SpotLight;
  2254. lockObject: LockObject;
  2255. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2256. }
  2257. export class SpotLightPropertyGridComponent extends React.Component<ISpotLightPropertyGridComponentProps> {
  2258. constructor(props: ISpotLightPropertyGridComponentProps);
  2259. render(): JSX.Element;
  2260. }
  2261. }
  2262. declare module INSPECTOR {
  2263. interface ILenstRenderingPipelinePropertyGridComponentProps {
  2264. globalState: GlobalState;
  2265. renderPipeline: BABYLON.LensRenderingPipeline;
  2266. lockObject: LockObject;
  2267. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2268. }
  2269. export class LensRenderingPipelinePropertyGridComponent extends React.Component<ILenstRenderingPipelinePropertyGridComponentProps> {
  2270. constructor(props: ILenstRenderingPipelinePropertyGridComponentProps);
  2271. render(): JSX.Element;
  2272. }
  2273. }
  2274. declare module INSPECTOR {
  2275. interface IVector4LineComponentProps {
  2276. label: string;
  2277. target: any;
  2278. propertyName: string;
  2279. step?: number;
  2280. onChange?: (newvalue: BABYLON.Vector4) => void;
  2281. useEuler?: boolean;
  2282. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2283. }
  2284. export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
  2285. isExpanded: boolean;
  2286. value: BABYLON.Vector4;
  2287. }> {
  2288. static defaultProps: {
  2289. step: number;
  2290. };
  2291. private _localChange;
  2292. constructor(props: IVector4LineComponentProps);
  2293. getCurrentValue(): any;
  2294. shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
  2295. isExpanded: boolean;
  2296. value: BABYLON.Vector4;
  2297. }): boolean;
  2298. switchExpandState(): void;
  2299. raiseOnPropertyChanged(previousValue: BABYLON.Vector4): void;
  2300. updateVector4(): void;
  2301. updateStateX(value: number): void;
  2302. updateStateY(value: number): void;
  2303. updateStateZ(value: number): void;
  2304. updateStateW(value: number): void;
  2305. render(): JSX.Element;
  2306. }
  2307. }
  2308. declare module INSPECTOR {
  2309. export interface IColor4LineComponentProps {
  2310. label: string;
  2311. target: any;
  2312. propertyName: string;
  2313. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2314. onChange?: () => void;
  2315. isLinear?: boolean;
  2316. }
  2317. export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
  2318. isExpanded: boolean;
  2319. color: BABYLON.Color4;
  2320. }> {
  2321. private _localChange;
  2322. constructor(props: IColor4LineComponentProps);
  2323. shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
  2324. color: BABYLON.Color4;
  2325. }): boolean;
  2326. setPropertyValue(newColor: BABYLON.Color4): void;
  2327. onChange(newValue: string): void;
  2328. switchExpandState(): void;
  2329. raiseOnPropertyChanged(previousValue: BABYLON.Color4): void;
  2330. updateStateR(value: number): void;
  2331. updateStateG(value: number): void;
  2332. updateStateB(value: number): void;
  2333. updateStateA(value: number): void;
  2334. copyToClipboard(): void;
  2335. render(): JSX.Element;
  2336. }
  2337. }
  2338. declare module INSPECTOR {
  2339. interface INodeMaterialPropertyGridComponentProps {
  2340. globalState: GlobalState;
  2341. material: BABYLON.NodeMaterial;
  2342. lockObject: LockObject;
  2343. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2344. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2345. }
  2346. export class NodeMaterialPropertyGridComponent extends React.Component<INodeMaterialPropertyGridComponentProps> {
  2347. private _onDebugSelectionChangeObservable;
  2348. constructor(props: INodeMaterialPropertyGridComponentProps);
  2349. edit(): void;
  2350. renderTextures(): JSX.Element | null;
  2351. renderInputBlock(block: BABYLON.InputBlock): JSX.Element | null;
  2352. renderInputValues(): JSX.Element | null;
  2353. render(): JSX.Element;
  2354. }
  2355. }
  2356. declare module INSPECTOR {
  2357. interface IMultiMaterialPropertyGridComponentProps {
  2358. globalState: GlobalState;
  2359. material: BABYLON.MultiMaterial;
  2360. lockObject: LockObject;
  2361. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2362. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2363. }
  2364. export class MultiMaterialPropertyGridComponent extends React.Component<IMultiMaterialPropertyGridComponentProps> {
  2365. constructor(props: IMultiMaterialPropertyGridComponentProps);
  2366. onMaterialLink(mat: BABYLON.Material): void;
  2367. renderChildMaterial(): JSX.Element;
  2368. render(): JSX.Element;
  2369. }
  2370. }
  2371. declare module INSPECTOR {
  2372. interface IBoxEmitterGridComponentProps {
  2373. globalState: GlobalState;
  2374. emitter: BABYLON.BoxParticleEmitter;
  2375. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2376. }
  2377. export class BoxEmitterGridComponent extends React.Component<IBoxEmitterGridComponentProps> {
  2378. constructor(props: IBoxEmitterGridComponentProps);
  2379. render(): JSX.Element;
  2380. }
  2381. }
  2382. declare module INSPECTOR {
  2383. interface IConeEmitterGridComponentProps {
  2384. globalState: GlobalState;
  2385. emitter: BABYLON.ConeParticleEmitter;
  2386. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2387. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2388. }
  2389. export class ConeEmitterGridComponent extends React.Component<IConeEmitterGridComponentProps> {
  2390. constructor(props: IConeEmitterGridComponentProps);
  2391. render(): JSX.Element;
  2392. }
  2393. }
  2394. declare module INSPECTOR {
  2395. interface ICylinderEmitterGridComponentProps {
  2396. globalState: GlobalState;
  2397. emitter: BABYLON.CylinderParticleEmitter;
  2398. lockObject: LockObject;
  2399. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2400. }
  2401. export class CylinderEmitterGridComponent extends React.Component<ICylinderEmitterGridComponentProps> {
  2402. constructor(props: ICylinderEmitterGridComponentProps);
  2403. render(): JSX.Element;
  2404. }
  2405. }
  2406. declare module INSPECTOR {
  2407. interface IHemisphericEmitterGridComponentProps {
  2408. globalState: GlobalState;
  2409. emitter: BABYLON.HemisphericParticleEmitter;
  2410. lockObject: LockObject;
  2411. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2412. }
  2413. export class HemisphericEmitterGridComponent extends React.Component<IHemisphericEmitterGridComponentProps> {
  2414. constructor(props: IHemisphericEmitterGridComponentProps);
  2415. render(): JSX.Element;
  2416. }
  2417. }
  2418. declare module INSPECTOR {
  2419. interface IPointEmitterGridComponentProps {
  2420. globalState: GlobalState;
  2421. emitter: BABYLON.PointParticleEmitter;
  2422. lockObject: LockObject;
  2423. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2424. }
  2425. export class PointEmitterGridComponent extends React.Component<IPointEmitterGridComponentProps> {
  2426. constructor(props: IPointEmitterGridComponentProps);
  2427. render(): JSX.Element;
  2428. }
  2429. }
  2430. declare module INSPECTOR {
  2431. interface ISphereEmitterGridComponentProps {
  2432. globalState: GlobalState;
  2433. emitter: BABYLON.SphereParticleEmitter;
  2434. lockObject: LockObject;
  2435. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2436. }
  2437. export class SphereEmitterGridComponent extends React.Component<ISphereEmitterGridComponentProps> {
  2438. constructor(props: ISphereEmitterGridComponentProps);
  2439. render(): JSX.Element;
  2440. }
  2441. }
  2442. declare module INSPECTOR {
  2443. interface IMeshPickerComponentProps {
  2444. globalState: GlobalState;
  2445. target: any;
  2446. property: string;
  2447. scene: BABYLON.Scene;
  2448. label: string;
  2449. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2450. }
  2451. export class MeshPickerComponent extends React.Component<IMeshPickerComponentProps> {
  2452. constructor(props: IMeshPickerComponentProps);
  2453. render(): JSX.Element;
  2454. }
  2455. }
  2456. declare module INSPECTOR {
  2457. interface IMeshEmitterGridComponentProps {
  2458. globalState: GlobalState;
  2459. emitter: BABYLON.MeshParticleEmitter;
  2460. scene: BABYLON.Scene;
  2461. lockObject: LockObject;
  2462. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2463. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2464. }
  2465. export class MeshEmitterGridComponent extends React.Component<IMeshEmitterGridComponentProps> {
  2466. constructor(props: IMeshEmitterGridComponentProps);
  2467. render(): JSX.Element;
  2468. }
  2469. }
  2470. declare module INSPECTOR {
  2471. interface IFactorGradientStepGridComponent {
  2472. globalState: GlobalState;
  2473. gradient: BABYLON.FactorGradient;
  2474. lockObject: LockObject;
  2475. lineIndex: number;
  2476. onDelete: () => void;
  2477. onUpdateGradient: () => void;
  2478. onCheckForReOrder: () => void;
  2479. host: BABYLON.IParticleSystem;
  2480. codeRecorderPropertyName: string;
  2481. }
  2482. export class FactorGradientStepGridComponent extends React.Component<IFactorGradientStepGridComponent, {
  2483. gradient: number;
  2484. factor1: string;
  2485. factor2?: string;
  2486. }> {
  2487. constructor(props: IFactorGradientStepGridComponent);
  2488. shouldComponentUpdate(nextProps: IFactorGradientStepGridComponent, nextState: {
  2489. gradient: number;
  2490. factor1: string;
  2491. factor2?: string;
  2492. }): boolean;
  2493. updateFactor1(valueString: string): void;
  2494. updateFactor2(valueString: string): void;
  2495. updateGradient(gradient: number): void;
  2496. onPointerUp(): void;
  2497. lock(): void;
  2498. unlock(): void;
  2499. render(): JSX.Element;
  2500. }
  2501. }
  2502. declare module INSPECTOR {
  2503. interface IColorGradientStepGridComponent {
  2504. globalState: GlobalState;
  2505. gradient: BABYLON.ColorGradient | BABYLON.Color3Gradient;
  2506. lockObject: LockObject;
  2507. lineIndex: number;
  2508. isColor3: boolean;
  2509. onDelete: () => void;
  2510. onUpdateGradient: () => void;
  2511. onCheckForReOrder: () => void;
  2512. host: BABYLON.IParticleSystem;
  2513. codeRecorderPropertyName: string;
  2514. }
  2515. export class ColorGradientStepGridComponent extends React.Component<IColorGradientStepGridComponent, {
  2516. gradient: number;
  2517. }> {
  2518. constructor(props: IColorGradientStepGridComponent);
  2519. updateColor1(color: string): void;
  2520. updateColor2(color: string): void;
  2521. updateGradient(gradient: number): void;
  2522. onPointerUp(): void;
  2523. lock(): void;
  2524. unlock(): void;
  2525. render(): JSX.Element;
  2526. }
  2527. }
  2528. declare module INSPECTOR {
  2529. interface ILinkButtonComponentProps {
  2530. label: string;
  2531. buttonLabel: string;
  2532. url?: string;
  2533. onClick: () => void;
  2534. onIconClick?: () => void;
  2535. }
  2536. export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
  2537. constructor(props: ILinkButtonComponentProps);
  2538. onLink(): void;
  2539. render(): JSX.Element;
  2540. }
  2541. }
  2542. declare module INSPECTOR {
  2543. export enum GradientGridMode {
  2544. Factor = 0,
  2545. BABYLON.Color3 = 1,
  2546. BABYLON.Color4 = 2
  2547. }
  2548. interface IValueGradientGridComponent {
  2549. globalState: GlobalState;
  2550. label: string;
  2551. gradients: BABYLON.Nullable<Array<BABYLON.IValueGradient>>;
  2552. lockObject: LockObject;
  2553. docLink?: string;
  2554. mode: GradientGridMode;
  2555. host: BABYLON.IParticleSystem;
  2556. codeRecorderPropertyName: string;
  2557. onCreateRequired: () => void;
  2558. }
  2559. export class ValueGradientGridComponent extends React.Component<IValueGradientGridComponent> {
  2560. constructor(props: IValueGradientGridComponent);
  2561. deleteStep(step: BABYLON.IValueGradient): void;
  2562. addNewStep(): void;
  2563. checkForReOrder(): void;
  2564. updateAndSync(): void;
  2565. render(): JSX.Element;
  2566. }
  2567. }
  2568. declare module INSPECTOR {
  2569. interface IParticleSystemPropertyGridComponentProps {
  2570. globalState: GlobalState;
  2571. system: BABYLON.IParticleSystem;
  2572. lockObject: LockObject;
  2573. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2574. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2575. }
  2576. export class ParticleSystemPropertyGridComponent extends React.Component<IParticleSystemPropertyGridComponentProps> {
  2577. private _snippetUrl;
  2578. constructor(props: IParticleSystemPropertyGridComponentProps);
  2579. renderEmitter(): JSX.Element | null;
  2580. raiseOnPropertyChanged(property: string, newValue: any, previousValue: any): void;
  2581. renderControls(): JSX.Element;
  2582. saveToFile(): void;
  2583. loadFromFile(file: File): void;
  2584. loadFromSnippet(): void;
  2585. saveToSnippet(): void;
  2586. render(): JSX.Element;
  2587. }
  2588. }
  2589. declare module INSPECTOR {
  2590. interface ISpriteManagerPropertyGridComponentProps {
  2591. globalState: GlobalState;
  2592. spriteManager: BABYLON.SpriteManager;
  2593. lockObject: LockObject;
  2594. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2595. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2596. }
  2597. export class SpriteManagerPropertyGridComponent extends React.Component<ISpriteManagerPropertyGridComponentProps> {
  2598. private _snippetUrl;
  2599. constructor(props: ISpriteManagerPropertyGridComponentProps);
  2600. addNewSprite(): void;
  2601. disposeManager(): void;
  2602. saveToFile(): void;
  2603. loadFromFile(file: File): void;
  2604. loadFromSnippet(): void;
  2605. saveToSnippet(): void;
  2606. render(): JSX.Element;
  2607. }
  2608. }
  2609. declare module INSPECTOR {
  2610. interface ISpritePropertyGridComponentProps {
  2611. globalState: GlobalState;
  2612. sprite: BABYLON.Sprite;
  2613. lockObject: LockObject;
  2614. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2615. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2616. }
  2617. export class SpritePropertyGridComponent extends React.Component<ISpritePropertyGridComponentProps> {
  2618. private canvasRef;
  2619. private imageData;
  2620. private cachedCellIndex;
  2621. constructor(props: ISpritePropertyGridComponentProps);
  2622. onManagerLink(): void;
  2623. switchPlayStopState(): void;
  2624. disposeSprite(): void;
  2625. componentDidMount(): void;
  2626. componentDidUpdate(): void;
  2627. shouldComponentUpdate(nextProps: ISpritePropertyGridComponentProps): boolean;
  2628. updatePreview(): void;
  2629. render(): JSX.Element;
  2630. }
  2631. }
  2632. declare module INSPECTOR {
  2633. interface ITargetedAnimationGridComponentProps {
  2634. globalState: GlobalState;
  2635. targetedAnimation: BABYLON.TargetedAnimation;
  2636. scene: BABYLON.Scene;
  2637. lockObject: LockObject;
  2638. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2639. onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
  2640. }
  2641. export class TargetedAnimationGridComponent extends React.Component<ITargetedAnimationGridComponentProps> {
  2642. private _isCurveEditorOpen;
  2643. private _animationGroup;
  2644. constructor(props: ITargetedAnimationGridComponentProps);
  2645. onOpenAnimationCurveEditor(): void;
  2646. onCloseAnimationCurveEditor(window: Window | null): void;
  2647. playOrPause(): void;
  2648. deleteAnimation(): void;
  2649. render(): JSX.Element;
  2650. }
  2651. }
  2652. declare module INSPECTOR {
  2653. export class PropertyGridTabComponent extends PaneComponent {
  2654. private _timerIntervalId;
  2655. private _lockObject;
  2656. constructor(props: IPaneComponentProps);
  2657. timerRefresh(): void;
  2658. componentDidMount(): void;
  2659. componentWillUnmount(): void;
  2660. render(): JSX.Element | null;
  2661. }
  2662. }
  2663. declare module INSPECTOR {
  2664. export interface IHeaderComponentProps {
  2665. title: string;
  2666. handleBack?: boolean;
  2667. noExpand?: boolean;
  2668. noClose?: boolean;
  2669. noCommands?: boolean;
  2670. onPopup: () => void;
  2671. onClose: () => void;
  2672. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2673. }
  2674. export class HeaderComponent extends React.Component<IHeaderComponentProps, {
  2675. isBackVisible: boolean;
  2676. }> {
  2677. private _backStack;
  2678. private _onSelectionChangeObserver;
  2679. constructor(props: IHeaderComponentProps);
  2680. componentDidMount(): void;
  2681. componentWillUnmount(): void;
  2682. goBack(): void;
  2683. renderLogo(): JSX.Element | null;
  2684. render(): JSX.Element;
  2685. }
  2686. }
  2687. declare module INSPECTOR {
  2688. interface IMessageLineComponentProps {
  2689. text: string;
  2690. color?: string;
  2691. }
  2692. export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
  2693. constructor(props: IMessageLineComponentProps);
  2694. render(): JSX.Element;
  2695. }
  2696. }
  2697. declare module INSPECTOR {
  2698. interface IGLTFComponentProps {
  2699. scene: BABYLON.Scene;
  2700. globalState: GlobalState;
  2701. }
  2702. export class GLTFComponent extends React.Component<IGLTFComponentProps> {
  2703. private _onValidationResultsUpdatedObserver;
  2704. constructor(props: IGLTFComponentProps);
  2705. openValidationDetails(): void;
  2706. prepareText(singularForm: string, count: number): string;
  2707. componentDidMount(): void;
  2708. componentWillUnmount(): void;
  2709. renderValidation(): JSX.Element | null;
  2710. render(): JSX.Element;
  2711. }
  2712. }
  2713. declare module INSPECTOR {
  2714. interface IFileMultipleButtonLineComponentProps {
  2715. label: string;
  2716. onClick: (event: any) => void;
  2717. accept: string;
  2718. }
  2719. export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
  2720. private static _IDGenerator;
  2721. private _id;
  2722. private uploadInputRef;
  2723. constructor(props: IFileMultipleButtonLineComponentProps);
  2724. onChange(evt: any): void;
  2725. render(): JSX.Element;
  2726. }
  2727. }
  2728. declare module INSPECTOR {
  2729. export class ToolsTabComponent extends PaneComponent {
  2730. private _videoRecorder;
  2731. private _screenShotSize;
  2732. private _gifOptions;
  2733. private _useWidthHeight;
  2734. private _isExporting;
  2735. private _gifWorkerBlob;
  2736. private _gifRecorder;
  2737. private _previousRenderingScale;
  2738. private _crunchingGIF;
  2739. constructor(props: IPaneComponentProps);
  2740. componentDidMount(): void;
  2741. componentWillUnmount(): void;
  2742. captureScreenshot(): void;
  2743. captureRender(): void;
  2744. recordVideo(): void;
  2745. recordGIFInternal(): void;
  2746. recordGIF(): void;
  2747. importAnimations(event: any): void;
  2748. shouldExport(node: BABYLON.Node): boolean;
  2749. exportGLTF(): void;
  2750. exportBabylon(): void;
  2751. createEnvTexture(): void;
  2752. exportReplay(): void;
  2753. startRecording(): void;
  2754. render(): JSX.Element | null;
  2755. }
  2756. }
  2757. declare module INSPECTOR {
  2758. export class SettingsTabComponent extends PaneComponent {
  2759. constructor(props: IPaneComponentProps);
  2760. render(): JSX.Element;
  2761. }
  2762. }
  2763. declare module INSPECTOR {
  2764. interface IActionTabsComponentProps {
  2765. scene?: BABYLON.Scene;
  2766. noCommands?: boolean;
  2767. noHeader?: boolean;
  2768. noExpand?: boolean;
  2769. noClose?: boolean;
  2770. popupMode?: boolean;
  2771. onPopup?: () => void;
  2772. onClose?: () => void;
  2773. globalState?: GlobalState;
  2774. initialTab?: BABYLON.DebugLayerTab;
  2775. }
  2776. export class ActionTabsComponent extends React.Component<IActionTabsComponentProps, {
  2777. selectedEntity: any;
  2778. selectedIndex: number;
  2779. }> {
  2780. private _onSelectionChangeObserver;
  2781. private _onTabChangedObserver;
  2782. private _once;
  2783. constructor(props: IActionTabsComponentProps);
  2784. componentDidMount(): void;
  2785. componentWillUnmount(): void;
  2786. changeSelectedTab(index: number): void;
  2787. renderContent(): JSX.Element | null;
  2788. onClose(): void;
  2789. onPopup(): void;
  2790. render(): JSX.Element;
  2791. }
  2792. }
  2793. declare module INSPECTOR {
  2794. interface ITreeItemLabelComponentProps {
  2795. label: string;
  2796. onClick?: () => void;
  2797. color: string;
  2798. }
  2799. export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps> {
  2800. constructor(props: ITreeItemLabelComponentProps);
  2801. onClick(): void;
  2802. render(): JSX.Element;
  2803. }
  2804. }
  2805. declare module INSPECTOR {
  2806. interface IExtensionsComponentProps {
  2807. target: any;
  2808. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2809. }
  2810. export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
  2811. popupVisible: boolean;
  2812. }> {
  2813. private _popup;
  2814. private extensionRef;
  2815. constructor(props: IExtensionsComponentProps);
  2816. showPopup(): void;
  2817. componentDidMount(): void;
  2818. componentDidUpdate(): void;
  2819. render(): JSX.Element | null;
  2820. }
  2821. }
  2822. declare module INSPECTOR {
  2823. interface IMeshTreeItemComponentProps {
  2824. mesh: BABYLON.AbstractMesh;
  2825. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2826. onClick: () => void;
  2827. globalState: GlobalState;
  2828. }
  2829. export class MeshTreeItemComponent extends React.Component<IMeshTreeItemComponentProps, {
  2830. isBoundingBoxEnabled: boolean;
  2831. isVisible: boolean;
  2832. }> {
  2833. constructor(props: IMeshTreeItemComponentProps);
  2834. showBoundingBox(): void;
  2835. switchVisibility(): void;
  2836. render(): JSX.Element;
  2837. }
  2838. }
  2839. declare module INSPECTOR {
  2840. interface ICameraTreeItemComponentProps {
  2841. camera: BABYLON.Camera;
  2842. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2843. onClick: () => void;
  2844. }
  2845. export class CameraTreeItemComponent extends React.Component<ICameraTreeItemComponentProps, {
  2846. isActive: boolean;
  2847. }> {
  2848. private _onBeforeRenderObserver;
  2849. constructor(props: ICameraTreeItemComponentProps);
  2850. setActive(): void;
  2851. componentDidMount(): void;
  2852. componentWillUnmount(): void;
  2853. render(): JSX.Element;
  2854. }
  2855. }
  2856. declare module INSPECTOR {
  2857. interface ILightTreeItemComponentProps {
  2858. light: BABYLON.Light;
  2859. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2860. onClick: () => void;
  2861. globalState: GlobalState;
  2862. }
  2863. export class LightTreeItemComponent extends React.Component<ILightTreeItemComponentProps, {
  2864. isEnabled: boolean;
  2865. isGizmoEnabled: boolean;
  2866. }> {
  2867. constructor(props: ILightTreeItemComponentProps);
  2868. switchIsEnabled(): void;
  2869. toggleGizmo(): void;
  2870. render(): JSX.Element;
  2871. }
  2872. }
  2873. declare module INSPECTOR {
  2874. interface IMaterialTreeItemComponentProps {
  2875. material: BABYLON.Material;
  2876. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2877. onClick: () => void;
  2878. }
  2879. export class MaterialTreeItemComponent extends React.Component<IMaterialTreeItemComponentProps> {
  2880. constructor(props: IMaterialTreeItemComponentProps);
  2881. render(): JSX.Element;
  2882. }
  2883. }
  2884. declare module INSPECTOR {
  2885. interface ITextureTreeItemComponentProps {
  2886. texture: BABYLON.Texture;
  2887. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2888. onClick: () => void;
  2889. }
  2890. export class TextureTreeItemComponent extends React.Component<ITextureTreeItemComponentProps> {
  2891. constructor(props: ITextureTreeItemComponentProps);
  2892. render(): JSX.Element;
  2893. }
  2894. }
  2895. declare module INSPECTOR {
  2896. interface ITransformNodeItemComponentProps {
  2897. transformNode: BABYLON.TransformNode;
  2898. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2899. onClick: () => void;
  2900. }
  2901. export class TransformNodeItemComponent extends React.Component<ITransformNodeItemComponentProps> {
  2902. constructor(props: ITransformNodeItemComponentProps);
  2903. render(): JSX.Element;
  2904. }
  2905. }
  2906. declare module INSPECTOR {
  2907. interface IControlTreeItemComponentProps {
  2908. control: BABYLON.GUI.Control;
  2909. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2910. onClick: () => void;
  2911. }
  2912. export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
  2913. isActive: boolean;
  2914. isVisible: boolean;
  2915. }> {
  2916. constructor(props: IControlTreeItemComponentProps);
  2917. highlight(): void;
  2918. switchVisibility(): void;
  2919. render(): JSX.Element;
  2920. }
  2921. }
  2922. declare module INSPECTOR {
  2923. interface IAdvancedDynamicTextureTreeItemComponentProps {
  2924. texture: BABYLON.GUI.AdvancedDynamicTexture;
  2925. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2926. onSelectionChangedObservable?: BABYLON.Observable<any>;
  2927. onClick: () => void;
  2928. }
  2929. export class AdvancedDynamicTextureTreeItemComponent extends React.Component<IAdvancedDynamicTextureTreeItemComponentProps, {
  2930. isInPickingMode: boolean;
  2931. }> {
  2932. private _onControlPickedObserver;
  2933. constructor(props: IAdvancedDynamicTextureTreeItemComponentProps);
  2934. componentWillUnmount(): void;
  2935. onPickingMode(): void;
  2936. render(): JSX.Element;
  2937. }
  2938. }
  2939. declare module INSPECTOR {
  2940. interface IAnimationGroupItemComponentProps {
  2941. animationGroup: BABYLON.AnimationGroup;
  2942. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2943. onClick: () => void;
  2944. }
  2945. export class AnimationGroupItemComponent extends React.Component<IAnimationGroupItemComponentProps> {
  2946. constructor(props: IAnimationGroupItemComponentProps);
  2947. render(): JSX.Element;
  2948. }
  2949. }
  2950. declare module INSPECTOR {
  2951. interface IPostProcessItemComponentProps {
  2952. postProcess: BABYLON.PostProcess;
  2953. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2954. onClick: () => void;
  2955. }
  2956. export class PostProcessItemComponent extends React.Component<IPostProcessItemComponentProps> {
  2957. constructor(props: IPostProcessItemComponentProps);
  2958. render(): JSX.Element;
  2959. }
  2960. }
  2961. declare module INSPECTOR {
  2962. interface IRenderPipelineItemComponenttProps {
  2963. renderPipeline: BABYLON.PostProcessRenderPipeline;
  2964. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2965. onClick: () => void;
  2966. }
  2967. export class RenderingPipelineItemComponent extends React.Component<IRenderPipelineItemComponenttProps> {
  2968. constructor(props: IRenderPipelineItemComponenttProps);
  2969. render(): JSX.Element;
  2970. }
  2971. }
  2972. declare module INSPECTOR {
  2973. interface ISkeletonTreeItemComponentProps {
  2974. skeleton: BABYLON.Skeleton;
  2975. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2976. onClick: () => void;
  2977. }
  2978. export class SkeletonTreeItemComponent extends React.Component<ISkeletonTreeItemComponentProps> {
  2979. constructor(props: ISkeletonTreeItemComponentProps);
  2980. render(): JSX.Element;
  2981. }
  2982. }
  2983. declare module INSPECTOR {
  2984. interface IBoneTreeItemComponenttProps {
  2985. bone: BABYLON.Bone;
  2986. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2987. onClick: () => void;
  2988. }
  2989. export class BoneTreeItemComponent extends React.Component<IBoneTreeItemComponenttProps> {
  2990. constructor(props: IBoneTreeItemComponenttProps);
  2991. render(): JSX.Element;
  2992. }
  2993. }
  2994. declare module INSPECTOR {
  2995. interface IParticleSystemTreeItemComponentProps {
  2996. system: BABYLON.IParticleSystem;
  2997. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  2998. onClick: () => void;
  2999. }
  3000. export class ParticleSystemTreeItemComponent extends React.Component<IParticleSystemTreeItemComponentProps> {
  3001. constructor(props: IParticleSystemTreeItemComponentProps);
  3002. render(): JSX.Element;
  3003. }
  3004. }
  3005. declare module INSPECTOR {
  3006. interface ISpriteManagerTreeItemComponentProps {
  3007. spriteManager: BABYLON.SpriteManager;
  3008. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3009. onClick: () => void;
  3010. }
  3011. export class SpriteManagerTreeItemComponent extends React.Component<ISpriteManagerTreeItemComponentProps> {
  3012. constructor(props: ISpriteManagerTreeItemComponentProps);
  3013. render(): JSX.Element;
  3014. }
  3015. }
  3016. declare module INSPECTOR {
  3017. interface ISpriteTreeItemComponentProps {
  3018. sprite: BABYLON.Sprite;
  3019. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3020. onClick: () => void;
  3021. }
  3022. export class SpriteTreeItemComponent extends React.Component<ISpriteTreeItemComponentProps> {
  3023. constructor(props: ISpriteTreeItemComponentProps);
  3024. render(): JSX.Element;
  3025. }
  3026. }
  3027. declare module INSPECTOR {
  3028. interface ITargetedAnimationItemComponentProps {
  3029. targetedAnimation: BABYLON.TargetedAnimation;
  3030. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3031. onClick: () => void;
  3032. }
  3033. export class TargetedAnimationItemComponent extends React.Component<ITargetedAnimationItemComponentProps> {
  3034. constructor(props: ITargetedAnimationItemComponentProps);
  3035. render(): JSX.Element;
  3036. }
  3037. }
  3038. declare module INSPECTOR {
  3039. interface ITreeItemSpecializedComponentProps {
  3040. label: string;
  3041. entity?: any;
  3042. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3043. globalState: GlobalState;
  3044. onClick?: () => void;
  3045. }
  3046. export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpecializedComponentProps> {
  3047. constructor(props: ITreeItemSpecializedComponentProps);
  3048. onClick(): void;
  3049. render(): JSX.Element;
  3050. }
  3051. }
  3052. declare module INSPECTOR {
  3053. export class Tools {
  3054. static LookForItem(item: any, selectedEntity: any): boolean;
  3055. private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
  3056. static SortAndFilter(parent: any, items: any[]): any[];
  3057. }
  3058. }
  3059. declare module INSPECTOR {
  3060. export interface ITreeItemSelectableComponentProps {
  3061. entity: any;
  3062. selectedEntity?: any;
  3063. mustExpand?: boolean;
  3064. offset: number;
  3065. globalState: GlobalState;
  3066. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3067. filter: BABYLON.Nullable<string>;
  3068. }
  3069. export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, {
  3070. isExpanded: boolean;
  3071. isSelected: boolean;
  3072. }> {
  3073. private _wasSelected;
  3074. constructor(props: ITreeItemSelectableComponentProps);
  3075. switchExpandedState(): void;
  3076. shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
  3077. isExpanded: boolean;
  3078. isSelected: boolean;
  3079. }): boolean;
  3080. scrollIntoView(): void;
  3081. componentDidMount(): void;
  3082. componentDidUpdate(): void;
  3083. onSelect(): void;
  3084. renderChildren(): JSX.Element[] | null;
  3085. render(): JSX.Element | null;
  3086. }
  3087. }
  3088. declare module INSPECTOR {
  3089. export interface ITreeItemComponentProps {
  3090. items?: BABYLON.Nullable<any[]>;
  3091. label: string;
  3092. offset: number;
  3093. filter: BABYLON.Nullable<string>;
  3094. forceSubitems?: boolean;
  3095. globalState: GlobalState;
  3096. entity?: any;
  3097. selectedEntity: any;
  3098. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3099. contextMenuItems?: {
  3100. label: string;
  3101. action: () => void;
  3102. }[];
  3103. }
  3104. export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
  3105. isExpanded: boolean;
  3106. mustExpand: boolean;
  3107. }> {
  3108. static _ContextMenuUniqueIdGenerator: number;
  3109. constructor(props: ITreeItemComponentProps);
  3110. switchExpandedState(): void;
  3111. shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
  3112. isExpanded: boolean;
  3113. }): boolean;
  3114. expandAll(expand: boolean): void;
  3115. renderContextMenu(): JSX.Element | null;
  3116. render(): JSX.Element;
  3117. }
  3118. }
  3119. declare module INSPECTOR {
  3120. interface ISceneTreeItemComponentProps {
  3121. scene: BABYLON.Scene;
  3122. onRefresh: () => void;
  3123. selectedEntity?: any;
  3124. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3125. onSelectionChangedObservable?: BABYLON.Observable<any>;
  3126. globalState: GlobalState;
  3127. }
  3128. export class SceneTreeItemComponent extends React.Component<ISceneTreeItemComponentProps, {
  3129. isSelected: boolean;
  3130. isInPickingMode: boolean;
  3131. gizmoMode: number;
  3132. }> {
  3133. private _gizmoLayerOnPointerObserver;
  3134. private _onPointerObserver;
  3135. private _onSelectionChangeObserver;
  3136. private _selectedEntity;
  3137. private _posDragEnd;
  3138. private _scaleDragEnd;
  3139. private _rotateDragEnd;
  3140. constructor(props: ISceneTreeItemComponentProps);
  3141. shouldComponentUpdate(nextProps: ISceneTreeItemComponentProps, nextState: {
  3142. isSelected: boolean;
  3143. isInPickingMode: boolean;
  3144. }): boolean;
  3145. componentDidMount(): void;
  3146. componentWillUnmount(): void;
  3147. onSelect(): void;
  3148. onPickingMode(): void;
  3149. setGizmoMode(mode: number): void;
  3150. render(): JSX.Element;
  3151. }
  3152. }
  3153. declare module INSPECTOR {
  3154. interface ISceneExplorerFilterComponentProps {
  3155. onFilter: (filter: string) => void;
  3156. }
  3157. export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
  3158. constructor(props: ISceneExplorerFilterComponentProps);
  3159. render(): JSX.Element;
  3160. }
  3161. interface ISceneExplorerComponentProps {
  3162. scene: BABYLON.Scene;
  3163. noCommands?: boolean;
  3164. noHeader?: boolean;
  3165. noExpand?: boolean;
  3166. noClose?: boolean;
  3167. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3168. globalState: GlobalState;
  3169. popupMode?: boolean;
  3170. onPopup?: () => void;
  3171. onClose?: () => void;
  3172. }
  3173. export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
  3174. filter: BABYLON.Nullable<string>;
  3175. selectedEntity: any;
  3176. scene: BABYLON.Scene;
  3177. }> {
  3178. private _onSelectionChangeObserver;
  3179. private _onSelectionRenamedObserver;
  3180. private _onNewSceneAddedObserver;
  3181. private _onNewSceneObserver;
  3182. private sceneExplorerRef;
  3183. private _once;
  3184. private _hooked;
  3185. private sceneMutationFunc;
  3186. constructor(props: ISceneExplorerComponentProps);
  3187. processMutation(): void;
  3188. componentDidMount(): void;
  3189. componentWillUnmount(): void;
  3190. filterContent(filter: string): void;
  3191. findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
  3192. previousOne?: any;
  3193. found?: boolean;
  3194. }): boolean;
  3195. processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
  3196. renderContent(): JSX.Element | null;
  3197. onClose(): void;
  3198. onPopup(): void;
  3199. render(): JSX.Element;
  3200. }
  3201. }
  3202. declare module INSPECTOR {
  3203. interface IEmbedHostComponentProps {
  3204. scene: BABYLON.Scene;
  3205. globalState: GlobalState;
  3206. popupMode: boolean;
  3207. noClose?: boolean;
  3208. noExpand?: boolean;
  3209. onClose: () => void;
  3210. onPopup: () => void;
  3211. extensibilityGroups?: BABYLON.IExplorerExtensibilityGroup[];
  3212. initialTab?: BABYLON.DebugLayerTab;
  3213. }
  3214. export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
  3215. private _once;
  3216. private splitRef;
  3217. private topPartRef;
  3218. private bottomPartRef;
  3219. constructor(props: IEmbedHostComponentProps);
  3220. componentDidMount(): void;
  3221. renderContent(): JSX.Element;
  3222. render(): JSX.Element;
  3223. }
  3224. }
  3225. declare module INSPECTOR {
  3226. export class Inspector {
  3227. private static _SceneExplorerHost;
  3228. private static _ActionTabsHost;
  3229. private static _EmbedHost;
  3230. private static _NewCanvasContainer;
  3231. private static _SceneExplorerWindow;
  3232. private static _ActionTabsWindow;
  3233. private static _EmbedHostWindow;
  3234. private static _Scene;
  3235. private static _OpenedPane;
  3236. private static _OnBeforeRenderObserver;
  3237. static OnSelectionChangeObservable: BABYLON.Observable<any>;
  3238. static OnPropertyChangedObservable: BABYLON.Observable<PropertyChangedEvent>;
  3239. private static _GlobalState;
  3240. static MarkLineContainerTitleForHighlighting(title: string): void;
  3241. static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
  3242. private static _CopyStyles;
  3243. private static _CreateSceneExplorer;
  3244. private static _CreateActionTabs;
  3245. private static _CreateEmbedHost;
  3246. static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
  3247. static get IsVisible(): boolean;
  3248. static EarlyAttachToLoader(): void;
  3249. static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
  3250. static _SetNewScene(scene: BABYLON.Scene): void;
  3251. static _CreateCanvasContainer(parentControl: HTMLElement): void;
  3252. private static _DestroyCanvasContainer;
  3253. private static _Cleanup;
  3254. private static _RemoveElementFromDOM;
  3255. static Hide(): void;
  3256. }
  3257. }
  3258. declare module INSPECTOR {
  3259. interface IPlayheadProps {
  3260. frame: number;
  3261. offset: number;
  3262. onCurrentFrameChange: (frame: number) => void;
  3263. }
  3264. export class Playhead extends React.Component<IPlayheadProps> {
  3265. private _direction;
  3266. private _active;
  3267. constructor(props: IPlayheadProps);
  3268. dragStart(e: React.TouchEvent<HTMLDivElement>): void;
  3269. dragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  3270. drag(e: React.TouchEvent<HTMLDivElement>): void;
  3271. drag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  3272. dragEnd(e: React.TouchEvent<HTMLDivElement>): void;
  3273. dragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
  3274. calculateMove(): string;
  3275. render(): JSX.Element;
  3276. }
  3277. }