@glodon-aiot/dataset-annotation 3.10.0-alpha.24 → 3.10.0-alpha.26

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.
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { Category, ILabel, ISample } from '@glodon-aiot/apis';
3
+ import { LabelItem } from '../../../DetectionImageAnnotation';
4
+ interface ImageDetailProps {
5
+ currentSample?: ISample;
6
+ onNextClick?: VoidFunction;
7
+ onPrevClick?: VoidFunction;
8
+ labels?: ILabel[];
9
+ onRefresh?: VoidFunction;
10
+ onChange?: (sample: ISample) => void;
11
+ readonly?: boolean;
12
+ categories: Category[];
13
+ renderLabelItem?: (label: LabelItem) => string;
14
+ }
15
+ declare const ImageDetail: React.FC<ImageDetailProps>;
16
+ export default ImageDetail;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { OCRLabel } from './LabelEditorItem';
3
+ interface LabelEditorInputProps {
4
+ value?: Partial<OCRLabel>;
5
+ selected?: boolean;
6
+ holdingLabel?: OCRLabel;
7
+ clearHoldingLabel?: VoidFunction;
8
+ onChange?: (value: OCRLabel) => void;
9
+ onSelect?: (value?: Partial<OCRLabel>) => void;
10
+ }
11
+ declare const LabelEditorInput: FC<LabelEditorInputProps>;
12
+ export default LabelEditorInput;
@@ -0,0 +1,21 @@
1
+ import { FC } from 'react';
2
+ export interface OCRLabel {
3
+ uuid: string;
4
+ box: [number, number][];
5
+ words: string;
6
+ type?: string;
7
+ catagoryId?: string;
8
+ }
9
+ interface LabelEditorItemProps {
10
+ name: string;
11
+ catagoryId: string;
12
+ values: OCRLabel[];
13
+ selectedLabel?: OCRLabel;
14
+ holdingLabel?: OCRLabel;
15
+ clearHoldingLabel?: VoidFunction;
16
+ onChange: (values: OCRLabel[]) => void;
17
+ onRemove: (label: OCRLabel) => void;
18
+ onSelect?: (value?: Partial<OCRLabel>) => void;
19
+ }
20
+ declare const LabelEditorItem: FC<LabelEditorItemProps>;
21
+ export default LabelEditorItem;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { OCRLabel } from './LabelEditorItem';
3
+ import { Category } from '@glodon-aiot/apis';
4
+ interface LabelEditorProps {
5
+ category: Category;
6
+ selectedLabel?: OCRLabel;
7
+ holdingLabel?: OCRLabel;
8
+ type?: OCRLabel[];
9
+ value?: OCRLabel[];
10
+ clearHoldingLabel?: VoidFunction;
11
+ onChange: (type: OCRLabel[], value: OCRLabel[]) => void;
12
+ onRemove: (label: OCRLabel) => void;
13
+ onSelect?: (value?: Partial<OCRLabel>) => void;
14
+ }
15
+ declare const LabelEditor: FC<LabelEditorProps>;
16
+ export default LabelEditor;
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ import { OCRLabel } from './LabelEditorItem';
3
+ import { LabelItem } from '../../../DetectionImageAnnotation';
4
+ interface Category {
5
+ id: string;
6
+ name: string;
7
+ }
8
+ interface OCRBoxMakerProps {
9
+ disabled?: boolean;
10
+ id: string;
11
+ imageUrl: string;
12
+ canvasElement: HTMLCanvasElement | null;
13
+ categories: Category[];
14
+ labels: OCRLabel[];
15
+ onChange: (labels: OCRLabel[]) => void;
16
+ renderLabelItem?: (label: LabelItem) => string;
17
+ }
18
+ declare const OCRBoxMaker: FC<OCRBoxMakerProps>;
19
+ export default OCRBoxMaker;
@@ -6,6 +6,7 @@ interface ImageDetailModalProps {
6
6
  record: ISample;
7
7
  onNextClick: VoidFunction;
8
8
  onPrevClick: VoidFunction;
9
+ listLoading?: boolean;
9
10
  datasetId?: string;
10
11
  versionId?: string;
11
12
  ocrMarkTmpl?: string;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * 兼容React 17和React 18的渲染函数
4
+ */
5
+ export declare function compatibleRender(element: React.ReactElement, container: Element, callback?: () => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/dataset-annotation",
3
- "version": "3.10.0-alpha.24",
3
+ "version": "3.10.0-alpha.26",
4
4
  "module": "./dist/es/index.mjs",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@ant-design/icons": "^5.3.4",
39
39
  "@aws-crypto/sha256-js": "^3.0.0",
40
- "@glodon-aiot/apis": "^3.10.0-alpha.24",
40
+ "@glodon-aiot/apis": "^3.10.0-alpha.26",
41
41
  "@glodon-aiot/minio": "^0.1.6",
42
42
  "@reduxjs/toolkit": "^1.9.5",
43
43
  "@types/fabric": "^5.3.2",