@kdcloudjs/kdesign 1.7.58 → 1.7.60
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/CHANGELOG.md +22 -0
- package/dist/kdesign-complete.less +126 -1
- package/dist/kdesign.css +212 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +2217 -181
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +16 -12
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/domUtil.d.ts +2 -0
- package/es/_utils/domUtil.js +15 -0
- package/es/cascader/cascader.js +41 -10
- package/es/config-provider/compDefaultProps.d.ts +7 -0
- package/es/config-provider/compDefaultProps.js +7 -0
- package/es/date-picker/date-picker.js +19 -17
- package/es/date-picker/hooks/use-range-view-dates.js +8 -2
- package/es/date-picker/panel/time/time.js +18 -3
- package/es/date-picker/range-picker.js +18 -28
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/locale/locale.d.ts +5 -0
- package/es/locale/zh-CN.d.ts +5 -0
- package/es/locale/zh-CN.js +6 -1
- package/es/signature/drawingBoard.d.ts +15 -0
- package/es/signature/drawingBoard.js +163 -0
- package/es/signature/index.d.ts +3 -0
- package/es/signature/index.js +3 -0
- package/es/signature/signature.d.ts +32 -0
- package/es/signature/signature.js +268 -0
- package/es/signature/style/css.js +2 -0
- package/es/signature/style/index.css +210 -0
- package/es/signature/style/index.d.ts +2 -0
- package/es/signature/style/index.js +2 -0
- package/es/signature/style/index.less +95 -0
- package/es/signature/style/mixin.less +6 -0
- package/es/signature/style/token.less +22 -0
- package/es/signature/utils/signature_pad.d.ts +106 -0
- package/es/signature/utils/signature_pad.js +690 -0
- package/es/style/themes/default.less +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/lib/_utils/domUtil.d.ts +2 -0
- package/lib/_utils/domUtil.js +23 -0
- package/lib/cascader/cascader.js +41 -10
- package/lib/config-provider/compDefaultProps.d.ts +7 -0
- package/lib/config-provider/compDefaultProps.js +7 -0
- package/lib/date-picker/date-picker.js +18 -16
- package/lib/date-picker/hooks/use-range-view-dates.js +7 -1
- package/lib/date-picker/panel/time/time.js +17 -2
- package/lib/date-picker/range-picker.js +18 -28
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -0
- package/lib/locale/locale.d.ts +5 -0
- package/lib/locale/zh-CN.d.ts +5 -0
- package/lib/locale/zh-CN.js +6 -1
- package/lib/signature/drawingBoard.d.ts +15 -0
- package/lib/signature/drawingBoard.js +176 -0
- package/lib/signature/index.d.ts +3 -0
- package/lib/signature/index.js +27 -0
- package/lib/signature/signature.d.ts +32 -0
- package/lib/signature/signature.js +282 -0
- package/lib/signature/style/css.js +4 -0
- package/lib/signature/style/index.css +210 -0
- package/lib/signature/style/index.d.ts +2 -0
- package/lib/signature/style/index.js +4 -0
- package/lib/signature/style/index.less +95 -0
- package/lib/signature/style/mixin.less +6 -0
- package/lib/signature/style/token.less +22 -0
- package/lib/signature/utils/signature_pad.d.ts +106 -0
- package/lib/signature/utils/signature_pad.js +697 -0
- package/lib/style/components.less +1 -0
- package/lib/style/themes/default.less +1 -1
- package/lib/tree-select/tree-select.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export { SignaturePad as default };
|
|
2
|
+
declare class SignaturePad extends SignatureEventTarget {
|
|
3
|
+
constructor(canvas: any, options?: {});
|
|
4
|
+
canvas: any;
|
|
5
|
+
_drawingStroke: boolean;
|
|
6
|
+
_isEmpty: boolean;
|
|
7
|
+
_lastPoints: any[];
|
|
8
|
+
_data: any[];
|
|
9
|
+
_lastVelocity: any;
|
|
10
|
+
_lastWidth: number;
|
|
11
|
+
_handleMouseDown: (event: any) => void;
|
|
12
|
+
_handleMouseMove: (event: any) => void;
|
|
13
|
+
_handleMouseUp: (event: any) => void;
|
|
14
|
+
_handleTouchStart: (event: any) => void;
|
|
15
|
+
_handleTouchMove: (event: any) => void;
|
|
16
|
+
_handleTouchEnd: (event: any) => void;
|
|
17
|
+
_handlePointerStart: (event: any) => void;
|
|
18
|
+
_handlePointerMove: (event: any) => void;
|
|
19
|
+
_handlePointerEnd: (event: any) => void;
|
|
20
|
+
velocityFilterWeight: any;
|
|
21
|
+
minWidth: any;
|
|
22
|
+
maxWidth: any;
|
|
23
|
+
throttle: any;
|
|
24
|
+
minDistance: any;
|
|
25
|
+
dotSize: any;
|
|
26
|
+
penColor: any;
|
|
27
|
+
backgroundColor: any;
|
|
28
|
+
compositeOperation: any;
|
|
29
|
+
_strokeMoveUpdate: (...args: any[]) => any;
|
|
30
|
+
_ctx: any;
|
|
31
|
+
clear(): void;
|
|
32
|
+
fromDataURL(dataUrl: any, options?: {}): Promise<any>;
|
|
33
|
+
toDataURL(type?: string, encoderOptions?: {}): any;
|
|
34
|
+
on(): void;
|
|
35
|
+
off(): void;
|
|
36
|
+
isEmpty(): boolean;
|
|
37
|
+
fromData(pointGroups: any, { clear }?: {
|
|
38
|
+
clear?: boolean | undefined;
|
|
39
|
+
}): void;
|
|
40
|
+
toData(): any[];
|
|
41
|
+
_getPointGroupOptions(group: any): {
|
|
42
|
+
penColor: any;
|
|
43
|
+
dotSize: any;
|
|
44
|
+
minWidth: any;
|
|
45
|
+
maxWidth: any;
|
|
46
|
+
velocityFilterWeight: any;
|
|
47
|
+
compositeOperation: any;
|
|
48
|
+
};
|
|
49
|
+
_strokeBegin(event: any): void;
|
|
50
|
+
_strokeUpdate(event: any): void;
|
|
51
|
+
_strokeEnd(event: any): void;
|
|
52
|
+
_handlePointerEvents(): void;
|
|
53
|
+
_handleMouseEvents(): void;
|
|
54
|
+
_handleTouchEvents(): void;
|
|
55
|
+
_reset(options: any): void;
|
|
56
|
+
_createPoint(x: any, y: any, pressure: any): Point;
|
|
57
|
+
_addPoint(point: any, options: any): Bezier | null;
|
|
58
|
+
_calculateCurveWidths(startPoint: any, endPoint: any, options: any): {
|
|
59
|
+
end: number;
|
|
60
|
+
start: number;
|
|
61
|
+
};
|
|
62
|
+
_strokeWidth(velocity: any, options: any): number;
|
|
63
|
+
_drawCurveSegment(x: any, y: any, width: any): void;
|
|
64
|
+
_drawCurve(curve: any, options: any): void;
|
|
65
|
+
_drawDot(point: any, options: any): void;
|
|
66
|
+
_fromData(pointGroups: any, drawCurve: any, drawDot: any): void;
|
|
67
|
+
toSVG({ includeBackgroundColor }?: {
|
|
68
|
+
includeBackgroundColor?: boolean | undefined;
|
|
69
|
+
}): string;
|
|
70
|
+
}
|
|
71
|
+
declare class SignatureEventTarget {
|
|
72
|
+
_et: EventTarget;
|
|
73
|
+
addEventListener(type: any, listener: any, options?: {}): void;
|
|
74
|
+
dispatchEvent(event: any): boolean;
|
|
75
|
+
removeEventListener(type: any, callback: any, options?: {}): void;
|
|
76
|
+
}
|
|
77
|
+
/*!
|
|
78
|
+
* Signature Pad v4.1.7 | https://github.com/szimek/signature_pad
|
|
79
|
+
* (c) 2023 Szymon Nowak | Released under the MIT license
|
|
80
|
+
*/
|
|
81
|
+
declare class Point {
|
|
82
|
+
constructor(x: any, y: any, pressure: any, time: any);
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
pressure: any;
|
|
86
|
+
time: any;
|
|
87
|
+
distanceTo(start: any): number;
|
|
88
|
+
equals(other: any): boolean;
|
|
89
|
+
velocityFrom(start: any): number;
|
|
90
|
+
}
|
|
91
|
+
declare class Bezier {
|
|
92
|
+
static fromPoints(points: any, widths: any): Bezier;
|
|
93
|
+
static calculateControlPoints(s1: any, s2: any, s3: any): {
|
|
94
|
+
c1: Point;
|
|
95
|
+
c2: Point;
|
|
96
|
+
};
|
|
97
|
+
constructor(startPoint: any, control2: any, control1: any, endPoint: any, startWidth: any, endWidth: any);
|
|
98
|
+
startPoint: any;
|
|
99
|
+
control2: any;
|
|
100
|
+
control1: any;
|
|
101
|
+
endPoint: any;
|
|
102
|
+
startWidth: any;
|
|
103
|
+
endWidth: any;
|
|
104
|
+
length(): number;
|
|
105
|
+
point(t: any, start: any, c1: any, c2: any, end: any): number;
|
|
106
|
+
}
|