@infinilabs/ai-chat 0.0.1 → 0.0.3
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/README.md +10 -1
- package/dist/{_baseUniq-BQcAhV7E.js → _baseUniq-C6eXDRdi.js} +1 -1
- package/dist/_baseUniq-VBKGmFNZ.cjs +151 -0
- package/dist/arc-C_pZjUl4.cjs +130 -0
- package/dist/{arc-2jwvQ2TN.js → arc-D1VL3r-o.js} +1 -1
- package/dist/architecture-U656AL7Q-BF5SEVYt.cjs +5 -0
- package/dist/{architecture-U656AL7Q-WuSilpZW.js → architecture-U656AL7Q-BU8DDug4.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-D6SKNy5z.js → architectureDiagram-VXUJARFQ-BD3g0-L9.js} +3 -3
- package/dist/architectureDiagram-VXUJARFQ-DjBxfJaD.cjs +8681 -0
- package/dist/blockDiagram-VD42YOAC-B2f1rMqq.cjs +3606 -0
- package/dist/{blockDiagram-VD42YOAC-Ct2DD8jj.js → blockDiagram-VD42YOAC-Dco6f43O.js} +5 -5
- package/dist/c4Diagram-YG6GDRKO-DNqNYnPR.cjs +2481 -0
- package/dist/{c4Diagram-YG6GDRKO-B7wBU4mz.js → c4Diagram-YG6GDRKO-DaatwWsP.js} +2 -2
- package/dist/channel-CqaWpJup.cjs +6 -0
- package/dist/{channel-BRREX19f.js → channel-DHoS2D4-.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BnghU1_v.js → chunk-4BX2VUAB-CJqHiK4X.js} +1 -1
- package/dist/chunk-4BX2VUAB-DN2yOkoW.cjs +15 -0
- package/dist/chunk-55IACEB6-BdkCWkvA.cjs +12 -0
- package/dist/{chunk-55IACEB6-Dduk-DEL.js → chunk-55IACEB6-C6ly5iWy.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DeHw-z-x.js → chunk-B4BG7PRW--1XVDmjR.js} +4 -4
- package/dist/chunk-B4BG7PRW-CyVGILSL.cjs +1825 -0
- package/dist/{chunk-DI55MBZ5-GTHMAr0M.js → chunk-DI55MBZ5-CdspH0FP.js} +3 -3
- package/dist/chunk-DI55MBZ5-zfT0HzuJ.cjs +1914 -0
- package/dist/chunk-FMBD7UC4-B1XNgXxo.cjs +18 -0
- package/dist/{chunk-FMBD7UC4-Bchh4_3W.js → chunk-FMBD7UC4-DwJ0I9NE.js} +1 -1
- package/dist/chunk-QN33PNHL-BkRCfP3-.cjs +23 -0
- package/dist/{chunk-QN33PNHL-H6S-NYp0.js → chunk-QN33PNHL-ToZ1oMAx.js} +1 -1
- package/dist/chunk-QZHKN3VN-Bl6qG9aO.cjs +16 -0
- package/dist/{chunk-QZHKN3VN-DdcyNnvM.js → chunk-QZHKN3VN-D6NMZefL.js} +1 -1
- package/dist/{chunk-TZMSLE5B-C7te_j4V.js → chunk-TZMSLE5B-CX7F9bum.js} +1 -1
- package/dist/chunk-TZMSLE5B-CfLnJLL2.cjs +107 -0
- package/dist/{classDiagram-2ON5EDUG-CNkHY_Y7.js → classDiagram-2ON5EDUG-do_fcMxL.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-l6iTeY9n.cjs +19 -0
- package/dist/{classDiagram-v2-WZHVMYZB-CNkHY_Y7.js → classDiagram-v2-WZHVMYZB-do_fcMxL.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-l6iTeY9n.cjs +19 -0
- package/dist/{clone-DnOD7gQ4.js → clone-B0NbP06l.js} +1 -1
- package/dist/clone-O_UR2EnI.cjs +7 -0
- package/dist/cose-bilkent-S5V4N54A-Bj9q8jdP.cjs +4942 -0
- package/dist/{cose-bilkent-S5V4N54A-2EKtTYth.js → cose-bilkent-S5V4N54A-Dm15CejI.js} +1 -1
- package/dist/cytoscape.esm-D8IBYQeQ.cjs +30238 -0
- package/dist/dagre-6UL2VRFP-DlrZJc7j.cjs +693 -0
- package/dist/{dagre-6UL2VRFP-oJLNDO4O.js → dagre-6UL2VRFP-DpFJxcQI.js} +5 -5
- package/dist/defaultLocale-DwYGIg9G.cjs +203 -0
- package/dist/{diagram-PSM6KHXK-DhMgmu9h.js → diagram-PSM6KHXK-BiuW3-I6.js} +4 -4
- package/dist/diagram-PSM6KHXK-J1K0HhB0.cjs +845 -0
- package/dist/{diagram-QEK2KX5R-pB1vUeno.js → diagram-QEK2KX5R-CKI4v8U1.js} +3 -3
- package/dist/diagram-QEK2KX5R-CfZyy8K3.cjs +300 -0
- package/dist/{diagram-S2PKOQOG-HTooIr24.js → diagram-S2PKOQOG-BFBmhCiH.js} +3 -3
- package/dist/diagram-S2PKOQOG-D99Ax7Ju.cjs +210 -0
- package/dist/erDiagram-Q2GNP2WA-CVkYr-Vj.cjs +1158 -0
- package/dist/{erDiagram-Q2GNP2WA-CCaN2EHf.js → erDiagram-Q2GNP2WA-qVxQAwwu.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-CG0erQtl.js → flowDiagram-NV44I4VS-5brdnMxu.js} +5 -5
- package/dist/flowDiagram-NV44I4VS-7p-zbTbS.cjs +2331 -0
- package/dist/{ganttDiagram-JELNMOA3-D3rSLJec.js → ganttDiagram-JELNMOA3-B_6E5yap.js} +2 -2
- package/dist/ganttDiagram-JELNMOA3-BqIucWob.cjs +3679 -0
- package/dist/{gitGraph-F6HP7TQM-BDWdXs6A.js → gitGraph-F6HP7TQM-5ygKEXa4.js} +1 -1
- package/dist/gitGraph-F6HP7TQM-Dqtx4v2X.cjs +5 -0
- package/dist/{gitGraphDiagram-NY62KEGX-Ip-PiLDb.js → gitGraphDiagram-NY62KEGX-8yiOWwFX.js} +4 -4
- package/dist/gitGraphDiagram-NY62KEGX-DLpTvKWJ.cjs +1203 -0
- package/dist/graph-BQ7jHivU.cjs +595 -0
- package/dist/{graph-wCViE1vL.js → graph-f7dsdfxH.js} +2 -2
- package/dist/index-BZzFD4NG.cjs +120453 -0
- package/dist/{index-BQvQI7yA.js → index-TgFTummf.js} +103814 -100678
- package/dist/index.cjs +19 -0
- package/dist/index.js +13 -1
- package/dist/info-NVLQJR56-CBEfMVO2.cjs +5 -0
- package/dist/info-NVLQJR56-CXysh6Cg.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-D8UJMXYO.cjs +31 -0
- package/dist/{infoDiagram-WHAUD3N6-BbVs4x8y.js → infoDiagram-WHAUD3N6-DAhQzmYU.js} +2 -2
- package/dist/init-DevvdK2U.cjs +15 -0
- package/dist/journeyDiagram-XKPGCS4Q-BTWSe50v.cjs +1254 -0
- package/dist/{journeyDiagram-XKPGCS4Q-Cz9ox9GA.js → journeyDiagram-XKPGCS4Q-DF63luuF.js} +4 -4
- package/dist/kanban-definition-3W4ZIXB7-Bv1kpXjl.cjs +1047 -0
- package/dist/{kanban-definition-3W4ZIXB7-ChdUHO5f.js → kanban-definition-3W4ZIXB7-Byg1KrDf.js} +2 -2
- package/dist/katex-BhpYeT3b.cjs +14523 -0
- package/dist/{layout-BaZPdTGN.js → layout-Bph_0QZr.js} +4 -4
- package/dist/layout-Cbov0jB2.cjs +2182 -0
- package/dist/{linear-D_RX7hM-.js → linear-BSz-RTmc.js} +1 -1
- package/dist/linear-D36lF41G.cjs +339 -0
- package/dist/mermaid-parser.core-BjisUoZL.cjs +18703 -0
- package/dist/{mermaid-parser.core-_sn6A3wB.js → mermaid-parser.core-D51-lxGS.js} +10 -10
- package/dist/min-D_N_XAer.cjs +40 -0
- package/dist/{min-BxeM4Drj.js → min-Sni_KseC.js} +2 -2
- package/dist/mindmap-definition-VGOIOE7T-B7_dDBbb.cjs +1126 -0
- package/dist/{mindmap-definition-VGOIOE7T-BkjJibdi.js → mindmap-definition-VGOIOE7T-fbR1KpVG.js} +3 -3
- package/dist/ordinal-D7sQNqXZ.cjs +75 -0
- package/dist/{packet-BFZMPI3H-D3RtU0mc.js → packet-BFZMPI3H-B9lSQ4ue.js} +1 -1
- package/dist/packet-BFZMPI3H-DFuV40UT.cjs +5 -0
- package/dist/pie-7BOR55EZ-CfhfuSiQ.cjs +5 -0
- package/dist/pie-7BOR55EZ-DlYTWEJg.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-2Yr1gkth.js → pieDiagram-ADFJNKIX-BZ-6MLDa.js} +4 -4
- package/dist/pieDiagram-ADFJNKIX-ZykBg0LM.cjs +237 -0
- package/dist/quadrantDiagram-AYHSOK5B-BuiB_Qh3.cjs +1335 -0
- package/dist/{quadrantDiagram-AYHSOK5B-CjicpXRv.js → quadrantDiagram-AYHSOK5B-ClRDM-6s.js} +2 -2
- package/dist/{radar-NHE76QYJ-CL0tHnUP.js → radar-NHE76QYJ-Crabb2QS.js} +1 -1
- package/dist/radar-NHE76QYJ-D3rgOiIb.cjs +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DBnhlfjR.js → requirementDiagram-UZGBJVZJ-kA_oq2PA.js} +3 -3
- package/dist/requirementDiagram-UZGBJVZJ-mm41geqc.cjs +1161 -0
- package/dist/sankeyDiagram-TZEHDZUN-C6izw8f1.cjs +1193 -0
- package/dist/{sankeyDiagram-TZEHDZUN-B2FErKCa.js → sankeyDiagram-TZEHDZUN-D-ZqnMWy.js} +1 -1
- package/dist/sequenceDiagram-WL72ISMW-CjC76RTk.cjs +3874 -0
- package/dist/{sequenceDiagram-WL72ISMW-BkNTlRlB.js → sequenceDiagram-WL72ISMW-DUEVJaIy.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-CAAFQtS9.js → stateDiagram-FKZM4ZOC-2IfcY2Ye.js} +4 -4
- package/dist/stateDiagram-FKZM4ZOC-DK5kcW23.cjs +447 -0
- package/dist/{stateDiagram-v2-4FDKWEC3-lF6kUebI.js → stateDiagram-v2-4FDKWEC3-DXQKznzB.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-hWKPBy9I.cjs +19 -0
- package/dist/timeline-definition-IT6M3QCI-DwMBhyGj.cjs +1222 -0
- package/dist/{timeline-definition-IT6M3QCI-CQgMFEPA.js → timeline-definition-IT6M3QCI-ohrBFack.js} +2 -2
- package/dist/treemap-KMMF4GRG-Bdodyj4b.cjs +5 -0
- package/dist/{treemap-KMMF4GRG-B0Mc-u8X.js → treemap-KMMF4GRG-C4kqSdak.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-Cee7LdLr.js → xychartDiagram-PRI3JC2R-BBSKFQ3Z.js} +2 -2
- package/dist/xychartDiagram-PRI3JC2R-wKIvgX35.cjs +1886 -0
- package/package.json +19 -6
- package/dist/index.css +0 -3334
- package/dist/info-NVLQJR56-pJlVBPs6.js +0 -5
- package/dist/pie-7BOR55EZ-xH--CiaM.js +0 -5
package/README.md
CHANGED
|
@@ -17,12 +17,21 @@
|
|
|
17
17
|
pnpm add @infinilabs/ai-chat
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
### Peer Dependencies
|
|
21
|
+
|
|
22
|
+
在使用本组件库之前,请确保你的项目中安装了以下依赖(通常这些也是你项目的基础依赖):
|
|
23
|
+
|
|
24
|
+
- `react` >= 18.3.1
|
|
25
|
+
- `react-dom` >= 18.3.1
|
|
26
|
+
- `antd` >= 6
|
|
27
|
+
|
|
20
28
|
本包默认内置:
|
|
21
29
|
|
|
22
30
|
- React 组件 + Zustand 状态管理
|
|
23
|
-
- Tailwind v4 +
|
|
31
|
+
- Tailwind v4 + 一套内置样式(JS 自动注入,无需手动引入 CSS)
|
|
24
32
|
- `react-i18next` 国际化配置(中英文文案)
|
|
25
33
|
- 依赖 `antd` 的 `message` 组件做操作反馈
|
|
34
|
+
- `axios`, `dayjs`, `lucide-react` 等工具库
|
|
26
35
|
|
|
27
36
|
开发与构建:
|
|
28
37
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as Symbol$1, aH as isArray, aP as isArguments, aQ as arrayPush, aJ as identity, aE as baseEach, aR as arrayFilter, aG as baseIteratee, aS as Set, aT as setToArray, aU as SetCache, aV as cacheHas } from "./index-
|
|
1
|
+
import { aO as Symbol$1, aH as isArray, aP as isArguments, aQ as arrayPush, aJ as identity, aE as baseEach, aR as arrayFilter, aG as baseIteratee, aS as Set, aT as setToArray, aU as SetCache, aV as cacheHas } from "./index-TgFTummf.js";
|
|
2
2
|
function noop() {
|
|
3
3
|
}
|
|
4
4
|
function arrayEach(array, iteratee) {
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("./index-BZzFD4NG.cjs");
|
|
3
|
+
function noop() {
|
|
4
|
+
}
|
|
5
|
+
function arrayEach(array, iteratee) {
|
|
6
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
7
|
+
while (++index2 < length) {
|
|
8
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
9
|
+
break;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return array;
|
|
13
|
+
}
|
|
14
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
15
|
+
var length = array.length, index2 = fromIndex + -1;
|
|
16
|
+
while (++index2 < length) {
|
|
17
|
+
if (predicate(array[index2], index2, array)) {
|
|
18
|
+
return index2;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return -1;
|
|
22
|
+
}
|
|
23
|
+
function baseIsNaN(value) {
|
|
24
|
+
return value !== value;
|
|
25
|
+
}
|
|
26
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
27
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
28
|
+
while (++index2 < length) {
|
|
29
|
+
if (array[index2] === value) {
|
|
30
|
+
return index2;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return -1;
|
|
34
|
+
}
|
|
35
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
36
|
+
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
37
|
+
}
|
|
38
|
+
function arrayIncludes(array, value) {
|
|
39
|
+
var length = array == null ? 0 : array.length;
|
|
40
|
+
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
41
|
+
}
|
|
42
|
+
var spreadableSymbol = index.Symbol ? index.Symbol.isConcatSpreadable : void 0;
|
|
43
|
+
function isFlattenable(value) {
|
|
44
|
+
return index.isArray(value) || index.isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
45
|
+
}
|
|
46
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
47
|
+
var index$1 = -1, length = array.length;
|
|
48
|
+
predicate || (predicate = isFlattenable);
|
|
49
|
+
result || (result = []);
|
|
50
|
+
while (++index$1 < length) {
|
|
51
|
+
var value = array[index$1];
|
|
52
|
+
if (predicate(value)) {
|
|
53
|
+
{
|
|
54
|
+
index.arrayPush(result, value);
|
|
55
|
+
}
|
|
56
|
+
} else if (!isStrict) {
|
|
57
|
+
result[result.length] = value;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
63
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
64
|
+
if (initAccum && length) {
|
|
65
|
+
accumulator = array[++index2];
|
|
66
|
+
}
|
|
67
|
+
while (++index2 < length) {
|
|
68
|
+
accumulator = iteratee(accumulator, array[index2], index2, array);
|
|
69
|
+
}
|
|
70
|
+
return accumulator;
|
|
71
|
+
}
|
|
72
|
+
function castFunction(value) {
|
|
73
|
+
return typeof value == "function" ? value : index.identity;
|
|
74
|
+
}
|
|
75
|
+
function forEach(collection, iteratee) {
|
|
76
|
+
var func = index.isArray(collection) ? arrayEach : index.baseEach;
|
|
77
|
+
return func(collection, castFunction(iteratee));
|
|
78
|
+
}
|
|
79
|
+
function baseFilter(collection, predicate) {
|
|
80
|
+
var result = [];
|
|
81
|
+
index.baseEach(collection, function(value, index2, collection2) {
|
|
82
|
+
if (predicate(value, index2, collection2)) {
|
|
83
|
+
result.push(value);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
function filter(collection, predicate) {
|
|
89
|
+
var func = index.isArray(collection) ? index.arrayFilter : baseFilter;
|
|
90
|
+
return func(collection, index.baseIteratee(predicate));
|
|
91
|
+
}
|
|
92
|
+
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
93
|
+
eachFunc(collection, function(value, index2, collection2) {
|
|
94
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
|
|
95
|
+
});
|
|
96
|
+
return accumulator;
|
|
97
|
+
}
|
|
98
|
+
function reduce(collection, iteratee, accumulator) {
|
|
99
|
+
var func = index.isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
100
|
+
return func(collection, index.baseIteratee(iteratee), accumulator, initAccum, index.baseEach);
|
|
101
|
+
}
|
|
102
|
+
var INFINITY = 1 / 0;
|
|
103
|
+
var createSet = !(index.Set && 1 / index.setToArray(new index.Set([, -0]))[1] == INFINITY) ? noop : function(values) {
|
|
104
|
+
return new index.Set(values);
|
|
105
|
+
};
|
|
106
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
107
|
+
function baseUniq(array, iteratee, comparator) {
|
|
108
|
+
var index$1 = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
109
|
+
if (length >= LARGE_ARRAY_SIZE) {
|
|
110
|
+
var set = iteratee ? null : createSet(array);
|
|
111
|
+
if (set) {
|
|
112
|
+
return index.setToArray(set);
|
|
113
|
+
}
|
|
114
|
+
isCommon = false;
|
|
115
|
+
includes = index.cacheHas;
|
|
116
|
+
seen = new index.SetCache();
|
|
117
|
+
} else {
|
|
118
|
+
seen = iteratee ? [] : result;
|
|
119
|
+
}
|
|
120
|
+
outer:
|
|
121
|
+
while (++index$1 < length) {
|
|
122
|
+
var value = array[index$1], computed = iteratee ? iteratee(value) : value;
|
|
123
|
+
value = value !== 0 ? value : 0;
|
|
124
|
+
if (isCommon && computed === computed) {
|
|
125
|
+
var seenIndex = seen.length;
|
|
126
|
+
while (seenIndex--) {
|
|
127
|
+
if (seen[seenIndex] === computed) {
|
|
128
|
+
continue outer;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (iteratee) {
|
|
132
|
+
seen.push(computed);
|
|
133
|
+
}
|
|
134
|
+
result.push(value);
|
|
135
|
+
} else if (!includes(seen, computed, comparator)) {
|
|
136
|
+
if (seen !== result) {
|
|
137
|
+
seen.push(computed);
|
|
138
|
+
}
|
|
139
|
+
result.push(value);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
exports.arrayEach = arrayEach;
|
|
145
|
+
exports.baseFindIndex = baseFindIndex;
|
|
146
|
+
exports.baseFlatten = baseFlatten;
|
|
147
|
+
exports.baseUniq = baseUniq;
|
|
148
|
+
exports.castFunction = castFunction;
|
|
149
|
+
exports.filter = filter;
|
|
150
|
+
exports.forEach = forEach;
|
|
151
|
+
exports.reduce = reduce;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("./index-BZzFD4NG.cjs");
|
|
3
|
+
function arcInnerRadius(d) {
|
|
4
|
+
return d.innerRadius;
|
|
5
|
+
}
|
|
6
|
+
function arcOuterRadius(d) {
|
|
7
|
+
return d.outerRadius;
|
|
8
|
+
}
|
|
9
|
+
function arcStartAngle(d) {
|
|
10
|
+
return d.startAngle;
|
|
11
|
+
}
|
|
12
|
+
function arcEndAngle(d) {
|
|
13
|
+
return d.endAngle;
|
|
14
|
+
}
|
|
15
|
+
function arcPadAngle(d) {
|
|
16
|
+
return d && d.padAngle;
|
|
17
|
+
}
|
|
18
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
19
|
+
var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10;
|
|
20
|
+
if (t * t < index.epsilon) return;
|
|
21
|
+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
|
22
|
+
return [x0 + t * x10, y0 + t * y10];
|
|
23
|
+
}
|
|
24
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
25
|
+
var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / index.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * index.sqrt(index.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;
|
|
26
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
|
27
|
+
return {
|
|
28
|
+
cx: cx0,
|
|
29
|
+
cy: cy0,
|
|
30
|
+
x01: -ox,
|
|
31
|
+
y01: -oy,
|
|
32
|
+
x11: cx0 * (r1 / r - 1),
|
|
33
|
+
y11: cy0 * (r1 / r - 1)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function d3arc() {
|
|
37
|
+
var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = index.constant(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null, path = index.withPath(arc);
|
|
38
|
+
function arc() {
|
|
39
|
+
var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - index.halfPi, a1 = endAngle.apply(this, arguments) - index.halfPi, da = index.abs(a1 - a0), cw = a1 > a0;
|
|
40
|
+
if (!context) context = buffer = path();
|
|
41
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
42
|
+
if (!(r1 > index.epsilon)) context.moveTo(0, 0);
|
|
43
|
+
else if (da > index.tau - index.epsilon) {
|
|
44
|
+
context.moveTo(r1 * index.cos(a0), r1 * index.sin(a0));
|
|
45
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
|
46
|
+
if (r0 > index.epsilon) {
|
|
47
|
+
context.moveTo(r0 * index.cos(a1), r0 * index.sin(a1));
|
|
48
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = ap > index.epsilon && (padRadius ? +padRadius.apply(this, arguments) : index.sqrt(r0 * r0 + r1 * r1)), rc = index.min(index.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1;
|
|
52
|
+
if (rp > index.epsilon) {
|
|
53
|
+
var p0 = index.asin(rp / r0 * index.sin(ap)), p1 = index.asin(rp / r1 * index.sin(ap));
|
|
54
|
+
if ((da0 -= p0 * 2) > index.epsilon) p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;
|
|
55
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
56
|
+
if ((da1 -= p1 * 2) > index.epsilon) p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;
|
|
57
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
58
|
+
}
|
|
59
|
+
var x01 = r1 * index.cos(a01), y01 = r1 * index.sin(a01), x10 = r0 * index.cos(a10), y10 = r0 * index.sin(a10);
|
|
60
|
+
if (rc > index.epsilon) {
|
|
61
|
+
var x11 = r1 * index.cos(a11), y11 = r1 * index.sin(a11), x00 = r0 * index.cos(a00), y00 = r0 * index.sin(a00), oc;
|
|
62
|
+
if (da < index.pi) {
|
|
63
|
+
if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {
|
|
64
|
+
var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / index.sin(index.acos((ax * bx + ay * by) / (index.sqrt(ax * ax + ay * ay) * index.sqrt(bx * bx + by * by))) / 2), lc = index.sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
65
|
+
rc0 = index.min(rc, (r0 - lc) / (kc - 1));
|
|
66
|
+
rc1 = index.min(rc, (r1 - lc) / (kc + 1));
|
|
67
|
+
} else {
|
|
68
|
+
rc0 = rc1 = 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (!(da1 > index.epsilon)) context.moveTo(x01, y01);
|
|
73
|
+
else if (rc1 > index.epsilon) {
|
|
74
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
75
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
76
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
77
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, index.atan2(t0.y01, t0.x01), index.atan2(t1.y01, t1.x01), !cw);
|
|
78
|
+
else {
|
|
79
|
+
context.arc(t0.cx, t0.cy, rc1, index.atan2(t0.y01, t0.x01), index.atan2(t0.y11, t0.x11), !cw);
|
|
80
|
+
context.arc(0, 0, r1, index.atan2(t0.cy + t0.y11, t0.cx + t0.x11), index.atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
|
81
|
+
context.arc(t1.cx, t1.cy, rc1, index.atan2(t1.y11, t1.x11), index.atan2(t1.y01, t1.x01), !cw);
|
|
82
|
+
}
|
|
83
|
+
} else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
|
84
|
+
if (!(r0 > index.epsilon) || !(da0 > index.epsilon)) context.lineTo(x10, y10);
|
|
85
|
+
else if (rc0 > index.epsilon) {
|
|
86
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
87
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
88
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
89
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, index.atan2(t0.y01, t0.x01), index.atan2(t1.y01, t1.x01), !cw);
|
|
90
|
+
else {
|
|
91
|
+
context.arc(t0.cx, t0.cy, rc0, index.atan2(t0.y01, t0.x01), index.atan2(t0.y11, t0.x11), !cw);
|
|
92
|
+
context.arc(0, 0, r0, index.atan2(t0.cy + t0.y11, t0.cx + t0.x11), index.atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
|
93
|
+
context.arc(t1.cx, t1.cy, rc0, index.atan2(t1.y11, t1.x11), index.atan2(t1.y01, t1.x01), !cw);
|
|
94
|
+
}
|
|
95
|
+
} else context.arc(0, 0, r0, a10, a00, cw);
|
|
96
|
+
}
|
|
97
|
+
context.closePath();
|
|
98
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
99
|
+
}
|
|
100
|
+
arc.centroid = function() {
|
|
101
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - index.pi / 2;
|
|
102
|
+
return [index.cos(a) * r, index.sin(a) * r];
|
|
103
|
+
};
|
|
104
|
+
arc.innerRadius = function(_) {
|
|
105
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : index.constant(+_), arc) : innerRadius;
|
|
106
|
+
};
|
|
107
|
+
arc.outerRadius = function(_) {
|
|
108
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : index.constant(+_), arc) : outerRadius;
|
|
109
|
+
};
|
|
110
|
+
arc.cornerRadius = function(_) {
|
|
111
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : index.constant(+_), arc) : cornerRadius;
|
|
112
|
+
};
|
|
113
|
+
arc.padRadius = function(_) {
|
|
114
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : index.constant(+_), arc) : padRadius;
|
|
115
|
+
};
|
|
116
|
+
arc.startAngle = function(_) {
|
|
117
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : index.constant(+_), arc) : startAngle;
|
|
118
|
+
};
|
|
119
|
+
arc.endAngle = function(_) {
|
|
120
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : index.constant(+_), arc) : endAngle;
|
|
121
|
+
};
|
|
122
|
+
arc.padAngle = function(_) {
|
|
123
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : index.constant(+_), arc) : padAngle;
|
|
124
|
+
};
|
|
125
|
+
arc.context = function(_) {
|
|
126
|
+
return arguments.length ? (context = _ == null ? null : _, arc) : context;
|
|
127
|
+
};
|
|
128
|
+
return arc;
|
|
129
|
+
}
|
|
130
|
+
exports.d3arc = d3arc;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as withPath, a1 as pi, a2 as cos, a3 as sin, a4 as constant, a5 as halfPi, a6 as epsilon, a7 as tau, a8 as sqrt, a9 as min, aa as abs, ab as atan2, ac as asin, ad as max, ae as acos } from "./index-
|
|
1
|
+
import { a0 as withPath, a1 as pi, a2 as cos, a3 as sin, a4 as constant, a5 as halfPi, a6 as epsilon, a7 as tau, a8 as sqrt, a9 as min, aa as abs, ab as atan2, ac as asin, ad as max, ae as acos } from "./index-TgFTummf.js";
|
|
2
2
|
function arcInnerRadius(d) {
|
|
3
3
|
return d.innerRadius;
|
|
4
4
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const mermaidParser_core = require("./mermaid-parser.core-BjisUoZL.cjs");
|
|
4
|
+
exports.ArchitectureModule = mermaidParser_core.ArchitectureModule;
|
|
5
|
+
exports.createArchitectureServices = mermaidParser_core.createArchitectureServices;
|
package/dist/{architectureDiagram-VXUJARFQ-D6SKNy5z.js → architectureDiagram-VXUJARFQ-BD3g0-L9.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { aK as getDefaultExportFromCjs, _ as __name, H as selectSvgElement, V as setupGraphViewbox, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, y as clear, D as cleanAndMerge, E as getConfig, F as defaultConfig_default, c as getConfig2, ak as createText, aL as getIconSVG, i as sanitizeText, d as select, x as getEdgeId, aM as registerIconPacks, aN as unknownIcon } from "./index-
|
|
3
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
4
|
-
import { p as parse } from "./mermaid-parser.core-
|
|
2
|
+
import { aK as getDefaultExportFromCjs, _ as __name, H as selectSvgElement, V as setupGraphViewbox, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, y as clear, D as cleanAndMerge, E as getConfig, F as defaultConfig_default, c as getConfig2, ak as createText, aL as getIconSVG, i as sanitizeText, d as select, x as getEdgeId, aM as registerIconPacks, aN as unknownIcon } from "./index-TgFTummf.js";
|
|
3
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-CJqHiK4X.js";
|
|
4
|
+
import { p as parse } from "./mermaid-parser.core-D51-lxGS.js";
|
|
5
5
|
import { c as cytoscape$1 } from "./cytoscape.esm-BfvZ3QT_.js";
|
|
6
6
|
var cytoscapeFcose$1 = { exports: {} };
|
|
7
7
|
var coseBase$1 = { exports: {} };
|