oops-ui 1.0.1 → 1.0.3

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.
@@ -4,25 +4,11 @@
4
4
 
5
5
  100%,
6
6
  0% {
7
- background-size:
8
- 10% 10%,
9
- 10% 10%,
10
- 10% 10%,
11
- 10% 10%;
12
- background-position:
13
- 25% 45%,
14
- 41.7% 45%,
15
- 58.3% 45%,
16
- 75% 45%;
17
- }
18
-
19
- 20%,
20
- 80% {
21
7
  background-size: 2.5% 2.5%;
22
8
  background-position: 25% 45%;
23
9
  }
24
10
 
25
- 22% {
11
+ 3.258% {
26
12
  background-size:
27
13
  3.75% 3.75%,
28
14
  2.5% 2.5%,
@@ -36,7 +22,7 @@
36
22
  25% 45%;
37
23
  }
38
24
 
39
- 24% {
25
+ 6.516% {
40
26
  background-size:
41
27
  5% 5%,
42
28
  2.5% 2.5%,
@@ -50,7 +36,7 @@
50
36
  25% 45%;
51
37
  }
52
38
 
53
- 26% {
39
+ 9.774% {
54
40
  background-size:
55
41
  6.25% 6.25%,
56
42
  2.5% 2.5%,
@@ -64,7 +50,7 @@
64
50
  25% 45%;
65
51
  }
66
52
 
67
- 28% {
53
+ 13.032% {
68
54
  background-size:
69
55
  7.5% 7.5%,
70
56
  3.75% 3.75%,
@@ -79,7 +65,7 @@
79
65
  25% 45%;
80
66
  }
81
67
 
82
- 30% {
68
+ 16.29% {
83
69
  background-size:
84
70
  8.75% 8.75%,
85
71
  5% 5%,
@@ -94,7 +80,7 @@
94
80
  25% 45%;
95
81
  }
96
82
 
97
- 32% {
83
+ 19.548% {
98
84
  background-size:
99
85
  10% 10%,
100
86
  6.25% 6.25%,
@@ -110,7 +96,7 @@
110
96
  25% 45%;
111
97
  }
112
98
 
113
- 34% {
99
+ 22.806% {
114
100
  background-size:
115
101
  10% 10%,
116
102
  7.5% 7.5%,
@@ -130,15 +116,28 @@
130
116
  $Pi: 3.1415926;
131
117
 
132
118
  @for $i from 18 through 33 {
133
- #{calc($i / 50 * 100%)} {
134
- background-position: #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) * 1%},
135
- #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) * 1%},
136
- #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) * 1%},
137
- #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) * 1%};
119
+ #{calc((($i - 10 )/ 31 ) * 100%)} {
120
+ background-position:
121
+ #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) *
122
+ 1%}
123
+ #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) *
124
+ 1%},
125
+ #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) *
126
+ 1%}
127
+ #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) *
128
+ 1%},
129
+ #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) *
130
+ 1%}
131
+ #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) *
132
+ 1%},
133
+ #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) *
134
+ 1%}
135
+ #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) *
136
+ 1%};
138
137
  }
139
138
  }
140
139
 
141
- 68% {
140
+ 78.192% {
142
141
  background-size:
143
142
  10% 10%,
144
143
  7.5% 7.5%,
@@ -155,7 +154,7 @@
155
154
  48% 70%;
156
155
  }
157
156
 
158
- 70% {
157
+ 81.45% {
159
158
  background-size:
160
159
  8.75% 8.75%,
161
160
  7.5% 7.5%,
@@ -172,7 +171,7 @@
172
171
  43.53% 69.15%;
173
172
  }
174
173
 
175
- 72% {
174
+ 84.708% {
176
175
  background-size:
177
176
  7.5% 7.5%,
178
177
  7.5% 7.5%,
@@ -189,7 +188,7 @@
189
188
  37.45% 66.65%;
190
189
  }
191
190
 
192
- 74% {
191
+ 87.966% {
193
192
  background-size:
194
193
  6.25% 6.25%,
195
194
  6.25% 6.25%,
@@ -206,7 +205,7 @@
206
205
  32.32% 62.68%;
207
206
  }
208
207
 
209
- 76% {
208
+ 91.224% {
210
209
  background-size:
211
210
  5% 5%,
212
211
  5% 5%,
@@ -223,7 +222,7 @@
223
222
  28.35% 57.45%;
224
223
  }
225
224
 
226
- 78% {
225
+ 97.482% {
227
226
  background-size:
228
227
  3.75% 3.75%,
229
228
  3.75% 3.75%,
@@ -239,4 +238,4 @@
239
238
  // 位置 23
240
239
  25.85% 51.47%;
241
240
  }
242
- }
241
+ }
@@ -22,4 +22,4 @@ import { ThemeColorModeProviderProps, ThemeContextType } from './types';
22
22
  */
23
23
  export declare function useColorMode(): ThemeContextType;
24
24
  /** */
25
- export declare function ThemeColorModeProvider({ children, initialTheme }: ThemeColorModeProviderProps): import("react").JSX.Element;
25
+ export declare function ThemeColorModeProvider({ children, initialTheme }: ThemeColorModeProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -7,4 +7,4 @@
7
7
  /**
8
8
  * 按钮
9
9
  */
10
- export default function Button(): import("react").JSX.Element;
10
+ export default function Button(): import("react/jsx-runtime").JSX.Element;
@@ -11,4 +11,4 @@ import { HTMLAttributes } from 'react';
11
11
  export declare function Switch({ value, change, children, ...props }: {
12
12
  value: boolean;
13
13
  change?: (e?: React.MouseEvent) => void;
14
- } & HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
14
+ } & HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
@@ -7,7 +7,7 @@
7
7
  /** 圆数据 */
8
8
  export declare const circleDataList: {
9
9
  /** 计数器 */
10
- #cum: number;
10
+ "__#private@#cum": number;
11
11
  /** 构建新的数据依据 */
12
12
  build(darkMode: boolean): void;
13
13
  /** 数据依据 */
@@ -8,5 +8,9 @@ import { Ripples } from '../ripplesClass';
8
8
  /**
9
9
  * 重新加载背景图片
10
10
  *
11
+ *
12
+ * 为了避免在高频父元素尺寸变化时触发 canvas 的 width、height 属性变化。
13
+ * 使用防抖进行处理设置 canvas 的 width、height 值
14
+ *
11
15
  */
12
16
  export declare function reloadBackground(this: Ripples): void;
@@ -16,7 +16,6 @@ import { FadeData } from './rippersData/fadeData';
16
16
  * 魔改自大佬的[jQuey 代码](https://github.com/sirxemic/jquery.ripples)
17
17
  */
18
18
  export declare class Ripples extends RipplesData {
19
- #private;
20
19
  /** 渲染数据 */
21
20
  renderData: RipplesRenderData | null;
22
21
  /** 使用参数 */
@@ -38,8 +37,6 @@ export declare class Ripples extends RipplesData {
38
37
  * 缓进缓出
39
38
  */
40
39
  fade(): void;
41
- /** 元素的尺寸发生变化 */
42
- reloadBackground(): void;
43
40
  /** 销毁 */
44
41
  destroy(): void;
45
42
  /** 展示元素 */