@servantcdh/ez-planet-labeling 0.4.4 → 0.4.5
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/index.js +24 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -231,14 +231,14 @@ function bt(e) {
|
|
|
231
231
|
rowIndex: g
|
|
232
232
|
})), p = o.map((g) => {
|
|
233
233
|
const L = C.map((E) => {
|
|
234
|
-
const D = e.rows[E.rowIndex ?? 0], v = D ? D[g] ?? null : null,
|
|
234
|
+
const D = e.rows[E.rowIndex ?? 0], v = E.rowIndex ?? 0, H = D ? D[g] ?? null : null, w = D && typeof D.elementId == "string" && D.elementId.length > 0 ? D.elementId : `row-${v}`;
|
|
235
235
|
return {
|
|
236
236
|
axisKey: E.key,
|
|
237
|
-
rowIndex:
|
|
237
|
+
rowIndex: v,
|
|
238
238
|
columnId: g,
|
|
239
|
-
elementId:
|
|
240
|
-
rawValue:
|
|
241
|
-
value: S0(
|
|
239
|
+
elementId: w,
|
|
240
|
+
rawValue: H,
|
|
241
|
+
value: S0(H)
|
|
242
242
|
};
|
|
243
243
|
});
|
|
244
244
|
return {
|
|
@@ -269,7 +269,7 @@ function bt(e) {
|
|
|
269
269
|
columnId: C
|
|
270
270
|
})), l = s.map((C) => {
|
|
271
271
|
const p = a.map((N) => {
|
|
272
|
-
const g = N.columnId ?? "", L = e.rows[C], E = L ? L[g] ?? null : null, D = L && typeof L.elementId == "string" && L.elementId.length > 0 ? L.elementId :
|
|
272
|
+
const g = N.columnId ?? "", L = e.rows[C], E = L ? L[g] ?? null : null, D = L && typeof L.elementId == "string" && L.elementId.length > 0 ? L.elementId : `row-${C}`;
|
|
273
273
|
return {
|
|
274
274
|
axisKey: N.key,
|
|
275
275
|
rowIndex: C,
|
|
@@ -6819,7 +6819,7 @@ function Ei() {
|
|
|
6819
6819
|
z.source.columns,
|
|
6820
6820
|
z.source.rows,
|
|
6821
6821
|
c
|
|
6822
|
-
]),
|
|
6822
|
+
]), Be = c !== "Number" || pe === 1, $e = Ie.length > 0 && Be, Dt = f && (E1 || q), Dn = f && Y || R1, Rn = f && Dt || X, It = f ? Dt || X : Dt, p4 = x1(async () => {
|
|
6823
6823
|
if (f) {
|
|
6824
6824
|
if (!D1 && !R1) {
|
|
6825
6825
|
console.warn("저장할 파일 라벨이 없습니다.");
|
|
@@ -7421,7 +7421,7 @@ function Ei() {
|
|
|
7421
7421
|
{
|
|
7422
7422
|
isSlim: !0,
|
|
7423
7423
|
onClick: p1,
|
|
7424
|
-
disabled:
|
|
7424
|
+
disabled: !$e || k,
|
|
7425
7425
|
className: "!border-0",
|
|
7426
7426
|
children: /* @__PURE__ */ m(O1, { iconType: "icon-down", size: "xxs" })
|
|
7427
7427
|
}
|
|
@@ -7437,7 +7437,7 @@ function Ei() {
|
|
|
7437
7437
|
{
|
|
7438
7438
|
title: "Save to Record",
|
|
7439
7439
|
style: "primary",
|
|
7440
|
-
disabled:
|
|
7440
|
+
disabled: !$e || k,
|
|
7441
7441
|
onClick: m4,
|
|
7442
7442
|
"aria-busy": k,
|
|
7443
7443
|
className: "!border-0",
|
|
@@ -16535,18 +16535,18 @@ function J7({
|
|
|
16535
16535
|
}, Ie = /* @__PURE__ */ new Set();
|
|
16536
16536
|
for (let Se = P.start; Se < P.end; Se += 1) {
|
|
16537
16537
|
const pe = q.get(Se);
|
|
16538
|
-
pe && pe.forEach((
|
|
16539
|
-
const
|
|
16540
|
-
if (!
|
|
16538
|
+
pe && pe.forEach((Be) => {
|
|
16539
|
+
const $e = typeof Be.elementId == "string" && Be.elementId.length > 0 ? Be.elementId : `row-${Be.rowIndex}`, Dt = typeof Be.columnId == "string" && Be.columnId.length > 0 ? Be.columnId : null;
|
|
16540
|
+
if (!Dt)
|
|
16541
16541
|
return;
|
|
16542
|
-
const Dn = `${
|
|
16542
|
+
const Dn = `${$e}::${Dt}`;
|
|
16543
16543
|
if (Ie.has(Dn))
|
|
16544
16544
|
return;
|
|
16545
16545
|
Ie.add(Dn);
|
|
16546
16546
|
const Rn = {
|
|
16547
16547
|
...G1,
|
|
16548
16548
|
contentSetId: he,
|
|
16549
|
-
elementId:
|
|
16549
|
+
elementId: $e,
|
|
16550
16550
|
inferenceType: "CLASSIFICATION",
|
|
16551
16551
|
unitType: "ELEMENT",
|
|
16552
16552
|
labelType: "TABLE",
|
|
@@ -17581,8 +17581,8 @@ function co({ active: e, content: t }) {
|
|
|
17581
17581
|
const Y1 = 100 / G1.length;
|
|
17582
17582
|
return {
|
|
17583
17583
|
backgroundImage: `linear-gradient(180deg, ${G1.map((Ie, Se) => {
|
|
17584
|
-
const pe = (Se * Y1).toFixed(2),
|
|
17585
|
-
return `${Ie} ${pe}% ${
|
|
17584
|
+
const pe = (Se * Y1).toFixed(2), Be = ((Se + 1) * Y1).toFixed(2);
|
|
17585
|
+
return `${Ie} ${pe}% ${Be}%`;
|
|
17586
17586
|
}).join(", ")})`
|
|
17587
17587
|
};
|
|
17588
17588
|
}, Ce = (ee) => {
|
|
@@ -17635,8 +17635,8 @@ function co({ active: e, content: t }) {
|
|
|
17635
17635
|
for (; A1 < t1.length && t1[A1].end <= $1; )
|
|
17636
17636
|
q1.delete(t1[A1].key), A1 += 1;
|
|
17637
17637
|
for (; m1 < P.length && P[m1].start <= $1; ) {
|
|
17638
|
-
const
|
|
17639
|
-
q1.set(
|
|
17638
|
+
const $e = P[m1];
|
|
17639
|
+
q1.set($e.key, $e), m1 += 1;
|
|
17640
17640
|
}
|
|
17641
17641
|
for (; P1 < d1.length && d1[P1].end <= $1; )
|
|
17642
17642
|
le.delete(d1[P1]), P1 += 1;
|
|
@@ -17659,15 +17659,15 @@ function co({ active: e, content: t }) {
|
|
|
17659
17659
|
v1.push(Ie), F1 += 1;
|
|
17660
17660
|
continue;
|
|
17661
17661
|
}
|
|
17662
|
-
const pe = Ce(Se),
|
|
17662
|
+
const pe = Ce(Se), Be = !!(l != null && l.key && q1.has(l.key));
|
|
17663
17663
|
v1.push(
|
|
17664
17664
|
/* @__PURE__ */ m(
|
|
17665
17665
|
"mark",
|
|
17666
17666
|
{
|
|
17667
|
-
className: `workspace-text__highlight${
|
|
17667
|
+
className: `workspace-text__highlight${Be ? " is-selected" : ""}`,
|
|
17668
17668
|
style: he(Se),
|
|
17669
|
-
onMouseDown: (
|
|
17670
|
-
(o == null ? void 0 : o.id) === "selection" && pe && (
|
|
17669
|
+
onMouseDown: ($e) => {
|
|
17670
|
+
(o == null ? void 0 : o.id) === "selection" && pe && ($e.preventDefault(), d({
|
|
17671
17671
|
key: pe.key,
|
|
17672
17672
|
labelId: pe.labelId,
|
|
17673
17673
|
tempId: pe.tempId,
|
|
@@ -17678,8 +17678,8 @@ function co({ active: e, content: t }) {
|
|
|
17678
17678
|
opacity: pe.opacity
|
|
17679
17679
|
}));
|
|
17680
17680
|
},
|
|
17681
|
-
onClick: (
|
|
17682
|
-
|
|
17681
|
+
onClick: ($e) => {
|
|
17682
|
+
$e.stopPropagation(), pe && d({
|
|
17683
17683
|
key: pe.key,
|
|
17684
17684
|
labelId: pe.labelId,
|
|
17685
17685
|
tempId: pe.tempId,
|