Skip to content

Commit

Permalink
remove tailwind classes from components
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-bit committed Oct 16, 2024
1 parent b74e5d0 commit 30b7e85
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/BarVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
}
</script>

<canvas bind:this={canvas} bind:contentRect class="w-full h-full"></canvas>
<canvas bind:this={canvas} bind:contentRect style="height: 100%; width: 100%;"></canvas>
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/CircleBarVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
}
</script>

<canvas bind:this={canvas} bind:contentRect class="w-full h-full"></canvas>
<canvas bind:this={canvas} bind:contentRect style="height: 100%; width: 100%;"></canvas>
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/CircleCirclesVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@
}
</script>

<canvas bind:this={canvas} bind:contentRect class="w-full h-full"></canvas>
<canvas bind:this={canvas} bind:contentRect style="height: 100%; width: 100%;"></canvas>
5 changes: 3 additions & 2 deletions src/lib/visualizations/core/DeformedCircleVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
export let minRadius: number = 0.1;
export let maxRadius: number = 0.4;
export let blur: number = 24;
let canvas: HTMLCanvasElement;
let contentRect: DOMRectReadOnly;
Expand Down Expand Up @@ -63,5 +65,4 @@
}
</script>

<canvas bind:this={canvas} bind:contentRect style="filter: blur(24px);" class="w-full h-full"
></canvas>
<canvas bind:this={canvas} bind:contentRect style="filter: blur({blur}px); height: 100%; width: 100%;"></canvas>
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/Glow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<feComposite in="SourceGraphic" operator="over" />
</filter>
</svg>
<div class="w-full h-full" style="filter: url(#blur);">
<div style="filter: url(#blur); height: 100%; width: 100%;">
<slot />
</div>
5 changes: 3 additions & 2 deletions src/lib/visualizations/core/InnerGlowVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
export let sideVisible = 5;
export let deformation = 10;
export let blur: number = 12;
let canvas: HTMLCanvasElement;
let contentRect: DOMRectReadOnly;
Expand Down Expand Up @@ -129,5 +131,4 @@
}
</script>

<canvas bind:this={canvas} bind:contentRect style="filter: blur(12px)" class="w-full h-full"
></canvas>
<canvas bind:this={canvas} bind:contentRect style="filter: blur({blur}px); width: 100%; height: 100%;"></canvas>
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/MicrophoneVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export let accentColor: string | undefined = color;
</script>

<svg viewBox="0 0 24 24" class="w-full h-full">
<svg viewBox="0 0 24 24" style="height: 100%; width: 100%;">
<mask id="microphone-mask-vertical">
<rect x="0" y="0" width="24" height="24" fill="white" />
<rect x="0" y="0" width="24" height={(1 - value) * 24} fill="black" />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/visualizations/core/SpeakerVisualizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export let accentColor: string | undefined = color;
</script>

<svg width="24" height="24" viewBox="0 0 24 24" class="w-full h-full">
<svg width="24" height="24" viewBox="0 0 24 24" style="height: 100%; width: 100%;">
<mask id="speaker-mask-horizontal">
<rect x="0" y="0" width="24" height="24" fill="white" />
<rect x={12 + value * 12} y="0" width={12} height={24} fill="black" />
Expand Down

0 comments on commit 30b7e85

Please sign in to comment.