forked from MapComplete/MapComplete
Refactoring: split 'ThemeViewState' into many classes
This commit is contained in:
parent
2b858bd2aa
commit
dbcbf2787d
34 changed files with 1503 additions and 1227 deletions
|
@ -1,5 +1,4 @@
|
|||
import ImportFlow, { ImportFlowArguments } from "./ImportFlow"
|
||||
import { SpecialVisualizationState } from "../../SpecialVisualization"
|
||||
import { Store, UIEventSource } from "../../../Logic/UIEventSource"
|
||||
import { OsmObject, OsmWay } from "../../../Logic/Osm/OsmObject"
|
||||
import CreateNewNodeAction from "../../../Logic/Osm/Actions/CreateNewNodeAction"
|
||||
|
@ -7,6 +6,7 @@ import { Feature, Point } from "geojson"
|
|||
import Maproulette from "../../../Logic/Maproulette"
|
||||
import { GeoOperations } from "../../../Logic/GeoOperations"
|
||||
import { Tag } from "../../../Logic/Tags/Tag"
|
||||
import ThemeViewState from "../../../Models/ThemeViewState"
|
||||
|
||||
export interface PointImportFlowArguments extends ImportFlowArguments {
|
||||
max_snap_distance?: string
|
||||
|
@ -21,7 +21,7 @@ export class PointImportFlowState extends ImportFlow<PointImportFlowArguments> {
|
|||
public readonly startCoordinate: [number, number]
|
||||
|
||||
constructor(
|
||||
state: SpecialVisualizationState,
|
||||
state: ThemeViewState,
|
||||
originalFeature: Feature<Point>,
|
||||
args: PointImportFlowArguments,
|
||||
tagsToApply: Store<Tag[]>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue