@@ -6,6 +6,7 @@ import ColorTableInput from './ColorTableInput';
66import styled from 'styled-components' ;
77import { ZoomInOutlined } from '@ant-design/icons' ;
88import { EyeOutlined , EyeInvisibleOutlined } from '@ant-design/icons' ;
9+ import NumberInput from './NumberInput' ;
910
1011const { Text } = Typography ;
1112
@@ -301,7 +302,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
301302 </ Text >
302303 }
303304 >
304- < InputNumber />
305+ < NumberInput min = { 1 } max = { 2000 } step = { 10 } />
305306 </ CompactFormItem >
306307
307308 < CompactFormItem
@@ -311,7 +312,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
311312 'Height of particles above the ground in meters.'
312313 ) }
313314 >
314- < InputNumber min = { - 1000 } max = { 10000 } step = { 100 } />
315+ < NumberInput min = { - 1000 } max = { 10000 } step = { 100 } />
315316 </ CompactFormItem >
316317
317318 < CompactFormItem
@@ -321,7 +322,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
321322 'Width of particle trails in pixels. Controls the width of the particles.'
322323 ) }
323324 >
324- < InputNumber min = { 0.1 } max = { 100 } step = { 0.1 } />
325+ < NumberInput min = { 0.1 } max = { 100 } step = { 0.1 } precision = { 1 } />
325326 </ CompactFormItem >
326327
327328 < CompactFormItem
@@ -331,7 +332,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
331332 'Factor to adjust the speed of particles. Controls the movement speed of particles.'
332333 ) }
333334 >
334- < InputNumber min = { 0.1 } max = { 10 } step = { 0.1 } />
335+ < NumberInput min = { 0.1 } max = { 10 } step = { 0.1 } precision = { 1 } />
335336 </ CompactFormItem >
336337
337338 < CompactFormItem
@@ -341,7 +342,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
341342 'Rate at which particles are dropped (reset). Controls the lifecycle of particles.'
342343 ) }
343344 >
344- < InputNumber min = { 0.001 } max = { 0.01 } step = { 0.001 } />
345+ < NumberInput min = { 0.001 } max = { 0.01 } step = { 0.001 } precision = { 3 } />
345346 </ CompactFormItem >
346347
347348 < CompactFormItem
@@ -351,7 +352,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
351352 'Additional drop rate for slow-moving particles. Increases the probability of dropping particles when they move slowly.'
352353 ) }
353354 >
354- < InputNumber min = { 0 } max = { 0.2 } step = { 0.001 } />
355+ < NumberInput min = { 0 } max = { 0.2 } step = { 0.001 } precision = { 3 } />
355356 </ CompactFormItem >
356357
357358 < CompactFormItem
0 commit comments