next-element-vue 0.2.8 → 0.2.9

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.
@@ -59,11 +59,11 @@ declare const _default: import("vue").DefineComponent<{
59
59
  }>> & {
60
60
  [x: `on${Capitalize<any>}`]: (...args: any[]) => any;
61
61
  }, {
62
- data: unknown[];
63
- style: import("vue").CSSProperties;
64
62
  className: string;
63
+ style: import("vue").CSSProperties;
65
64
  options: Record<string, any>;
66
65
  loading: boolean;
66
+ data: unknown[];
67
67
  page: Record<string, any>;
68
68
  }, {}>;
69
69
  export default _default;
@@ -6,14 +6,25 @@ export declare const NextLabelimg: import("../../utils/install").SFCWithInstall<
6
6
  };
7
7
  style: {
8
8
  type: import("vue").PropType<import("vue").CSSProperties>;
9
- default: () => {};
9
+ default: () => {
10
+ position: string;
11
+ };
12
+ };
13
+ rowKey: {
14
+ type: StringConstructor;
15
+ default: string;
10
16
  };
11
17
  options: {
12
18
  type: ObjectConstructor;
13
- default: () => {
14
- classes: any[];
15
- list: any[];
16
- };
19
+ default: () => {};
20
+ };
21
+ classes: {
22
+ type: ArrayConstructor;
23
+ default: () => any[];
24
+ };
25
+ data: {
26
+ type: import("vue").PropType<import("./src/hooks/canvas-context-hook").RectProps[]>;
27
+ default: () => any[];
17
28
  };
18
29
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "save" | "prev-click" | "next-click")[], "change" | "save" | "prev-click" | "next-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
30
  className: {
@@ -22,14 +33,25 @@ export declare const NextLabelimg: import("../../utils/install").SFCWithInstall<
22
33
  };
23
34
  style: {
24
35
  type: import("vue").PropType<import("vue").CSSProperties>;
25
- default: () => {};
36
+ default: () => {
37
+ position: string;
38
+ };
39
+ };
40
+ rowKey: {
41
+ type: StringConstructor;
42
+ default: string;
26
43
  };
27
44
  options: {
28
45
  type: ObjectConstructor;
29
- default: () => {
30
- classes: any[];
31
- list: any[];
32
- };
46
+ default: () => {};
47
+ };
48
+ classes: {
49
+ type: ArrayConstructor;
50
+ default: () => any[];
51
+ };
52
+ data: {
53
+ type: import("vue").PropType<import("./src/hooks/canvas-context-hook").RectProps[]>;
54
+ default: () => any[];
33
55
  };
34
56
  }>> & {
35
57
  onChange?: (...args: any[]) => any;
@@ -39,6 +61,58 @@ export declare const NextLabelimg: import("../../utils/install").SFCWithInstall<
39
61
  }, {
40
62
  className: string;
41
63
  style: import("vue").CSSProperties;
64
+ rowKey: string;
42
65
  options: Record<string, any>;
66
+ classes: unknown[];
67
+ data: import("./src/hooks/canvas-context-hook").RectProps[];
68
+ }, {}>> & Record<string, any>;
69
+ export declare const NextLabelimgPreview: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
70
+ className: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ style: {
75
+ type: import("vue").PropType<import("vue").CSSProperties>;
76
+ default: () => {};
77
+ };
78
+ src: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ classes: {
83
+ type: ArrayConstructor;
84
+ default: () => any[];
85
+ };
86
+ labels: {
87
+ type: ArrayConstructor;
88
+ default: () => any[];
89
+ };
90
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
91
+ className: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ style: {
96
+ type: import("vue").PropType<import("vue").CSSProperties>;
97
+ default: () => {};
98
+ };
99
+ src: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ classes: {
104
+ type: ArrayConstructor;
105
+ default: () => any[];
106
+ };
107
+ labels: {
108
+ type: ArrayConstructor;
109
+ default: () => any[];
110
+ };
111
+ }>>, {
112
+ className: string;
113
+ style: import("vue").CSSProperties;
114
+ classes: unknown[];
115
+ src: string;
116
+ labels: unknown[];
43
117
  }, {}>> & Record<string, any>;
44
118
  export default NextLabelimg;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ mainContentHeight: number;
3
+ };
4
+ export default _default;
@@ -27,8 +27,9 @@ export interface DrawBaseCanvasProps extends CreateRectCanvasProps {
27
27
  ctx: CanvasRenderingContext2D;
28
28
  image: HTMLImageElement;
29
29
  labels: RectProps[];
30
+ scaleFactor?: number;
30
31
  }
31
- export declare const DrawRectCanvas: (canvas: HTMLCanvasElement, callback?: Function) => {
32
+ export declare const DrawRectCanvas: (canvas: HTMLCanvasElement, callback?: Function, keyW?: Function) => {
32
33
  canvas: HTMLCanvasElement;
33
34
  ctx: CanvasRenderingContext2D;
34
35
  clearCanvas: () => void;
@@ -40,6 +41,12 @@ export declare const DrawBaseCanvas: (options: DrawBaseCanvasProps) => {
40
41
  addDrawRect: (rect: RectProps, color?: string) => void;
41
42
  hitCanvasLabel: (x: number, y: number) => any;
42
43
  };
44
+ /**
45
+ * 根据比例重新设置标注框位置和大小
46
+ * @param labels
47
+ * @returns
48
+ */
49
+ export declare const formatCanvasLabelScale: (labels: RectProps[], canvasHeight: number) => RectProps[];
43
50
  export declare const convertToLabel: (rect: RectProps) => number[];
44
51
  export declare const canvertToCanvas: (labelData: number[], canvasWidth: number, canvasHeight: number) => {
45
52
  type: number;
@@ -6,14 +6,25 @@ declare const _default: import("vue").DefineComponent<{
6
6
  };
7
7
  style: {
8
8
  type: PropType<CSSProperties>;
9
- default: () => {};
9
+ default: () => {
10
+ position: string;
11
+ };
12
+ };
13
+ rowKey: {
14
+ type: StringConstructor;
15
+ default: string;
10
16
  };
11
17
  options: {
12
18
  type: ObjectConstructor;
13
- default: () => {
14
- classes: any[];
15
- list: any[];
16
- };
19
+ default: () => {};
20
+ };
21
+ classes: {
22
+ type: ArrayConstructor;
23
+ default: () => any[];
24
+ };
25
+ data: {
26
+ type: PropType<any[]>;
27
+ default: () => any[];
17
28
  };
18
29
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "save" | "prev-click" | "next-click")[], "change" | "save" | "prev-click" | "next-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
30
  className: {
@@ -22,14 +33,25 @@ declare const _default: import("vue").DefineComponent<{
22
33
  };
23
34
  style: {
24
35
  type: PropType<CSSProperties>;
25
- default: () => {};
36
+ default: () => {
37
+ position: string;
38
+ };
39
+ };
40
+ rowKey: {
41
+ type: StringConstructor;
42
+ default: string;
26
43
  };
27
44
  options: {
28
45
  type: ObjectConstructor;
29
- default: () => {
30
- classes: any[];
31
- list: any[];
32
- };
46
+ default: () => {};
47
+ };
48
+ classes: {
49
+ type: ArrayConstructor;
50
+ default: () => any[];
51
+ };
52
+ data: {
53
+ type: PropType<any[]>;
54
+ default: () => any[];
33
55
  };
34
56
  }>> & {
35
57
  onChange?: (...args: any[]) => any;
@@ -39,6 +61,9 @@ declare const _default: import("vue").DefineComponent<{
39
61
  }, {
40
62
  className: string;
41
63
  style: CSSProperties;
64
+ rowKey: string;
42
65
  options: Record<string, any>;
66
+ classes: unknown[];
67
+ data: any[];
43
68
  }, {}>;
44
69
  export default _default;
@@ -0,0 +1,51 @@
1
+ import type { PropType, CSSProperties } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ className: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ style: {
8
+ type: PropType<CSSProperties>;
9
+ default: () => {};
10
+ };
11
+ src: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ classes: {
16
+ type: ArrayConstructor;
17
+ default: () => any[];
18
+ };
19
+ labels: {
20
+ type: ArrayConstructor;
21
+ default: () => any[];
22
+ };
23
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ className: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ style: {
29
+ type: PropType<CSSProperties>;
30
+ default: () => {};
31
+ };
32
+ src: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ classes: {
37
+ type: ArrayConstructor;
38
+ default: () => any[];
39
+ };
40
+ labels: {
41
+ type: ArrayConstructor;
42
+ default: () => any[];
43
+ };
44
+ }>>, {
45
+ className: string;
46
+ style: CSSProperties;
47
+ src: string;
48
+ classes: unknown[];
49
+ labels: unknown[];
50
+ }, {}>;
51
+ export default _default;
@@ -3,21 +3,32 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: ArrayConstructor;
4
4
  default: () => any[];
5
5
  };
6
+ contextClientHeight: {
7
+ type: NumberConstructor;
8
+ default: any;
9
+ };
6
10
  rowInfo: {
7
11
  type: ObjectConstructor;
8
12
  default: () => {};
9
13
  };
10
- }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  classes: {
12
16
  type: ArrayConstructor;
13
17
  default: () => any[];
14
18
  };
19
+ contextClientHeight: {
20
+ type: NumberConstructor;
21
+ default: any;
22
+ };
15
23
  rowInfo: {
16
24
  type: ObjectConstructor;
17
25
  default: () => {};
18
26
  };
19
- }>>, {
27
+ }>> & {
28
+ onChange?: (...args: any[]) => any;
29
+ }, {
20
30
  classes: unknown[];
31
+ contextClientHeight: number;
21
32
  rowInfo: Record<string, any>;
22
33
  }, {}>;
23
34
  export default _default;
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: PropType<RectProps>;
10
10
  default: () => {};
11
11
  };
12
+ color: {
13
+ type: StringConstructor;
14
+ default: any;
15
+ };
12
16
  }, {
13
17
  onMousedown: (e: MouseEvent) => void;
14
18
  onMouseup: (e: MouseEvent) => void;
@@ -33,11 +37,16 @@ declare const _default: import("vue").DefineComponent<{
33
37
  type: PropType<RectProps>;
34
38
  default: () => {};
35
39
  };
40
+ color: {
41
+ type: StringConstructor;
42
+ default: any;
43
+ };
36
44
  }>> & {
37
45
  "onDraggle-resize"?: (...args: any[]) => any;
38
46
  onContextmenu?: (...args: any[]) => any;
39
47
  }, {
40
48
  parentEl: HTMLElement;
41
49
  rect: RectProps;
50
+ color: string;
42
51
  }, {}>;
43
52
  export default _default;
@@ -0,0 +1,28 @@
1
+ import type { PropType } from 'vue';
2
+ import type { RectProps } from '../hooks/canvas-context-hook';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ classes: {
5
+ type: ArrayConstructor;
6
+ default: () => any[];
7
+ };
8
+ labels: {
9
+ type: PropType<RectProps[]>;
10
+ default: () => any[];
11
+ };
12
+ }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "select")[], "delete" | "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ classes: {
14
+ type: ArrayConstructor;
15
+ default: () => any[];
16
+ };
17
+ labels: {
18
+ type: PropType<RectProps[]>;
19
+ default: () => any[];
20
+ };
21
+ }>> & {
22
+ onDelete?: (...args: any[]) => any;
23
+ onSelect?: (...args: any[]) => any;
24
+ }, {
25
+ classes: unknown[];
26
+ labels: RectProps[];
27
+ }, {}>;
28
+ export default _default;
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  };
19
19
  }, {
20
20
  t: import("packages/hooks").Translator;
21
+ elementInstance: import("vue").Ref<HTMLElement>;
21
22
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
23
  className: {
23
24
  type: StringConstructor;
@@ -68,6 +68,8 @@ declare const _default: {
68
68
  };
69
69
  labelimg: {
70
70
  saveTxt: string;
71
+ emptyLabelText: string;
72
+ confirmDeleteLabel: string;
71
73
  };
72
74
  };
73
75
  };
@@ -68,6 +68,8 @@ declare const _default: {
68
68
  };
69
69
  labelimg: {
70
70
  saveTxt: string;
71
+ emptyLabelText: string;
72
+ confirmDeleteLabel: string;
71
73
  };
72
74
  };
73
75
  };
@@ -68,6 +68,8 @@ declare const _default: {
68
68
  };
69
69
  labelimg: {
70
70
  saveTxt: string;
71
+ emptyLabelText: string;
72
+ confirmDeleteLabel: string;
71
73
  };
72
74
  };
73
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-element-vue",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "author": {
5
5
  "name": "huangteng",
6
6
  "email": "htengweb@163.com"