address PR comments for Beams component

This commit is contained in:
onmax
2025-07-11 20:28:53 +02:00
parent 48048e875f
commit 4d38c713ab
4 changed files with 3 additions and 20 deletions

View File

@@ -59,6 +59,7 @@ export const CATEGORIES = [
name: 'Backgrounds', name: 'Backgrounds',
subcategories: [ subcategories: [
'Aurora', 'Aurora',
'Beams',
'Dot Grid', 'Dot Grid',
'Silk', 'Silk',
'Lightning', 'Lightning',

View File

@@ -15,7 +15,6 @@ export const beams: CodeObject = {
:noise-intensity="1.75" :noise-intensity="1.75"
:scale="0.2" :scale="0.2"
:rotation="0" :rotation="0"
class="w-full h-full"
/> />
</div> </div>
</template> </template>

View File

@@ -453,17 +453,3 @@ onUnmounted(() => {
cleanup() cleanup()
}) })
</script> </script>
<style scoped>
.beams-container {
position: relative;
width: 100%;
height: 100%;
}
.beams-container canvas {
width: 100%;
height: 100%;
display: block;
}
</style>

View File

@@ -12,14 +12,11 @@
:noise-intensity="noiseIntensity" :noise-intensity="noiseIntensity"
:scale="scale" :scale="scale"
:rotation="rotation" :rotation="rotation"
class="w-full h-full"
/> />
</div> </div>
<Customize> <Customize>
<div class="flex gap-4 items-center"> <PreviewColor title="Color" :model-value="lightColor" @update:model-value="lightColor = $event" />
<PreviewColor title="Color" :model-value="lightColor" @update:model-value="lightColor = $event" />
</div>
<PreviewSlider <PreviewSlider
title="Beam Width" title="Beam Width"