mapcomplete/test.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
665 B
TypeScript
Raw Normal View History

2023-03-25 02:48:24 +01:00
import LayoutConfig from "./Models/ThemeConfig/LayoutConfig"
import * as theme from "./assets/generated/themes/shops.json"
2023-03-29 17:21:20 +02:00
import ThemeViewState from "./Models/ThemeViewState"
import Combine from "./UI/Base/Combine"
import SpecialVisualizations from "./UI/SpecialVisualizations"
2023-04-14 17:53:08 +02:00
function testspecial() {
const layout = new LayoutConfig(<any>theme, true) // qp.data === "" ? : new AllKnownLayoutsLazy().get(qp.data)
2023-03-29 17:21:20 +02:00
const state = new ThemeViewState(layout)
2023-04-07 02:13:57 +02:00
2023-03-29 17:21:20 +02:00
const all = SpecialVisualizations.specialVisualizations.map((s) =>
SpecialVisualizations.renderExampleOfSpecial(state, s)
)
new Combine(all).AttachTo("maindiv")
2023-03-28 05:13:48 +02:00
}
2023-04-14 17:53:08 +02:00
testspecial()