@glodon-aiot/dataset-annotation 3.10.0-alpha.20 → 3.10.0-alpha.21

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.
@@ -393,8 +393,7 @@ const {
393
393
  onChange: (e) => {
394
394
  console.log("VLMAnnotation onChange", e), w.current = e, E(e);
395
395
  },
396
- ocrRecognize: Ve,
397
- coordinateType: "center"
396
+ ocrRecognize: Ve
398
397
  })
399
398
  }), g === "attributeDefinition" && /* @__PURE__ */ c(je, {
400
399
  ref: G,
@@ -1,18 +1,18 @@
1
- var k = (f, o, i) => new Promise((c, r) => {
1
+ var k = (f, o, l) => new Promise((c, r) => {
2
2
  var m = (a) => {
3
3
  try {
4
- s(i.next(a));
4
+ s(l.next(a));
5
5
  } catch (d) {
6
6
  r(d);
7
7
  }
8
- }, l = (a) => {
8
+ }, i = (a) => {
9
9
  try {
10
- s(i.throw(a));
10
+ s(l.throw(a));
11
11
  } catch (d) {
12
12
  r(d);
13
13
  }
14
- }, s = (a) => a.done ? c(a.value) : Promise.resolve(a.value).then(m, l);
15
- s((i = i.apply(f, o)).next());
14
+ }, s = (a) => a.done ? c(a.value) : Promise.resolve(a.value).then(m, i);
15
+ s((l = l.apply(f, o)).next());
16
16
  });
17
17
  import { jsxs as u, jsx as e } from "react/jsx-runtime";
18
18
  import { useRef as y, useState as h, useContext as R, useEffect as O } from "react";
@@ -25,11 +25,11 @@ import N from "../../Iconfont/index.mjs";
25
25
  const G = (f) => {
26
26
  const {
27
27
  isVlmModalVisible: o,
28
- setIsVlmModalVisible: i,
28
+ setIsVlmModalVisible: l,
29
29
  record: c,
30
30
  onNextClick: r,
31
31
  onPrevClick: m,
32
- datasetId: l,
32
+ datasetId: i,
33
33
  versionId: s,
34
34
  ocrMarkTmpl: a,
35
35
  handleMarkClick: d,
@@ -55,19 +55,19 @@ const G = (f) => {
55
55
  }), M("leftarrow", () => {
56
56
  m();
57
57
  }), O(() => {
58
- o && l && s && (n == null || n.getDatasetsIdVersionsVidSsamplesSid(l, s, c.id).then((j) => {
58
+ o && i && s && (n == null || n.getDatasetsIdVersionsVidSsamplesSid(i, s, c.id).then((j) => {
59
59
  I(j);
60
60
  }));
61
61
  }, [o, c]);
62
62
  const w = () => {
63
- i(!1);
63
+ l(!1);
64
64
  }, S = () => {
65
65
  v.confirm({
66
66
  title: "确认要删除此数据吗?",
67
67
  content: "删除后不可恢复,请慎重操作",
68
68
  onOk: () => {
69
- !l || !s || !(t != null && t.id) || n == null || n.delDatasetsIdVersionsVidSamplesId(l, s, t.id).then(() => {
70
- g.success("删除成功"), i(!1), V();
69
+ !i || !s || !(t != null && t.id) || n == null || n.delDatasetsIdVersionsVidSamplesId(i, s, t.id).then(() => {
70
+ g.success("删除成功"), l(!1), V();
71
71
  }).catch(() => g.error("删除失败"));
72
72
  }
73
73
  });
@@ -109,8 +109,7 @@ const G = (f) => {
109
109
  readOnly: !0,
110
110
  ocrRecognize: () => k(void 0, null, function* () {
111
111
  return [];
112
- }),
113
- coordinateType: "center"
112
+ })
114
113
  })
115
114
  }), /* @__PURE__ */ e(p, {
116
115
  className: "select-next",