@glodon-aiot/dataset-annotation 3.23.0-alpha.2 → 3.23.0-alpha.4

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.
@@ -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.23.0-alpha.2",
3
+ "version": "3.23.0-alpha.4",
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.23.0-alpha.2",
40
+ "@glodon-aiot/apis": "^3.23.0-alpha.4",
41
41
  "@glodon-aiot/minio": "^0.1.6",
42
42
  "@reduxjs/toolkit": "^1.9.5",
43
43
  "@types/fabric": "^5.3.2",