chore: remove some old console.logs

This commit is contained in:
2026-01-21 16:01:11 +01:00
parent bdbaab25a4
commit d7e9e8b8de
11 changed files with 54 additions and 56 deletions

View File

@@ -85,21 +85,16 @@
callback: () => randomGenerate(),
},
]);
let graphSettings = $state<Record<string, any>>({});
let graphSettingTypes = $state({
randomSeed: { type: "boolean", value: false },
});
$effect(() => {
if (graphSettings) {
if (graphSettings && graphSettingTypes) {
manager?.setSettings($state.snapshot(graphSettings));
}
});
type BooleanSchema = {
[key: string]: {
type: "boolean";
value: false;
};
};
let graphSettingTypes = $state<BooleanSchema>({
randomSeed: { type: "boolean", value: false },
});
async function update(
g: Graph,