babylon.inspector.d.ts 125 KB

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