aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/Visualizer.svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-15 20:23:20 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-15 23:28:36 +0200
commit8feccfeb234b69b1069d6b972f13b77ee2c0459f (patch)
treefce00b2e7eed89813f0932b4fba3ed1e4ff692da /web/pw-server/src/lib/components/Visualizer.svelte
parentb51b7a331ddfd93675e93d88cf267494b9c1b083 (diff)
downloadplanetwars.dev-8feccfeb234b69b1069d6b972f13b77ee2c0459f.tar.xz
planetwars.dev-8feccfeb234b69b1069d6b972f13b77ee2c0459f.zip
show player logs on view match page
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();