| 
									
										
										
										
											2023-01-29 13:10:57 +01:00
										 |  |  | import SvelteUIElement from "./UI/Base/SvelteUIElement" | 
					
						
							| 
									
										
										
										
											2023-03-24 19:21:15 +01:00
										 |  |  | import ThemeViewGUI from "./UI/ThemeViewGUI.svelte" | 
					
						
							| 
									
										
										
										
											2023-03-23 00:58:21 +01:00
										 |  |  | import { FixedUiElement } from "./UI/Base/FixedUiElement" | 
					
						
							| 
									
										
										
										
											2023-03-25 02:48:24 +01:00
										 |  |  | import LayoutConfig from "./Models/ThemeConfig/LayoutConfig" | 
					
						
							| 
									
										
										
										
											2023-04-06 02:20:25 +02:00
										 |  |  | import * as theme from "./assets/generated/themes/shops.json" | 
					
						
							| 
									
										
										
										
											2023-03-29 17:21:20 +02:00
										 |  |  | import ThemeViewState from "./Models/ThemeViewState" | 
					
						
							|  |  |  | import Combine from "./UI/Base/Combine" | 
					
						
							|  |  |  | import SpecialVisualizations from "./UI/SpecialVisualizations" | 
					
						
							| 
									
										
										
										
											2023-04-06 01:33:08 +02:00
										 |  |  | import AddNewPoint from "./UI/Popup/AddNewPoint/AddNewPoint.svelte" | 
					
						
							| 
									
										
										
										
											2023-04-07 02:13:57 +02:00
										 |  |  | import UserProfile from "./UI/BigComponents/UserProfile.svelte" | 
					
						
							| 
									
										
										
										
											2023-03-26 05:58:28 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-29 13:10:57 +01:00
										 |  |  | async function main() { | 
					
						
							| 
									
										
										
										
											2023-03-26 05:58:28 +02:00
										 |  |  |     new FixedUiElement("").AttachTo("extradiv") | 
					
						
							| 
									
										
										
										
											2023-04-02 02:59:20 +02:00
										 |  |  |     const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ?  : new AllKnownLayoutsLazy().get(qp.data)
 | 
					
						
							| 
									
										
										
										
											2023-04-07 02:13:57 +02:00
										 |  |  |     const state = new ThemeViewState(layout) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     const main = new SvelteUIElement(ThemeViewGUI, { state }) | 
					
						
							| 
									
										
										
										
											2023-03-29 17:21:20 +02:00
										 |  |  |     main.AttachTo("maindiv") | 
					
						
							| 
									
										
										
										
											2023-01-21 23:58:14 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-30 04:51:56 +02:00
										 |  |  | async function testspecial() { | 
					
						
							| 
									
										
										
										
											2023-04-02 02:59:20 +02:00
										 |  |  |     const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ?  : new AllKnownLayoutsLazy().get(qp.data)
 | 
					
						
							| 
									
										
										
										
											2023-03-29 17:21:20 +02:00
										 |  |  |     const state = new ThemeViewState(layout) | 
					
						
							| 
									
										
										
										
											2023-04-07 02:13:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-29 17:21:20 +02:00
										 |  |  |     const all = SpecialVisualizations.specialVisualizations.map((s) => | 
					
						
							|  |  |  |         SpecialVisualizations.renderExampleOfSpecial(state, s) | 
					
						
							|  |  |  |     ) | 
					
						
							|  |  |  |     new Combine(all).AttachTo("maindiv") | 
					
						
							| 
									
										
										
										
											2023-03-28 05:13:48 +02:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-04-06 01:33:08 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-30 04:51:56 +02:00
										 |  |  | async function test() { | 
					
						
							| 
									
										
										
										
											2023-04-06 01:33:08 +02:00
										 |  |  |     const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ?  : new AllKnownLayoutsLazy().get(qp.data)
 | 
					
						
							|  |  |  |     const state = new ThemeViewState(layout) | 
					
						
							| 
									
										
										
										
											2023-04-07 02:13:57 +02:00
										 |  |  |     new SvelteUIElement(UserProfile, { osmConnection: state.osmConnection }).AttachTo("maindiv") | 
					
						
							| 
									
										
										
										
											2023-03-30 04:51:56 +02:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-04-06 01:33:08 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-30 04:51:56 +02:00
										 |  |  | /* | 
					
						
							|  |  |  | test().then((_) => {}) /*/ | 
					
						
							| 
									
										
										
										
											2023-03-29 17:21:20 +02:00
										 |  |  | main().then((_) => {}) //*/
 |