forked from MapComplete/MapComplete
		
	Refactoring: change order of parameters and remove parameter for Conversion.ts
This commit is contained in:
		
							parent
							
								
									f9ba3126a4
								
							
						
					
					
						commit
						a0b7a32223
					
				
					 20 changed files with 147 additions and 213 deletions
				
			
		|  | @ -9,16 +9,12 @@ import { | |||
|     DoesImageExist, | ||||
|     PrevalidateTheme, | ||||
|     ValidateLayer, | ||||
|     ValidateThemeEnsemble, | ||||
|     ValidateThemeEnsemble | ||||
| } from "../src/Models/ThemeConfig/Conversion/Validation" | ||||
| import { Translation } from "../src/UI/i18n/Translation" | ||||
| import { PrepareLayer } from "../src/Models/ThemeConfig/Conversion/PrepareLayer" | ||||
| import { PrepareTheme } from "../src/Models/ThemeConfig/Conversion/PrepareTheme" | ||||
| import { | ||||
|     Conversion, | ||||
|     DesugaringContext, | ||||
|     DesugaringStep, | ||||
| } from "../src/Models/ThemeConfig/Conversion/Conversion" | ||||
| import { Conversion, DesugaringContext, DesugaringStep } from "../src/Models/ThemeConfig/Conversion/Conversion" | ||||
| import { Utils } from "../src/Utils" | ||||
| import Script from "./Script" | ||||
| import { AllSharedLayers } from "../src/Customizations/AllSharedLayers" | ||||
|  | @ -35,10 +31,7 @@ import { Translatable } from "../src/Models/ThemeConfig/Json/Translatable" | |||
| import { ValidateThemeAndLayers } from "../src/Models/ThemeConfig/Conversion/ValidateThemeAndLayers" | ||||
| import { ExtractImages } from "../src/Models/ThemeConfig/Conversion/FixImages" | ||||
| import { TagRenderingConfigJson } from "../src/Models/ThemeConfig/Json/TagRenderingConfigJson" | ||||
| import { | ||||
|     LayerConfigDependencyGraph, | ||||
|     LevelInfo, | ||||
| } from "../src/Models/ThemeConfig/LayerConfigDependencyGraph" | ||||
| import { LayerConfigDependencyGraph, LevelInfo } from "../src/Models/ThemeConfig/LayerConfigDependencyGraph" | ||||
| 
 | ||||
| // This scripts scans 'src/assets/layers/*.json' for layer definition files and 'src/assets/themes/*.json' for theme definition files.
 | ||||
| // It spits out an overview of those to be used to load them
 | ||||
|  | @ -54,7 +47,7 @@ class ParseLayer extends Conversion< | |||
|     private readonly _doesImageExist: DoesImageExist | ||||
| 
 | ||||
|     constructor(prepareLayer: PrepareLayer, doesImageExist: DoesImageExist) { | ||||
|         super("Parsed a layer from file, validates it", [], "ParseLayer") | ||||
|         super("ParseLayer", "Parsed a layer from file, validates it", []) | ||||
|         this._prepareLayer = prepareLayer | ||||
|         this._doesImageExist = doesImageExist | ||||
|     } | ||||
|  | @ -158,7 +151,7 @@ class LayerBuilder extends Conversion<object, Map<string, LayerConfigJson>> { | |||
|         states: Map<string, "clean" | "dirty" | "changed">, | ||||
|         sharedTagRenderings: QuestionableTagRenderingConfigJson[] | ||||
|     ) { | ||||
|         super("Builds all the layers, writes them to file", [], "LayerBuilder") | ||||
|         super("LayerBuilder", "Builds all the layers, writes them to file", []) | ||||
|         this._levels = levels | ||||
|         this._dependencies = dependencies | ||||
|         this._states = states | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue