@readme/markdown 7.10.1 → 7.10.2

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.
Files changed (44) hide show
  1. package/components/Image/index.tsx +1 -1
  2. package/dist/lib/migrate.d.ts +3 -1
  3. package/dist/main.js +19 -28
  4. package/dist/main.node.js +419 -5471
  5. package/dist/processor/migration/index.d.ts +2 -1
  6. package/dist/processor/migration/table-cell.d.ts +1 -1
  7. package/package.json +2 -2
  8. package/dist/10.node.js +0 -22721
  9. package/dist/11.node.js +0 -1443
  10. package/dist/120.node.js +0 -22
  11. package/dist/134.node.js +0 -22
  12. package/dist/150.node.js +0 -1891
  13. package/dist/17.node.js +0 -1376
  14. package/dist/246.node.js +0 -1932
  15. package/dist/351.node.js +0 -2403
  16. package/dist/366.node.js +0 -1184
  17. package/dist/403.node.js +0 -2195
  18. package/dist/429.node.js +0 -11133
  19. package/dist/485.node.js +0 -517
  20. package/dist/486.node.js +0 -31818
  21. package/dist/488.node.js +0 -58
  22. package/dist/489.node.js +0 -18475
  23. package/dist/510.node.js +0 -249
  24. package/dist/52.node.js +0 -811
  25. package/dist/550.node.js +0 -1456
  26. package/dist/551.node.js +0 -2725
  27. package/dist/617.node.js +0 -22
  28. package/dist/687.node.js +0 -3674
  29. package/dist/745.node.js +0 -7507
  30. package/dist/775.node.js +0 -1903
  31. package/dist/786.node.js +0 -31381
  32. package/dist/788.node.js +0 -1024
  33. package/dist/81.node.js +0 -385
  34. package/dist/849.node.js +0 -2589
  35. package/dist/863.node.js +0 -22
  36. package/dist/867.node.js +0 -1417
  37. package/dist/881.node.js +0 -1279
  38. package/dist/885.node.js +0 -51
  39. package/dist/896.node.js +0 -1616
  40. package/dist/906.node.js +0 -1818
  41. package/dist/91.node.js +0 -22
  42. package/dist/940.node.js +0 -3362
  43. package/dist/952.node.js +0 -246
  44. package/dist/995.node.js +0 -5737
package/dist/81.node.js DELETED
@@ -1,385 +0,0 @@
1
- "use strict";
2
- exports.id = 81;
3
- exports.ids = [81];
4
- exports.modules = {
5
-
6
- /***/ 7081:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ diagram: () => (/* binding */ diagram)
11
- /* harmony export */ });
12
- /* harmony import */ var _chunk_NGC4727B_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4896);
13
- /* harmony import */ var _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2843);
14
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6322);
15
- /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8066);
16
- /* harmony import */ var dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(995);
17
- /* harmony import */ var dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4416);
18
-
19
-
20
-
21
-
22
- // src/diagrams/class/classRenderer.js
23
-
24
-
25
-
26
-
27
- // src/diagrams/class/svgDraw.js
28
-
29
- var edgeCount = 0;
30
- var drawEdge = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(elem, path, relation, conf, diagObj) {
31
- const getRelationType = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(type) {
32
- switch (type) {
33
- case diagObj.db.relationType.AGGREGATION:
34
- return "aggregation";
35
- case diagObj.db.relationType.EXTENSION:
36
- return "extension";
37
- case diagObj.db.relationType.COMPOSITION:
38
- return "composition";
39
- case diagObj.db.relationType.DEPENDENCY:
40
- return "dependency";
41
- case diagObj.db.relationType.LOLLIPOP:
42
- return "lollipop";
43
- }
44
- }, "getRelationType");
45
- path.points = path.points.filter((p) => !Number.isNaN(p.y));
46
- const lineData = path.points;
47
- const lineFunction = (0,d3__WEBPACK_IMPORTED_MODULE_3__/* .line */ .n8j)().x(function(d) {
48
- return d.x;
49
- }).y(function(d) {
50
- return d.y;
51
- }).curve(d3__WEBPACK_IMPORTED_MODULE_3__/* .curveBasis */ .qrM);
52
- const svgPath = elem.append("path").attr("d", lineFunction(lineData)).attr("id", "edge" + edgeCount).attr("class", "relation");
53
- let url = "";
54
- if (conf.arrowMarkerAbsolute) {
55
- url = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
56
- url = url.replace(/\(/g, "\\(");
57
- url = url.replace(/\)/g, "\\)");
58
- }
59
- if (relation.relation.lineType == 1) {
60
- svgPath.attr("class", "relation dashed-line");
61
- }
62
- if (relation.relation.lineType == 10) {
63
- svgPath.attr("class", "relation dotted-line");
64
- }
65
- if (relation.relation.type1 !== "none") {
66
- svgPath.attr(
67
- "marker-start",
68
- "url(" + url + "#" + getRelationType(relation.relation.type1) + "Start)"
69
- );
70
- }
71
- if (relation.relation.type2 !== "none") {
72
- svgPath.attr(
73
- "marker-end",
74
- "url(" + url + "#" + getRelationType(relation.relation.type2) + "End)"
75
- );
76
- }
77
- let x, y;
78
- const l = path.points.length;
79
- let labelPosition = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__/* .utils_default */ ._K.calcLabelPosition(path.points);
80
- x = labelPosition.x;
81
- y = labelPosition.y;
82
- let p1_card_x, p1_card_y;
83
- let p2_card_x, p2_card_y;
84
- if (l % 2 !== 0 && l > 1) {
85
- let cardinality_1_point = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__/* .utils_default */ ._K.calcCardinalityPosition(
86
- relation.relation.type1 !== "none",
87
- path.points,
88
- path.points[0]
89
- );
90
- let cardinality_2_point = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_1__/* .utils_default */ ._K.calcCardinalityPosition(
91
- relation.relation.type2 !== "none",
92
- path.points,
93
- path.points[l - 1]
94
- );
95
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("cardinality_1_point " + JSON.stringify(cardinality_1_point));
96
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("cardinality_2_point " + JSON.stringify(cardinality_2_point));
97
- p1_card_x = cardinality_1_point.x;
98
- p1_card_y = cardinality_1_point.y;
99
- p2_card_x = cardinality_2_point.x;
100
- p2_card_y = cardinality_2_point.y;
101
- }
102
- if (relation.title !== void 0) {
103
- const g = elem.append("g").attr("class", "classLabel");
104
- const label = g.append("text").attr("class", "label").attr("x", x).attr("y", y).attr("fill", "red").attr("text-anchor", "middle").text(relation.title);
105
- window.label = label;
106
- const bounds = label.node().getBBox();
107
- g.insert("rect", ":first-child").attr("class", "box").attr("x", bounds.x - conf.padding / 2).attr("y", bounds.y - conf.padding / 2).attr("width", bounds.width + conf.padding).attr("height", bounds.height + conf.padding);
108
- }
109
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.info("Rendering relation " + JSON.stringify(relation));
110
- if (relation.relationTitle1 !== void 0 && relation.relationTitle1 !== "none") {
111
- const g = elem.append("g").attr("class", "cardinality");
112
- g.append("text").attr("class", "type1").attr("x", p1_card_x).attr("y", p1_card_y).attr("fill", "black").attr("font-size", "6").text(relation.relationTitle1);
113
- }
114
- if (relation.relationTitle2 !== void 0 && relation.relationTitle2 !== "none") {
115
- const g = elem.append("g").attr("class", "cardinality");
116
- g.append("text").attr("class", "type2").attr("x", p2_card_x).attr("y", p2_card_y).attr("fill", "black").attr("font-size", "6").text(relation.relationTitle2);
117
- }
118
- edgeCount++;
119
- }, "drawEdge");
120
- var drawClass = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(elem, classDef, conf, diagObj) {
121
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("Rendering class ", classDef, conf);
122
- const id = classDef.id;
123
- const classInfo = {
124
- id,
125
- label: classDef.id,
126
- width: 0,
127
- height: 0
128
- };
129
- const g = elem.append("g").attr("id", diagObj.db.lookUpDomId(id)).attr("class", "classGroup");
130
- let title;
131
- if (classDef.link) {
132
- title = g.append("svg:a").attr("xlink:href", classDef.link).attr("target", classDef.linkTarget).append("text").attr("y", conf.textHeight + conf.padding).attr("x", 0);
133
- } else {
134
- title = g.append("text").attr("y", conf.textHeight + conf.padding).attr("x", 0);
135
- }
136
- let isFirst = true;
137
- classDef.annotations.forEach(function(member) {
138
- const titleText2 = title.append("tspan").text("\xAB" + member + "\xBB");
139
- if (!isFirst) {
140
- titleText2.attr("dy", conf.textHeight);
141
- }
142
- isFirst = false;
143
- });
144
- let classTitleString = getClassTitleString(classDef);
145
- const classTitle = title.append("tspan").text(classTitleString).attr("class", "title");
146
- if (!isFirst) {
147
- classTitle.attr("dy", conf.textHeight);
148
- }
149
- const titleHeight = title.node().getBBox().height;
150
- let membersLine;
151
- let membersBox;
152
- let methodsLine;
153
- if (classDef.members.length > 0) {
154
- membersLine = g.append("line").attr("x1", 0).attr("y1", conf.padding + titleHeight + conf.dividerMargin / 2).attr("y2", conf.padding + titleHeight + conf.dividerMargin / 2);
155
- const members = g.append("text").attr("x", conf.padding).attr("y", titleHeight + conf.dividerMargin + conf.textHeight).attr("fill", "white").attr("class", "classText");
156
- isFirst = true;
157
- classDef.members.forEach(function(member) {
158
- addTspan(members, member, isFirst, conf);
159
- isFirst = false;
160
- });
161
- membersBox = members.node().getBBox();
162
- }
163
- if (classDef.methods.length > 0) {
164
- methodsLine = g.append("line").attr("x1", 0).attr("y1", conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr("y2", conf.padding + titleHeight + conf.dividerMargin + membersBox.height);
165
- const methods = g.append("text").attr("x", conf.padding).attr("y", titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr("fill", "white").attr("class", "classText");
166
- isFirst = true;
167
- classDef.methods.forEach(function(method) {
168
- addTspan(methods, method, isFirst, conf);
169
- isFirst = false;
170
- });
171
- }
172
- const classBox = g.node().getBBox();
173
- var cssClassStr = " ";
174
- if (classDef.cssClasses.length > 0) {
175
- cssClassStr = cssClassStr + classDef.cssClasses.join(" ");
176
- }
177
- const rect = g.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", classBox.width + 2 * conf.padding).attr("height", classBox.height + conf.padding + 0.5 * conf.dividerMargin).attr("class", cssClassStr);
178
- const rectWidth = rect.node().getBBox().width;
179
- title.node().childNodes.forEach(function(x) {
180
- x.setAttribute("x", (rectWidth - x.getBBox().width) / 2);
181
- });
182
- if (classDef.tooltip) {
183
- title.insert("title").text(classDef.tooltip);
184
- }
185
- if (membersLine) {
186
- membersLine.attr("x2", rectWidth);
187
- }
188
- if (methodsLine) {
189
- methodsLine.attr("x2", rectWidth);
190
- }
191
- classInfo.width = rectWidth;
192
- classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;
193
- return classInfo;
194
- }, "drawClass");
195
- var getClassTitleString = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(classDef) {
196
- let classTitleString = classDef.id;
197
- if (classDef.type) {
198
- classTitleString += "<" + (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .parseGenericTypes */ .QO)(classDef.type) + ">";
199
- }
200
- return classTitleString;
201
- }, "getClassTitleString");
202
- var drawNote = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(elem, note, conf, _diagObj) {
203
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("Rendering note ", note, conf);
204
- const id = note.id;
205
- const noteInfo = {
206
- id,
207
- text: note.text,
208
- width: 0,
209
- height: 0
210
- };
211
- const g = elem.append("g").attr("id", id).attr("class", "classGroup");
212
- let text = g.append("text").attr("y", conf.textHeight + conf.padding).attr("x", 0);
213
- const lines = JSON.parse(`"${note.text}"`).split("\n");
214
- lines.forEach(function(line2) {
215
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug(`Adding line: ${line2}`);
216
- text.append("tspan").text(line2).attr("class", "title").attr("dy", conf.textHeight);
217
- });
218
- const noteBox = g.node().getBBox();
219
- const rect = g.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", noteBox.width + 2 * conf.padding).attr(
220
- "height",
221
- noteBox.height + lines.length * conf.textHeight + conf.padding + 0.5 * conf.dividerMargin
222
- );
223
- const rectWidth = rect.node().getBBox().width;
224
- text.node().childNodes.forEach(function(x) {
225
- x.setAttribute("x", (rectWidth - x.getBBox().width) / 2);
226
- });
227
- noteInfo.width = rectWidth;
228
- noteInfo.height = noteBox.height + lines.length * conf.textHeight + conf.padding + 0.5 * conf.dividerMargin;
229
- return noteInfo;
230
- }, "drawNote");
231
- var addTspan = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(textEl, member, isFirst, conf) {
232
- const { displayText, cssStyle } = member.getDisplayDetails();
233
- const tSpan = textEl.append("tspan").attr("x", conf.padding).text(displayText);
234
- if (cssStyle !== "") {
235
- tSpan.attr("style", member.cssStyle);
236
- }
237
- if (!isFirst) {
238
- tSpan.attr("dy", conf.textHeight);
239
- }
240
- }, "addTspan");
241
- var svgDraw_default = {
242
- getClassTitleString,
243
- drawClass,
244
- drawEdge,
245
- drawNote
246
- };
247
-
248
- // src/diagrams/class/classRenderer.js
249
- var idCache = {};
250
- var padding = 20;
251
- var getGraphId = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(label) {
252
- const foundEntry = Object.entries(idCache).find((entry) => entry[1].label === label);
253
- if (foundEntry) {
254
- return foundEntry[0];
255
- }
256
- }, "getGraphId");
257
- var insertMarkers = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(elem) {
258
- elem.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
259
- elem.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
260
- elem.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
261
- elem.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
262
- elem.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
263
- elem.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
264
- elem.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
265
- elem.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
266
- }, "insertMarkers");
267
- var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)(function(text, id, _version, diagObj) {
268
- const conf = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .getConfig2 */ .D7)().class;
269
- idCache = {};
270
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.info("Rendering diagram " + text);
271
- const securityLevel = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .getConfig2 */ .D7)().securityLevel;
272
- let sandboxElement;
273
- if (securityLevel === "sandbox") {
274
- sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_3__/* .select */ .Ltv)("#i" + id);
275
- }
276
- const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_3__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_3__/* .select */ .Ltv)("body");
277
- const diagram2 = root.select(`[id='${id}']`);
278
- insertMarkers(diagram2);
279
- const g = new dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_5__/* .Graph */ .T({
280
- multigraph: true
281
- });
282
- g.setGraph({
283
- isMultiGraph: true
284
- });
285
- g.setDefaultEdgeLabel(function() {
286
- return {};
287
- });
288
- const classes = diagObj.db.getClasses();
289
- const keys = [...classes.keys()];
290
- for (const key of keys) {
291
- const classDef = classes.get(key);
292
- const node = svgDraw_default.drawClass(diagram2, classDef, conf, diagObj);
293
- idCache[node.id] = node;
294
- g.setNode(node.id, node);
295
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.info("Org height: " + node.height);
296
- }
297
- const relations = diagObj.db.getRelations();
298
- relations.forEach(function(relation) {
299
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.info(
300
- // cspell:ignore tjoho
301
- "tjoho" + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)
302
- );
303
- g.setEdge(
304
- getGraphId(relation.id1),
305
- getGraphId(relation.id2),
306
- {
307
- relation
308
- },
309
- relation.title || "DEFAULT"
310
- );
311
- });
312
- const notes = diagObj.db.getNotes();
313
- notes.forEach(function(note) {
314
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug(`Adding note: ${JSON.stringify(note)}`);
315
- const node = svgDraw_default.drawNote(diagram2, note, conf, diagObj);
316
- idCache[node.id] = node;
317
- g.setNode(node.id, node);
318
- if (note.class && classes.has(note.class)) {
319
- g.setEdge(
320
- note.id,
321
- getGraphId(note.class),
322
- {
323
- relation: {
324
- id1: note.id,
325
- id2: note.class,
326
- relation: {
327
- type1: "none",
328
- type2: "none",
329
- lineType: 10
330
- }
331
- }
332
- },
333
- "DEFAULT"
334
- );
335
- }
336
- });
337
- (0,dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_4__/* .layout */ .Zp)(g);
338
- g.nodes().forEach(function(v) {
339
- if (v !== void 0 && g.node(v) !== void 0) {
340
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("Node " + v + ": " + JSON.stringify(g.node(v)));
341
- root.select("#" + (diagObj.db.lookUpDomId(v) || v)).attr(
342
- "transform",
343
- "translate(" + (g.node(v).x - g.node(v).width / 2) + "," + (g.node(v).y - g.node(v).height / 2) + " )"
344
- );
345
- }
346
- });
347
- g.edges().forEach(function(e) {
348
- if (e !== void 0 && g.edge(e) !== void 0) {
349
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(g.edge(e)));
350
- svgDraw_default.drawEdge(diagram2, g.edge(e), g.edge(e).relation, conf, diagObj);
351
- }
352
- });
353
- const svgBounds = diagram2.node().getBBox();
354
- const width = svgBounds.width + padding * 2;
355
- const height = svgBounds.height + padding * 2;
356
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .configureSvgSize */ .a$)(diagram2, height, width, conf.useMaxWidth);
357
- const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;
358
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm.debug(`viewBox ${vBox}`);
359
- diagram2.attr("viewBox", vBox);
360
- }, "draw");
361
- var classRenderer_default = {
362
- draw
363
- };
364
-
365
- // src/diagrams/class/classDiagram.ts
366
- var diagram = {
367
- parser: _chunk_NGC4727B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .classDiagram_default */ ._$,
368
- db: _chunk_NGC4727B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .classDb_default */ .z2,
369
- renderer: classRenderer_default,
370
- styles: _chunk_NGC4727B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .styles_default */ .tM,
371
- init: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_2__/* .__name */ .K2)((cnf) => {
372
- if (!cnf.class) {
373
- cnf.class = {};
374
- }
375
- cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
376
- _chunk_NGC4727B_mjs__WEBPACK_IMPORTED_MODULE_0__/* .classDb_default */ .z2.clear();
377
- }, "init")
378
- };
379
-
380
-
381
-
382
- /***/ })
383
-
384
- };
385
- ;