react-kggraph 0.0.27 → 0.0.29
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/lib/index.es3.js +118 -117
- package/lib/index.es38.js +6 -6
- package/lib/index.es43.js +18 -88
- package/lib/index.es44.js +39 -54
- package/lib/index.es45.js +39 -30
- package/lib/index.es46.js +91 -0
- package/lib/index.es47.js +58 -0
- package/lib/index.es48.js +33 -0
- package/lib/index.es7.js +70 -69
- package/lib/index.es8.js +147 -127
- package/lib/src/components/Graph/utils/tools.d.ts +3 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/index.es40.js +0 -21
- package/lib/index.es41.js +0 -43
- package/lib/index.es42.js +0 -42
package/lib/index.es7.js
CHANGED
|
@@ -3,7 +3,7 @@ import K, { forwardRef as Re, useContext as et, useState as v, useRef as tt, use
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { Dropdown as lt, Flex as y, Modal as st, Drawer as at, Tabs as ce, Form as f, Input as O, Select as u, ColorPicker as _, Button as ge, Row as rt, message as F } from "antd";
|
|
5
5
|
import { utils as P, writeFile as it } from "./index.es21.js";
|
|
6
|
-
import { textPositionConfig as
|
|
6
|
+
import { textPositionConfig as pe, textLayout as ct, downloadData as dt, choiceConfig as ht, linkAnalysis as gt, layoutCongig as pt, handleCalcPath as mt, getCyData as de, donwnGraphData as ut } from "./index.es8.js";
|
|
7
7
|
import { GraphContext as ft } from "./index.es15.js";
|
|
8
8
|
import { layout as bt, fixNodesToEdges as wt } from "./index.es9.js";
|
|
9
9
|
import { defaultColors as H, nodeSize as q } from "./index.es10.js";
|
|
@@ -12,8 +12,8 @@ import Ct from "./index.es23.js";
|
|
|
12
12
|
import vt from "./index.es24.js";
|
|
13
13
|
import I from "./index.es17.js";
|
|
14
14
|
import { downloadFile as he } from "./index.es12.js";
|
|
15
|
-
import { actionList as xt, entityRelationList as
|
|
16
|
-
import { DownOutlined as
|
|
15
|
+
import { actionList as xt, entityRelationList as St } from "./index.es4.js";
|
|
16
|
+
import { DownOutlined as Nt, RightOutlined as Lt, UpOutlined as kt, LeftOutlined as Et } from "@ant-design/icons";
|
|
17
17
|
const M = (b, c) => (k) => {
|
|
18
18
|
k.stopPropagation(), b == null || b(c || "");
|
|
19
19
|
}, Dt = (b) => {
|
|
@@ -35,11 +35,11 @@ const M = (b, c) => (k) => {
|
|
|
35
35
|
graphInfo: b,
|
|
36
36
|
cyRef: c,
|
|
37
37
|
initNodeScale: k,
|
|
38
|
-
typeObj:
|
|
38
|
+
typeObj: N,
|
|
39
39
|
relationObj: V,
|
|
40
|
-
colors:
|
|
40
|
+
colors: me
|
|
41
41
|
}, ue) => {
|
|
42
|
-
const W = { ...H, ...
|
|
42
|
+
const W = { ...H, ...me }, { layoutType: fe, setLayoutType: be, queryStatisticsConfig: L, actionBar: x } = et(ft), Q = typeof x == "boolean" ? x : !0, J = (x == null ? void 0 : x.position) || "top-left", U = (x == null ? void 0 : x.actionList) ?? xt, [j, we] = v((x == null ? void 0 : x.isExpand) ?? !1), [D, ye] = v(""), [Ce, G] = v(!1), [X, ve] = v(k), [xe, A] = v(!1), [Se, z] = v(!1), [Y, Ne] = v(null), [Le, R] = v(!1), [ee, te] = v(!1), [ke, Ee] = v("node"), T = tt(null), De = Array.isArray(L) ? L.length > 0 : L, [oe, Ie] = v(De), [ne, Ve] = v(/* @__PURE__ */ new Set()), [le, Pe] = v(/* @__PURE__ */ new Set());
|
|
43
43
|
ot(ue, () => ({
|
|
44
44
|
onPathAnalysis: () => {
|
|
45
45
|
ae();
|
|
@@ -50,12 +50,13 @@ const M = (b, c) => (k) => {
|
|
|
50
50
|
const se = async (e) => {
|
|
51
51
|
const o = c.current;
|
|
52
52
|
if (!o || !D) {
|
|
53
|
-
o == null || o.
|
|
53
|
+
o == null || o.fit();
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
+
o == null || o.nodes().removeClass("highlight selected grayed highlighted path-node"), o.elements().removeClass("level-highlight level-selected grayed path-edge");
|
|
56
57
|
const n = o.nodes().filter((l) => {
|
|
57
|
-
const i = (l.data("name") || "").toLowerCase(), s = (l.data("role") || "").toLowerCase(), h = (l.data("dept") || "").toLowerCase(),
|
|
58
|
-
return i.includes(D.toLowerCase()) || s.includes(D.toLowerCase()) || h.includes(D.toLowerCase()) ||
|
|
58
|
+
const i = (l.data("name") || "").toLowerCase(), s = (l.data("role") || "").toLowerCase(), h = (l.data("dept") || "").toLowerCase(), m = String(l.data("id") || "").toLowerCase();
|
|
59
|
+
return i.includes(D.toLowerCase()) || s.includes(D.toLowerCase()) || h.includes(D.toLowerCase()) || m.includes(D.toLowerCase());
|
|
59
60
|
});
|
|
60
61
|
o.nodes().removeClass("highlight"), n.addClass("highlight"), n.length === 1 ? (console.log("matchedNodes:::", n), o.animate({
|
|
61
62
|
center: {
|
|
@@ -98,7 +99,7 @@ const M = (b, c) => (k) => {
|
|
|
98
99
|
const e = c.current;
|
|
99
100
|
if (!e) return;
|
|
100
101
|
const o = de(e);
|
|
101
|
-
|
|
102
|
+
Ne(o), R(!0);
|
|
102
103
|
}, re = (e, o) => {
|
|
103
104
|
const n = e.current;
|
|
104
105
|
if (!n) return;
|
|
@@ -113,29 +114,29 @@ const M = (b, c) => (k) => {
|
|
|
113
114
|
}, Fe = () => {
|
|
114
115
|
const e = c.current;
|
|
115
116
|
if (!e) return;
|
|
116
|
-
const o = de(e), { nodes: n = [], edges: l = [] } = o, i = n.map((
|
|
117
|
-
var
|
|
118
|
-
const d =
|
|
117
|
+
const o = de(e), { nodes: n = [], edges: l = [] } = o, i = n.map((m) => {
|
|
118
|
+
var p, r;
|
|
119
|
+
const d = m.data || {}, S = d.properties || {};
|
|
119
120
|
return {
|
|
120
121
|
节点名称: d.name || d.label || "",
|
|
121
122
|
节点ID: d.id || "",
|
|
122
123
|
节点类型: d.types || "",
|
|
123
124
|
URI: d.label || "",
|
|
124
|
-
X坐标: ((
|
|
125
|
-
Y坐标: ((r =
|
|
125
|
+
X坐标: ((p = m.position) == null ? void 0 : p.x) || "",
|
|
126
|
+
Y坐标: ((r = m.position) == null ? void 0 : r.y) || "",
|
|
126
127
|
层级: d.level || "",
|
|
127
128
|
宽度: d.baseWidth || "",
|
|
128
129
|
高度: d.baseHeight || "",
|
|
129
130
|
图片: d.image || "",
|
|
130
|
-
属性ID:
|
|
131
|
-
属性值:
|
|
131
|
+
属性ID: S.id || "",
|
|
132
|
+
属性值: S.value || ""
|
|
132
133
|
};
|
|
133
|
-
}), s = l.map((
|
|
134
|
+
}), s = l.map((m) => {
|
|
134
135
|
var r, a, w, E;
|
|
135
|
-
const d =
|
|
136
|
+
const d = m.data || {}, S = ((a = (r = d.source) == null ? void 0 : r.split("/#")[0]) == null ? void 0 : a.split("/").pop()) || d.source, p = ((E = (w = d.target) == null ? void 0 : w.split("/#")[0]) == null ? void 0 : E.split("/").pop()) || d.target;
|
|
136
137
|
return {
|
|
137
|
-
源节点:
|
|
138
|
-
目标节点:
|
|
138
|
+
源节点: S,
|
|
139
|
+
目标节点: p,
|
|
139
140
|
源URI: d.source || "",
|
|
140
141
|
目标URI: d.target || "",
|
|
141
142
|
关系名称: d.name || d.label || "",
|
|
@@ -143,8 +144,8 @@ const M = (b, c) => (k) => {
|
|
|
143
144
|
};
|
|
144
145
|
}), h = P.book_new();
|
|
145
146
|
if (i.length > 0) {
|
|
146
|
-
const
|
|
147
|
-
|
|
147
|
+
const m = P.json_to_sheet(i);
|
|
148
|
+
m["!cols"] = [
|
|
148
149
|
{ wch: 30 },
|
|
149
150
|
// 节点名称
|
|
150
151
|
{ wch: 60 },
|
|
@@ -169,11 +170,11 @@ const M = (b, c) => (k) => {
|
|
|
169
170
|
// 属性ID
|
|
170
171
|
{ wch: 40 }
|
|
171
172
|
// 属性值
|
|
172
|
-
], P.book_append_sheet(h,
|
|
173
|
+
], P.book_append_sheet(h, m, "节点");
|
|
173
174
|
}
|
|
174
175
|
if (s.length > 0) {
|
|
175
|
-
const
|
|
176
|
-
|
|
176
|
+
const m = P.json_to_sheet(s);
|
|
177
|
+
m["!cols"] = [
|
|
177
178
|
{ wch: 30 },
|
|
178
179
|
// 源节点
|
|
179
180
|
{ wch: 30 },
|
|
@@ -186,7 +187,7 @@ const M = (b, c) => (k) => {
|
|
|
186
187
|
// 关系名称
|
|
187
188
|
{ wch: 40 }
|
|
188
189
|
// 关系ID
|
|
189
|
-
], P.book_append_sheet(h,
|
|
190
|
+
], P.book_append_sheet(h, m, "关系");
|
|
190
191
|
}
|
|
191
192
|
it(h, `graph_${Date.now()}.xlsx`);
|
|
192
193
|
}, He = (e, o) => {
|
|
@@ -253,18 +254,18 @@ const M = (b, c) => (k) => {
|
|
|
253
254
|
}, Ze = (e = "刘强东", o = "1") => {
|
|
254
255
|
const n = c.current;
|
|
255
256
|
if (!n) return;
|
|
256
|
-
n.elements().removeClass("level-highlight level-selected
|
|
257
|
-
const l = n.nodes().filter((
|
|
257
|
+
n.elements().removeClass("level-highlight level-selected grayed path-edge");
|
|
258
|
+
const l = n.nodes().filter((p) => (p.data("name") || p.data("id") || "").toString().includes(e));
|
|
258
259
|
if (l.length === 0) {
|
|
259
260
|
F.warning(`未找到节点: ${e}`);
|
|
260
261
|
return;
|
|
261
262
|
}
|
|
262
263
|
const i = parseInt(o) || 1, s = n.collection(), h = [];
|
|
263
|
-
l.forEach((
|
|
264
|
-
|
|
264
|
+
l.forEach((p) => {
|
|
265
|
+
p.addClass("level-selected"), s.merge(p);
|
|
265
266
|
let r = n.collection();
|
|
266
267
|
const a = /* @__PURE__ */ new Set();
|
|
267
|
-
a.add(
|
|
268
|
+
a.add(p.id()), i >= 1 && (r = p.neighborhood().nodes(), r.forEach((w) => {
|
|
268
269
|
a.add(w.id()), s.merge(w);
|
|
269
270
|
}), h.push(r));
|
|
270
271
|
for (let w = 2; w <= i; w++) {
|
|
@@ -275,14 +276,14 @@ const M = (b, c) => (k) => {
|
|
|
275
276
|
});
|
|
276
277
|
}), E.forEach(($) => s.merge($)), h.push(E), r = E;
|
|
277
278
|
}
|
|
278
|
-
}), h.forEach((
|
|
279
|
-
|
|
280
|
-
}), n.edges().filter((
|
|
281
|
-
const r =
|
|
279
|
+
}), h.forEach((p) => {
|
|
280
|
+
p.addClass("level-highlight");
|
|
281
|
+
}), n.edges().filter((p) => {
|
|
282
|
+
const r = p.source(), a = p.target();
|
|
282
283
|
return s.contains(r) && s.contains(a);
|
|
283
|
-
}).addClass("
|
|
284
|
-
const d = n.elements().filter(".level-selected, .level-highlight, .
|
|
285
|
-
n.elements().not(d).addClass("
|
|
284
|
+
}).addClass("path-edge");
|
|
285
|
+
const d = n.elements().filter(".level-selected, .level-highlight, .path-edge");
|
|
286
|
+
n.elements().not(d).addClass("grayed"), F.success(`已高亮 "${e}" 及其 ${i} 度关联节点和连线`);
|
|
286
287
|
}, Ke = (e) => {
|
|
287
288
|
const o = c.current;
|
|
288
289
|
if (!o) return;
|
|
@@ -305,8 +306,8 @@ const M = (b, c) => (k) => {
|
|
|
305
306
|
console.log("saveNodeConfig values:", e), console.log("showLabel value:", e.showLabel);
|
|
306
307
|
const n = typeof e.fontColor == "object" && ((s = (i = e.fontColor) == null ? void 0 : i.toHexString) == null ? void 0 : s.call(i)) || e.fontColor, l = e.showLabel === "show";
|
|
307
308
|
console.log("showLabelValue:", l), o.nodes().forEach((h) => {
|
|
308
|
-
const
|
|
309
|
-
console.log("Setting node label:",
|
|
309
|
+
const m = l && (h.data("name") || h.data("label")) || "";
|
|
310
|
+
console.log("Setting node label:", m), h.style({
|
|
310
311
|
width: e.nodeSize,
|
|
311
312
|
height: e.nodeSize,
|
|
312
313
|
"font-size": e.fontSize,
|
|
@@ -316,16 +317,16 @@ const M = (b, c) => (k) => {
|
|
|
316
317
|
"text-valign": e.textPosition,
|
|
317
318
|
"text-halign": "center",
|
|
318
319
|
"text-margin-y": e.textOffset,
|
|
319
|
-
label:
|
|
320
|
-
"text-opacity":
|
|
320
|
+
label: m,
|
|
321
|
+
"text-opacity": m ? 1 : 0
|
|
321
322
|
});
|
|
322
323
|
}), F.success("节点配置保存成功");
|
|
323
324
|
}, Ge = (e) => {
|
|
324
|
-
var h,
|
|
325
|
+
var h, m, d, S, p, r;
|
|
325
326
|
const o = c.current;
|
|
326
327
|
if (!o) return;
|
|
327
328
|
console.log("saveEdgeConfig values:", e), console.log("edge showLabel value:", e.showLabel);
|
|
328
|
-
const n = typeof e.edgeColor == "object" && ((
|
|
329
|
+
const n = typeof e.edgeColor == "object" && ((m = (h = e.edgeColor) == null ? void 0 : h.toHexString) == null ? void 0 : m.call(h)) || e.edgeColor, l = typeof e.fontColor == "object" && ((S = (d = e.fontColor) == null ? void 0 : d.toHexString) == null ? void 0 : S.call(d)) || e.fontColor, i = typeof e.labelBgColor == "object" && ((r = (p = e.labelBgColor) == null ? void 0 : p.toHexString) == null ? void 0 : r.call(p)) || e.labelBgColor, s = e.showLabel === "show";
|
|
329
330
|
o.edges().forEach((a) => {
|
|
330
331
|
const w = s && (a.data("label") || a.data("name")) || "";
|
|
331
332
|
console.log("Setting edge label:", w), a.style({
|
|
@@ -346,12 +347,12 @@ const M = (b, c) => (k) => {
|
|
|
346
347
|
}), F.success("连线配置保存成功");
|
|
347
348
|
}, Xe = Dt(J), C = J === "left" || J === "right";
|
|
348
349
|
if (console.log(1e3, Q, U), !Q) return null;
|
|
349
|
-
const Ye = Array.isArray(L) && (L == null ? void 0 : L.length) > 0 ? L :
|
|
350
|
+
const Ye = Array.isArray(L) && (L == null ? void 0 : L.length) > 0 ? L : St, ie = () => /* @__PURE__ */ g(rt, { justify: "center", align: "middle", className: I("cursor", {
|
|
350
351
|
"oprate-btn-vertical": C,
|
|
351
352
|
"oprate-btn": !C
|
|
352
353
|
}), onClick: () => we(!j), children: [
|
|
353
354
|
"操作 ",
|
|
354
|
-
j ? C ? /* @__PURE__ */ t(
|
|
355
|
+
j ? C ? /* @__PURE__ */ t(Nt, {}) : /* @__PURE__ */ t(Lt, {}) : C ? /* @__PURE__ */ t(kt, {}) : /* @__PURE__ */ t(Et, {})
|
|
355
356
|
] });
|
|
356
357
|
return /* @__PURE__ */ g(Z, { children: [
|
|
357
358
|
/* @__PURE__ */ t("div", { className: I("graph-bar", { "graph-bar-vertical": C }), style: Xe, children: /* @__PURE__ */ g("div", { className: I("graph-bar-min", {
|
|
@@ -364,7 +365,7 @@ const M = (b, c) => (k) => {
|
|
|
364
365
|
"collapsed-vertical": !j && C,
|
|
365
366
|
collapsed: !j && !C
|
|
366
367
|
}), children: U.map(({ key: e, title: o, icon: n, onClick: l }) => {
|
|
367
|
-
var
|
|
368
|
+
var m, d, S, p;
|
|
368
369
|
const i = () => n && n.length > 0 ? n.length > 1 ? /* @__PURE__ */ t(y, { gap: "5px", children: n.map((r, a) => e === "nodeZoom" ? K.cloneElement(r, {
|
|
369
370
|
onClick: () => $e(a === 0 ? "in" : "out"),
|
|
370
371
|
key: a
|
|
@@ -393,7 +394,7 @@ const M = (b, c) => (k) => {
|
|
|
393
394
|
let r = [];
|
|
394
395
|
switch (e) {
|
|
395
396
|
case "layout":
|
|
396
|
-
r = (
|
|
397
|
+
r = (m = pt) == null ? void 0 : m.map((a) => ({
|
|
397
398
|
...a,
|
|
398
399
|
label: /* @__PURE__ */ t("div", { className: I({ "text-[#145afd]": fe === a.key }), onClick: M(Ae, a.key), children: a.label })
|
|
399
400
|
}));
|
|
@@ -420,10 +421,10 @@ const M = (b, c) => (k) => {
|
|
|
420
421
|
r = (d = ht) == null ? void 0 : d.map((a) => ({ ...a, label: /* @__PURE__ */ t("div", { onClick: M(We, a.key), children: a.label }) }));
|
|
421
422
|
break;
|
|
422
423
|
case "downloadData":
|
|
423
|
-
r = (
|
|
424
|
+
r = (S = dt) == null ? void 0 : S.map((a) => ({ ...a, label: /* @__PURE__ */ t("div", { onClick: (w) => He(w, a.key), children: a.label }) }));
|
|
424
425
|
break;
|
|
425
426
|
case "textPosition":
|
|
426
|
-
r = (
|
|
427
|
+
r = (p = pe) == null ? void 0 : p.map((a) => ({ ...a, label: /* @__PURE__ */ t("div", { onClick: M(() => ct(c, a.key), a.key), children: a.label }) }));
|
|
427
428
|
break;
|
|
428
429
|
}
|
|
429
430
|
return /* @__PURE__ */ t(lt, { trigger: ["hover"], placement: C ? "bottomRight" : "bottom", menu: { items: r }, children: /* @__PURE__ */ g(y, { wrap: !0, align: "center", justify: "center", className: "hove-active cursor bar-item", children: [
|
|
@@ -439,7 +440,7 @@ const M = (b, c) => (k) => {
|
|
|
439
440
|
C && ie()
|
|
440
441
|
] }) }),
|
|
441
442
|
/* @__PURE__ */ t(yt, { isVisible: xe, searchChange: (e) => Be(e), closeQuery: () => A(!1) }),
|
|
442
|
-
/* @__PURE__ */ t(Ct, { isVisible:
|
|
443
|
+
/* @__PURE__ */ t(Ct, { isVisible: Se, analysis: (e) => mt(c, { nodes: e.map((o) => ({ id: o })) }), closePath: () => z(!1) }),
|
|
443
444
|
/* @__PURE__ */ t(vt, { ref: T, onLevelClick: Ze }),
|
|
444
445
|
/* @__PURE__ */ t(
|
|
445
446
|
st,
|
|
@@ -500,44 +501,44 @@ const M = (b, c) => (k) => {
|
|
|
500
501
|
return e === "entity" ? {
|
|
501
502
|
label: o,
|
|
502
503
|
key: e,
|
|
503
|
-
children: /* @__PURE__ */ t(Z, { children: Object.keys(
|
|
504
|
-
/* @__PURE__ */ g(y, { justify: "space-between", children: [
|
|
504
|
+
children: /* @__PURE__ */ t(Z, { children: Object.keys(N).length > 0 ? /* @__PURE__ */ g("div", { children: [
|
|
505
|
+
/* @__PURE__ */ g(y, { justify: "space-between", className: "font-12", children: [
|
|
505
506
|
/* @__PURE__ */ t("span", { children: "实体数量:" }),
|
|
506
|
-
/* @__PURE__ */ t("span", {
|
|
507
|
+
/* @__PURE__ */ t("span", { children: Object.values(N).reduce((s, h) => s + h.count, 0) })
|
|
507
508
|
] }),
|
|
508
|
-
/* @__PURE__ */ g(y, { className: "my-4px", justify: "space-between", children: [
|
|
509
|
+
/* @__PURE__ */ g(y, { className: "my-4px font-12", justify: "space-between", children: [
|
|
509
510
|
/* @__PURE__ */ t("span", { children: "实体类型:" }),
|
|
510
|
-
/* @__PURE__ */ t("span", {
|
|
511
|
+
/* @__PURE__ */ t("span", { children: Object.keys(N).length })
|
|
511
512
|
] }),
|
|
512
|
-
/* @__PURE__ */ t(y, { gap: "5px", justify: "start", className: "w-100", wrap: !0, children: Object.keys(
|
|
513
|
+
/* @__PURE__ */ t(y, { gap: "5px", justify: "start", className: "w-100 static-wraper", wrap: !0, children: Object.keys(N).map((s) => /* @__PURE__ */ g(y, { gap: "4px", justify: "space-between", className: `w-100 cursor ${ne.has(s) ? "opacity-30" : ""}`, onClick: () => Ke(s), children: [
|
|
513
514
|
/* @__PURE__ */ g(y, { align: "center", gap: "2px", children: [
|
|
514
|
-
/* @__PURE__ */ t("img", { className: "w-20px rounded-50", src:
|
|
515
|
+
/* @__PURE__ */ t("img", { className: "w-20px rounded-50", src: N[s].img, alt: "" }),
|
|
515
516
|
s,
|
|
516
517
|
":"
|
|
517
518
|
] }),
|
|
518
|
-
/* @__PURE__ */ t("span", { className: "color-333", children:
|
|
519
|
+
/* @__PURE__ */ t("span", { className: "color-333", children: N[s].count })
|
|
519
520
|
] }, s)) })
|
|
520
|
-
] }) : /* @__PURE__ */ t("span", { className: "text-
|
|
521
|
+
] }) : /* @__PURE__ */ t("span", { className: "text-666", children: "暂无实体统计!" }) })
|
|
521
522
|
} : e === "relation" ? {
|
|
522
523
|
label: o,
|
|
523
524
|
key: e,
|
|
524
|
-
children: /* @__PURE__ */ t(Z, { children: ((n = Object.keys(V)) == null ? void 0 : n.length) > 0 ? /* @__PURE__ */ g("div", {
|
|
525
|
-
/* @__PURE__ */ g(y, { justify: "space-between", children: [
|
|
525
|
+
children: /* @__PURE__ */ t(Z, { children: ((n = Object.keys(V)) == null ? void 0 : n.length) > 0 ? /* @__PURE__ */ g("div", { children: [
|
|
526
|
+
/* @__PURE__ */ g(y, { justify: "space-between", className: "font-12", children: [
|
|
526
527
|
/* @__PURE__ */ t("span", { children: "关系数量:" }),
|
|
527
|
-
/* @__PURE__ */ t("span", {
|
|
528
|
+
/* @__PURE__ */ t("span", { children: (l = Object.keys(V)) == null ? void 0 : l.length })
|
|
528
529
|
] }),
|
|
529
|
-
/* @__PURE__ */ g(y, { className: "my-4px", justify: "space-between", children: [
|
|
530
|
+
/* @__PURE__ */ g(y, { className: "my-4px font-12", justify: "space-between", children: [
|
|
530
531
|
/* @__PURE__ */ t("span", { children: "关系类型:" }),
|
|
531
|
-
/* @__PURE__ */ t("span", {
|
|
532
|
+
/* @__PURE__ */ t("span", { children: (i = Object.values(V)) == null ? void 0 : i.reduce((s, h) => s + h, 0) })
|
|
532
533
|
] }),
|
|
533
|
-
/* @__PURE__ */ t(y, { gap: "5px", justify: "start", className: "w-100", wrap: !0, children: Object.keys(V).map((s) => /* @__PURE__ */ g(y, { gap: "4px", justify: "space-between", className: `w-100 cursor ${le.has(s) ? "opacity-30" : ""}`, onClick: () => Me(s), children: [
|
|
534
|
+
/* @__PURE__ */ t(y, { gap: "5px", justify: "start", className: "w-100 static-wraper", wrap: !0, children: Object.keys(V).map((s) => /* @__PURE__ */ g(y, { gap: "4px", justify: "space-between", className: `w-100 cursor ${le.has(s) ? "opacity-30" : ""}`, onClick: () => Me(s), children: [
|
|
534
535
|
/* @__PURE__ */ g("span", { children: [
|
|
535
536
|
s,
|
|
536
537
|
":"
|
|
537
538
|
] }),
|
|
538
539
|
/* @__PURE__ */ t("span", { className: "color-333", children: V[s] })
|
|
539
540
|
] }, s)) })
|
|
540
|
-
] }) : /* @__PURE__ */ t("span", { className: "text-
|
|
541
|
+
] }) : /* @__PURE__ */ t("span", { className: "text-666", children: "暂无关系统计!" }) })
|
|
541
542
|
} : null;
|
|
542
543
|
})
|
|
543
544
|
}
|
|
@@ -552,7 +553,7 @@ const M = (b, c) => (k) => {
|
|
|
552
553
|
/* @__PURE__ */ t(u.Option, { value: "show", children: "显示" }),
|
|
553
554
|
/* @__PURE__ */ t(u.Option, { value: "hide", children: "隐藏" })
|
|
554
555
|
] }) }),
|
|
555
|
-
/* @__PURE__ */ t(f.Item, { label: "字体位置", name: "textPosition", initialValue: "bottom", children: /* @__PURE__ */ t(u, { children:
|
|
556
|
+
/* @__PURE__ */ t(f.Item, { label: "字体位置", name: "textPosition", initialValue: "bottom", children: /* @__PURE__ */ t(u, { children: pe.map((N) => /* @__PURE__ */ t(u.Option, { value: N.key, children: N.label }, N.key)) }) }),
|
|
556
557
|
/* @__PURE__ */ t(f.Item, { label: "字体偏移", name: "textOffset", initialValue: 5, children: /* @__PURE__ */ t(O, { type: "number", placeholder: "请输入字体偏移量" }) }),
|
|
557
558
|
/* @__PURE__ */ t(f.Item, { label: "字体颜色", name: "fontColor", initialValue: c.nodeLabelColor, children: /* @__PURE__ */ t(_, { showText: !0 }) }),
|
|
558
559
|
/* @__PURE__ */ t(f.Item, { label: "字体大小", name: "fontSize", initialValue: c.nodeLabelFontSize, children: /* @__PURE__ */ t(O, { type: "number", placeholder: "请输入字体大小" }) }),
|