@diagrammo/dgmo 0.56.0 → 0.58.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 +206 -196
- package/dist/auto.css +60 -0
- package/dist/auto.js +185 -124
- package/dist/auto.mjs +6749 -6280
- package/dist/block.css +60 -0
- package/dist/block.d.ts +12 -0
- package/dist/block.js +132 -61
- 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 +53 -51
- package/dist/{charts-d3-D67V6KHE.js → charts-d3-K5M5J5ZM.js} +5 -5
- package/dist/{chunk-GDGOVO2I.js → chunk-2JPEBOUQ.js} +71 -55
- package/dist/{chunk-FERE46TP.js → chunk-2UBTPFIF.js} +3 -3
- package/dist/{chunk-CXI6X54X.js → chunk-3DY7TNZ7.js} +2 -2
- package/dist/{chunk-D5FANMSG.js → chunk-3LMUMAUS.js} +2 -2
- package/dist/{chunk-D3WTEBGT.js → chunk-46NVO5UA.js} +2 -2
- package/dist/{chunk-5J2RQGFG.js → chunk-4CE2GOC2.js} +3 -3
- package/dist/{chunk-VKN7YW4Q.js → chunk-4ESLORPX.js} +7 -7
- package/dist/chunk-4UNGFVVY.js +181 -0
- package/dist/{chunk-Y2L2LET6.js → chunk-52KLHCXQ.js} +6 -6
- package/dist/{chunk-VSFAJUEF.js → chunk-5RPSN32F.js} +3 -3
- package/dist/{chunk-RBIX3HQQ.js → chunk-5RY4W7J6.js} +9 -9
- package/dist/{chunk-GUVVQW3Y.js → chunk-6F3MVYUW.js} +6 -6
- package/dist/{chunk-ST3ZNEUQ.js → chunk-6JYE3SDK.js} +2 -2
- package/dist/{chunk-FZECLCCU.js → chunk-6KTRV3O5.js} +3 -3
- package/dist/{chunk-KIGV66SP.js → chunk-7Q6HX7ON.js} +6 -6
- package/dist/{chunk-ULR3BVNH.js → chunk-7SGR7A5K.js} +4 -4
- package/dist/{chunk-5ZDHXS5N.js → chunk-7UZFAIKI.js} +7 -7
- package/dist/{chunk-WFX6AUQO.js → chunk-ATKB7VEN.js} +9 -4
- package/dist/{chunk-5VLUAAAE.js → chunk-AU4AQYOA.js} +3 -3
- package/dist/{chunk-4MB4UOT5.js → chunk-B4U7RRQ4.js} +2 -2
- package/dist/{chunk-QWUYFUNO.js → chunk-BFYPHZ5M.js} +2 -2
- package/dist/{chunk-NVQXIDLE.js → chunk-BIWMOFSE.js} +7 -7
- package/dist/{chunk-HPJITTF7.js → chunk-C7IKQOEQ.js} +15 -15
- package/dist/{chunk-YJUF2N3C.js → chunk-CBPFVH3N.js} +10 -10
- package/dist/{chunk-R7ECJQTB.js → chunk-CC6XIQDE.js} +3 -3
- package/dist/{chunk-3R67RRPC.js → chunk-CZIFUXI2.js} +7 -7
- package/dist/chunk-D3K4U3ZM.js +232 -0
- package/dist/{chunk-RQGNELB3.js → chunk-DWAQXY6T.js} +3 -3
- package/dist/{chunk-HIMDUQT7.js → chunk-DWMJLEBT.js} +7 -7
- package/dist/{chunk-YG5KQ55U.js → chunk-DZUDSGGQ.js} +13 -21
- package/dist/chunk-E55OZDFH.js +65 -0
- package/dist/{chunk-P6XFQVYY.js → chunk-E6CCWMTT.js} +19 -19
- package/dist/{chunk-3KOPPSUQ.js → chunk-E7HANW62.js} +12 -3
- package/dist/{chunk-ZMMYCERO.js → chunk-EDJYIQZM.js} +9 -233
- package/dist/{chunk-JXFB3APA.js → chunk-EEF7BUX7.js} +15 -15
- package/dist/{chunk-23THM67F.js → chunk-FWNJ45NW.js} +5 -5
- package/dist/{chunk-2UZVMWSQ.js → chunk-FXIG472W.js} +5 -5
- package/dist/{chunk-CQOC2MD6.js → chunk-GAFNYUNJ.js} +17 -16
- package/dist/{chunk-AIH6M5J6.js → chunk-GGKWKNOL.js} +4 -4
- package/dist/{chunk-U2BKSEKU.js → chunk-H52HJ26L.js} +2 -2
- package/dist/{chunk-BR2VSKHI.js → chunk-HBIGEWRC.js} +5 -5
- package/dist/{chunk-D64FRGKU.js → chunk-HUYAMTCD.js} +2 -2
- package/dist/{chunk-FCA2UGJT.js → chunk-HXTS54OV.js} +6 -6
- package/dist/{chunk-XN4ZSACM.js → chunk-ILZHMKYQ.js} +7 -7
- package/dist/{chunk-W2I2EXSC.js → chunk-IRN5GBBO.js} +15 -15
- package/dist/{chunk-YH62K5D4.js → chunk-JM65HLBZ.js} +13 -13
- package/dist/{chunk-DIKIHU52.js → chunk-KAG5JCZV.js} +3 -3
- package/dist/{chunk-4MJOBVY7.js → chunk-KNCY7YHC.js} +2 -2
- package/dist/{chunk-N2KO445N.js → chunk-L5DQB4C7.js} +16 -16
- package/dist/{chunk-5HWPEYWB.js → chunk-LDVUPGWC.js} +2 -2
- package/dist/{chunk-EEKGMS63.js → chunk-LLDNNANC.js} +3 -3
- package/dist/{chunk-SK7PCW4F.js → chunk-LSFZDBAP.js} +2 -2
- package/dist/{chunk-7SXTD7L6.js → chunk-LYQMN35H.js} +2 -2
- package/dist/{chunk-ES3MUYRX.js → chunk-MF4FDLFG.js} +3 -3
- package/dist/{chunk-YNAHUNMA.js → chunk-MPPOQOCF.js} +2 -2
- package/dist/{chunk-QDOYT6UW.js → chunk-N7PF5IRF.js} +4 -4
- package/dist/chunk-NCT22MOD.js +93 -0
- package/dist/{chunk-RK3Y4WMV.js → chunk-NGGVVTP2.js} +15 -15
- package/dist/{chunk-AMC2OGXF.js → chunk-NPBAV3QU.js} +13 -13
- package/dist/{chunk-HODUM6LY.js → chunk-NQGE76NC.js} +10 -10
- package/dist/{chunk-5XMDSXZT.js → chunk-NSUAU6JQ.js} +2 -2
- package/dist/{chunk-OHBIN74X.js → chunk-NW2K6UU2.js} +3 -3
- package/dist/{chunk-WOMXS5R7.js → chunk-NYCBN7YE.js} +3 -3
- package/dist/{chunk-FXVPSTDT.js → chunk-OMOU2V3W.js} +6 -6
- package/dist/chunk-ON4MEUC4.js +50 -0
- package/dist/{chunk-SOBGK35Z.js → chunk-OXANJRNK.js} +8 -8
- package/dist/{chunk-X32RDWT5.js → chunk-PH5WK6G5.js} +3 -3
- package/dist/{chunk-C3BWDEYN.js → chunk-PIIORN3Q.js} +7 -7
- package/dist/{chunk-YM2ZQIVG.js → chunk-QDOSCTL5.js} +9 -17
- package/dist/{chunk-CY5KE2P5.js → chunk-QS37VUFZ.js} +2 -2
- package/dist/{chunk-NFAHDPCG.js → chunk-RB3AFVPT.js} +3 -3
- package/dist/{chunk-LV5BFA24.js → chunk-RDHZRHDG.js} +3 -3
- package/dist/{chunk-AOJJSGXE.js → chunk-S3AZMBK7.js} +7 -7
- package/dist/{chunk-OWLGERJL.js → chunk-SBQXLX6Y.js} +6 -6
- package/dist/{chunk-PECYPUJJ.js → chunk-SQK4EKOW.js} +8 -8
- package/dist/{chunk-2JMNOEAU.js → chunk-STYJ6EOV.js} +163 -140
- package/dist/{chunk-AN465MXC.js → chunk-SZCZOA2L.js} +2 -2
- package/dist/{chunk-GG7TK3IA.js → chunk-TQC2SUMJ.js} +6 -6
- package/dist/{chunk-HE57UQHL.js → chunk-TXQXPJTG.js} +4 -4
- package/dist/{chunk-RV2N7COG.js → chunk-UFDLQKCR.js} +2 -2
- package/dist/{chunk-YWPWRR7W.js → chunk-UPTAWSCG.js} +2 -2
- package/dist/{chunk-ULONXAOD.js → chunk-VBSKNQUO.js} +6 -6
- package/dist/{chunk-UU6LUYUH.js → chunk-VJARCVMH.js} +2 -2
- package/dist/{chunk-HOPTF3ZP.js → chunk-VJYERZ2Q.js} +7 -7
- package/dist/{chunk-USFZQPJ2.js → chunk-W22JRLNA.js} +3 -3
- package/dist/{chunk-KSPCR75O.js → chunk-W2RU24DD.js} +6 -6
- package/dist/{chunk-NHZAYL2X.js → chunk-W6T5QRIR.js} +4 -4
- package/dist/{chunk-3HDBAXF5.js → chunk-WGC42WJU.js} +8 -1
- package/dist/{chunk-APD52YJV.js → chunk-WQWVLAA5.js} +4 -4
- package/dist/{chunk-VU3DOZ6C.js → chunk-WYG5VJY2.js} +4 -4
- package/dist/{chunk-VYEQPPS6.js → chunk-WYGLKR4I.js} +3 -3
- package/dist/{chunk-MGLJA5TK.js → chunk-X3YNX4DR.js} +2 -2
- package/dist/{chunk-A4DAZO3U.js → chunk-X4JEAY73.js} +13 -13
- package/dist/{chunk-JE3SMHRZ.js → chunk-XHTRLRZ5.js} +9 -9
- package/dist/{chunk-UZ6L5VQJ.js → chunk-XXAHWYQU.js} +3 -3
- package/dist/{chunk-HKKPUUNK.js → chunk-YAG7WAQE.js} +13 -13
- package/dist/{chunk-KF575IXC.js → chunk-YILSSUEL.js} +3 -3
- package/dist/{chunk-WK3UFCZC.js → chunk-YKMOI6ZG.js} +11 -11
- package/dist/{chunk-TGOMHUOV.js → chunk-ZEIYC7XO.js} +12 -1
- package/dist/{chunk-PFG3EVRD.js → chunk-ZKNSLC35.js} +3 -3
- package/dist/{chunk-U7ZQTUZT.js → chunk-ZW7LTYW2.js} +4 -4
- package/dist/cli.cjs +144 -143
- package/dist/cloud-reference.d.ts +76 -0
- package/dist/cloud-reference.js +18 -0
- package/dist/completion-registry.js +24 -5
- package/dist/dgmo-router-2637N4DY.js +90 -0
- package/dist/{dimensions-PLECMFTR.js → dimensions-HSIQYP5Z.js} +5 -5
- package/dist/editor.js +11 -2
- package/dist/element.js +188 -127
- package/dist/element.mjs +6749 -6280
- package/dist/{flowchart-parser-DA3V2SLH.js → flowchart-parser-I2TEUWAP.js} +4 -4
- package/dist/{flowchart-renderer-UQVXOUW4.js → flowchart-renderer-ER66DNCI.js} +12 -12
- package/dist/highlight.js +11 -2
- package/dist/index.d.ts +13 -4
- package/dist/index.js +65 -59
- package/dist/{layout-UXMNKETK.js → layout-3QMCSW6B.js} +8 -7
- package/dist/{layout-2BJDECLZ.js → layout-DH6GSKAH.js} +7 -6
- package/dist/{layout-HIK4ZJFQ.js → layout-HTDK3DMG.js} +4 -4
- package/dist/{layout-A5UVXINF.js → layout-K4S54TX7.js} +4 -4
- package/dist/{layout-UFZQI6SX.js → layout-RIS5VTGL.js} +7 -6
- package/dist/{layout-3XFPPFXI.js → layout-TCWNJ2OZ.js} +7 -6
- package/dist/{layout-SNIEAZ2I.js → layout-V5X3U3WB.js} +4 -4
- package/dist/{layout-QRVYYYZ3.js → layout-VFUHKLTS.js} +3 -3
- package/dist/{layout-WDXNSQQF.js → layout-VNEBCYPX.js} +4 -4
- package/dist/{layout-search-I4VNIRGT.js → layout-search-N6NQI5OQ.js} +10 -9
- package/dist/{parser-5UZWYSIV.js → parser-2RTQF2LA.js} +4 -4
- package/dist/{parser-4ZIJDGPG.js → parser-2VTOUMJY.js} +4 -4
- package/dist/{parser-HMQZPPOK.js → parser-3M3QQRCZ.js} +4 -4
- package/dist/{parser-RBNOWHGM.js → parser-4WSJVVG6.js} +4 -4
- package/dist/{parser-Q3KNFXQR.js → parser-67JHR6I6.js} +4 -4
- package/dist/{parser-MH62NYKM.js → parser-6GXEHNZD.js} +4 -4
- package/dist/{parser-O5XCVGZG.js → parser-6I3NOLKL.js} +3 -3
- package/dist/{parser-6CM27UPA.js → parser-7VNCLF77.js} +4 -4
- package/dist/{parser-QL2LBPFE.js → parser-AE7RC4IJ.js} +4 -4
- package/dist/{parser-DQ2DGDYO.js → parser-BDGMJSZB.js} +3 -3
- package/dist/{parser-WT3DSNPQ.js → parser-BVHECXAJ.js} +4 -4
- package/dist/{parser-QEWSTNEJ.js → parser-FLCLHHOM.js} +4 -4
- package/dist/{parser-VVTCMQWY.js → parser-FSSAJO2M.js} +5 -5
- package/dist/{parser-73YUU35J.js → parser-GH2Y6CR4.js} +3 -3
- package/dist/{parser-AYZTKZC3.js → parser-GUUNA7WE.js} +3 -3
- package/dist/{parser-GGCDY65M.js → parser-ISJJO7TJ.js} +5 -5
- package/dist/parser-J3FUTZAQ.js +12 -0
- package/dist/{parser-Q62VR2UJ.js → parser-JY7ZU5PP.js} +5 -5
- package/dist/{parser-4TX6U4ZU.js → parser-KKBW25LM.js} +3 -3
- package/dist/{parser-XWNSCDY6.js → parser-M74SVSPT.js} +4 -4
- package/dist/{parser-CCAUZLYI.js → parser-MKJ52TD7.js} +4 -4
- package/dist/{parser-A6M25MLK.js → parser-MPQTXCBQ.js} +3 -3
- package/dist/{parser-LQDEU22S.js → parser-N3AAAGTA.js} +4 -4
- package/dist/{parser-OPOGIKFR.js → parser-N7SSE4SK.js} +4 -4
- package/dist/{parser-D7YZX3CH.js → parser-NH6IAVZJ.js} +3 -3
- package/dist/{parser-IPBEW2DG.js → parser-NKHBUGAX.js} +4 -4
- package/dist/{parser-PQXN6SBB.js → parser-QVX4FR3J.js} +5 -5
- package/dist/{parser-JWAGGYLL.js → parser-S6QH3QIK.js} +5 -5
- package/dist/{parser-PEBXIOPX.js → parser-UODHU3EP.js} +4 -4
- package/dist/{parser-LNEAHGXF.js → parser-UVS6OHCO.js} +5 -5
- package/dist/{parser-SJ7ECFAP.js → parser-X3TCE7P5.js} +4 -4
- package/dist/{parser-QN3GJJ3J.js → parser-XQKSQBOT.js} +3 -3
- package/dist/{parser-KTVDCWHG.js → parser-XXYB4TRG.js} +4 -4
- package/dist/{registry-CaSw0PSH.d.ts → registry-C0HvobTb.d.ts} +17 -0
- package/dist/renderer-2G7Q3L5W.js +77 -0
- package/dist/{renderer-I5MAFUKX.js → renderer-2IO3H53I.js} +6 -6
- package/dist/{renderer-M6AFKVLS.js → renderer-2KDW3TWO.js} +5 -5
- package/dist/{renderer-CB2DOQ2O.js → renderer-2SK7UM4O.js} +5 -5
- package/dist/{renderer-P7O6OUYC.js → renderer-34GG6RHO.js} +9 -9
- package/dist/{renderer-WWC5VGHH.js → renderer-44EXXXRC.js} +7 -7
- package/dist/{renderer-MLDGFZDW.js → renderer-4SH6U6WF.js} +6 -6
- package/dist/{renderer-53FU55KK.js → renderer-4WQRF2SK.js} +6 -6
- package/dist/{renderer-CL4SAUA5.js → renderer-7AVFPE3Q.js} +5 -5
- package/dist/{renderer-52S6JM5R.js → renderer-BA6WTWVL.js} +8 -8
- package/dist/{renderer-JNC6VJMN.js → renderer-BLPXBLUP.js} +7 -7
- package/dist/{renderer-4VLQKKTV.js → renderer-C7LFE5CB.js} +15 -15
- package/dist/{renderer-5CU6GYF2.js → renderer-CUXXNHFU.js} +8 -8
- package/dist/{renderer-TOKGYFTG.js → renderer-DRNJJNAE.js} +5 -5
- package/dist/{renderer-OZIPP7VF.js → renderer-DVUKHOFB.js} +11 -11
- package/dist/{renderer-FRBPMKPP.js → renderer-I7Q5U2TU.js} +6 -6
- package/dist/{renderer-SYT4L7GE.js → renderer-JIUVU3PF.js} +3 -3
- package/dist/{renderer-J5TL5ZX4.js → renderer-LXIIZ3BH.js} +15 -15
- package/dist/{renderer-5G3PORFD.js → renderer-MTX6PLPA.js} +11 -11
- package/dist/{renderer-IWNHBIZ6.js → renderer-NKVIQA3C.js} +4 -4
- package/dist/{renderer-YWYX6WAI.js → renderer-QGZ2BOJG.js} +4 -4
- package/dist/{renderer-O4ECS2BI.js → renderer-SL5IQJKB.js} +10 -10
- package/dist/{renderer-3IETIUZB.js → renderer-SL5LE7MU.js} +8 -8
- package/dist/{renderer-KUIZNLAQ.js → renderer-SXZBGMEH.js} +5 -5
- package/dist/{renderer-J5MMVCGN.js → renderer-UPANX7XK.js} +8 -8
- package/dist/{renderer-DZ5N6BHW.js → renderer-VDCGDJ6L.js} +5 -5
- package/dist/{renderer-YVCD55ZX.js → renderer-XJFRVCF6.js} +9 -9
- package/dist/{renderer-Q3A7572V.js → renderer-XRC5R3OP.js} +5 -5
- package/dist/{renderer-2NU7M5PN.js → renderer-Y64MT4JM.js} +7 -7
- package/dist/{renderer-CRAIC4ER.js → renderer-ZLJ5CCSO.js} +6 -6
- package/dist/{renderer-QRX7Q2YN.js → renderer-ZY5TXTS5.js} +6 -6
- package/dist/{renderer-radial-QG644QYY.js → renderer-radial-4YKK4JNW.js} +6 -6
- package/dist/{state-parser-NQGVYSM3.js → state-parser-3PFFJO5M.js} +5 -5
- package/dist/{state-renderer-NKV5B3KH.js → state-renderer-2HDVRUNG.js} +14 -14
- package/dist/{themes-tbBkIVsn.d.ts → themes-l406Vj2z.d.ts} +1 -1
- package/docs/language-reference.md +29 -0
- package/package.json +5 -1
- package/dist/chunk-BMR4CIEO.js +0 -41
- package/dist/dgmo-router-GSWUPLP2.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-2JPEBOUQ.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-EDJYIQZM.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeNodeText,
|
|
3
3
|
layoutMindmap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FWNJ45NW.js";
|
|
5
5
|
import {
|
|
6
6
|
extractExportSvg,
|
|
7
7
|
runInExportContainer
|
|
8
8
|
} from "./chunk-L43KTQTW.js";
|
|
9
|
-
import {
|
|
10
|
-
renderInlineText
|
|
11
|
-
} from "./chunk-3HDBAXF5.js";
|
|
12
9
|
import {
|
|
13
10
|
COLLAPSE_BAR_HEIGHT,
|
|
14
11
|
EDGE_STROKE_WIDTH,
|
|
15
12
|
NODE_STROKE_WIDTH
|
|
16
13
|
} from "./chunk-3CIOJ5YJ.js";
|
|
14
|
+
import {
|
|
15
|
+
renderInlineText
|
|
16
|
+
} from "./chunk-WGC42WJU.js";
|
|
17
17
|
import {
|
|
18
18
|
ScaleContext
|
|
19
19
|
} from "./chunk-YYVTBZZC.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-6VJCURWU.js";
|
|
23
23
|
import {
|
|
24
24
|
renderIntegratedLegend
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N7PF5IRF.js";
|
|
26
26
|
import {
|
|
27
27
|
getLegendExtent,
|
|
28
28
|
getMaxLegendReservedHeight
|
|
@@ -36,10 +36,18 @@ import {
|
|
|
36
36
|
} from "./chunk-6KFWC4CO.js";
|
|
37
37
|
import {
|
|
38
38
|
parseMindmap
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YILSSUEL.js";
|
|
40
40
|
import {
|
|
41
41
|
preprocessDescriptionLine
|
|
42
42
|
} from "./chunk-IYULMRBE.js";
|
|
43
|
+
import {
|
|
44
|
+
tagAttrKey
|
|
45
|
+
} from "./chunk-3LMUMAUS.js";
|
|
46
|
+
import {
|
|
47
|
+
fillModeFromOptions,
|
|
48
|
+
legendInlineRequested,
|
|
49
|
+
legendSuppressed
|
|
50
|
+
} from "./chunk-E7HANW62.js";
|
|
43
51
|
import {
|
|
44
52
|
LEGEND_GROUP_GAP
|
|
45
53
|
} from "./chunk-SCJ7CAJF.js";
|
|
@@ -47,14 +55,6 @@ import {
|
|
|
47
55
|
contrastText,
|
|
48
56
|
shapeFill
|
|
49
57
|
} from "./chunk-42IT4BG2.js";
|
|
50
|
-
import {
|
|
51
|
-
tagAttrKey
|
|
52
|
-
} from "./chunk-D5FANMSG.js";
|
|
53
|
-
import {
|
|
54
|
-
fillModeFromOptions,
|
|
55
|
-
legendInlineRequested,
|
|
56
|
-
legendSuppressed
|
|
57
|
-
} from "./chunk-3KOPPSUQ.js";
|
|
58
58
|
|
|
59
59
|
// src/mindmap/renderer.ts
|
|
60
60
|
import * as d3Selection from "d3-selection";
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
renderMindmap,
|
|
427
427
|
renderMindmapForExport
|
|
428
428
|
};
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-EEF7BUX7.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
preprocessDescriptionLine
|
|
6
6
|
} from "./chunk-IYULMRBE.js";
|
|
7
|
+
import {
|
|
8
|
+
injectDefaultTagMetadata,
|
|
9
|
+
resolveTagColor
|
|
10
|
+
} from "./chunk-3LMUMAUS.js";
|
|
7
11
|
import {
|
|
8
12
|
measureText,
|
|
9
13
|
truncateText
|
|
10
14
|
} from "./chunk-4ASYQ347.js";
|
|
11
|
-
import {
|
|
12
|
-
injectDefaultTagMetadata,
|
|
13
|
-
resolveTagColor
|
|
14
|
-
} from "./chunk-D5FANMSG.js";
|
|
15
15
|
|
|
16
16
|
// src/mindmap/text-wrap.ts
|
|
17
17
|
var H_PAD = 16;
|
|
@@ -547,4 +547,4 @@ export {
|
|
|
547
547
|
computeNodeText,
|
|
548
548
|
layoutMindmap
|
|
549
549
|
};
|
|
550
|
-
//# sourceMappingURL=chunk-
|
|
550
|
+
//# sourceMappingURL=chunk-FWNJ45NW.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mix
|
|
3
|
-
} from "./chunk-42IT4BG2.js";
|
|
4
1
|
import {
|
|
5
2
|
resolveTagColor,
|
|
6
3
|
tagAttrKey
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3LMUMAUS.js";
|
|
5
|
+
import {
|
|
6
|
+
mix
|
|
7
|
+
} from "./chunk-42IT4BG2.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveColor
|
|
10
10
|
} from "./chunk-EXNKNJ65.js";
|
|
@@ -176,4 +176,4 @@ export {
|
|
|
176
176
|
formatPct,
|
|
177
177
|
buildLegend
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-FXIG472W.js.map
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
renderNoteBadge,
|
|
5
5
|
renderNoteBox,
|
|
6
6
|
renderNoteConnector
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
renderInlineText
|
|
10
|
-
} from "./chunk-3HDBAXF5.js";
|
|
7
|
+
} from "./chunk-H52HJ26L.js";
|
|
11
8
|
import {
|
|
12
9
|
EDGE_STROKE_WIDTH,
|
|
13
10
|
NODE_STROKE_WIDTH
|
|
14
11
|
} from "./chunk-3CIOJ5YJ.js";
|
|
15
12
|
import {
|
|
16
13
|
wrapDescriptionLines
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NCT22MOD.js";
|
|
15
|
+
import {
|
|
16
|
+
renderInlineText,
|
|
17
|
+
stripInlineMarkdown
|
|
18
|
+
} from "./chunk-WGC42WJU.js";
|
|
18
19
|
import {
|
|
19
20
|
ScaleContext
|
|
20
21
|
} from "./chunk-YYVTBZZC.js";
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
} from "./chunk-6VJCURWU.js";
|
|
24
25
|
import {
|
|
25
26
|
renderIntegratedLegend
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-N7PF5IRF.js";
|
|
27
28
|
import {
|
|
28
29
|
getLegendExtent,
|
|
29
30
|
getMaxLegendReservedHeight
|
|
@@ -36,6 +37,14 @@ import {
|
|
|
36
37
|
import {
|
|
37
38
|
FONT_FAMILY
|
|
38
39
|
} from "./chunk-6KFWC4CO.js";
|
|
40
|
+
import {
|
|
41
|
+
resolveTagColor
|
|
42
|
+
} from "./chunk-3LMUMAUS.js";
|
|
43
|
+
import {
|
|
44
|
+
fillModeFromOptions,
|
|
45
|
+
legendInlineRequested,
|
|
46
|
+
legendSuppressed
|
|
47
|
+
} from "./chunk-E7HANW62.js";
|
|
39
48
|
import {
|
|
40
49
|
CHAR_WIDTH_RATIO,
|
|
41
50
|
measureText,
|
|
@@ -49,14 +58,6 @@ import {
|
|
|
49
58
|
themeBaseBg,
|
|
50
59
|
valueRampColor
|
|
51
60
|
} from "./chunk-42IT4BG2.js";
|
|
52
|
-
import {
|
|
53
|
-
resolveTagColor
|
|
54
|
-
} from "./chunk-D5FANMSG.js";
|
|
55
|
-
import {
|
|
56
|
-
fillModeFromOptions,
|
|
57
|
-
legendInlineRequested,
|
|
58
|
-
legendSuppressed
|
|
59
|
-
} from "./chunk-3KOPPSUQ.js";
|
|
60
61
|
import {
|
|
61
62
|
resolveColor
|
|
62
63
|
} from "./chunk-EXNKNJ65.js";
|
|
@@ -581,7 +582,7 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
581
582
|
maxTextWidth / (sDescFontSize * CHAR_WIDTH_RATIO)
|
|
582
583
|
);
|
|
583
584
|
const descLineH = sDescFontSize * DESC_LINE_HEIGHT;
|
|
584
|
-
const displayLen = (text) => text
|
|
585
|
+
const displayLen = (text) => stripInlineMarkdown(text).length;
|
|
585
586
|
const normalizedLines = [];
|
|
586
587
|
for (const descLine of desc) {
|
|
587
588
|
let normalized = descLine.startsWith("- ") ? "\u2022 " + descLine.slice(2) : descLine;
|
|
@@ -812,4 +813,4 @@ export {
|
|
|
812
813
|
renderBoxesAndLines,
|
|
813
814
|
renderBoxesAndLinesForExport
|
|
814
815
|
};
|
|
815
|
-
//# sourceMappingURL=chunk-
|
|
816
|
+
//# sourceMappingURL=chunk-GAFNYUNJ.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
mapLegendConfig,
|
|
7
7
|
mapLegendGroups,
|
|
8
8
|
parsePathRings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZW7LTYW2.js";
|
|
10
10
|
import {
|
|
11
11
|
renderIntegratedLegend
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N7PF5IRF.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-MPPOQOCF.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-GGKWKNOL.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-5DH3KYFH.js";
|
|
9
9
|
import {
|
|
10
10
|
renderInlineText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WGC42WJU.js";
|
|
12
12
|
import {
|
|
13
13
|
mix
|
|
14
14
|
} from "./chunk-42IT4BG2.js";
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
NOTE_BADGE_RADIUS,
|
|
134
134
|
renderNoteBadge
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-H52HJ26L.js.map
|
|
@@ -32,12 +32,15 @@ import {
|
|
|
32
32
|
getSimpleChartLegendGroups,
|
|
33
33
|
parseChart,
|
|
34
34
|
parseExtendedChart
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QS37VUFZ.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPHASIS_DIM_OPACITY,
|
|
38
38
|
EMPHASIS_DIM_TEXT_OPACITY,
|
|
39
39
|
resolveEmphasis
|
|
40
40
|
} from "./chunk-2CW5ZTNH.js";
|
|
41
|
+
import {
|
|
42
|
+
tagAttrKey
|
|
43
|
+
} from "./chunk-3LMUMAUS.js";
|
|
41
44
|
import {
|
|
42
45
|
LEGEND_DOT_R,
|
|
43
46
|
LEGEND_ENTRY_FONT_SIZE,
|
|
@@ -58,9 +61,6 @@ import {
|
|
|
58
61
|
shapeFill,
|
|
59
62
|
themeBaseBg
|
|
60
63
|
} from "./chunk-42IT4BG2.js";
|
|
61
|
-
import {
|
|
62
|
-
tagAttrKey
|
|
63
|
-
} from "./chunk-D5FANMSG.js";
|
|
64
64
|
|
|
65
65
|
// src/utils/legend-svg.ts
|
|
66
66
|
function esc(s) {
|
|
@@ -2061,4 +2061,4 @@ export {
|
|
|
2061
2061
|
supportsD3DataChart,
|
|
2062
2062
|
renderDataChartD3
|
|
2063
2063
|
};
|
|
2064
|
-
//# sourceMappingURL=chunk-
|
|
2064
|
+
//# sourceMappingURL=chunk-HBIGEWRC.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractColor,
|
|
3
3
|
measureIndent,
|
|
4
4
|
parseFirstLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7HANW62.js";
|
|
6
6
|
import {
|
|
7
7
|
emit,
|
|
8
8
|
formatDgmoError,
|
|
@@ -507,4 +507,4 @@ export {
|
|
|
507
507
|
VERSION_CONTROL_DIAGNOSTICS,
|
|
508
508
|
parseVersionControl
|
|
509
509
|
};
|
|
510
|
-
//# sourceMappingURL=chunk-
|
|
510
|
+
//# sourceMappingURL=chunk-HUYAMTCD.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
tryStripDescriptionKeyword
|
|
3
|
-
} from "./chunk-IYULMRBE.js";
|
|
4
1
|
import {
|
|
5
2
|
inferParticipantType
|
|
6
3
|
} from "./chunk-C3Z4DX3V.js";
|
|
7
4
|
import {
|
|
8
5
|
parseInArrowLabel
|
|
9
6
|
} from "./chunk-RRX4Z4TH.js";
|
|
7
|
+
import {
|
|
8
|
+
tryStripDescriptionKeyword
|
|
9
|
+
} from "./chunk-IYULMRBE.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeName
|
|
12
12
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3LMUMAUS.js";
|
|
21
21
|
import {
|
|
22
22
|
C4_REGISTRY,
|
|
23
23
|
OPTION_NOCOLON_RE,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
splitNameAndMeta,
|
|
28
28
|
warnUnknownMetaKeys,
|
|
29
29
|
withTagAliases
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-E7HANW62.js";
|
|
31
31
|
import {
|
|
32
32
|
formatDgmoError,
|
|
33
33
|
makeDgmoError,
|
|
@@ -825,4 +825,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
|
|
|
825
825
|
export {
|
|
826
826
|
parseC4
|
|
827
827
|
};
|
|
828
|
-
//# sourceMappingURL=chunk-
|
|
828
|
+
//# sourceMappingURL=chunk-HXTS54OV.js.map
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tagAttrKey
|
|
3
|
+
} from "./chunk-3LMUMAUS.js";
|
|
4
|
+
import {
|
|
5
|
+
legendSuppressed
|
|
6
|
+
} from "./chunk-E7HANW62.js";
|
|
1
7
|
import {
|
|
2
8
|
LEGEND_CAPSULE_PAD,
|
|
3
9
|
LEGEND_DOT_R,
|
|
@@ -13,12 +19,6 @@ import {
|
|
|
13
19
|
measureText,
|
|
14
20
|
wrapTextToWidth
|
|
15
21
|
} from "./chunk-4ASYQ347.js";
|
|
16
|
-
import {
|
|
17
|
-
tagAttrKey
|
|
18
|
-
} from "./chunk-D5FANMSG.js";
|
|
19
|
-
import {
|
|
20
|
-
legendSuppressed
|
|
21
|
-
} from "./chunk-3KOPPSUQ.js";
|
|
22
22
|
|
|
23
23
|
// src/c4/layout.ts
|
|
24
24
|
import dagre from "@dagrejs/dagre";
|
|
@@ -1718,4 +1718,4 @@ export {
|
|
|
1718
1718
|
layoutC4Components,
|
|
1719
1719
|
layoutC4Deployment
|
|
1720
1720
|
};
|
|
1721
|
-
//# sourceMappingURL=chunk-
|
|
1721
|
+
//# sourceMappingURL=chunk-ILZHMKYQ.js.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderNodeCard
|
|
3
3
|
} from "./chunk-H3HFC3SQ.js";
|
|
4
|
-
import {
|
|
5
|
-
renderInlineText
|
|
6
|
-
} from "./chunk-3HDBAXF5.js";
|
|
7
4
|
import {
|
|
8
5
|
CARD_RADIUS,
|
|
9
6
|
COLLAPSE_BAR_HEIGHT,
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
NODE_STROKE_WIDTH,
|
|
21
18
|
SEPARATOR_GAP
|
|
22
19
|
} from "./chunk-3CIOJ5YJ.js";
|
|
20
|
+
import {
|
|
21
|
+
renderInlineText
|
|
22
|
+
} from "./chunk-WGC42WJU.js";
|
|
23
23
|
import {
|
|
24
24
|
ScaleContext
|
|
25
25
|
} from "./chunk-YYVTBZZC.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-NZ5QVASG.js";
|
|
32
32
|
import {
|
|
33
33
|
renderIntegratedLegend
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-N7PF5IRF.js";
|
|
35
35
|
import {
|
|
36
36
|
getLegendExtent,
|
|
37
37
|
getMaxLegendReservedHeight
|
|
@@ -46,6 +46,14 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
preprocessDescriptionLine
|
|
48
48
|
} from "./chunk-IYULMRBE.js";
|
|
49
|
+
import {
|
|
50
|
+
tagAttrKey
|
|
51
|
+
} from "./chunk-3LMUMAUS.js";
|
|
52
|
+
import {
|
|
53
|
+
fillModeFromOptions,
|
|
54
|
+
legendInlineRequested,
|
|
55
|
+
legendSuppressed
|
|
56
|
+
} from "./chunk-E7HANW62.js";
|
|
49
57
|
import {
|
|
50
58
|
EYE_CLOSED_PATH,
|
|
51
59
|
EYE_OPEN_PATH,
|
|
@@ -63,14 +71,6 @@ import {
|
|
|
63
71
|
shapeFill,
|
|
64
72
|
themeBaseBg
|
|
65
73
|
} from "./chunk-42IT4BG2.js";
|
|
66
|
-
import {
|
|
67
|
-
tagAttrKey
|
|
68
|
-
} from "./chunk-D5FANMSG.js";
|
|
69
|
-
import {
|
|
70
|
-
fillModeFromOptions,
|
|
71
|
-
legendInlineRequested,
|
|
72
|
-
legendSuppressed
|
|
73
|
-
} from "./chunk-3KOPPSUQ.js";
|
|
74
74
|
|
|
75
75
|
// src/sitemap/renderer.ts
|
|
76
76
|
import * as d3Selection from "d3-selection";
|
|
@@ -449,8 +449,8 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
async function renderSitemapForExport(content, theme, palette) {
|
|
452
|
-
const { parseSitemap } = await import("./parser-
|
|
453
|
-
const { layoutSitemap } = await import("./layout-
|
|
452
|
+
const { parseSitemap } = await import("./parser-2RTQF2LA.js");
|
|
453
|
+
const { layoutSitemap } = await import("./layout-K4S54TX7.js");
|
|
454
454
|
const { getPalette } = await import("./palettes-WO3VA6NU.js");
|
|
455
455
|
const isDark = theme === "dark";
|
|
456
456
|
const effectivePalette = palette ?? (isDark ? getPalette("nord").dark : getPalette("nord").light);
|
|
@@ -500,4 +500,4 @@ export {
|
|
|
500
500
|
renderSitemap,
|
|
501
501
|
renderSitemapForExport
|
|
502
502
|
};
|
|
503
|
-
//# sourceMappingURL=chunk-
|
|
503
|
+
//# sourceMappingURL=chunk-IRN5GBBO.js.map
|