aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/Visualizer.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/lib/components/Visualizer.svelte')
-rw-r--r--web/pw-server/src/lib/components/Visualizer.svelte13
1 files changed, 1 insertions, 12 deletions
diff --git a/web/pw-server/src/lib/components/Visualizer.svelte b/web/pw-server/src/lib/components/Visualizer.svelte
index 8517a39..4fe8ab4 100644
--- a/web/pw-server/src/lib/components/Visualizer.svelte
+++ b/web/pw-server/src/lib/components/Visualizer.svelte
@@ -2,24 +2,13 @@
import { onDestroy, onMount } from "svelte";
import * as visualizer from "pw-visualizer";
import init_wasm_module from "planetwars-rs";
+ import { PLAYER_COLORS } from "$lib/constants";
export let matchLog = null;
export let matchData: object; // match object as returned by api
let initialized = false;
- const PLAYER_COLORS = [
- "#ff8000",
- "#0080ff",
- "#ff6693",
- "#3fcb55",
- "#cbc33f",
- "#cf40e9",
- "#ff3f0d",
- "#1beef0",
- "#0dc5ff",
- ];
-
onMount(async () => {
await init_wasm_module();