earthnut 0.1.3-beta.0 → 0.1.4
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/BackgroundRipple/index.cjs +1 -1
- package/BackgroundRipple/index.mjs +1 -1
- package/Layout/index.cjs +1 -1
- package/Layout/index.mjs +1 -1
- package/components/marquee/MarqueeEle.d.ts +9 -0
- package/components/marquee/index.d.ts +1 -0
- package/components/marquee/type.d.ts +3 -0
- package/customHooks/useRipples/buildBackground/default-background/circleDataList.d.ts +2 -2
- package/customHooks/useRipples/buildBackground/default-background/index.d.ts +2 -0
- package/customHooks/useRipples/callback/fade.d.ts +1 -1
- package/customHooks/useRipples/rippersData/defaultData.d.ts +2 -2
- package/customHooks/useRipples/rippersData/fadeData.d.ts +2 -0
- package/customHooks/useRipples/rippersData/useOptions.d.ts +4 -0
- package/customHooks/useRipples/ripplesClass.d.ts +1 -1
- package/customHooks/useRipples/types.d.ts +15 -4
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.mjs +1 -1
- package/package.json +5 -5
- package/useRipples/index.cjs +1 -1
- package/useRipples/index.mjs +1 -1
|
@@ -13,6 +13,7 @@ export type DrawImage = {
|
|
|
13
13
|
};
|
|
14
14
|
/** 背景渐变的数据 */
|
|
15
15
|
export declare class FadeData {
|
|
16
|
+
#private;
|
|
16
17
|
/** 背景页面的数据 */
|
|
17
18
|
backgroundInfo: {
|
|
18
19
|
width: number;
|
|
@@ -34,6 +35,7 @@ export declare class FadeData {
|
|
|
34
35
|
drawProgress: number;
|
|
35
36
|
/** 是否处于绘制过渡状态 */
|
|
36
37
|
isTransitioning: boolean;
|
|
38
|
+
isDark: boolean;
|
|
37
39
|
/** 执行渐变 */
|
|
38
40
|
run(): void;
|
|
39
41
|
/** 销毁 */
|
|
@@ -72,6 +72,10 @@ export declare class UseOptions {
|
|
|
72
72
|
* 当前执行的状态
|
|
73
73
|
*/
|
|
74
74
|
get playingState(): boolean;
|
|
75
|
+
/** 当前时候为暗黑模式 */
|
|
76
|
+
get darkMode(): boolean | undefined;
|
|
77
|
+
/** 当前时候为暗黑模式 */
|
|
78
|
+
set darkMode(value: boolean | undefined);
|
|
75
79
|
/** 上一次执行渲染状态 */
|
|
76
80
|
lastRunningState: boolean;
|
|
77
81
|
/**
|
|
@@ -17,7 +17,7 @@ export declare class Ripples extends RipplesData {
|
|
|
17
17
|
options: UseOptions;
|
|
18
18
|
/** 背景使用的数据 */
|
|
19
19
|
fadeData: FadeData;
|
|
20
|
-
defaults: import("./types").
|
|
20
|
+
defaults: import("./types").RipplesDefaultData;
|
|
21
21
|
/** 初始化状态 */
|
|
22
22
|
initialized: boolean;
|
|
23
23
|
/**
|
|
@@ -26,6 +26,7 @@ export type ImageCrossOrigin = 'anonymous' | 'use-credentials' | 'no-cors';
|
|
|
26
26
|
* - raindropsTimeInterval 雨滴滴落的间隔,缺省为 `3600`,可设置区间为 `10 ~ 12000`
|
|
27
27
|
* 该值还将影响无背景设置时默认背景的切换频率,几乎每两个雨滴落下就会切换一次背景
|
|
28
28
|
* - idleFluctuations 闲置波动,在光标交互不触发时,将触发模拟雨滴,缺省为 `true`
|
|
29
|
+
* - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
|
|
29
30
|
*
|
|
30
31
|
*/
|
|
31
32
|
export interface BackgroundRipplesProps {
|
|
@@ -49,6 +50,7 @@ export interface BackgroundRipplesProps {
|
|
|
49
50
|
* - raindropsTimeInterval 雨滴滴落的间隔,缺省为 `3650`,可设置区间为 `10 ~ 12000`,值越小,雨越大
|
|
50
51
|
* 该值还将影响无背景设置时默认背景的切换频率,几乎每两个雨滴落下就会切换一次背景
|
|
51
52
|
* - idleFluctuations 闲置波动,在光标交互不触发时,将触发模拟雨滴,缺省为 `true`
|
|
53
|
+
* - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
|
|
52
54
|
*/
|
|
53
55
|
option?: RipplesOptions;
|
|
54
56
|
}
|
|
@@ -155,6 +157,13 @@ export type RipplesUseOptions = {
|
|
|
155
157
|
* 缺省为 `true`
|
|
156
158
|
*/
|
|
157
159
|
idleFluctuations: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* 是否为暗黑模式
|
|
162
|
+
*
|
|
163
|
+
* 在使用默认的主题设置时,当页面使用暗黑模式时出现了文本看不清的现象
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
darkMode: boolean | undefined;
|
|
158
167
|
};
|
|
159
168
|
/**
|
|
160
169
|
*
|
|
@@ -171,6 +180,7 @@ export type RipplesUseOptions = {
|
|
|
171
180
|
* - raindropsTimeInterval 雨滴滴落的间隔,缺省为 `3650`,可设置区间为 `10 ~ 12000`,值越小,雨越大
|
|
172
181
|
* 该值还将影响无背景设置时默认背景的切换频率,几乎每两个雨滴落下就会切换一次背景
|
|
173
182
|
* - idleFluctuations 闲置波动,在光标交互不触发时,将触发模拟雨滴,缺省为 `true`
|
|
183
|
+
* - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
|
|
174
184
|
*/
|
|
175
185
|
export type RipplesOptions = {
|
|
176
186
|
[x in keyof RipplesUseOptions]?: RipplesUseOptions[x];
|
|
@@ -182,15 +192,16 @@ export interface RipplesDefaultData {
|
|
|
182
192
|
/** 默认的图像地址 */
|
|
183
193
|
imgUrl: null;
|
|
184
194
|
/** */
|
|
185
|
-
resolution:
|
|
186
|
-
dropRadius:
|
|
187
|
-
perturbance: 0.
|
|
195
|
+
resolution: 360;
|
|
196
|
+
dropRadius: 12;
|
|
197
|
+
perturbance: 0.01;
|
|
188
198
|
interactive: true;
|
|
189
|
-
crossOrigin: '';
|
|
199
|
+
crossOrigin: 'no-cors';
|
|
190
200
|
playingState: true;
|
|
191
201
|
accelerating: 1;
|
|
192
202
|
raindropsTimeInterval: 3600;
|
|
193
203
|
idleFluctuations: true;
|
|
204
|
+
darkMode: undefined;
|
|
194
205
|
}
|
|
195
206
|
/**
|
|
196
207
|
*
|