hsu-utils 0.0.12 → 0.0.14
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 +127 -5
- 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/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 +3 -1
- package/es/index.js +3 -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/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 +3 -1
- package/lib/index.js +5 -1
- package/package.json +4 -2
package/README.md
CHANGED
@@ -20,11 +20,13 @@ yarn add hsu-utils
|
|
20
20
|
|
21
21
|
> `ValEqual` 判断值相等,`TypeEqual` 判断类型相同,`ObjEqual` 判断对象相等
|
22
22
|
|
23
|
-
- `Typeof`
|
23
|
+
- `Typeof` 获取类型或判断类型
|
24
24
|
|
25
|
-
>
|
25
|
+
> string、number、boolean、undefined、function、symbol、bigint、object、array、null、date、formdata、set、map、regexp、arraybuffer、blob
|
26
26
|
|
27
27
|
- `get_string_width` 获取字符串长度
|
28
28
|
> 根据字体属性进行计算,默认 size 为 12,family 为 微软雅黑
|
29
29
|
- `loadImage` 异步加载图片
|
30
30
|
> 确保相同的图片只加载一次
|
31
|
+
- `renderPDF` 渲染 PDF
|
32
|
+
- `downloadFile` 下载文件
|