hsu-utils 0.0.10 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -2
- package/dist/hsu-utils.js +138 -6
- package/dist/hsu-utils.min.js +1 -1
- package/dist/hsu-utils.min.js.LICENSE.txt +31 -1
- package/es/DeepCopy/index.d.ts +1 -1
- package/es/DeepCopy/index.js +18 -2
- package/es/DownloadFile/index.d.ts +1 -0
- package/es/DownloadFile/index.js +34 -0
- package/es/GetStrWidth/index.js +1 -1
- package/es/LoadImage/index.d.ts +1 -0
- package/es/LoadImage/index.js +32 -0
- package/es/RenderPDF/index.d.ts +8 -0
- package/es/RenderPDF/index.js +60 -0
- package/es/Typeof/index.d.ts +4 -2
- package/es/Typeof/index.js +11 -3
- package/es/index.d.ts +4 -1
- package/es/index.js +4 -1
- package/lib/DeepCopy/index.d.ts +1 -1
- package/lib/DeepCopy/index.js +18 -2
- package/lib/DownloadFile/index.d.ts +1 -0
- package/lib/DownloadFile/index.js +37 -0
- package/lib/GetStrWidth/index.js +1 -1
- package/lib/LoadImage/index.d.ts +1 -0
- package/lib/LoadImage/index.js +65 -0
- package/lib/RenderPDF/index.d.ts +8 -0
- package/lib/RenderPDF/index.js +100 -0
- package/lib/Typeof/index.d.ts +4 -2
- package/lib/Typeof/index.js +11 -3
- package/lib/index.d.ts +4 -1
- package/lib/index.js +7 -1
- package/package.json +4 -2
package/README.md
CHANGED
@@ -20,9 +20,11 @@ yarn add hsu-utils
|
|
20
20
|
|
21
21
|
> `ValEqual` 判断值相等,`TypeEqual` 判断类型相同,`ObjEqual` 判断对象相等
|
22
22
|
|
23
|
-
- `Typeof`
|
23
|
+
- `Typeof` 获取类型或判断类型
|
24
24
|
|
25
25
|
> `number`、`string`、`boolean`、`object`、`array`、`null`、`undefined`、`unknown`、`function`、`symbol`、`date`、`formdata`
|
26
26
|
|
27
27
|
- `get_string_width` 获取字符串长度
|
28
|
-
>
|
28
|
+
> 根据字体属性进行计算,默认 size 为 12,family 为 微软雅黑
|
29
|
+
- `loadImage` 异步加载图片
|
30
|
+
> 确保相同的图片只加载一次
|