forked from MapComplete/MapComplete
First version of automatic dependency injection
This commit is contained in:
parent
2dc6d4658f
commit
62f280feae
3 changed files with 81 additions and 32 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue