@takumi-rs/helpers 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,19 @@ export type Color = [
|
|
|
27
27
|
number,
|
|
28
28
|
number
|
|
29
29
|
] | number;
|
|
30
|
+
/**
|
|
31
|
+
* Represents a single color stop in a gradient.
|
|
32
|
+
*/
|
|
33
|
+
export type GradientStop = {
|
|
34
|
+
/**
|
|
35
|
+
* The color of the gradient stop
|
|
36
|
+
*/
|
|
37
|
+
color: Color;
|
|
38
|
+
/**
|
|
39
|
+
* Position in the range [0.0, 1.0]
|
|
40
|
+
*/
|
|
41
|
+
position: number;
|
|
42
|
+
};
|
|
30
43
|
/**
|
|
31
44
|
* Represents a gradient with color steps and an angle for directional gradients.
|
|
32
45
|
*/
|
|
@@ -34,7 +47,7 @@ export type Gradient = {
|
|
|
34
47
|
/**
|
|
35
48
|
* The color stops that make up the gradient
|
|
36
49
|
*/
|
|
37
|
-
stops: Array<
|
|
50
|
+
stops: Array<GradientStop>;
|
|
38
51
|
/**
|
|
39
52
|
* The angle in degrees for the gradient direction (0-360)
|
|
40
53
|
*/
|