This commit is contained in:
Felix Roos 2022-03-19 12:05:27 +01:00
parent 61e81a4e60
commit 77fd516b15
12 changed files with 2073 additions and 1490 deletions

2
docs/dist/static.js vendored
View file

@ -14,7 +14,7 @@ async function playStatic(code) {
console.log("evaluate took", took, "ms");
console.log("querying..");
start = performance.now();
const events = pat?.query(new State(new TimeSpan(0, seconds)))?.filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf())?.map((event) => ({
const events = pat?.query(new State(new TimeSpan(0, seconds)))?.filter((event) => event.part.begin.equals(event.whole.begin))?.map((event) => ({
time: event.whole.begin.valueOf(),
duration: event.whole.end.sub(event.whole.begin).valueOf(),
value: event.value,