@diagrammo/dgmo 0.57.0 → 0.59.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/dist/advanced.d.ts +57 -7
- package/dist/advanced.js +128 -118
- package/dist/auto.css +38 -2
- package/dist/auto.js +162 -125
- package/dist/auto.mjs +1954 -1456
- package/dist/block.css +38 -2
- package/dist/block.js +94 -52
- package/dist/{calculator-BBKAAQGD.js → calculator-ORAKSL5D.js} +4 -2
- package/dist/{chart-meta-CPNVUZ5J.d.ts → chart-meta-C6UaqhTP.d.ts} +1 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +44 -42
- package/dist/{charts-d3-Z6FOKUAL.js → charts-d3-JBNDV6TY.js} +5 -5
- package/dist/{chunk-5J2RQGFG.js → chunk-2NSR6INI.js} +3 -3
- package/dist/chunk-2SUUYIFC.js +65 -0
- package/dist/{chunk-CQJ5SE5T.js → chunk-3T2PKOTK.js} +4 -4
- package/dist/{chunk-5XMDSXZT.js → chunk-4IFPX4J6.js} +2 -2
- package/dist/{chunk-KRKU6WRS.js → chunk-4KRYJGBY.js} +4 -4
- package/dist/{chunk-6HSRT6WI.js → chunk-4YQI7ELC.js} +3 -3
- package/dist/{chunk-ORZQVUGW.js → chunk-5XV3Z3UJ.js} +32 -12
- package/dist/{chunk-SADYIA5Q.js → chunk-65AMRH2N.js} +3 -3
- package/dist/{chunk-MXDT446P.js → chunk-6F74K4JL.js} +51 -14
- package/dist/{chunk-ADKDIWCW.js → chunk-6KWE5553.js} +30 -17
- package/dist/{chunk-QMOX5I3G.js → chunk-6M3QPUHL.js} +5 -5
- package/dist/{chunk-VSFAJUEF.js → chunk-6XWZKCVS.js} +3 -3
- package/dist/{chunk-X32RDWT5.js → chunk-6YY56KU2.js} +7 -5
- package/dist/{chunk-G3L4GWLA.js → chunk-75LW3IUQ.js} +3 -3
- package/dist/{chunk-INU6ANOH.js → chunk-7XTJGMH6.js} +2 -2
- package/dist/{chunk-44GBBTMU.js → chunk-A6L6W43V.js} +2 -2
- package/dist/{chunk-OFEUXZPI.js → chunk-AFBQEBKL.js} +3 -3
- package/dist/{chunk-K2GDF2ZR.js → chunk-BFAU3OPW.js} +4 -4
- package/dist/{chunk-USFZQPJ2.js → chunk-BG23Y7JD.js} +3 -3
- package/dist/{chunk-ES3MUYRX.js → chunk-BGBGWFUI.js} +3 -3
- package/dist/{chunk-6PRLPGJB.js → chunk-BGT6SAR2.js} +3 -3
- package/dist/{chunk-FZECLCCU.js → chunk-BVPRRSMX.js} +3 -3
- package/dist/{chunk-3M6MKHIQ.js → chunk-CC6XIQDE.js} +2 -2
- package/dist/{chunk-U3DGAE7L.js → chunk-CRE3BAKN.js} +3 -3
- package/dist/chunk-D3K4U3ZM.js +232 -0
- package/dist/{chunk-T2VMOWAM.js → chunk-DD6EA4DU.js} +3 -3
- package/dist/{chunk-NFAHDPCG.js → chunk-DDQ47BMP.js} +3 -3
- package/dist/{chunk-KH74OWHU.js → chunk-DH3NCG4B.js} +3 -3
- package/dist/{chunk-DUI5SMFX.js → chunk-DKG2ADEN.js} +8 -5
- package/dist/{chunk-J6V3SMR3.js → chunk-E6QWV2G4.js} +7 -7
- package/dist/{chunk-FMPYKUKI.js → chunk-EIRNPTLH.js} +3 -3
- package/dist/{chunk-4MJOBVY7.js → chunk-EKKS325Q.js} +2 -2
- package/dist/{chunk-KF575IXC.js → chunk-EQGLGTU2.js} +3 -3
- package/dist/{chunk-4MB4UOT5.js → chunk-EYP34TFP.js} +2 -2
- package/dist/{chunk-LV5BFA24.js → chunk-GCZQAT4Z.js} +3 -3
- package/dist/{chunk-MGLJA5TK.js → chunk-GSVHOF3J.js} +2 -2
- package/dist/{chunk-ULR3BVNH.js → chunk-HQI7S72D.js} +4 -4
- package/dist/{chunk-TZ72UBOA.js → chunk-HSVVQZLC.js} +2 -2
- package/dist/{chunk-SQWWYGPT.js → chunk-I24URUTV.js} +5 -5
- package/dist/{chunk-FERE46TP.js → chunk-I53E3L5M.js} +9 -7
- package/dist/{chunk-NHZAYL2X.js → chunk-IH3GHOHU.js} +7 -6
- package/dist/{chunk-57RE4N22.js → chunk-IMEWQLRD.js} +2 -2
- package/dist/{chunk-3KOPPSUQ.js → chunk-IXY2IPOW.js} +30 -4
- package/dist/chunk-KJ3FIMPA.js +181 -0
- package/dist/{chunk-5VLUAAAE.js → chunk-KZFAEMQQ.js} +3 -3
- package/dist/{chunk-3ZONSZOX.js → chunk-LBEZKYAR.js} +2 -2
- package/dist/{chunk-D5FANMSG.js → chunk-LLA5C2TM.js} +14 -3
- package/dist/{chunk-CY5KE2P5.js → chunk-MM4Z32EH.js} +2 -2
- package/dist/{chunk-6DR2GMDM.js → chunk-NCW6NQPD.js} +158 -135
- package/dist/{chunk-VS7DGDT3.js → chunk-O66TS32B.js} +5 -5
- package/dist/{chunk-3G7BCZ4J.js → chunk-OANGI4EI.js} +5 -5
- package/dist/{chunk-OYCIVSL3.js → chunk-OBWIIXSZ.js} +6 -6
- package/dist/{chunk-X3ON4M5S.js → chunk-OIL6MTVH.js} +4 -4
- package/dist/{chunk-RB4HOOKP.js → chunk-OJD4FU6H.js} +2 -2
- package/dist/chunk-ON4MEUC4.js +50 -0
- package/dist/{chunk-RQGNELB3.js → chunk-OSXJY6SY.js} +3 -3
- package/dist/{chunk-U4FSWAOJ.js → chunk-PH36NIGK.js} +4 -4
- package/dist/{chunk-M65UOFJA.js → chunk-PNCACNE5.js} +3 -3
- package/dist/{chunk-VYEQPPS6.js → chunk-PSWWCLLI.js} +3 -3
- package/dist/{chunk-D76B4DMV.js → chunk-QG3RU7YT.js} +2 -2
- package/dist/{chunk-Q772PVKH.js → chunk-QTJZRAXM.js} +2 -2
- package/dist/{chunk-XBTJJLAU.js → chunk-R53THUTP.js} +4 -4
- package/dist/{chunk-PKFW6GJD.js → chunk-RVCBPDCK.js} +3 -3
- package/dist/{chunk-D64FRGKU.js → chunk-S5OQWV54.js} +2 -2
- package/dist/{chunk-UG4MWUXE.js → chunk-SEPM6JZV.js} +5 -5
- package/dist/{chunk-ST3ZNEUQ.js → chunk-SJT4W23S.js} +2 -2
- package/dist/{chunk-YNAHUNMA.js → chunk-SLGHGT76.js} +2 -2
- package/dist/{chunk-APD52YJV.js → chunk-SQLVM3G7.js} +4 -4
- package/dist/{chunk-BQLJAYVB.js → chunk-TDZRLG7I.js} +2 -2
- package/dist/{chunk-WOMXS5R7.js → chunk-TJV3J74Y.js} +3 -3
- package/dist/{chunk-RV2N7COG.js → chunk-TL6WZWSZ.js} +2 -2
- package/dist/{chunk-LZX3RLRP.js → chunk-TLJPI6WL.js} +6 -6
- package/dist/{chunk-SFVG4AIG.js → chunk-TR7WNZFJ.js} +3 -3
- package/dist/{chunk-7SXTD7L6.js → chunk-U5UKFXHB.js} +2 -2
- package/dist/{chunk-7Q35X3AL.js → chunk-UF7WAYBH.js} +9 -233
- package/dist/{chunk-7YPSFQFA.js → chunk-UWJNAEMY.js} +6 -6
- package/dist/{chunk-EEKGMS63.js → chunk-UYY7MVJK.js} +3 -3
- package/dist/{chunk-CXI6X54X.js → chunk-V5PHEH2M.js} +2 -2
- package/dist/{chunk-NIUE5VWY.js → chunk-VGFUVFJA.js} +17 -12
- package/dist/{chunk-M3IYDSI7.js → chunk-VIFFJOOR.js} +5 -5
- package/dist/{chunk-DIKIHU52.js → chunk-W2Z4KS72.js} +6 -4
- package/dist/{chunk-A6XELFU6.js → chunk-WBALHD3K.js} +8 -8
- package/dist/{chunk-5LBCOFA5.js → chunk-WCSVZW2W.js} +2 -2
- package/dist/{chunk-QWUYFUNO.js → chunk-XS7CL7NX.js} +2 -2
- package/dist/{chunk-3NSOKT7C.js → chunk-XVOGT46C.js} +2 -2
- package/dist/{chunk-3D6LDLIH.js → chunk-Y7KHN3MQ.js} +2 -2
- package/dist/{chunk-PRKPFRC2.js → chunk-YOK3BMEW.js} +4 -4
- package/dist/{chunk-PUGUOFM6.js → chunk-YPEMNAC7.js} +3 -3
- package/dist/{chunk-VYCV5WKH.js → chunk-YURNIF7Q.js} +60 -44
- package/dist/{chunk-OHBIN74X.js → chunk-ZBOSGLES.js} +8 -7
- package/dist/{chunk-HBRGNLF5.js → chunk-ZED4URQK.js} +6 -6
- package/dist/{chunk-TGOMHUOV.js → chunk-ZEIYC7XO.js} +12 -1
- package/dist/{chunk-PFG3EVRD.js → chunk-ZTSBP3AH.js} +8 -5
- package/dist/cli.cjs +149 -148
- package/dist/cloud-reference.d.ts +15 -8
- package/dist/cloud-reference.js +8 -39
- package/dist/completion-registry.js +24 -5
- package/dist/dgmo-router-I2LJOEAQ.js +90 -0
- package/dist/{dimensions-XRWIPAFO.js → dimensions-3IMJDSTT.js} +5 -5
- package/dist/editor.js +11 -2
- package/dist/element.js +163 -126
- package/dist/element.mjs +1954 -1456
- package/dist/{flowchart-parser-DA3V2SLH.js → flowchart-parser-PZQY2UC4.js} +4 -4
- package/dist/{flowchart-renderer-JGLZB5P5.js → flowchart-renderer-CKUW63MB.js} +5 -5
- package/dist/highlight.js +11 -2
- package/dist/index.d.ts +13 -4
- package/dist/index.js +55 -49
- package/dist/{layout-AQXLQVAJ.js → layout-2NWRELPU.js} +4 -4
- package/dist/{layout-WHOOLGPO.js → layout-47LIQXNX.js} +4 -4
- package/dist/{layout-NU5LQ4UP.js → layout-DH6GSKAH.js} +2 -2
- package/dist/{layout-AO3TPZUS.js → layout-IXNU33JR.js} +4 -4
- package/dist/{layout-5CX27X7I.js → layout-LH6LNIUV.js} +3 -3
- package/dist/{layout-TZKPVXKJ.js → layout-MAMV4RZF.js} +3 -3
- package/dist/{layout-EQTOVNEE.js → layout-NHNIMAHX.js} +4 -4
- package/dist/{layout-search-6CVR2MTZ.js → layout-search-N6NQI5OQ.js} +5 -5
- package/dist/{parser-HMQZPPOK.js → parser-2OJSWKXO.js} +4 -4
- package/dist/{parser-O5XCVGZG.js → parser-3QHLZK6F.js} +3 -3
- package/dist/{parser-SJ7ECFAP.js → parser-453DEZ4P.js} +4 -4
- package/dist/{parser-Q3KNFXQR.js → parser-4QYDFXV2.js} +4 -4
- package/dist/{parser-XQNM7BGD.js → parser-55CSWK3N.js} +4 -4
- package/dist/{parser-PQXN6SBB.js → parser-56HMQG5C.js} +5 -5
- package/dist/{parser-QL2LBPFE.js → parser-5BHZMV3O.js} +4 -4
- package/dist/{parser-QEWSTNEJ.js → parser-5I7W54EA.js} +4 -4
- package/dist/parser-5KOJWHOR.js +12 -0
- package/dist/{parser-DTXM5ROT.js → parser-63LK7YBR.js} +5 -5
- package/dist/{parser-5UZWYSIV.js → parser-6HT34DZ3.js} +4 -4
- package/dist/{parser-CCAUZLYI.js → parser-6S65S3DX.js} +4 -4
- package/dist/{parser-MH62NYKM.js → parser-7C5GZCAU.js} +4 -4
- package/dist/{parser-5WMH55UA.js → parser-7W7DPIGR.js} +4 -4
- package/dist/{parser-4TX6U4ZU.js → parser-AD5OAVX6.js} +3 -3
- package/dist/{parser-A6M25MLK.js → parser-AWO3N6YH.js} +3 -3
- package/dist/{parser-OPOGIKFR.js → parser-BLCDJB7N.js} +4 -4
- package/dist/{parser-KTVDCWHG.js → parser-BNGLB2VS.js} +4 -4
- package/dist/{parser-WT3DSNPQ.js → parser-BVC642CN.js} +4 -4
- package/dist/{parser-73YUU35J.js → parser-CXLR6MAY.js} +3 -3
- package/dist/{parser-6CM27UPA.js → parser-DROHJTBZ.js} +4 -4
- package/dist/{parser-AYZTKZC3.js → parser-G7KP6LZH.js} +3 -3
- package/dist/{parser-RBNOWHGM.js → parser-IWQQY5VU.js} +4 -4
- package/dist/{parser-Q62VR2UJ.js → parser-NJGZF5MK.js} +5 -5
- package/dist/{parser-DQ2DGDYO.js → parser-QCSDU4FU.js} +3 -3
- package/dist/{parser-LMNFVTIV.js → parser-QCYEJOLZ.js} +4 -4
- package/dist/{parser-PEBXIOPX.js → parser-QJ7XK7AB.js} +4 -4
- package/dist/{parser-4ZIJDGPG.js → parser-RMUGOZO3.js} +4 -4
- package/dist/{parser-IQLLBMBQ.js → parser-TABGTEHH.js} +3 -3
- package/dist/{parser-IPBEW2DG.js → parser-TPCKCQ4Z.js} +4 -4
- package/dist/{parser-XWNSCDY6.js → parser-UB6XGLTC.js} +4 -4
- package/dist/{parser-QN3GJJ3J.js → parser-WI2B7IL3.js} +3 -3
- package/dist/{parser-D7YZX3CH.js → parser-WXZU47Z4.js} +3 -3
- package/dist/{registry-CaSw0PSH.d.ts → registry-C0HvobTb.d.ts} +17 -0
- package/dist/{renderer-6OFPEBHG.js → renderer-2OQMYNQD.js} +5 -5
- package/dist/{renderer-IAJMS5U5.js → renderer-4S5LOABJ.js} +7 -7
- package/dist/{renderer-FQLFE3TQ.js → renderer-6NQZLBMX.js} +5 -5
- package/dist/{renderer-2TEGR3RX.js → renderer-73L6XERY.js} +5 -5
- package/dist/{renderer-3WYLLPQL.js → renderer-7EAS7J35.js} +6 -6
- package/dist/{renderer-W5GF5USI.js → renderer-A2APCS6I.js} +5 -5
- package/dist/{renderer-HDLM6OY6.js → renderer-AWFHCLXQ.js} +7 -7
- package/dist/{renderer-XSZ5MUIF.js → renderer-CQBLODU3.js} +5 -5
- package/dist/{renderer-AK2X3VRY.js → renderer-F5YIKPAC.js} +7 -7
- package/dist/{renderer-LU4R3BP2.js → renderer-G24W6J6H.js} +4 -4
- package/dist/{renderer-KXMKAXPQ.js → renderer-I3WY546K.js} +4 -4
- package/dist/{renderer-VWBNIZV3.js → renderer-KYWN5KRD.js} +6 -6
- package/dist/{renderer-PLRNQ6T3.js → renderer-LDSHG26O.js} +7 -7
- package/dist/{renderer-LRQ3OPNJ.js → renderer-LOTDM5WH.js} +7 -7
- package/dist/{renderer-5BFS4NBL.js → renderer-M225GOP2.js} +5 -5
- package/dist/{renderer-LMLSA457.js → renderer-NTKY64DL.js} +5 -5
- package/dist/{renderer-ND7YIUHD.js → renderer-PQXPBXKE.js} +3 -3
- package/dist/{renderer-I2P5FTZ2.js → renderer-QFWLXG6G.js} +7 -7
- package/dist/{renderer-W3JK5YVD.js → renderer-QGZBFYMZ.js} +5 -5
- package/dist/{renderer-BNEO5W3E.js → renderer-QMOSWMHK.js} +6 -6
- package/dist/{renderer-EJ3FETD2.js → renderer-R7JEM7R7.js} +5 -5
- package/dist/{renderer-JHYUK5TN.js → renderer-RB3DGCF4.js} +3 -3
- package/dist/{renderer-XKMG3SYD.js → renderer-RNTCDM5N.js} +6 -6
- package/dist/{renderer-TIIHLRMM.js → renderer-RRIXAQSF.js} +5 -5
- package/dist/renderer-T3JBQLLW.js +77 -0
- package/dist/{renderer-N4V7XVC3.js → renderer-VHYLVS2K.js} +7 -7
- package/dist/{renderer-BZZKS7KQ.js → renderer-VN3RCFHI.js} +7 -7
- package/dist/{renderer-B6XOO6EE.js → renderer-WAXZMPYS.js} +3 -3
- package/dist/{renderer-LNOBG226.js → renderer-X75XWLQS.js} +7 -7
- package/dist/{renderer-Q6TJ52B4.js → renderer-ZHGAY3Y6.js} +5 -5
- package/dist/{renderer-radial-LZAPQVM5.js → renderer-radial-C67KGADM.js} +6 -6
- package/dist/{state-parser-NQGVYSM3.js → state-parser-PNC2IHIA.js} +5 -5
- package/dist/{state-renderer-KSAKMFQ2.js → state-renderer-U4QW5YMY.js} +7 -7
- package/dist/{themes-tbBkIVsn.d.ts → themes-l406Vj2z.d.ts} +1 -1
- package/docs/language-reference.md +29 -0
- package/package.json +1 -1
- package/dist/dgmo-router-PMEKTIJ7.js +0 -88
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-U7VO6JAA.js";
|
|
7
7
|
import {
|
|
8
8
|
parseDgmoChartType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YURNIF7Q.js";
|
|
10
|
+
import {
|
|
11
|
+
chartTypes
|
|
12
|
+
} from "./chunk-ZEIYC7XO.js";
|
|
10
13
|
import {
|
|
11
14
|
measureText,
|
|
12
15
|
truncateText
|
|
@@ -16,7 +19,8 @@ import {
|
|
|
16
19
|
var DOCS_BASE = "https://diagrammo.app/docs";
|
|
17
20
|
function docsLink(source) {
|
|
18
21
|
const chartType = parseDgmoChartType(source);
|
|
19
|
-
|
|
22
|
+
const hasGuide = chartType !== null && !chartTypes.some((c) => c.id === chartType && c.internal);
|
|
23
|
+
return hasGuide ? {
|
|
20
24
|
url: `${DOCS_BASE}/chart-${chartType}/`,
|
|
21
25
|
label: `Read the ${chartType} guide \u2197`
|
|
22
26
|
} : { url: `${DOCS_BASE}/`, label: "Browse the DGMO docs \u2197" };
|
|
@@ -195,237 +199,9 @@ function escapeXml(s) {
|
|
|
195
199
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
196
200
|
}
|
|
197
201
|
|
|
198
|
-
// src/utils/svg-embed.ts
|
|
199
|
-
function normalizeSvgForEmbed(input, opts = {}) {
|
|
200
|
-
let svg = input;
|
|
201
|
-
if ((opts.background ?? "transparent") === "transparent") {
|
|
202
|
-
svg = stripRootBackground(svg);
|
|
203
|
-
}
|
|
204
|
-
const rootMatch = svg.match(/<svg[^>]*>/);
|
|
205
|
-
const rootTag = rootMatch?.[0] ?? "";
|
|
206
|
-
if (rootTag && !rootTag.includes("viewBox")) {
|
|
207
|
-
const wh = rootTag.match(/width="(\d+)"[^>]*height="(\d+)"/);
|
|
208
|
-
if (wh) {
|
|
209
|
-
svg = svg.replace(/<svg/, `<svg viewBox="0 0 ${wh[1]} ${wh[2]}"`);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
const tight = computeBBox(svg);
|
|
213
|
-
if (tight && tight.width > 0 && tight.height > 0) {
|
|
214
|
-
const pad = 16;
|
|
215
|
-
const x = tight.x - pad;
|
|
216
|
-
const y = tight.y - pad;
|
|
217
|
-
const w = tight.width + pad * 2;
|
|
218
|
-
const h = tight.height + pad * 2;
|
|
219
|
-
const canvas = readViewBox(svg);
|
|
220
|
-
const TOL = 2;
|
|
221
|
-
const MIN_COVERAGE = 0.5;
|
|
222
|
-
const trustworthy = !canvas || x >= canvas.x - TOL && y >= canvas.y - TOL && x + w <= canvas.x + canvas.width + TOL && y + h <= canvas.y + canvas.height + TOL && w >= canvas.width * MIN_COVERAGE && h >= canvas.height * MIN_COVERAGE;
|
|
223
|
-
if (trustworthy) {
|
|
224
|
-
const vb = `${x} ${y} ${w} ${h}`;
|
|
225
|
-
svg = svg.replace(/(<svg[^>]*?)viewBox="[^"]*"/, `$1viewBox="${vb}"`);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
svg = svg.replace(/(<svg[^>]*?) width="[^"]*"/g, "$1");
|
|
229
|
-
svg = svg.replace(/(<svg[^>]*?) height="[^"]*"/g, "$1");
|
|
230
|
-
svg = svg.replace(/<svg\s{2,}/g, "<svg ");
|
|
231
|
-
return svg;
|
|
232
|
-
}
|
|
233
|
-
var BG_MEANINGFUL_TYPES = /* @__PURE__ */ new Set(["map"]);
|
|
234
|
-
function defaultEmbedBackground(chartType) {
|
|
235
|
-
return chartType && BG_MEANINGFUL_TYPES.has(chartType) ? "opaque" : "transparent";
|
|
236
|
-
}
|
|
237
|
-
function stripRootBackground(svg) {
|
|
238
|
-
const rootMatch = svg.match(/<svg\b[^>]*>/);
|
|
239
|
-
if (!rootMatch) return svg;
|
|
240
|
-
const rootTag = rootMatch[0];
|
|
241
|
-
const styleMatch = rootTag.match(/style="([^"]*)"/);
|
|
242
|
-
const style = styleMatch?.[1] ?? "";
|
|
243
|
-
const bgMatch = style.match(/background:\s*([^;]+)/);
|
|
244
|
-
const bgColor = bgMatch ? normalizeColor(bgMatch[1]) : null;
|
|
245
|
-
const canvas = rootCanvas(rootTag, svg);
|
|
246
|
-
let out = svg;
|
|
247
|
-
if (bgMatch) {
|
|
248
|
-
const cleaned = style.replace(/background:\s*[^;]+;?/i, "").replace(/\s{2,}/g, " ").replace(/;\s*$/, "").trim();
|
|
249
|
-
const newRoot = (cleaned ? rootTag.replace(/style="[^"]*"/, `style="${cleaned}"`) : rootTag.replace(/\s*style="[^"]*"/, "")).replace(/<svg\s{2,}/, "<svg ");
|
|
250
|
-
out = out.replace(rootTag, newRoot);
|
|
251
|
-
}
|
|
252
|
-
if (bgColor && canvas) {
|
|
253
|
-
out = out.replace(
|
|
254
|
-
/<rect\b[^>]*?\/?>(?:\s*<\/rect>)?/g,
|
|
255
|
-
(m) => isFullCanvasFill(m, bgColor, canvas) ? "" : m
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
return out;
|
|
259
|
-
}
|
|
260
|
-
function isFullCanvasFill(tag, bgColor, canvas) {
|
|
261
|
-
const fm = tag.match(/\bfill="([^"]*)"/);
|
|
262
|
-
if (!fm || normalizeColor(fm[1]) !== bgColor) return false;
|
|
263
|
-
const w = numAttr(tag, "width");
|
|
264
|
-
const h = numAttr(tag, "height");
|
|
265
|
-
if (w === null || h === null) return false;
|
|
266
|
-
const x = numAttr(tag, "x") ?? 0;
|
|
267
|
-
const y = numAttr(tag, "y") ?? 0;
|
|
268
|
-
const T = 1.5;
|
|
269
|
-
return Math.abs(x) <= T && Math.abs(y) <= T && Math.abs(w - canvas.w) <= T && Math.abs(h - canvas.h) <= T;
|
|
270
|
-
}
|
|
271
|
-
function rootCanvas(rootTag, svg) {
|
|
272
|
-
const wm = rootTag.match(/\bwidth="([\d.]+)"/);
|
|
273
|
-
const hm = rootTag.match(/\bheight="([\d.]+)"/);
|
|
274
|
-
if (wm && hm) return { w: parseFloat(wm[1]), h: parseFloat(hm[1]) };
|
|
275
|
-
const vb = readViewBox(svg);
|
|
276
|
-
return vb ? { w: vb.width, h: vb.height } : null;
|
|
277
|
-
}
|
|
278
|
-
function numAttr(tag, name) {
|
|
279
|
-
const m = tag.match(new RegExp(`\\b${name}="([^"]*)"`));
|
|
280
|
-
if (!m) return null;
|
|
281
|
-
const n = parseFloat(m[1]);
|
|
282
|
-
return Number.isFinite(n) ? n : null;
|
|
283
|
-
}
|
|
284
|
-
function normalizeColor(c) {
|
|
285
|
-
const s = c.trim().toLowerCase();
|
|
286
|
-
const hex6 = s.match(/^#([0-9a-f]{6})$/);
|
|
287
|
-
if (hex6) {
|
|
288
|
-
const n = parseInt(hex6[1], 16);
|
|
289
|
-
return `${n >> 16 & 255},${n >> 8 & 255},${n & 255}`;
|
|
290
|
-
}
|
|
291
|
-
const hex3 = s.match(/^#([0-9a-f]{3})$/);
|
|
292
|
-
if (hex3) {
|
|
293
|
-
const [r, g, b] = hex3[1].split("").map((ch) => parseInt(ch + ch, 16));
|
|
294
|
-
return `${r},${g},${b}`;
|
|
295
|
-
}
|
|
296
|
-
const rgb = s.match(/^rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/);
|
|
297
|
-
if (rgb) return `${+rgb[1]},${+rgb[2]},${+rgb[3]}`;
|
|
298
|
-
return null;
|
|
299
|
-
}
|
|
300
|
-
function getEmbedSvgViewBox(svg) {
|
|
301
|
-
const tight = computeBBox(svg);
|
|
302
|
-
if (!tight || tight.width <= 0 || tight.height <= 0) return null;
|
|
303
|
-
const pad = 16;
|
|
304
|
-
return {
|
|
305
|
-
x: tight.x - pad,
|
|
306
|
-
y: tight.y - pad,
|
|
307
|
-
width: tight.width + pad * 2,
|
|
308
|
-
height: tight.height + pad * 2
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
function readViewBox(svg) {
|
|
312
|
-
const m = svg.match(/<svg[^>]*?\bviewBox="([^"]+)"/);
|
|
313
|
-
if (!m) return null;
|
|
314
|
-
const n = m[1].trim().split(/[\s,]+/).map(Number);
|
|
315
|
-
if (n.length !== 4 || n.some((v) => !Number.isFinite(v)) || n[2] <= 0 || n[3] <= 0)
|
|
316
|
-
return null;
|
|
317
|
-
return { x: n[0], y: n[1], width: n[2], height: n[3] };
|
|
318
|
-
}
|
|
319
|
-
function computeBBox(svg) {
|
|
320
|
-
const xs = [];
|
|
321
|
-
const ys = [];
|
|
322
|
-
function push(x, y) {
|
|
323
|
-
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
324
|
-
xs.push(x);
|
|
325
|
-
ys.push(y);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function attr(tag, name) {
|
|
329
|
-
const m = tag.match(new RegExp(`\\b${name}="([^"]*)"`));
|
|
330
|
-
if (!m) return null;
|
|
331
|
-
const n = parseFloat(m[1]);
|
|
332
|
-
return Number.isFinite(n) ? n : null;
|
|
333
|
-
}
|
|
334
|
-
for (const m of svg.matchAll(/<rect\b[^>]*?\/?>/g)) {
|
|
335
|
-
const tag = m[0];
|
|
336
|
-
const x = attr(tag, "x");
|
|
337
|
-
const y = attr(tag, "y");
|
|
338
|
-
const w = attr(tag, "width");
|
|
339
|
-
const h = attr(tag, "height");
|
|
340
|
-
if (x !== null && y !== null && w !== null && h !== null) {
|
|
341
|
-
push(x, y);
|
|
342
|
-
push(x + w, y + h);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
for (const m of svg.matchAll(/<line\b[^>]*?\/?>/g)) {
|
|
346
|
-
const tag = m[0];
|
|
347
|
-
const x1 = attr(tag, "x1");
|
|
348
|
-
const y1 = attr(tag, "y1");
|
|
349
|
-
const x2 = attr(tag, "x2");
|
|
350
|
-
const y2 = attr(tag, "y2");
|
|
351
|
-
if (x1 !== null && y1 !== null && x2 !== null && y2 !== null) {
|
|
352
|
-
push(x1, y1);
|
|
353
|
-
push(x2, y2);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
for (const m of svg.matchAll(/<circle\b[^>]*?\/?>/g)) {
|
|
357
|
-
const tag = m[0];
|
|
358
|
-
const cx = attr(tag, "cx");
|
|
359
|
-
const cy = attr(tag, "cy");
|
|
360
|
-
const r = attr(tag, "r");
|
|
361
|
-
if (cx !== null && cy !== null && r !== null) {
|
|
362
|
-
push(cx - r, cy - r);
|
|
363
|
-
push(cx + r, cy + r);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
for (const m of svg.matchAll(/<ellipse\b[^>]*?\/?>/g)) {
|
|
367
|
-
const tag = m[0];
|
|
368
|
-
const cx = attr(tag, "cx");
|
|
369
|
-
const cy = attr(tag, "cy");
|
|
370
|
-
const rx = attr(tag, "rx");
|
|
371
|
-
const ry = attr(tag, "ry");
|
|
372
|
-
if (cx !== null && cy !== null && rx !== null && ry !== null) {
|
|
373
|
-
push(cx - rx, cy - ry);
|
|
374
|
-
push(cx + rx, cy + ry);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
for (const m of svg.matchAll(/<text\b([^>]*?)>([\s\S]*?)<\/text>/g)) {
|
|
378
|
-
const tag = `<text${m[1]}>`;
|
|
379
|
-
const text = m[2].replace(/<[^>]+>/g, "");
|
|
380
|
-
const x = attr(tag, "x");
|
|
381
|
-
const y = attr(tag, "y");
|
|
382
|
-
if (x !== null && y !== null) {
|
|
383
|
-
const fontSize = attr(tag, "font-size") ?? (() => {
|
|
384
|
-
const s = tag.match(/font-size:\s*([\d.]+)/);
|
|
385
|
-
return s ? parseFloat(s[1]) : 14;
|
|
386
|
-
})();
|
|
387
|
-
const w = text.length * fontSize * 0.5;
|
|
388
|
-
const anchor = tag.match(/\btext-anchor="([^"]*)"/)?.[1] ?? "start";
|
|
389
|
-
const left = anchor === "middle" ? x - w / 2 : anchor === "end" ? x - w : x;
|
|
390
|
-
const right = anchor === "middle" ? x + w / 2 : anchor === "end" ? x : x + w;
|
|
391
|
-
push(left, y - fontSize * 0.9);
|
|
392
|
-
push(right, y + fontSize * 0.25);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
for (const m of svg.matchAll(/<path\b[^>]*?>/g)) {
|
|
396
|
-
const tag = m[0];
|
|
397
|
-
if (tag.includes("data-embed-ignore-bbox")) continue;
|
|
398
|
-
const dm = tag.match(/\bd="([^"]+)"/);
|
|
399
|
-
if (!dm) continue;
|
|
400
|
-
const d = dm[1];
|
|
401
|
-
const nums = d.match(/-?\d+(?:\.\d+)?/g);
|
|
402
|
-
if (!nums) continue;
|
|
403
|
-
for (let i = 0; i + 1 < nums.length; i += 2) {
|
|
404
|
-
push(parseFloat(nums[i]), parseFloat(nums[i + 1]));
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
for (const m of svg.matchAll(
|
|
408
|
-
/<(?:polygon|polyline)\b[^>]*?\bpoints="([^"]+)"/g
|
|
409
|
-
)) {
|
|
410
|
-
const nums = m[1].match(/-?\d+(?:\.\d+)?/g);
|
|
411
|
-
if (!nums) continue;
|
|
412
|
-
for (let i = 0; i + 1 < nums.length; i += 2) {
|
|
413
|
-
push(parseFloat(nums[i]), parseFloat(nums[i + 1]));
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
if (xs.length === 0 || ys.length === 0) return null;
|
|
417
|
-
const minX = Math.min(...xs);
|
|
418
|
-
const maxX = Math.max(...xs);
|
|
419
|
-
const minY = Math.min(...ys);
|
|
420
|
-
const maxY = Math.max(...ys);
|
|
421
|
-
return { x: minX, y: minY, width: maxX - minX, height: maxY - minY };
|
|
422
|
-
}
|
|
423
|
-
|
|
424
202
|
export {
|
|
425
203
|
docsLink,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
defaultEmbedBackground,
|
|
429
|
-
getEmbedSvgViewBox
|
|
204
|
+
MONO_FAMILY,
|
|
205
|
+
renderErrorCard
|
|
430
206
|
};
|
|
431
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-UF7WAYBH.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
layoutJourneyMap,
|
|
4
4
|
scoreToColor,
|
|
5
5
|
scoreToCurveY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QG3RU7YT.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapNoteBody
|
|
9
9
|
} from "./chunk-VJARCVMH.js";
|
|
@@ -24,20 +24,20 @@ import {
|
|
|
24
24
|
} from "./chunk-NZ5QVASG.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-A6L6W43V.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
30
|
} from "./chunk-6KFWC4CO.js";
|
|
31
31
|
import {
|
|
32
32
|
parseJourneyMap
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OSXJY6SY.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveActiveTagGroup,
|
|
36
36
|
tagAttrKey
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LLA5C2TM.js";
|
|
38
38
|
import {
|
|
39
39
|
fillModeFromOptions
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-IXY2IPOW.js";
|
|
41
41
|
import {
|
|
42
42
|
measureText,
|
|
43
43
|
truncateText,
|
|
@@ -871,4 +871,4 @@ export {
|
|
|
871
871
|
renderJourneyMap,
|
|
872
872
|
renderJourneyMapForExport
|
|
873
873
|
};
|
|
874
|
-
//# sourceMappingURL=chunk-
|
|
874
|
+
//# sourceMappingURL=chunk-UWJNAEMY.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
matchTagBlockHeading,
|
|
10
10
|
stripDefaultModifier,
|
|
11
11
|
tagAttrKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LLA5C2TM.js";
|
|
13
13
|
import {
|
|
14
14
|
extractColor,
|
|
15
15
|
fillModeFromToken,
|
|
16
16
|
measureIndent,
|
|
17
17
|
parseFirstLine
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IXY2IPOW.js";
|
|
19
19
|
import {
|
|
20
20
|
emit
|
|
21
21
|
} from "./chunk-OLMWTJVU.js";
|
|
@@ -264,4 +264,4 @@ export {
|
|
|
264
264
|
parseBody,
|
|
265
265
|
extractSymbols
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk-
|
|
267
|
+
//# sourceMappingURL=chunk-UYY7MVJK.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parseFirstLine,
|
|
6
6
|
splitNameAndMeta,
|
|
7
7
|
warnUnknownMetaKeys
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IXY2IPOW.js";
|
|
9
9
|
import {
|
|
10
10
|
makeDgmoError,
|
|
11
11
|
makeFail,
|
|
@@ -338,4 +338,4 @@ function assignGlobalNumbers(result) {
|
|
|
338
338
|
export {
|
|
339
339
|
parseTechRadar
|
|
340
340
|
};
|
|
341
|
-
//# sourceMappingURL=chunk-
|
|
341
|
+
//# sourceMappingURL=chunk-V5PHEH2M.js.map
|
|
@@ -17,17 +17,18 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LLA5C2TM.js";
|
|
21
21
|
import {
|
|
22
22
|
C4_REGISTRY,
|
|
23
23
|
OPTION_NOCOLON_RE,
|
|
24
24
|
extractColor,
|
|
25
25
|
measureIndent,
|
|
26
26
|
parseFirstLine,
|
|
27
|
+
peelQuotedName,
|
|
27
28
|
splitNameAndMeta,
|
|
28
29
|
warnUnknownMetaKeys,
|
|
29
30
|
withTagAliases
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IXY2IPOW.js";
|
|
31
32
|
import {
|
|
32
33
|
formatDgmoError,
|
|
33
34
|
makeDgmoError,
|
|
@@ -181,7 +182,8 @@ function parseC4(content, palette) {
|
|
|
181
182
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
182
183
|
const nameAliasMap = /* @__PURE__ */ new Map();
|
|
183
184
|
function resolveNameRef(rawName) {
|
|
184
|
-
|
|
185
|
+
const trimmed = rawName.trim();
|
|
186
|
+
return nameAliasMap.get(trimmed) ?? peelQuotedName(trimmed);
|
|
185
187
|
}
|
|
186
188
|
const knownNames = /* @__PURE__ */ new Map();
|
|
187
189
|
const elementMetadata = /* @__PURE__ */ new WeakMap();
|
|
@@ -308,7 +310,7 @@ function parseC4(content, palette) {
|
|
|
308
310
|
} else {
|
|
309
311
|
const refMatch = trimmed.match(CONTAINER_REF_RE);
|
|
310
312
|
if (refMatch) {
|
|
311
|
-
const refName = refMatch[1].trim();
|
|
313
|
+
const refName = peelQuotedName(refMatch[1].trim());
|
|
312
314
|
if (deployStack.length > 0) {
|
|
313
315
|
deployStack[deployStack.length - 1].node.containerRefs.push(
|
|
314
316
|
refName
|
|
@@ -321,10 +323,9 @@ function parseC4(content, palette) {
|
|
|
321
323
|
}
|
|
322
324
|
continue;
|
|
323
325
|
}
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
);
|
|
326
|
+
const parsedNode = parseC4NameAndMeta(trimmed, metaAliasMap);
|
|
327
|
+
const nodeName = peelQuotedName(parsedNode.name);
|
|
328
|
+
const metadata = parsedNode.metadata;
|
|
328
329
|
warnUnknownMetaKeys(
|
|
329
330
|
metadata,
|
|
330
331
|
withTagAliases(C4_REGISTRY, new Set(metaAliasMap.keys())),
|
|
@@ -506,11 +507,12 @@ function parseC4(content, palette) {
|
|
|
506
507
|
let namePart = isATypeMatch[1].trim();
|
|
507
508
|
const rawType = isATypeMatch[2].toLowerCase();
|
|
508
509
|
let remainder = isATypeMatch[3];
|
|
510
|
+
let declaredAlias;
|
|
509
511
|
const asPostfix = remainder.match(
|
|
510
512
|
/^(.*?)\s+as\s+([A-Za-z][A-Za-z0-9_]{0,11})\s*(\|.*)?$/
|
|
511
513
|
);
|
|
512
514
|
if (asPostfix) {
|
|
513
|
-
|
|
515
|
+
declaredAlias = asPostfix[2];
|
|
514
516
|
remainder = (asPostfix[1] + (asPostfix[3] ?? "")).trim();
|
|
515
517
|
} else {
|
|
516
518
|
const asInName = namePart.match(
|
|
@@ -518,9 +520,12 @@ function parseC4(content, palette) {
|
|
|
518
520
|
);
|
|
519
521
|
if (asInName) {
|
|
520
522
|
namePart = asInName[1].trim();
|
|
521
|
-
|
|
523
|
+
declaredAlias = asInName[2];
|
|
522
524
|
}
|
|
523
525
|
}
|
|
526
|
+
namePart = peelQuotedName(namePart);
|
|
527
|
+
if (declaredAlias !== void 0)
|
|
528
|
+
nameAliasMap.set(declaredAlias, namePart);
|
|
524
529
|
let elementType;
|
|
525
530
|
let explicitShape = null;
|
|
526
531
|
if (rawType === "external") {
|
|
@@ -615,7 +620,7 @@ function parseC4(content, palette) {
|
|
|
615
620
|
(msg) => pushError(lineNumber, msg, "warning"),
|
|
616
621
|
parsed.name
|
|
617
622
|
);
|
|
618
|
-
let namePart = parsed.name;
|
|
623
|
+
let namePart = peelQuotedName(parsed.name);
|
|
619
624
|
const metadata = parsed.metadata;
|
|
620
625
|
let explicitShape = null;
|
|
621
626
|
const isAMatch = namePart.match(IS_A_RE);
|
|
@@ -825,4 +830,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
|
|
|
825
830
|
export {
|
|
826
831
|
parseC4
|
|
827
832
|
};
|
|
828
|
-
//# sourceMappingURL=chunk-
|
|
833
|
+
//# sourceMappingURL=chunk-VGFUVFJA.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-NZ5QVASG.js";
|
|
24
24
|
import {
|
|
25
25
|
renderIntegratedLegend
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A6L6W43V.js";
|
|
27
27
|
import {
|
|
28
28
|
getLegendExtent
|
|
29
29
|
} from "./chunk-ES66QH6J.js";
|
|
@@ -37,16 +37,16 @@ import {
|
|
|
37
37
|
} from "./chunk-6KFWC4CO.js";
|
|
38
38
|
import {
|
|
39
39
|
parseERDiagram
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HQI7S72D.js";
|
|
41
41
|
import {
|
|
42
42
|
resolveTagColor,
|
|
43
43
|
tagAttrKey
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LLA5C2TM.js";
|
|
45
45
|
import {
|
|
46
46
|
fillModeFromOptions,
|
|
47
47
|
legendInlineRequested,
|
|
48
48
|
legendSuppressed
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IXY2IPOW.js";
|
|
50
50
|
import {
|
|
51
51
|
LEGEND_HEIGHT
|
|
52
52
|
} from "./chunk-SCJ7CAJF.js";
|
|
@@ -603,4 +603,4 @@ export {
|
|
|
603
603
|
renderERDiagram,
|
|
604
604
|
renderERDiagramForExport
|
|
605
605
|
};
|
|
606
|
-
//# sourceMappingURL=chunk-
|
|
606
|
+
//# sourceMappingURL=chunk-VIFFJOOR.js.map
|
|
@@ -20,16 +20,17 @@ import {
|
|
|
20
20
|
tagAttrKey,
|
|
21
21
|
validateTagGroupNames,
|
|
22
22
|
validateTagValues
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LLA5C2TM.js";
|
|
24
24
|
import {
|
|
25
25
|
PERT_REGISTRY,
|
|
26
26
|
extractColor,
|
|
27
27
|
measureIndent,
|
|
28
|
+
peelQuotedName,
|
|
28
29
|
peelTrailingCollapsedFlag,
|
|
29
30
|
splitNameAndMeta,
|
|
30
31
|
warnUnknownMetaKeys,
|
|
31
32
|
withTagAliases
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IXY2IPOW.js";
|
|
33
34
|
import {
|
|
34
35
|
emit,
|
|
35
36
|
makeDgmoError,
|
|
@@ -320,6 +321,7 @@ function tokenizeActivityLine(line, diagnostics, lineNumber, metaAliasMap) {
|
|
|
320
321
|
name = rawTokens.slice(0, firstNumIdx).join(" ").trim();
|
|
321
322
|
durationTokens = rawTokens.slice(firstNumIdx);
|
|
322
323
|
}
|
|
324
|
+
name = peelQuotedName(name);
|
|
323
325
|
return {
|
|
324
326
|
name,
|
|
325
327
|
durationTokens,
|
|
@@ -547,7 +549,7 @@ function parsePert(content, parseOpts = {}) {
|
|
|
547
549
|
if (groupMatch) {
|
|
548
550
|
contentStarted = true;
|
|
549
551
|
currentTagGroup = null;
|
|
550
|
-
const name = groupMatch[1].trim();
|
|
552
|
+
const name = peelQuotedName(groupMatch[1].trim());
|
|
551
553
|
let tail = (groupMatch[2] ?? "").trim();
|
|
552
554
|
let bareCollapsed = false;
|
|
553
555
|
const barePeel = peelTrailingCollapsedFlag(tail);
|
|
@@ -1256,4 +1258,4 @@ export {
|
|
|
1256
1258
|
extractPertSymbols,
|
|
1257
1259
|
looksLikePert
|
|
1258
1260
|
};
|
|
1259
|
-
//# sourceMappingURL=chunk-
|
|
1261
|
+
//# sourceMappingURL=chunk-W2Z4KS72.js.map
|
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
extractExportSvg,
|
|
3
3
|
runInExportContainer
|
|
4
4
|
} from "./chunk-L43KTQTW.js";
|
|
5
|
+
import {
|
|
6
|
+
layoutOrg
|
|
7
|
+
} from "./chunk-RVCBPDCK.js";
|
|
5
8
|
import {
|
|
6
9
|
renderCollapseBar,
|
|
7
10
|
renderNodeCard
|
|
@@ -23,15 +26,12 @@ import {
|
|
|
23
26
|
NODE_STROKE_WIDTH,
|
|
24
27
|
SEPARATOR_GAP
|
|
25
28
|
} from "./chunk-3CIOJ5YJ.js";
|
|
26
|
-
import {
|
|
27
|
-
layoutOrg
|
|
28
|
-
} from "./chunk-PKFW6GJD.js";
|
|
29
29
|
import {
|
|
30
30
|
ScaleContext
|
|
31
31
|
} from "./chunk-YYVTBZZC.js";
|
|
32
32
|
import {
|
|
33
33
|
renderIntegratedLegend
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-A6L6W43V.js";
|
|
35
35
|
import {
|
|
36
36
|
getMaxLegendReservedHeight
|
|
37
37
|
} from "./chunk-ES66QH6J.js";
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
} from "./chunk-6KFWC4CO.js";
|
|
45
45
|
import {
|
|
46
46
|
parseOrg
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ZTSBP3AH.js";
|
|
48
48
|
import {
|
|
49
49
|
resolveTagColor,
|
|
50
50
|
tagAttrKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LLA5C2TM.js";
|
|
52
52
|
import {
|
|
53
53
|
fillModeFromOptions
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IXY2IPOW.js";
|
|
55
55
|
import {
|
|
56
56
|
EYE_CLOSED_PATH,
|
|
57
57
|
EYE_OPEN_PATH,
|
|
@@ -485,4 +485,4 @@ export {
|
|
|
485
485
|
renderOrg,
|
|
486
486
|
renderOrgForExport
|
|
487
487
|
};
|
|
488
|
-
//# sourceMappingURL=chunk-
|
|
488
|
+
//# sourceMappingURL=chunk-WBALHD3K.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-A4GOY3PE.js";
|
|
20
20
|
import {
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LLA5C2TM.js";
|
|
23
23
|
import {
|
|
24
24
|
measureLegendText
|
|
25
25
|
} from "./chunk-SCJ7CAJF.js";
|
|
@@ -3177,4 +3177,4 @@ export {
|
|
|
3177
3177
|
albersSkewFallback,
|
|
3178
3178
|
layoutMap
|
|
3179
3179
|
};
|
|
3180
|
-
//# sourceMappingURL=chunk-
|
|
3180
|
+
//# sourceMappingURL=chunk-WCSVZW2W.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
fillModeFromToken,
|
|
13
13
|
measureIndent,
|
|
14
14
|
parseFirstLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IXY2IPOW.js";
|
|
16
16
|
import {
|
|
17
17
|
makeDgmoError,
|
|
18
18
|
makeFail
|
|
@@ -546,4 +546,4 @@ export {
|
|
|
546
546
|
targetToMs2 as targetToMs,
|
|
547
547
|
parseCountdown
|
|
548
548
|
};
|
|
549
|
-
//# sourceMappingURL=chunk-
|
|
549
|
+
//# sourceMappingURL=chunk-XS7CL7NX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compactNumber
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OJD4FU6H.js";
|
|
4
4
|
import {
|
|
5
5
|
parseInlineMarkdown
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
@@ -361,4 +361,4 @@ export {
|
|
|
361
361
|
renderGoal,
|
|
362
362
|
renderGoalForExport
|
|
363
363
|
};
|
|
364
|
-
//# sourceMappingURL=chunk-
|
|
364
|
+
//# sourceMappingURL=chunk-XVOGT46C.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-6KFWC4CO.js";
|
|
18
18
|
import {
|
|
19
19
|
fillModeFromOptions
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IXY2IPOW.js";
|
|
21
21
|
import {
|
|
22
22
|
CHAR_WIDTH_RATIO,
|
|
23
23
|
measureText
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
renderRing,
|
|
297
297
|
renderRingForExport
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-Y7KHN3MQ.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
mapLegendConfig,
|
|
7
7
|
mapLegendGroups,
|
|
8
8
|
parsePathRings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WCSVZW2W.js";
|
|
10
10
|
import {
|
|
11
11
|
renderIntegratedLegend
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A6L6W43V.js";
|
|
13
13
|
import {
|
|
14
14
|
TITLE_FONT_SIZE,
|
|
15
15
|
TITLE_FONT_WEIGHT,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-6KFWC4CO.js";
|
|
21
21
|
import {
|
|
22
22
|
parseClock
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SLGHGT76.js";
|
|
24
24
|
import {
|
|
25
25
|
fixedParts,
|
|
26
26
|
formatTime,
|
|
@@ -781,4 +781,4 @@ export {
|
|
|
781
781
|
renderMap,
|
|
782
782
|
renderMapForExport
|
|
783
783
|
};
|
|
784
|
-
//# sourceMappingURL=chunk-
|
|
784
|
+
//# sourceMappingURL=chunk-YOK3BMEW.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tagAttrKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LLA5C2TM.js";
|
|
4
4
|
import {
|
|
5
5
|
legendSuppressed
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IXY2IPOW.js";
|
|
7
7
|
import {
|
|
8
8
|
LEGEND_CAPSULE_PAD,
|
|
9
9
|
LEGEND_DOT_R,
|
|
@@ -1718,4 +1718,4 @@ export {
|
|
|
1718
1718
|
layoutC4Components,
|
|
1719
1719
|
layoutC4Deployment
|
|
1720
1720
|
};
|
|
1721
|
-
//# sourceMappingURL=chunk-
|
|
1721
|
+
//# sourceMappingURL=chunk-YPEMNAC7.js.map
|