@glodon-aiot/dataset-annotation 3.1.0-beta.15 → 3.2.1
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/dataset-annotation.js +123591 -0
- package/dist/dataset-annotation.umd.cjs +1017 -0
- package/dist/example/DatasetAnnotationDemo.d.ts +3 -0
- package/dist/example/DemoTabs.d.ts +3 -0
- package/dist/example/DetectionDatasetDemo.d.ts +5 -0
- package/dist/example/DetectionImageDemo.d.ts +5 -0
- package/dist/example/OcrDatasetDemo.d.ts +5 -0
- package/dist/example/OcrImageDemo.d.ts +5 -0
- package/dist/example/OcrkvcDatasetDemo.d.ts +5 -0
- package/dist/example/constant.local.d.ts +6 -0
- package/dist/example/index.d.ts +1 -0
- package/dist/src/Common/Page/index.d.ts +2 -1
- package/dist/src/Common/PageHeader/index.d.ts +1 -0
- package/dist/src/DatasetContext/index.d.ts +4 -3
- package/dist/src/components/CompositionInput/index.d.ts +2 -2
- package/dist/src/components/DataEmpty/index.d.ts +2 -1
- package/dist/src/components/DetectionAnnotation/PreSamplesPage/index.d.ts +2 -1
- package/dist/src/components/DetectionAnnotation/components/DisabledTooltip/index.d.ts +2 -2
- package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +2 -1
- package/dist/src/components/DetectionAnnotation/components/LabelMaker/Drawable.d.ts +2 -2
- package/dist/src/components/DetectionAnnotation/components/LabelMaker/RectLabel.d.ts +2 -2
- package/dist/src/components/DetectionAnnotation/components/LabelMaker/index.d.ts +1 -0
- package/dist/src/components/DetectionAnnotation/components/Labels/index.d.ts +1 -0
- package/dist/src/components/DetectionAnnotation/components/TagItem/index.d.ts +2 -1
- package/dist/src/components/DetectionAnnotation/index.d.ts +2 -1
- package/dist/src/components/DetectionImageAnnotation/index.d.ts +2 -0
- package/dist/src/components/Iconfont/index.d.ts +1 -1
- package/dist/src/components/MarkDescriptions/index.d.ts +1 -0
- package/dist/src/components/OCRImageViewer/index.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorInput.d.ts +2 -2
- package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorItem.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LableEditor.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/MarkKVOCRModal/index.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/ImageDetail/index.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LabelEditorInput.d.ts +2 -2
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LabelEditorItem.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LableEditor.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/index.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/index.d.ts +1 -0
- package/dist/src/components/OcrAnnotation/OcrModal/index.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/PreLabelOCR/PreLabelModal.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/PreLabelOCR/index.d.ts +2 -1
- package/dist/src/components/OcrAnnotation/index.d.ts +2 -1
- package/dist/src/components/OcrImageAnnotation/index.d.ts +2 -0
- package/dist/src/components/PageNav/index.d.ts +2 -1
- package/dist/src/components/PicZipImportModal/index.d.ts +2 -1
- package/dist/src/components/PreLabelOCR/PreLabelModal.d.ts +2 -1
- package/dist/src/components/PreLabelOCR/index.d.ts +2 -1
- package/dist/src/components/ScanTable/index.d.ts +2 -1
- package/dist/src/components/Thumbnail/index.d.ts +2 -1
- package/dist/src/components/hooks/useBlocker.d.ts +1 -1
- package/dist/src/featuresConfig.d.ts +1 -1
- package/package.json +15 -22
- package/dist/es/Common/Page/index.mjs +0 -28
- package/dist/es/Common/PageContent/index.mjs +0 -18
- package/dist/es/Common/PageHeader/index.mjs +0 -38
- package/dist/es/DatasetContext/index.mjs +0 -11
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -6
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/access/images/data_empty.svg.mjs +0 -4
- package/dist/es/components/CompositionInput/index.mjs +0 -53
- package/dist/es/components/DataEmpty/index.mjs +0 -50
- package/dist/es/components/DetectionAnnotation/PreSamplesPage/index.mjs +0 -291
- package/dist/es/components/DetectionAnnotation/components/DisabledTooltip/index.mjs +0 -23
- package/dist/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +0 -165
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/Drawable.mjs +0 -51
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/FabricCustomize.mjs +0 -42
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/RectLabel.mjs +0 -283
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/icons/delete-icon.svg.mjs +0 -4
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/index.mjs +0 -314
- package/dist/es/components/DetectionAnnotation/components/Labels/index.mjs +0 -200
- package/dist/es/components/DetectionAnnotation/components/TagItem/index.mjs +0 -143
- package/dist/es/components/DetectionAnnotation/icon_item_empty.svg.mjs +0 -4
- package/dist/es/components/DetectionAnnotation/index.mjs +0 -712
- package/dist/es/components/DetectionImageAnnotation/index.mjs +0 -61
- package/dist/es/components/Iconfont/index.mjs +0 -16
- package/dist/es/components/MarkDescriptions/index.mjs +0 -65
- package/dist/es/components/OCRImageViewer/index.mjs +0 -212
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/CategoryDrawer.mjs +0 -136
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorInput.mjs +0 -57
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorItem.mjs +0 -72
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LableEditor.mjs +0 -54
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/index.mjs +0 -366
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/index.mjs +0 -254
- package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/ImageDetail/index.mjs +0 -100
- package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/images/delete.png.mjs +0 -4
- package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/index.mjs +0 -755
- package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/index.mjs +0 -230
- package/dist/es/components/OcrAnnotation/OcrModal/index.mjs +0 -179
- package/dist/es/components/OcrAnnotation/PreLabelOCR/PreLabelModal.mjs +0 -280
- package/dist/es/components/OcrAnnotation/PreLabelOCR/index.mjs +0 -43
- package/dist/es/components/OcrAnnotation/constant.mjs +0 -5
- package/dist/es/components/OcrAnnotation/index.mjs +0 -381
- package/dist/es/components/OcrImageAnnotation/index.mjs +0 -39
- package/dist/es/components/PageNav/index.mjs +0 -29
- package/dist/es/components/PicZipImportModal/index.mjs +0 -583
- package/dist/es/components/PicZipImportModal/pic_zip.svg.mjs +0 -4
- package/dist/es/components/PicZipImportModal/pic_zip_json.svg.mjs +0 -4
- package/dist/es/components/PreLabelOCR/PreLabelModal.mjs +0 -275
- package/dist/es/components/PreLabelOCR/index.mjs +0 -43
- package/dist/es/components/ScanTable/index.mjs +0 -96
- package/dist/es/components/Thumbnail/default.png.mjs +0 -4
- package/dist/es/components/Thumbnail/index.mjs +0 -30
- package/dist/es/components/hooks/Prompt.mjs +0 -33
- package/dist/es/constant.mjs +0 -13
- package/dist/es/createDatasetAnnotation/index.mjs +0 -133
- package/dist/es/createDetectionDatasetAnnotation/index.mjs +0 -129
- package/dist/es/createDetectionImageAnnotation/index.mjs +0 -31
- package/dist/es/createOcrDatasetAnnotation/index.mjs +0 -129
- package/dist/es/createOcrImageAnnotation/index.mjs +0 -33
- package/dist/es/featuresConfig.mjs +0 -79
- package/dist/es/index.mjs +0 -35
- package/dist/es/node_modules/classnames/index.mjs +0 -42
- package/dist/es/utils/color.mjs +0 -30
- package/dist/es/utils/index.mjs +0 -22
- package/dist/es/utils/sign.mjs +0 -33
- package/dist/lib/index.js +0 -7
- package/dist/src/components/Iconfont/font_3140028_iptomfpgyu.d.ts +0 -0
- package/dist/src/components/Iconfont/font_3454453_gu5ijeufyng.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4108228_3slzqhoow93.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_k3mjwv7kzfd.d.ts +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../_virtual/index.mjs";
|
|
3
|
-
/*!
|
|
4
|
-
Copyright (c) 2018 Jed Watson.
|
|
5
|
-
Licensed under the MIT License (MIT), see
|
|
6
|
-
http://jedwatson.github.io/classnames
|
|
7
|
-
*/
|
|
8
|
-
(function(s) {
|
|
9
|
-
(function() {
|
|
10
|
-
var f = {}.hasOwnProperty;
|
|
11
|
-
function e() {
|
|
12
|
-
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
13
|
-
var n = arguments[r];
|
|
14
|
-
n && (t = o(t, a(n)));
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
}
|
|
18
|
-
function a(t) {
|
|
19
|
-
if (typeof t == "string" || typeof t == "number")
|
|
20
|
-
return t;
|
|
21
|
-
if (typeof t != "object")
|
|
22
|
-
return "";
|
|
23
|
-
if (Array.isArray(t))
|
|
24
|
-
return e.apply(null, t);
|
|
25
|
-
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
26
|
-
return t.toString();
|
|
27
|
-
var r = "";
|
|
28
|
-
for (var n in t)
|
|
29
|
-
f.call(t, n) && t[n] && (r = o(r, n));
|
|
30
|
-
return r;
|
|
31
|
-
}
|
|
32
|
-
function o(t, r) {
|
|
33
|
-
return r ? t ? t + " " + r : t + r : t;
|
|
34
|
-
}
|
|
35
|
-
s.exports ? (e.default = e, s.exports = e) : window.classNames = e;
|
|
36
|
-
})();
|
|
37
|
-
})(i);
|
|
38
|
-
var p = i.exports;
|
|
39
|
-
const m = /* @__PURE__ */ u(p);
|
|
40
|
-
export {
|
|
41
|
-
m as default
|
|
42
|
-
};
|
package/dist/es/utils/color.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function s(t, a = "array") {
|
|
2
|
-
var e = t.toLowerCase(), n = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
3
|
-
if (e && n.test(e)) {
|
|
4
|
-
if (e.length === 4) {
|
|
5
|
-
for (var f = "#", r = 1; r < 4; r += 1)
|
|
6
|
-
f += e.slice(r, r + 1).concat(e.slice(r, r + 1));
|
|
7
|
-
e = f;
|
|
8
|
-
}
|
|
9
|
-
for (var o = [], r = 1; r < 7; r += 2)
|
|
10
|
-
o.push(parseInt("0x" + e.slice(r, r + 2)));
|
|
11
|
-
return a === "array" ? o : "rgb(" + o.join(",") + ")";
|
|
12
|
-
} else
|
|
13
|
-
throw "只接受十六进制颜色值";
|
|
14
|
-
}
|
|
15
|
-
function c(t) {
|
|
16
|
-
if (/^(rgb|RGB)/.test(t)) {
|
|
17
|
-
var a = t.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
18
|
-
return a;
|
|
19
|
-
} else
|
|
20
|
-
throw "只接受rgb颜色值字符串";
|
|
21
|
-
}
|
|
22
|
-
function i(t) {
|
|
23
|
-
var a = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
24
|
-
return typeof t == "string" ? a.test(t) ? s(t) : c(t) : t;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
i as formatColorToArray,
|
|
28
|
-
s as hexToRgb,
|
|
29
|
-
c as rgbStringToArray
|
|
30
|
-
};
|
package/dist/es/utils/index.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { decode as n } from "js-base64";
|
|
2
|
-
const r = (x) => JSON.parse(n(x.split(".")[1])), s = (x) => {
|
|
3
|
-
const e = r(x).exp;
|
|
4
|
-
return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= e;
|
|
5
|
-
}, B = ["#FF6B3B", "#FFC100", "#9FB40F", "#76523B", "#DAD5B5", "#0E8E89", "#E19348", "#E19348", "#247FEA", "#2BCB95", "#B1ABF4", "#1D42C2", "#1D9ED1", "#D64BC0", "#255634", "#8C8C47", "#8CDAE5", "#8E283B", "#791DC9", "#025DF4", "#DB6BCF", "#2498D1", "#BBBDE6", "#4045B2", "#21A97A", "#FF745A", "#007E99", "#FFA8A8", "#2391FF", "#FFC328", "#A0DC2C", "#946DFF", "#626681", "#EB4185", "#CD8150", "#36BCCB", "#327039", "#803488", "#83BC99", "#626681"], F = (x) => {
|
|
6
|
-
const e = x.substring(x.lastIndexOf(".")).toLowerCase();
|
|
7
|
-
return x.slice(0, x.lastIndexOf(".")) + e;
|
|
8
|
-
}, C = (x, e, t = 1e-11) => Math.abs(x - e) < t;
|
|
9
|
-
function c() {
|
|
10
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(x) {
|
|
11
|
-
const e = Math.random() * 16 | 0;
|
|
12
|
-
return (x == "x" ? e : e & 3 | 8).toString(16);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
C as approxeq,
|
|
17
|
-
F as fileSuffixToLowerCase,
|
|
18
|
-
c as getUuid,
|
|
19
|
-
s as isExpired,
|
|
20
|
-
r as parseJWT,
|
|
21
|
-
B as tagColors
|
|
22
|
-
};
|
package/dist/es/utils/sign.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var g = (e, t, n) => new Promise((s, r) => {
|
|
2
|
-
var c = (i) => {
|
|
3
|
-
try {
|
|
4
|
-
h(n.next(i));
|
|
5
|
-
} catch (o) {
|
|
6
|
-
r(o);
|
|
7
|
-
}
|
|
8
|
-
}, u = (i) => {
|
|
9
|
-
try {
|
|
10
|
-
h(n.throw(i));
|
|
11
|
-
} catch (o) {
|
|
12
|
-
r(o);
|
|
13
|
-
}
|
|
14
|
-
}, h = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(c, u);
|
|
15
|
-
h((n = n.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { Sha256 as m } from "@aws-crypto/sha256-js";
|
|
18
|
-
const f = (e) => Buffer.from(e).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"), $ = (e) => Buffer.from(e, "hex"), x = (e, t, n) => {
|
|
19
|
-
const s = new m($(t));
|
|
20
|
-
return s.update($(n)), s.update(e), s.digest();
|
|
21
|
-
}, w = (e, t, n) => new Promise((s, r) => {
|
|
22
|
-
x(e, t, n).then((c) => {
|
|
23
|
-
s(f(c));
|
|
24
|
-
}, r);
|
|
25
|
-
}), b = (e, t) => g(void 0, null, function* () {
|
|
26
|
-
const n = t.prefix, s = e.substring(e.lastIndexOf(".") + 1), r = t != null && t.width ? `/rs:fit:${t.width}:0/${f(e)}.${s}` : `/${f(e)}.${s}`, c = yield w(r, t.key, t.salt);
|
|
27
|
-
return `${n}/${c}${r}`;
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
b as getThumbnailtUrl,
|
|
31
|
-
x as hash,
|
|
32
|
-
w as sign
|
|
33
|
-
};
|