refactor: move view logic inside graph.svelte

This commit is contained in:
2024-03-12 18:47:50 +01:00
parent af24b5cffe
commit 9241700ada
16 changed files with 465 additions and 384 deletions

View File

@ -1,12 +1,11 @@
import type { Vector3 } from "three";
import { Vector3 } from "three";
import { lines, points } from "./store";
export function debugPosition(pos: Vector3) {
export function debugPosition(x: number, y: number) {
points.update((p) => {
p.push(pos);
p.push(new Vector3(x, 1, y));
return p;
});
}
export function clear() {