@galacean/effects-core 2.6.2 → 2.6.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.
- package/dist/index.js +32 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -6
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -71,6 +71,13 @@ export declare function isFunction(obj: unknown): obj is Function;
|
|
|
71
71
|
* @return
|
|
72
72
|
*/
|
|
73
73
|
export declare function isObject(obj: unknown): obj is Record<string | symbol, unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* 判断对象是否是`Plain Object`类型
|
|
76
|
+
*
|
|
77
|
+
* @param obj - 要判断的对象
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
export declare function isPlainObject(obj: unknown): obj is Record<string | symbol, unknown>;
|
|
74
81
|
export declare function isCanvas(canvas: HTMLCanvasElement): boolean;
|
|
75
82
|
/**
|
|
76
83
|
* 生成一个位于 min 和 max 之间的随机数
|