@gct-paas/word 0.1.73-patch.12 → 0.1.73-patch.14
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/base/utils/image-size-util.d.ts +5 -5
- package/dist/domain/constants/enum/signature.d.ts +7 -0
- package/dist/index.es.js +626 -512
- package/dist/sdk/types/index.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +1 -0
- package/dist/word.css +38 -17
- package/package.json +1 -1
|
@@ -21,10 +21,10 @@ export declare function computeImageDisplaySize(natural: ImageSize, opts?: Image
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function computeContainDisplaySize(natural: ImageSize, box: ImageSize): ImageSize;
|
|
23
23
|
/** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图) */
|
|
24
|
-
export declare function getCachedSignatureImage(name: string, width?: number, height?: number, time?: number | string): HTMLImageElement | null;
|
|
24
|
+
export declare function getCachedSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string): HTMLImageElement | null;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
26
|
+
* 创建无图签名兜底图
|
|
27
|
+
* 默认用户名 + 电子签名 + 验证日期;仅用户名时只绘制姓名
|
|
28
28
|
*/
|
|
29
|
-
export declare function createSignatureImageDataUrl(name: string, width?: number, height?: number, time?: number | string): string;
|
|
30
|
-
export declare function createSignatureImage(name: string, width?: number, height?: number, time?: number | string): Promise<HTMLImageElement>;
|
|
29
|
+
export declare function createSignatureImageDataUrl(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string): string;
|
|
30
|
+
export declare function createSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string): Promise<HTMLImageElement>;
|
|
@@ -28,3 +28,10 @@ export declare const SignDisplayTypeConst: {
|
|
|
28
28
|
/** 水平显示 */
|
|
29
29
|
HORIZONTAL: string;
|
|
30
30
|
};
|
|
31
|
+
/** 兜底签名配置:个人无上传/手写签名素材时,密码校验通过后展示的样式 */
|
|
32
|
+
export declare const FallbackSignTypeConst: {
|
|
33
|
+
/** 仅用户名 */
|
|
34
|
+
NAME_ONLY: string;
|
|
35
|
+
/** 用户名 + 签署日期 */
|
|
36
|
+
NAME_AND_DATE: string;
|
|
37
|
+
};
|