hsu-utils 0.0.10 → 0.0.13

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/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
- > 中文字符计算为`1`,英文字符计算为`0.5`
28
+ > 根据字体属性进行计算,默认 size 为 12,family 为 微软雅黑
29
+ - `loadImage` 异步加载图片
30
+ > 确保相同的图片只加载一次