@oxide/design-system 1.7.6 → 1.7.7--canary.87d60df.0
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/components/dist/architecture-I3QFYML2-YZWO3N3B.js +14 -0
- package/components/dist/architecture-I3QFYML2-YZWO3N3B.js.map +1 -0
- package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js +8846 -0
- package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js.map +1 -0
- package/components/dist/asciidoc.css +1 -1
- package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js +3721 -0
- package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js.map +1 -0
- package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js +2599 -0
- package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js.map +1 -0
- package/components/dist/chunk-2DDKDUUO.js +439 -0
- package/components/dist/chunk-2DDKDUUO.js.map +1 -0
- package/components/dist/chunk-2NHDMTP7.js +26905 -0
- package/components/dist/chunk-2NHDMTP7.js.map +1 -0
- package/components/dist/chunk-4IJS44L3.js +22 -0
- package/components/dist/chunk-4IJS44L3.js.map +1 -0
- package/components/dist/chunk-562WOS3Z.js +1109 -0
- package/components/dist/chunk-562WOS3Z.js.map +1 -0
- package/components/dist/chunk-6UD2HOKB.js +17082 -0
- package/components/dist/chunk-6UD2HOKB.js.map +1 -0
- package/components/dist/chunk-76BOQ7BT.js +63 -0
- package/components/dist/chunk-76BOQ7BT.js.map +1 -0
- package/components/dist/chunk-7I5DT373.js +97 -0
- package/components/dist/chunk-7I5DT373.js.map +1 -0
- package/components/dist/chunk-BPREMNVP.js +1875 -0
- package/components/dist/chunk-BPREMNVP.js.map +1 -0
- package/components/dist/chunk-BVYAEHG3.js +122 -0
- package/components/dist/chunk-BVYAEHG3.js.map +1 -0
- package/components/dist/chunk-BW7DFBOS.js +152 -0
- package/components/dist/chunk-BW7DFBOS.js.map +1 -0
- package/components/dist/chunk-EZG2MNHW.js +59 -0
- package/components/dist/chunk-EZG2MNHW.js.map +1 -0
- package/components/dist/chunk-G6QWNAHJ.js +43 -0
- package/components/dist/chunk-G6QWNAHJ.js.map +1 -0
- package/components/dist/chunk-H72D3HRR.js +1244 -0
- package/components/dist/chunk-H72D3HRR.js.map +1 -0
- package/components/dist/chunk-K532NZMW.js +46 -0
- package/components/dist/chunk-K532NZMW.js.map +1 -0
- package/components/dist/chunk-LC3BX2KL.js +25 -0
- package/components/dist/chunk-LC3BX2KL.js.map +1 -0
- package/components/dist/chunk-LQ2ABR7F.js +5665 -0
- package/components/dist/chunk-LQ2ABR7F.js.map +1 -0
- package/components/dist/chunk-M6L3MM6K.js +22 -0
- package/components/dist/chunk-M6L3MM6K.js.map +1 -0
- package/components/dist/chunk-MWA4PRRW.js +122 -0
- package/components/dist/chunk-MWA4PRRW.js.map +1 -0
- package/components/dist/chunk-ND3FLKHU.js +570 -0
- package/components/dist/chunk-ND3FLKHU.js.map +1 -0
- package/components/dist/chunk-NIVHLOPB.js +2621 -0
- package/components/dist/chunk-NIVHLOPB.js.map +1 -0
- package/components/dist/chunk-R6F6FFK7.js +65 -0
- package/components/dist/chunk-R6F6FFK7.js.map +1 -0
- package/components/dist/chunk-RN5R3L7O.js +2041 -0
- package/components/dist/chunk-RN5R3L7O.js.map +1 -0
- package/components/dist/chunk-RWDBBMDN.js +10910 -0
- package/components/dist/chunk-RWDBBMDN.js.map +1 -0
- package/components/dist/chunk-T7HPDS4Z.js +573 -0
- package/components/dist/chunk-T7HPDS4Z.js.map +1 -0
- package/components/dist/chunk-TG4YEU4Q.js +23 -0
- package/components/dist/chunk-TG4YEU4Q.js.map +1 -0
- package/components/dist/chunk-U5WCXBW2.js +48 -0
- package/components/dist/chunk-U5WCXBW2.js.map +1 -0
- package/components/dist/chunk-V6PWN6OH.js +1875 -0
- package/components/dist/chunk-V6PWN6OH.js.map +1 -0
- package/components/dist/chunk-VLTHNCSD.js +48 -0
- package/components/dist/chunk-VLTHNCSD.js.map +1 -0
- package/components/dist/chunk-WDK4G4UR.js +2791 -0
- package/components/dist/chunk-WDK4G4UR.js.map +1 -0
- package/components/dist/chunk-WLVQWTC6.js +77 -0
- package/components/dist/chunk-WLVQWTC6.js.map +1 -0
- package/components/dist/chunk-YDLS5R4M.js +48 -0
- package/components/dist/chunk-YDLS5R4M.js.map +1 -0
- package/components/dist/chunk-YGFBWU2Q.js +7 -0
- package/components/dist/chunk-YGFBWU2Q.js.map +1 -0
- package/components/dist/chunk-ZBL4CWCH.js +2120 -0
- package/components/dist/chunk-ZBL4CWCH.js.map +1 -0
- package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js +40 -0
- package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js.map +1 -0
- package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js +40 -0
- package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js.map +1 -0
- package/components/dist/dagre-4EVJKHTY-XW45LMKR.js +734 -0
- package/components/dist/dagre-4EVJKHTY-XW45LMKR.js.map +1 -0
- package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js +226 -0
- package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js.map +1 -0
- package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js +1381 -0
- package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js.map +1 -0
- package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js +2349 -0
- package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js.map +1 -0
- package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js +2413 -0
- package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js.map +1 -0
- package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js +14 -0
- package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js.map +1 -0
- package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js +1763 -0
- package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js.map +1 -0
- package/components/dist/index.d.ts +54 -3
- package/components/dist/index.js +3794 -226
- package/components/dist/index.js.map +1 -1
- package/components/dist/info-46DW6VJ7-43TTIEYF.js +14 -0
- package/components/dist/info-46DW6VJ7-43TTIEYF.js.map +1 -0
- package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js +54 -0
- package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js.map +1 -0
- package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js +1244 -0
- package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js.map +1 -0
- package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js +1119 -0
- package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js.map +1 -0
- package/components/dist/katex-WNZY3CE5.js +14484 -0
- package/components/dist/katex-WNZY3CE5.js.map +1 -0
- package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js +6013 -0
- package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js.map +1 -0
- package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js +14 -0
- package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js.map +1 -0
- package/components/dist/pie-BEWT4RHE-UFFBBCXM.js +14 -0
- package/components/dist/pie-BEWT4RHE-UFFBBCXM.js.map +1 -0
- package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js +223 -0
- package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js.map +1 -0
- package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js +1408 -0
- package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js.map +1 -0
- package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js +1175 -0
- package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js.map +1 -0
- package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js +1278 -0
- package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js.map +1 -0
- package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js +3529 -0
- package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js.map +1 -0
- package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js +505 -0
- package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js.map +1 -0
- package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js +40 -0
- package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js.map +1 -0
- package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js +1260 -0
- package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js.map +1 -0
- package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js +1877 -0
- package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js.map +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import {
|
|
2
|
+
filter_default,
|
|
3
|
+
forEach_default,
|
|
4
|
+
isUndefined_default,
|
|
5
|
+
keys_default,
|
|
6
|
+
reduce_default,
|
|
7
|
+
union_default,
|
|
8
|
+
values_default
|
|
9
|
+
} from "./chunk-ZBL4CWCH.js";
|
|
10
|
+
import {
|
|
11
|
+
isEmpty_default
|
|
12
|
+
} from "./chunk-BVYAEHG3.js";
|
|
13
|
+
import {
|
|
14
|
+
constant_default,
|
|
15
|
+
isFunction_default
|
|
16
|
+
} from "./chunk-562WOS3Z.js";
|
|
17
|
+
|
|
18
|
+
// node_modules/dagre-d3-es/src/graphlib/graph.js
|
|
19
|
+
var DEFAULT_EDGE_NAME = "\0";
|
|
20
|
+
var GRAPH_NODE = "\0";
|
|
21
|
+
var EDGE_KEY_DELIM = "";
|
|
22
|
+
var Graph = class {
|
|
23
|
+
constructor(opts = {}) {
|
|
24
|
+
this._isDirected = Object.prototype.hasOwnProperty.call(opts, "directed") ? opts.directed : true;
|
|
25
|
+
this._isMultigraph = Object.prototype.hasOwnProperty.call(opts, "multigraph") ? opts.multigraph : false;
|
|
26
|
+
this._isCompound = Object.prototype.hasOwnProperty.call(opts, "compound") ? opts.compound : false;
|
|
27
|
+
this._label = void 0;
|
|
28
|
+
this._defaultNodeLabelFn = constant_default(void 0);
|
|
29
|
+
this._defaultEdgeLabelFn = constant_default(void 0);
|
|
30
|
+
this._nodes = {};
|
|
31
|
+
if (this._isCompound) {
|
|
32
|
+
this._parent = {};
|
|
33
|
+
this._children = {};
|
|
34
|
+
this._children[GRAPH_NODE] = {};
|
|
35
|
+
}
|
|
36
|
+
this._in = {};
|
|
37
|
+
this._preds = {};
|
|
38
|
+
this._out = {};
|
|
39
|
+
this._sucs = {};
|
|
40
|
+
this._edgeObjs = {};
|
|
41
|
+
this._edgeLabels = {};
|
|
42
|
+
}
|
|
43
|
+
/* === Graph functions ========= */
|
|
44
|
+
isDirected() {
|
|
45
|
+
return this._isDirected;
|
|
46
|
+
}
|
|
47
|
+
isMultigraph() {
|
|
48
|
+
return this._isMultigraph;
|
|
49
|
+
}
|
|
50
|
+
isCompound() {
|
|
51
|
+
return this._isCompound;
|
|
52
|
+
}
|
|
53
|
+
setGraph(label) {
|
|
54
|
+
this._label = label;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
graph() {
|
|
58
|
+
return this._label;
|
|
59
|
+
}
|
|
60
|
+
/* === Node functions ========== */
|
|
61
|
+
setDefaultNodeLabel(newDefault) {
|
|
62
|
+
if (!isFunction_default(newDefault)) {
|
|
63
|
+
newDefault = constant_default(newDefault);
|
|
64
|
+
}
|
|
65
|
+
this._defaultNodeLabelFn = newDefault;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
nodeCount() {
|
|
69
|
+
return this._nodeCount;
|
|
70
|
+
}
|
|
71
|
+
nodes() {
|
|
72
|
+
return keys_default(this._nodes);
|
|
73
|
+
}
|
|
74
|
+
sources() {
|
|
75
|
+
var self = this;
|
|
76
|
+
return filter_default(this.nodes(), function(v) {
|
|
77
|
+
return isEmpty_default(self._in[v]);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
sinks() {
|
|
81
|
+
var self = this;
|
|
82
|
+
return filter_default(this.nodes(), function(v) {
|
|
83
|
+
return isEmpty_default(self._out[v]);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
setNodes(vs, value) {
|
|
87
|
+
var args = arguments;
|
|
88
|
+
var self = this;
|
|
89
|
+
forEach_default(vs, function(v) {
|
|
90
|
+
if (args.length > 1) {
|
|
91
|
+
self.setNode(v, value);
|
|
92
|
+
} else {
|
|
93
|
+
self.setNode(v);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
setNode(v, value) {
|
|
99
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
|
|
100
|
+
if (arguments.length > 1) {
|
|
101
|
+
this._nodes[v] = value;
|
|
102
|
+
}
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
|
|
106
|
+
if (this._isCompound) {
|
|
107
|
+
this._parent[v] = GRAPH_NODE;
|
|
108
|
+
this._children[v] = {};
|
|
109
|
+
this._children[GRAPH_NODE][v] = true;
|
|
110
|
+
}
|
|
111
|
+
this._in[v] = {};
|
|
112
|
+
this._preds[v] = {};
|
|
113
|
+
this._out[v] = {};
|
|
114
|
+
this._sucs[v] = {};
|
|
115
|
+
++this._nodeCount;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
node(v) {
|
|
119
|
+
return this._nodes[v];
|
|
120
|
+
}
|
|
121
|
+
hasNode(v) {
|
|
122
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, v);
|
|
123
|
+
}
|
|
124
|
+
removeNode(v) {
|
|
125
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
|
|
126
|
+
var removeEdge = (e) => this.removeEdge(this._edgeObjs[e]);
|
|
127
|
+
delete this._nodes[v];
|
|
128
|
+
if (this._isCompound) {
|
|
129
|
+
this._removeFromParentsChildList(v);
|
|
130
|
+
delete this._parent[v];
|
|
131
|
+
forEach_default(this.children(v), (child) => {
|
|
132
|
+
this.setParent(child);
|
|
133
|
+
});
|
|
134
|
+
delete this._children[v];
|
|
135
|
+
}
|
|
136
|
+
forEach_default(keys_default(this._in[v]), removeEdge);
|
|
137
|
+
delete this._in[v];
|
|
138
|
+
delete this._preds[v];
|
|
139
|
+
forEach_default(keys_default(this._out[v]), removeEdge);
|
|
140
|
+
delete this._out[v];
|
|
141
|
+
delete this._sucs[v];
|
|
142
|
+
--this._nodeCount;
|
|
143
|
+
}
|
|
144
|
+
return this;
|
|
145
|
+
}
|
|
146
|
+
setParent(v, parent) {
|
|
147
|
+
if (!this._isCompound) {
|
|
148
|
+
throw new Error("Cannot set parent in a non-compound graph");
|
|
149
|
+
}
|
|
150
|
+
if (isUndefined_default(parent)) {
|
|
151
|
+
parent = GRAPH_NODE;
|
|
152
|
+
} else {
|
|
153
|
+
parent += "";
|
|
154
|
+
for (var ancestor = parent; !isUndefined_default(ancestor); ancestor = this.parent(ancestor)) {
|
|
155
|
+
if (ancestor === v) {
|
|
156
|
+
throw new Error("Setting " + parent + " as parent of " + v + " would create a cycle");
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
this.setNode(parent);
|
|
160
|
+
}
|
|
161
|
+
this.setNode(v);
|
|
162
|
+
this._removeFromParentsChildList(v);
|
|
163
|
+
this._parent[v] = parent;
|
|
164
|
+
this._children[parent][v] = true;
|
|
165
|
+
return this;
|
|
166
|
+
}
|
|
167
|
+
_removeFromParentsChildList(v) {
|
|
168
|
+
delete this._children[this._parent[v]][v];
|
|
169
|
+
}
|
|
170
|
+
parent(v) {
|
|
171
|
+
if (this._isCompound) {
|
|
172
|
+
var parent = this._parent[v];
|
|
173
|
+
if (parent !== GRAPH_NODE) {
|
|
174
|
+
return parent;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
children(v) {
|
|
179
|
+
if (isUndefined_default(v)) {
|
|
180
|
+
v = GRAPH_NODE;
|
|
181
|
+
}
|
|
182
|
+
if (this._isCompound) {
|
|
183
|
+
var children = this._children[v];
|
|
184
|
+
if (children) {
|
|
185
|
+
return keys_default(children);
|
|
186
|
+
}
|
|
187
|
+
} else if (v === GRAPH_NODE) {
|
|
188
|
+
return this.nodes();
|
|
189
|
+
} else if (this.hasNode(v)) {
|
|
190
|
+
return [];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
predecessors(v) {
|
|
194
|
+
var predsV = this._preds[v];
|
|
195
|
+
if (predsV) {
|
|
196
|
+
return keys_default(predsV);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
successors(v) {
|
|
200
|
+
var sucsV = this._sucs[v];
|
|
201
|
+
if (sucsV) {
|
|
202
|
+
return keys_default(sucsV);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
neighbors(v) {
|
|
206
|
+
var preds = this.predecessors(v);
|
|
207
|
+
if (preds) {
|
|
208
|
+
return union_default(preds, this.successors(v));
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
isLeaf(v) {
|
|
212
|
+
var neighbors;
|
|
213
|
+
if (this.isDirected()) {
|
|
214
|
+
neighbors = this.successors(v);
|
|
215
|
+
} else {
|
|
216
|
+
neighbors = this.neighbors(v);
|
|
217
|
+
}
|
|
218
|
+
return neighbors.length === 0;
|
|
219
|
+
}
|
|
220
|
+
filterNodes(filter) {
|
|
221
|
+
var copy = new this.constructor({
|
|
222
|
+
directed: this._isDirected,
|
|
223
|
+
multigraph: this._isMultigraph,
|
|
224
|
+
compound: this._isCompound
|
|
225
|
+
});
|
|
226
|
+
copy.setGraph(this.graph());
|
|
227
|
+
var self = this;
|
|
228
|
+
forEach_default(this._nodes, function(value, v) {
|
|
229
|
+
if (filter(v)) {
|
|
230
|
+
copy.setNode(v, value);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
forEach_default(this._edgeObjs, function(e) {
|
|
234
|
+
if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
|
|
235
|
+
copy.setEdge(e, self.edge(e));
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
var parents = {};
|
|
239
|
+
function findParent(v) {
|
|
240
|
+
var parent = self.parent(v);
|
|
241
|
+
if (parent === void 0 || copy.hasNode(parent)) {
|
|
242
|
+
parents[v] = parent;
|
|
243
|
+
return parent;
|
|
244
|
+
} else if (parent in parents) {
|
|
245
|
+
return parents[parent];
|
|
246
|
+
} else {
|
|
247
|
+
return findParent(parent);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (this._isCompound) {
|
|
251
|
+
forEach_default(copy.nodes(), function(v) {
|
|
252
|
+
copy.setParent(v, findParent(v));
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
return copy;
|
|
256
|
+
}
|
|
257
|
+
/* === Edge functions ========== */
|
|
258
|
+
setDefaultEdgeLabel(newDefault) {
|
|
259
|
+
if (!isFunction_default(newDefault)) {
|
|
260
|
+
newDefault = constant_default(newDefault);
|
|
261
|
+
}
|
|
262
|
+
this._defaultEdgeLabelFn = newDefault;
|
|
263
|
+
return this;
|
|
264
|
+
}
|
|
265
|
+
edgeCount() {
|
|
266
|
+
return this._edgeCount;
|
|
267
|
+
}
|
|
268
|
+
edges() {
|
|
269
|
+
return values_default(this._edgeObjs);
|
|
270
|
+
}
|
|
271
|
+
setPath(vs, value) {
|
|
272
|
+
var self = this;
|
|
273
|
+
var args = arguments;
|
|
274
|
+
reduce_default(vs, function(v, w) {
|
|
275
|
+
if (args.length > 1) {
|
|
276
|
+
self.setEdge(v, w, value);
|
|
277
|
+
} else {
|
|
278
|
+
self.setEdge(v, w);
|
|
279
|
+
}
|
|
280
|
+
return w;
|
|
281
|
+
});
|
|
282
|
+
return this;
|
|
283
|
+
}
|
|
284
|
+
/*
|
|
285
|
+
* setEdge(v, w, [value, [name]])
|
|
286
|
+
* setEdge({ v, w, [name] }, [value])
|
|
287
|
+
*/
|
|
288
|
+
setEdge() {
|
|
289
|
+
var v, w, name, value;
|
|
290
|
+
var valueSpecified = false;
|
|
291
|
+
var arg0 = arguments[0];
|
|
292
|
+
if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
|
|
293
|
+
v = arg0.v;
|
|
294
|
+
w = arg0.w;
|
|
295
|
+
name = arg0.name;
|
|
296
|
+
if (arguments.length === 2) {
|
|
297
|
+
value = arguments[1];
|
|
298
|
+
valueSpecified = true;
|
|
299
|
+
}
|
|
300
|
+
} else {
|
|
301
|
+
v = arg0;
|
|
302
|
+
w = arguments[1];
|
|
303
|
+
name = arguments[3];
|
|
304
|
+
if (arguments.length > 2) {
|
|
305
|
+
value = arguments[2];
|
|
306
|
+
valueSpecified = true;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
v = "" + v;
|
|
310
|
+
w = "" + w;
|
|
311
|
+
if (!isUndefined_default(name)) {
|
|
312
|
+
name = "" + name;
|
|
313
|
+
}
|
|
314
|
+
var e = edgeArgsToId(this._isDirected, v, w, name);
|
|
315
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, e)) {
|
|
316
|
+
if (valueSpecified) {
|
|
317
|
+
this._edgeLabels[e] = value;
|
|
318
|
+
}
|
|
319
|
+
return this;
|
|
320
|
+
}
|
|
321
|
+
if (!isUndefined_default(name) && !this._isMultigraph) {
|
|
322
|
+
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
323
|
+
}
|
|
324
|
+
this.setNode(v);
|
|
325
|
+
this.setNode(w);
|
|
326
|
+
this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
|
|
327
|
+
var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
|
|
328
|
+
v = edgeObj.v;
|
|
329
|
+
w = edgeObj.w;
|
|
330
|
+
Object.freeze(edgeObj);
|
|
331
|
+
this._edgeObjs[e] = edgeObj;
|
|
332
|
+
incrementOrInitEntry(this._preds[w], v);
|
|
333
|
+
incrementOrInitEntry(this._sucs[v], w);
|
|
334
|
+
this._in[w][e] = edgeObj;
|
|
335
|
+
this._out[v][e] = edgeObj;
|
|
336
|
+
this._edgeCount++;
|
|
337
|
+
return this;
|
|
338
|
+
}
|
|
339
|
+
edge(v, w, name) {
|
|
340
|
+
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
341
|
+
return this._edgeLabels[e];
|
|
342
|
+
}
|
|
343
|
+
hasEdge(v, w, name) {
|
|
344
|
+
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
345
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, e);
|
|
346
|
+
}
|
|
347
|
+
removeEdge(v, w, name) {
|
|
348
|
+
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
349
|
+
var edge = this._edgeObjs[e];
|
|
350
|
+
if (edge) {
|
|
351
|
+
v = edge.v;
|
|
352
|
+
w = edge.w;
|
|
353
|
+
delete this._edgeLabels[e];
|
|
354
|
+
delete this._edgeObjs[e];
|
|
355
|
+
decrementOrRemoveEntry(this._preds[w], v);
|
|
356
|
+
decrementOrRemoveEntry(this._sucs[v], w);
|
|
357
|
+
delete this._in[w][e];
|
|
358
|
+
delete this._out[v][e];
|
|
359
|
+
this._edgeCount--;
|
|
360
|
+
}
|
|
361
|
+
return this;
|
|
362
|
+
}
|
|
363
|
+
inEdges(v, u) {
|
|
364
|
+
var inV = this._in[v];
|
|
365
|
+
if (inV) {
|
|
366
|
+
var edges = values_default(inV);
|
|
367
|
+
if (!u) {
|
|
368
|
+
return edges;
|
|
369
|
+
}
|
|
370
|
+
return filter_default(edges, function(edge) {
|
|
371
|
+
return edge.v === u;
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
outEdges(v, w) {
|
|
376
|
+
var outV = this._out[v];
|
|
377
|
+
if (outV) {
|
|
378
|
+
var edges = values_default(outV);
|
|
379
|
+
if (!w) {
|
|
380
|
+
return edges;
|
|
381
|
+
}
|
|
382
|
+
return filter_default(edges, function(edge) {
|
|
383
|
+
return edge.w === w;
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
nodeEdges(v, w) {
|
|
388
|
+
var inEdges = this.inEdges(v, w);
|
|
389
|
+
if (inEdges) {
|
|
390
|
+
return inEdges.concat(this.outEdges(v, w));
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
Graph.prototype._nodeCount = 0;
|
|
395
|
+
Graph.prototype._edgeCount = 0;
|
|
396
|
+
function incrementOrInitEntry(map, k) {
|
|
397
|
+
if (map[k]) {
|
|
398
|
+
map[k]++;
|
|
399
|
+
} else {
|
|
400
|
+
map[k] = 1;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function decrementOrRemoveEntry(map, k) {
|
|
404
|
+
if (!--map[k]) {
|
|
405
|
+
delete map[k];
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
function edgeArgsToId(isDirected, v_, w_, name) {
|
|
409
|
+
var v = "" + v_;
|
|
410
|
+
var w = "" + w_;
|
|
411
|
+
if (!isDirected && v > w) {
|
|
412
|
+
var tmp = v;
|
|
413
|
+
v = w;
|
|
414
|
+
w = tmp;
|
|
415
|
+
}
|
|
416
|
+
return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (isUndefined_default(name) ? DEFAULT_EDGE_NAME : name);
|
|
417
|
+
}
|
|
418
|
+
function edgeArgsToObj(isDirected, v_, w_, name) {
|
|
419
|
+
var v = "" + v_;
|
|
420
|
+
var w = "" + w_;
|
|
421
|
+
if (!isDirected && v > w) {
|
|
422
|
+
var tmp = v;
|
|
423
|
+
v = w;
|
|
424
|
+
w = tmp;
|
|
425
|
+
}
|
|
426
|
+
var edgeObj = { v, w };
|
|
427
|
+
if (name) {
|
|
428
|
+
edgeObj.name = name;
|
|
429
|
+
}
|
|
430
|
+
return edgeObj;
|
|
431
|
+
}
|
|
432
|
+
function edgeObjToId(isDirected, edgeObj) {
|
|
433
|
+
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export {
|
|
437
|
+
Graph
|
|
438
|
+
};
|
|
439
|
+
//# sourceMappingURL=chunk-2DDKDUUO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../node_modules/dagre-d3-es/src/graphlib/graph.js"],"sourcesContent":["import * as _ from 'lodash-es';\n\nvar DEFAULT_EDGE_NAME = '\\x00';\nvar GRAPH_NODE = '\\x00';\nvar EDGE_KEY_DELIM = '\\x01';\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\nexport class Graph {\n constructor(opts = {}) {\n this._isDirected = Object.prototype.hasOwnProperty.call(opts, 'directed')\n ? opts.directed\n : true;\n this._isMultigraph = Object.prototype.hasOwnProperty.call(opts, 'multigraph')\n ? opts.multigraph\n : false;\n this._isCompound = Object.prototype.hasOwnProperty.call(opts, 'compound')\n ? opts.compound\n : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n }\n /* === Graph functions ========= */\n isDirected() {\n return this._isDirected;\n }\n isMultigraph() {\n return this._isMultigraph;\n }\n isCompound() {\n return this._isCompound;\n }\n setGraph(label) {\n this._label = label;\n return this;\n }\n graph() {\n return this._label;\n }\n /* === Node functions ========== */\n setDefaultNodeLabel(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n }\n nodeCount() {\n return this._nodeCount;\n }\n nodes() {\n return _.keys(this._nodes);\n }\n sources() {\n var self = this;\n return _.filter(this.nodes(), function (v) {\n return _.isEmpty(self._in[v]);\n });\n }\n sinks() {\n var self = this;\n return _.filter(this.nodes(), function (v) {\n return _.isEmpty(self._out[v]);\n });\n }\n setNodes(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function (v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n }\n setNode(v, value) {\n if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n // @ts-expect-error\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n }\n node(v) {\n return this._nodes[v];\n }\n hasNode(v) {\n return Object.prototype.hasOwnProperty.call(this._nodes, v);\n }\n removeNode(v) {\n if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {\n var removeEdge = (e) => this.removeEdge(this._edgeObjs[e]);\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), (child) => {\n this.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n }\n setParent(v, parent) {\n if (!this._isCompound) {\n throw new Error('Cannot set parent in a non-compound graph');\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += '';\n for (var ancestor = parent; !_.isUndefined(ancestor); ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error('Setting ' + parent + ' as parent of ' + v + ' would create a cycle');\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n }\n _removeFromParentsChildList(v) {\n delete this._children[this._parent[v]][v];\n }\n parent(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n }\n children(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n }\n predecessors(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n }\n successors(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n }\n neighbors(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n }\n isLeaf(v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n }\n filterNodes(filter) {\n // @ts-expect-error\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound,\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function (value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function (e) {\n // @ts-expect-error\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function (v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n }\n /* === Edge functions ========== */\n setDefaultEdgeLabel(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n }\n edgeCount() {\n return this._edgeCount;\n }\n edges() {\n return _.values(this._edgeObjs);\n }\n setPath(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function (v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n }\n /*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\n setEdge() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === 'object' && arg0 !== null && 'v' in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = '' + v;\n w = '' + w;\n if (!_.isUndefined(name)) {\n name = '' + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (Object.prototype.hasOwnProperty.call(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error('Cannot set a named edge when isMultigraph = false');\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n // @ts-expect-error\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n }\n edge(v, w, name) {\n var e =\n arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name);\n return this._edgeLabels[e];\n }\n hasEdge(v, w, name) {\n var e =\n arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name);\n return Object.prototype.hasOwnProperty.call(this._edgeLabels, e);\n }\n removeEdge(v, w, name) {\n var e =\n arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name);\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n }\n inEdges(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function (edge) {\n return edge.v === u;\n });\n }\n }\n outEdges(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function (edge) {\n return edge.w === w;\n });\n }\n }\n nodeEdges(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n }\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) {\n delete map[k];\n }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = '' + v_;\n var w = '' + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = '' + v_;\n var w = '' + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAEA,IAAI,oBAAoB;AACxB,IAAI,aAAa;AACjB,IAAI,iBAAiB;AAqBd,IAAM,QAAN,MAAY;AAAA,EACjB,YAAY,OAAO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