Skip to content

Commit 0221473

Browse files
committed
fix: update types
1 parent 4dd0423 commit 0221473

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

src/features/glare/types.public.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
export type GlareProps = {
22
/**
3-
* Boolean to enable/disable glare effect.
3+
* Enables/disables the glare effect.
44
*/
55
glareEnable?: boolean;
66
/**
7-
* The maximum glare opacity (0.5 = 50%, 1 = 100%, etc.). Range: 0 - 1
7+
* Maximum glare opacity (`0.5 = 50%, 1 = 100%`). Range: `0-1`
88
*/
99
glareMaxOpacity?: number;
1010
/**
11-
* Set color of glare effect.
11+
* Sets the color of the glare effect.
1212
*/
1313
glareColor?: string;
1414
/**
15-
* Set position of glare effect.
15+
* Sets the position of the glare effect.
1616
*/
1717
glarePosition?: GlarePosition;
1818
/**
19-
* Reverse the glare direction.
19+
* Reverses the glare direction.
2020
*/
2121
glareReverse?: boolean;
2222
/**
23-
* Set the border radius of the glare.
23+
* Sets the border radius of the glare. Accepts any standard CSS border radius value.
2424
*/
2525
glareBorderRadius?: string;
2626
};

src/features/tilt/types.public.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
export type TiltProps = {
22
/**
3-
* Boolean to enable/disable tilt effect.
3+
* Enables/disables the tilt effect.
44
*/
55
tiltEnable?: boolean;
66
/**
7-
* Reverse the tilt direction.
7+
* Reverses the tilt direction.
88
*/
99
tiltReverse?: boolean;
1010
/**
11-
* Initial tilt value (degrees) on x axis.
11+
* Initial tilt angle (in degrees) on the x-axis.
1212
*/
1313
tiltAngleXInitial?: number;
1414
/**
15-
* Initial tilt value (degrees) on y axis.
15+
* Initial tilt angle (in degrees) on the y-axis.
1616
*/
1717
tiltAngleYInitial?: number;
1818
/**
19-
* Max tilt rotation (degrees) on x axis. Range: 0 - 90
19+
* Maximum tilt rotation (in degrees) on the x-axis (range: `0°-90°`).
2020
*/
2121
tiltMaxAngleX?: number;
2222
/**
23-
* Max tilt rotation (degrees) on y axis. Range: 0 - 90
23+
* Maximum tilt rotation (in degrees) on the y-axis (range: `0°-90°`).
2424
*/
2525
tiltMaxAngleY?: number;
2626
/**
27-
* Which axis should be enabled.
27+
* Enables tilt on a single axis only.
2828
*/
2929
tiltAxis?: Axis;
3030
/**
31-
* Manual tilt rotation (degrees) on x axis.
31+
* Manual tilt rotation (in degrees) on the x-axis.
3232
*/
3333
tiltAngleXManual?: number | null;
3434
/**
35-
* Manual tilt rotation (degrees) on y axis.
35+
* Manual tilt rotation (in degrees) on the y-axis.
3636
*/
3737
tiltAngleYManual?: number | null;
3838
};

src/react-parallax-tilt/types.public.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,51 +37,51 @@ export type ReactParallaxTiltProps = TiltProps &
3737
*/
3838
children?: React.ReactNode;
3939
/**
40-
* Scale of the component (1.5 = 150%, 2 = 200%, etc.).
40+
* Scale of the component (`1.5 = 150%, 2 = 200%`).
4141
*/
4242
scale?: number;
4343
/**
44-
* The perspective property defines how far the object (wrapped/child component) is away from the user. The lower the more extreme the tilt gets.
44+
* Defines how far the tilt component appears from the user. Lower values create more extreme tilt effects.
4545
*/
4646
perspective?: number;
4747
/**
48-
* Boolean to enable/disable vertical flip of component.
48+
* Enables/disables vertical flipping of the component.
4949
*/
5050
flipVertically?: boolean;
5151
/**
52-
* Boolean to enable/disable horizontal flip of component.
52+
* Enables/disables horizontal flipping of the component.
5353
*/
5454
flipHorizontally?: boolean;
5555
/**
56-
* If the effects has to be reset on "onLeave" event.
56+
* Determines if effects should reset on `onLeave` event.
5757
*/
5858
reset?: boolean;
5959
/**
60-
* Easing of the transition when manipulating the component.
60+
* Easing function for the transition.
6161
*/
6262
transitionEasing?: string;
6363
/**
64-
* Speed of the transition when manipulating the component.
64+
* Speed of the transition.
6565
*/
6666
transitionSpeed?: number;
6767
/**
68-
* Track mouse and touch events on the whole window.
68+
* Tracks mouse and touch events across the entire window.
6969
*/
7070
trackOnWindow?: boolean;
7171
/**
72-
* Boolean to enable/disable device orientation detection.
72+
* Enables/disables device orientation detection.
7373
*/
7474
gyroscope?: boolean;
7575
/**
76-
* Gets triggered when user moves on the component.
76+
* Callback triggered when user moves on the component.
7777
*/
7878
onMove?: OnMove;
7979
/**
80-
* Gets triggered when user enters the component.
80+
* Callback triggered when user enters the component.
8181
*/
8282
onEnter?: OnEnter;
8383
/**
84-
* Gets triggered when user leaves the component.
84+
* Callback triggered when user leaves the component.
8585
*/
8686
onLeave?: OnLeave;
8787
};

0 commit comments

Comments
 (0)