dcp-design-react 1.8.22 → 1.8.23
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/lib/icons/MosaicOutlined/index.d.ts +3 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/signature/src/lib/index.d.ts +26 -1
- package/lib/signature/src/signature.d.ts +1 -0
- package/lib/table/src/hooks/useImperativeMethod.d.ts +2 -0
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ interface PointGroupOptions {
|
|
|
30
30
|
interface PointGroup extends PointGroupOptions {
|
|
31
31
|
points: BasicPoint[];
|
|
32
32
|
}
|
|
33
|
-
export type IDrawMode = 'line' | 'square' | 'round' | 'arrow' | 'text' | undefined;
|
|
33
|
+
export type IDrawMode = 'line' | 'square' | 'round' | 'arrow' | 'mosaic' | 'text' | undefined;
|
|
34
34
|
declare class Signature {
|
|
35
35
|
canvas: HTMLCanvasElement;
|
|
36
36
|
ctx: CanvasRenderingContext2D;
|
|
@@ -51,6 +51,7 @@ declare class Signature {
|
|
|
51
51
|
minWidth: number;
|
|
52
52
|
maxWidth: number;
|
|
53
53
|
fontSize: number;
|
|
54
|
+
degreeOfBlur: number;
|
|
54
55
|
textInputPos: Pick<Point, 'x' | 'y'>;
|
|
55
56
|
isMobile: boolean;
|
|
56
57
|
onStart: IOptions[`onStart`];
|
|
@@ -95,6 +96,30 @@ declare class Signature {
|
|
|
95
96
|
drawSquare: (ev: any) => void;
|
|
96
97
|
drawRound: (ev: any) => void;
|
|
97
98
|
drawArrow: (ev: any) => void;
|
|
99
|
+
/**
|
|
100
|
+
* 获取图像指定坐标位置的颜色
|
|
101
|
+
* @param imgData 需要进行操作的图片
|
|
102
|
+
* @param x x点坐标
|
|
103
|
+
* @param y y点坐标
|
|
104
|
+
*/
|
|
105
|
+
getAxisColor: (imgData: ImageData, x: number, y: number) => number[];
|
|
106
|
+
/**
|
|
107
|
+
* 设置图像指定坐标位置的颜色
|
|
108
|
+
* @param imgData 需要进行操作的图片
|
|
109
|
+
* @param x x点坐标
|
|
110
|
+
* @param y y点坐标
|
|
111
|
+
* @param color 颜色数组
|
|
112
|
+
*/
|
|
113
|
+
setAxisColor: (imgData: ImageData, x: number, y: number, color: Array<number>) => void;
|
|
114
|
+
/**
|
|
115
|
+
* 绘制马赛克
|
|
116
|
+
* 实现思路:
|
|
117
|
+
* 1. 获取鼠标划过路径区域的图像信息
|
|
118
|
+
* 2. 将区域内的像素点绘制成周围相近的颜色
|
|
119
|
+
* @param mouseX 当前鼠标X轴坐标
|
|
120
|
+
* @param mouseY 当前鼠标Y轴坐标
|
|
121
|
+
*/
|
|
122
|
+
drawMosaic: (ev: any) => void;
|
|
98
123
|
drawText: (ev: any) => void;
|
|
99
124
|
initPencil: (ev: any) => void;
|
|
100
125
|
drawPencil: (ev: any) => void;
|
|
@@ -19,10 +19,12 @@ type IExtra = {
|
|
|
19
19
|
getTableData: () => Promise<void>;
|
|
20
20
|
handleTableData: (records: IRecord[]) => void;
|
|
21
21
|
createTableData: (records: IRecord[]) => void;
|
|
22
|
+
createTableFullData: (records: IRecord[]) => void;
|
|
22
23
|
calcTableHeight: () => void;
|
|
23
24
|
scrollXToColumn: (dataIndex: string, index?: number) => void;
|
|
24
25
|
scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
|
|
25
26
|
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
27
|
+
setTableOriginData: (records: IRecord[]) => void;
|
|
26
28
|
setHandleState: (option: ITableRef['handleState']) => void;
|
|
27
29
|
forceUpdate: () => void;
|
|
28
30
|
setColumnsDefined: (value: boolean) => void;
|