Skip to content

Commit bdee472

Browse files
committed
docs(LightRaysDemo): mimic prop data description and default value to react bits
1 parent 9ae704e commit bdee472

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

src/demo/Backgrounds/LightRaysDemo.vue

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ const raysOrigin = ref<RaysOrigin>('top-center');
134134
const raysColor = ref('#ffffff');
135135
const raysSpeed = ref(1);
136136
const lightSpread = ref(0.5);
137-
const rayLength = ref(3.0);
137+
const rayLength = ref(1.0);
138138
const pulsating = ref(false);
139139
const fadeDistance = ref(1.0);
140140
const saturation = ref(1.0);
141-
const mouseInfluence = ref(0.1);
141+
const mouseInfluence = ref(0.5);
142142
const noiseAmount = ref(0.0);
143143
const distortion = ref(0.0);
144144
@@ -177,55 +177,61 @@ const propData = [
177177
name: 'lightSpread',
178178
type: 'number',
179179
default: '0.5',
180-
description: 'Controls how wide the light rays spread'
180+
description: 'How wide the light rays spread. Lower values = tighter rays, higher values = wider spread'
181181
},
182182
{
183183
name: 'rayLength',
184184
type: 'number',
185-
default: '3.0',
186-
description: 'Length of the light rays'
185+
default: '1.0',
186+
description: 'Maximum length/reach of the rays'
187187
},
188188
{
189189
name: 'pulsating',
190190
type: 'boolean',
191191
default: 'false',
192-
description: 'Whether the rays should pulsate'
192+
description: 'Enable pulsing animation effect'
193193
},
194194
{
195195
name: 'fadeDistance',
196196
type: 'number',
197197
default: '1.0',
198-
description: 'Distance at which the rays fade out'
198+
description: 'How far rays fade out from origin'
199199
},
200200
{
201201
name: 'saturation',
202202
type: 'number',
203203
default: '1.0',
204-
description: 'Color saturation of the rays'
204+
description: 'Color saturation level (0-1)'
205205
},
206206
{
207207
name: 'followMouse',
208208
type: 'boolean',
209209
default: 'false',
210-
description: 'Whether the rays should follow the mouse cursor'
210+
description: 'Make rays rotate towards the mouse cursor'
211211
},
212212
{
213213
name: 'mouseInfluence',
214214
type: 'number',
215-
default: '0.1',
216-
description: 'How much the mouse movement affects the rays'
215+
default: '0.5',
216+
description: 'How much mouse affects rays (0-1)'
217217
},
218218
{
219219
name: 'noiseAmount',
220220
type: 'number',
221221
default: '0.0',
222-
description: 'Amount of noise/distortion in the rays'
222+
description: 'Add noise/grain to rays (0-1)'
223223
},
224224
{
225225
name: 'distortion',
226226
type: 'number',
227227
default: '0.0',
228-
description: 'Amount of wave distortion in the rays'
228+
description: 'Apply wave distortion to rays'
229+
},
230+
{
231+
name: 'className',
232+
type: 'string',
233+
default: '""',
234+
description: 'Additional CSS classes to apply to the container'
229235
}
230236
];
231237
</script>

0 commit comments

Comments
 (0)