File tree Expand file tree Collapse file tree 3 files changed +2425
-1862
lines changed Expand file tree Collapse file tree 3 files changed +2425
-1862
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,40 @@ Desc | Type
180
180
HEX色值 | string
181
181
182
182
183
+ ### \# isDeepColorByHsl - 基于 HSL 判断是否深色
184
+ ``` javascript
185
+ import { isDeepColorByHsl } from ' image-color-utils'
186
+
187
+ const isDeep = isDeepColorByHsl (hsl)
188
+ ```
189
+ ##### Arguments
190
+ Name | Desc | Type | Default | required
191
+ -------- | -------- | -------- | -------- | -----
192
+ hsl | HSL色值 | number[ ] | - | true
193
+
194
+ ##### Returns
195
+ Desc | Type
196
+ -------- | --------
197
+ isDeep | boolean
198
+
199
+
200
+ ### \# isDeepColorByHsv - 基于 HSV 判断是否深色
201
+ ``` javascript
202
+ import { isDeepColorByHsv } from ' image-color-utils'
203
+
204
+ const isDeep = isDeepColorByHsv (hsv)
205
+ ```
206
+ ##### Arguments
207
+ Name | Desc | Type | Default | required
208
+ -------- | -------- | -------- | -------- | -----
209
+ hsv | HSV色值 | number[ ] | - | true
210
+
211
+ ##### Returns
212
+ Desc | Type
213
+ -------- | --------
214
+ isDeep | boolean
215
+
216
+
183
217
## Attribute
184
218
``` javascript
185
219
import { ImageColorUtils } from ' image-color-utils'
Original file line number Diff line number Diff line change 41
41
"@typescript-eslint/parser" : " ^4.17.0" ,
42
42
"babel-plugin-tester" : " ^10.1.0" ,
43
43
"eslint" : " ^7.22.0" ,
44
- "rollup" : " ^ 2.41.3" ,
44
+ "rollup" : " 2.41.3" ,
45
45
"rollup-plugin-commonjs" : " ^10.1.0" ,
46
46
"rollup-plugin-polyfill" : " ^3.0.0" ,
47
47
"rollup-plugin-serve" : " ^1.1.0" ,
48
48
"rollup-plugin-typescript2" : " ^0.30.0" ,
49
- "tslib" : " ^ 2.1.0" ,
49
+ "tslib" : " 2.1.0" ,
50
50
"tslint" : " ^6.1.3" ,
51
51
"typescript" : " ^4.2.3"
52
52
},
You can’t perform that action at this time.
0 commit comments