diff --git a/bun.lockb b/bun.lockb index 79162bd..8ba9d8a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6ab1768..c1479a9 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "vite": "^5.4.11" }, "dependencies": { + "layercake": "^8.4.2", "lucide-svelte": "^0.460.1", "socket.io": "^4.8.1", "socket.io-client": "^4.8.1" diff --git a/src/lib/components/layercake/Area.svelte b/src/lib/components/layercake/Area.svelte new file mode 100644 index 0000000..8631902 --- /dev/null +++ b/src/lib/components/layercake/Area.svelte @@ -0,0 +1,40 @@ + + + + diff --git a/src/lib/components/layercake/AxisX.svelte b/src/lib/components/layercake/AxisX.svelte new file mode 100644 index 0000000..3b051ba --- /dev/null +++ b/src/lib/components/layercake/AxisX.svelte @@ -0,0 +1,119 @@ + + + + + {#each tickVals as tick, i (tick)} + {#if baseline === true} + + {/if} + + + {#if gridlines === true} + + {/if} + {#if tickMarks === true} + + {/if} + {format(tick)} + + {/each} + + + diff --git a/src/lib/components/layercake/AxisY.svelte b/src/lib/components/layercake/AxisY.svelte new file mode 100644 index 0000000..4f949ec --- /dev/null +++ b/src/lib/components/layercake/AxisY.svelte @@ -0,0 +1,119 @@ + + + + + {#each tickVals as tick (tick)} + {@const tickValPx = $yScale(tick)} + + {#if gridlines === true} + + {/if} + {#if tickMarks === true} + + {/if} + {format(tick)} + + {/each} + + + diff --git a/src/lib/components/layercake/Labels.svelte b/src/lib/components/layercake/Labels.svelte new file mode 100644 index 0000000..772bd1a --- /dev/null +++ b/src/lib/components/layercake/Labels.svelte @@ -0,0 +1,38 @@ + + + +{#each labels as d} +
+ {formatLabelName(getLabelName(d))} +
+{/each} + + diff --git a/src/lib/components/layercake/Line.svelte b/src/lib/components/layercake/Line.svelte new file mode 100644 index 0000000..2350a94 --- /dev/null +++ b/src/lib/components/layercake/Line.svelte @@ -0,0 +1,31 @@ + + + + + + diff --git a/src/lib/components/layercake/Scatter.svelte b/src/lib/components/layercake/Scatter.svelte new file mode 100644 index 0000000..39d479a --- /dev/null +++ b/src/lib/components/layercake/Scatter.svelte @@ -0,0 +1,65 @@ + + +
+ + + + + + + + + + + + + + + +
+ + diff --git a/src/routes/stats/+page.svelte b/src/routes/stats/+page.svelte new file mode 100644 index 0000000..fedc0fb --- /dev/null +++ b/src/routes/stats/+page.svelte @@ -0,0 +1,45 @@ + + + + +
+ + + + + + + + + + + + + + + +