chore: update
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 3m50s

This commit is contained in:
Max Richter
2025-12-02 17:27:23 +01:00
parent a1c926c3cf
commit ef479d0557
5 changed files with 95 additions and 83 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import type { Node } from "@nodarium/types";
import { onMount } from "svelte";
import { getGraphManager, getGraphState } from "../graph/state.svelte";
import { getGraphState } from "../graph/state.svelte";
import { T } from "@threlte/core";
import { type Mesh } from "three";
import NodeFrag from "./Node.frag";
@@ -21,15 +21,14 @@
const isActive = $derived(graphState.activeNodeId === node.id);
const isSelected = $derived(graphState.selectedNodes.has(node.id));
let strokeColor = $state(colors.selected);
$effect(() => {
appSettings.value.theme;
strokeColor = isSelected
? colors.selected
: isActive
? colors.active
: colors.outline;
});
const strokeColor = $derived(
appSettings.value.theme &&
(isSelected
? colors.selected
: isActive
? colors.active
: colors.outline),
);
let meshRef: Mesh | undefined = $state();