@glodon-aiot/dataset-annotation 3.22.4 → 3.23.0-alpha.3
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/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +93 -95
- package/dist/es/components/DetectionAnnotation/components/ImageModal/index.mjs +94 -85
- package/dist/es/components/DetectionAnnotation/components/Labels/index.mjs +148 -119
- package/dist/es/components/DetectionAnnotation/hooks/useSamplePreload.mjs +40 -0
- package/dist/es/components/DetectionAnnotation/index.mjs +466 -433
- package/dist/es/components/DetectionAnnotation/utils/imagePreloader.mjs +71 -0
- package/dist/es/index.mjs +1 -1
- package/dist/es/utils/formatCount.mjs +12 -0
- package/dist/lib/index.js +4 -4
- package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +1 -1
- package/dist/src/components/DetectionAnnotation/components/ImageModal/index.d.ts +3 -0
- package/dist/src/components/DetectionAnnotation/components/Labels/index.d.ts +2 -0
- package/dist/src/utils/formatCount.d.ts +9 -0
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ interface ImageDetailProps {
|
|
|
21
21
|
readonly?: boolean;
|
|
22
22
|
showLabelList?: boolean | ILabel[];
|
|
23
23
|
renderLabelItem?: (label: LabelItem) => string;
|
|
24
|
-
onLoadingChange?: (loading: boolean) => void;
|
|
24
|
+
onLoadingChange?: (loading: boolean, fileUrl?: string) => void;
|
|
25
25
|
}
|
|
26
26
|
declare const ImageDetail: React.FC<ImageDetailProps>;
|
|
27
27
|
export default ImageDetail;
|
|
@@ -23,6 +23,9 @@ interface ImageDetailProps {
|
|
|
23
23
|
showLabelList?: boolean | ILabel[];
|
|
24
24
|
renderLabelItem?: (label: LabelItem) => string;
|
|
25
25
|
onEnterEdit?: VoidFunction;
|
|
26
|
+
onBackToDetail?: (confirmStatus?: number) => void;
|
|
27
|
+
/** 上抛主图的加载状态与对应图片地址,需传入稳定的引用,避免重复触发 */
|
|
28
|
+
onLoadingChange?: (loading: boolean, fileUrl?: string) => void;
|
|
26
29
|
filterItems?: TabsProps['items'];
|
|
27
30
|
filterMode?: string;
|
|
28
31
|
onFilterChange?: (key: string) => void;
|
|
@@ -7,6 +7,8 @@ interface LabelsProps {
|
|
|
7
7
|
showZero?: boolean;
|
|
8
8
|
selectMode?: 'multiple' | 'single';
|
|
9
9
|
shortcut?: boolean;
|
|
10
|
+
/** 数据列表页展示「标注框数 / 图片数」与表头;详情/标注态的快捷键面板不传 */
|
|
11
|
+
showStatColumns?: boolean;
|
|
10
12
|
onItemClick?: (label: Label) => VoidFunction;
|
|
11
13
|
onSelectedChange?: (selected: Label[]) => void;
|
|
12
14
|
onRefresh?: VoidFunction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/dataset-annotation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0-alpha.3",
|
|
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.
|
|
40
|
+
"@glodon-aiot/apis": "^3.23.0-alpha.3",
|
|
41
41
|
"@glodon-aiot/minio": "^0.1.6",
|
|
42
42
|
"@reduxjs/toolkit": "^1.9.5",
|
|
43
43
|
"@types/fabric": "^5.3.2",
|