First version of automatic dependency injection

This commit is contained in:
Pieter Vander Vennet 2021-12-04 21:49:17 +01:00
parent 2dc6d4658f
commit 62f280feae
3 changed files with 81 additions and 32 deletions

View file

@ -1,6 +1,12 @@
import {Translation} from "../../UI/i18n/Translation";
import {Tag} from "../../Logic/Tags/Tag";
export interface PreciseInput {
preferredBackground?: string[],
snapToLayers?: string[],
maxSnapDistance?: number
}
export default interface PresetConfig {
title: Translation,
tags: Tag[],
@ -8,9 +14,5 @@ export default interface PresetConfig {
/**
* If precise input is set, then an extra map is shown in which the user can drag the map to the precise location
*/
preciseInput?: {
preferredBackground?: string[],
snapToLayers?: string[],
maxSnapDistance?: number
}
preciseInput?: PreciseInput
}