@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.
@@ -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;
@@ -0,0 +1,9 @@
1
+ export interface FormatCountResult {
2
+ text: string;
3
+ exact?: string;
4
+ }
5
+ /**
6
+ * 将计数格式化为展示文案:小于 1 万原样,1 万及以上以 w 为单位并省略整万的 .0。
7
+ * 返回 `exact` 表示需要 tooltip 补充精确值。
8
+ */
9
+ export declare const formatCount: (n: number) => FormatCountResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/dataset-annotation",
3
- "version": "3.22.4",
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.22.4",
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",