MapComplete/State.ts

20 lines
481 B
TypeScript
Raw Normal View History

import LayoutConfig from "./Models/ThemeConfig/LayoutConfig";
import FeaturePipelineState from "./Logic/State/FeaturePipelineState";
/**
* Contains the global state: a bunch of UI-event sources
*/
export default class State extends FeaturePipelineState {
/* The singleton of the global state
2021-07-24 01:59:57 +02:00
*/
public static state: FeaturePipelineState;
2021-07-24 01:59:57 +02:00
constructor(layoutToUse: LayoutConfig) {
super(layoutToUse)
2022-01-31 14:34:06 +01:00
window["mapcomplete_state"]= this;
}
2021-07-24 01:59:57 +02:00
2020-07-31 16:17:16 +02:00
}