@glodon-aiot/dataset-annotation 3.10.0-alpha.14 → 3.10.0-alpha.15
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/VLMAnnotationDetail/MarkVLMBoxModal/AttributeDetail/index.mjs +19 -21
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/index.mjs +197 -190
- package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +68 -64
- package/dist/es/components/VLMAnnotationDetail/index.mjs +177 -174
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +2 -2
|
@@ -10,20 +10,20 @@ var M = (o, s, n) => s in o ? X(o, s, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
te.call(s, n) && M(o, n, s[n]);
|
|
11
11
|
return o;
|
|
12
12
|
}, A = (o, s) => Y(o, Z(s));
|
|
13
|
-
var E = (o, s, n) => new Promise((
|
|
13
|
+
var E = (o, s, n) => new Promise((m, h) => {
|
|
14
14
|
var l = (c) => {
|
|
15
15
|
try {
|
|
16
16
|
a(n.next(c));
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
17
|
+
} catch (p) {
|
|
18
|
+
h(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, f = (c) => {
|
|
21
21
|
try {
|
|
22
22
|
a(n.throw(c));
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
23
|
+
} catch (p) {
|
|
24
|
+
h(p);
|
|
25
25
|
}
|
|
26
|
-
}, a = (c) => c.done ?
|
|
26
|
+
}, a = (c) => c.done ? m(c.value) : Promise.resolve(c.value).then(l, f);
|
|
27
27
|
a((n = n.apply(o, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
@@ -35,14 +35,14 @@ import B from "../../../Iconfont/index.mjs";
|
|
|
35
35
|
const de = ie((o, s) => {
|
|
36
36
|
const {
|
|
37
37
|
datasetId: n,
|
|
38
|
-
versionId:
|
|
39
|
-
onAttributesChange:
|
|
38
|
+
versionId: m,
|
|
39
|
+
onAttributesChange: h,
|
|
40
40
|
onLoadingChange: l
|
|
41
41
|
} = o, {
|
|
42
42
|
services: {
|
|
43
|
-
cvforceDatahub:
|
|
43
|
+
cvforceDatahub: f
|
|
44
44
|
}
|
|
45
|
-
} = ne(oe), [a, c] = b([]), [
|
|
45
|
+
} = ne(oe), [a, c] = b([]), [p, N] = b(!1), [D, g] = b(""), [w, O] = b(!1), [R, y] = b(null), I = re(""), S = (e) => {
|
|
46
46
|
const t = [...e].sort((r, d) => r.id.localeCompare(d.id));
|
|
47
47
|
return JSON.stringify(t);
|
|
48
48
|
}, U = () => S(a) !== I.current, z = () => new Promise((e) => {
|
|
@@ -70,8 +70,8 @@ const de = ie((o, s) => {
|
|
|
70
70
|
const V = () => E(void 0, null, function* () {
|
|
71
71
|
N(!0), l == null || l(!0);
|
|
72
72
|
try {
|
|
73
|
-
if (n &&
|
|
74
|
-
const t = (yield
|
|
73
|
+
if (n && m && f) {
|
|
74
|
+
const t = (yield f.getDatasetsIdVersionsVidConfigs(n, m)) || [];
|
|
75
75
|
return c(t), I.current = S(t), t;
|
|
76
76
|
}
|
|
77
77
|
} catch (e) {
|
|
@@ -126,7 +126,7 @@ const de = ie((o, s) => {
|
|
|
126
126
|
}) : d);
|
|
127
127
|
c(r);
|
|
128
128
|
}, L = () => E(void 0, null, function* () {
|
|
129
|
-
if (!(!n || !
|
|
129
|
+
if (!(!n || !m || !f)) {
|
|
130
130
|
N(!0), l == null || l(!0);
|
|
131
131
|
try {
|
|
132
132
|
const e = a.map((r) => {
|
|
@@ -135,11 +135,11 @@ const de = ie((o, s) => {
|
|
|
135
135
|
id: (d = r.id) != null && d.startsWith("attr-") ? "" : r.id
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
-
console.log("attributes", a), yield
|
|
138
|
+
console.log("attributes", a), yield f.saveVisionLabelConfigs(n, m, {
|
|
139
139
|
data: e
|
|
140
140
|
});
|
|
141
141
|
const t = yield V();
|
|
142
|
-
C.success("保存成功"),
|
|
142
|
+
C.success("保存成功"), h == null || h(t || a);
|
|
143
143
|
} catch (e) {
|
|
144
144
|
throw console.error("保存属性列表失败:", e), C.error("保存失败"), e;
|
|
145
145
|
} finally {
|
|
@@ -209,9 +209,7 @@ const de = ie((o, s) => {
|
|
|
209
209
|
}];
|
|
210
210
|
return /* @__PURE__ */ u("div", {
|
|
211
211
|
className: "attribute-detail",
|
|
212
|
-
children: [
|
|
213
|
-
children: "加载中..."
|
|
214
|
-
}), /* @__PURE__ */ i("div", {
|
|
212
|
+
children: [/* @__PURE__ */ i("div", {
|
|
215
213
|
className: "use-tips",
|
|
216
214
|
children: /* @__PURE__ */ i("div", {
|
|
217
215
|
children: "使用须知:用户需清楚能从图纸中提取出所有类型的信息,图片中的标注信息(如“零件名称”、“规格型号”),属性定义对应全局"
|
|
@@ -329,8 +327,8 @@ const de = ie((o, s) => {
|
|
|
329
327
|
children: /* @__PURE__ */ i(T, {
|
|
330
328
|
children: /* @__PURE__ */ i(v, {
|
|
331
329
|
type: "primary",
|
|
332
|
-
loading:
|
|
333
|
-
disabled:
|
|
330
|
+
loading: p,
|
|
331
|
+
disabled: p,
|
|
334
332
|
onClick: L,
|
|
335
333
|
children: "保存"
|
|
336
334
|
})
|