mapcomplete/test.ts

40 lines
938 B
TypeScript
Raw Normal View History

2020-10-23 17:26:08 +00:00
/*
2020-10-09 19:11:52 +00:00
2020-10-22 23:20:48 +00:00
import OpeningHoursPickerTable from "./UI/Input/OpeningHours/OpeningHoursPickerTable";
import {UIElement} from "./UI/UIElement";
import {UIEventSource} from "./Logic/UIEventSource";
import {OpeningHour} from "./Logic/OpeningHours";
2020-10-25 19:50:29 +00:00
import {TagRendering} from "./UI/Popup/TagRendering";
import {Tag} from "./Logic/Tags";
const tr = new TagRendering(
new UIEventSource<any>({
id: "node/-1",
amenity: "bench"
}),
{
question: "Does this bench have a backrest?",
mappings: [{
k: new Tag("backrest", "yes"),
txt: "Has backrest"
},
{
k: new Tag("backrest", "no"),
txt: "Has no backrest"
}]
}
)
tr.AttachTo("maindiv")
2020-10-05 23:37:02 +00:00
/*/
import {Utils} from "./Utils";
import {FixedUiElement} from "./UI/Base/FixedUiElement";
Utils.generateStats((stats) => {
2020-10-05 23:37:02 +00:00
new FixedUiElement(stats).AttachTo('maindiv')
})
//*/