@diagrammo/dgmo 0.94.0 → 0.96.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/README.md +1 -1
- package/dist/advanced.d.ts +97 -570
- package/dist/advanced.js +176 -352
- package/dist/block.d.ts +6 -0
- package/dist/block.js +59 -57
- package/dist/{calculator-BNH3GSJE.js → calculator-GIB7POFX.js} +2 -2
- package/dist/{chart-meta-BbjsRY7o.d.ts → chart-meta-uImk4eTn.d.ts} +1 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +16 -16
- package/dist/{chart-types-Cppnp31G.d.ts → chart-types-CBVYiLqy.d.ts} +1 -5
- package/dist/{charts-d3-SZV2SFTM.js → charts-d3-IRP5VANE.js} +5 -5
- package/dist/{chunk-MLY5ALOV.js → chunk-2BYFNZVM.js} +2 -2
- package/dist/{chunk-OSSTOSXU.js → chunk-2M3K6GD2.js} +3 -6
- package/dist/{chunk-CDM6XMOT.js → chunk-34JOHSVE.js} +2 -2
- package/dist/chunk-35A3J4Z5.js +14 -0
- package/dist/{chunk-HI6R27YA.js → chunk-3W73ZP6W.js} +9 -4
- package/dist/{chunk-IHN6WDEY.js → chunk-4B45SNZH.js} +5 -5
- package/dist/{chunk-AULZD45V.js → chunk-5ARANBIE.js} +2 -2
- package/dist/{chunk-DDIOWNHS.js → chunk-5BG4OSWJ.js} +6 -6
- package/dist/{chunk-6JCTW74W.js → chunk-5G4DOOX2.js} +1 -1
- package/dist/{chunk-JT2BG7LM.js → chunk-5GU6C5WB.js} +3 -3
- package/dist/{chunk-EBIDNRSR.js → chunk-5H7SA5ZD.js} +1 -1
- package/dist/{chunk-CN4RDJDV.js → chunk-5LG526X7.js} +1 -1
- package/dist/{chunk-VDY2GR6U.js → chunk-67N26CER.js} +2 -2
- package/dist/{chunk-G3HZ4PGE.js → chunk-67RKJEKF.js} +6 -6
- package/dist/{chunk-D3K4U3ZM.js → chunk-6K2W3FH7.js} +8 -5
- package/dist/{chunk-C6G36F5S.js → chunk-7UWVHNPM.js} +4 -4
- package/dist/{chunk-FWVE373X.js → chunk-AQRSEQZV.js} +1 -1
- package/dist/{chunk-BQO24BDM.js → chunk-AUXUNV73.js} +1 -1
- package/dist/{chunk-3PP746YM.js → chunk-B2YVZ3QU.js} +1 -1
- package/dist/{chunk-QPQWY5RU.js → chunk-B5CEV7IR.js} +3 -3
- package/dist/{chunk-J7Q4AB23.js → chunk-B7BSRVNC.js} +2 -2
- package/dist/{chunk-IXHWS2HI.js → chunk-BD4O4D2A.js} +2 -2
- package/dist/{chunk-4TEPDQHJ.js → chunk-BUVLLK3D.js} +7 -7
- package/dist/{chunk-B25IWGDH.js → chunk-CD7VQCDL.js} +8 -8
- package/dist/{chunk-I37S3EZE.js → chunk-CP73WWLN.js} +371 -286
- package/dist/{chunk-GI5R5B3S.js → chunk-D7DGLJ7N.js} +2 -2
- package/dist/{chunk-3TWBMU7K.js → chunk-DKCVAQU3.js} +9 -9
- package/dist/{chunk-KBDMEOLI.js → chunk-DPNSDCR3.js} +1 -1
- package/dist/{chunk-BRGRIZQB.js → chunk-DWMQ24JR.js} +2 -2
- package/dist/{chunk-4XYZJTFO.js → chunk-EM5SA7NC.js} +11 -3
- package/dist/{chunk-AM42TLSZ.js → chunk-EMGNCG5C.js} +1 -1
- package/dist/{chunk-3KVUFHUJ.js → chunk-EPB3UEMD.js} +2 -2
- package/dist/{chunk-NXU4N5WT.js → chunk-EZ6BI5LL.js} +1 -1
- package/dist/{chunk-2ZW4NBYX.js → chunk-FBK32S4D.js} +1 -1
- package/dist/{chunk-2I4UQG7W.js → chunk-FHX373L5.js} +1 -1
- package/dist/{chunk-AQQUJEDN.js → chunk-FKJWZWNU.js} +1 -1
- package/dist/{chunk-TIIZIAGS.js → chunk-FUYEXLAN.js} +6 -13
- package/dist/{chunk-TASRGDYP.js → chunk-GEHK4UD5.js} +3 -3
- package/dist/{chunk-ZD3QCNB7.js → chunk-GLL237AP.js} +2 -2
- package/dist/{chunk-PGSGJLUR.js → chunk-GM2SLMQW.js} +2 -2
- package/dist/{chunk-NOQB4KMV.js → chunk-H7JVKUA5.js} +5 -5
- package/dist/{chunk-DNM3XZCK.js → chunk-H7RQG4PH.js} +2 -2
- package/dist/{chunk-7SXV7NUS.js → chunk-HH3DHNQA.js} +2 -2
- package/dist/{chunk-GWQRTA5W.js → chunk-HZX4QZGR.js} +1 -1
- package/dist/{chunk-KBEWVCK3.js → chunk-I2I2FKAK.js} +1 -1
- package/dist/{chunk-2HSHWPTO.js → chunk-I3ZRIMR7.js} +10 -10
- package/dist/{chunk-7IOZ6JE4.js → chunk-IKXQ6NVR.js} +7 -7
- package/dist/{chunk-XJQ6Z3FO.js → chunk-IQZSKWE5.js} +3 -3
- package/dist/{chunk-3GUEYQGL.js → chunk-ITDF3MWD.js} +3 -3
- package/dist/{chunk-JXGSTBW6.js → chunk-IU7XKZA6.js} +2 -2
- package/dist/{chunk-RITTLIDJ.js → chunk-IZFJZCF6.js} +4 -4
- package/dist/{chunk-DRQSB72S.js → chunk-JBAFAKGX.js} +7 -7
- package/dist/{chunk-VSAKEMDD.js → chunk-JCC3B2GS.js} +8 -2
- package/dist/{chunk-66JTY4AN.js → chunk-JRN2CRXJ.js} +1 -1
- package/dist/{chunk-2FDQEQID.js → chunk-K2SFH3GJ.js} +2 -2
- package/dist/{chunk-NM5V5EKY.js → chunk-K2WXMXI2.js} +1 -1
- package/dist/{chunk-XKCRKD2B.js → chunk-KDWEOT54.js} +24 -12
- package/dist/{chunk-PVWIBKV2.js → chunk-KQAPFIYF.js} +2 -2
- package/dist/{chunk-4SACN2C5.js → chunk-LGUFJ7Y2.js} +1 -1
- package/dist/{chunk-AYUSD4Z6.js → chunk-LRHPBWOY.js} +5 -5
- package/dist/{chunk-DLJJOCIT.js → chunk-M4ZUIW3J.js} +3 -3
- package/dist/{chunk-CIHHTS5B.js → chunk-MAYTYF5S.js} +3 -3
- package/dist/{chunk-5ZUZZDW5.js → chunk-MVUNMJKO.js} +46 -52
- package/dist/{chunk-KBHT5XEY.js → chunk-MYHR3PMH.js} +194 -35
- package/dist/{chunk-NBAAIRFP.js → chunk-NI4L6HEU.js} +4 -1
- package/dist/{chunk-A2A2I4Z4.js → chunk-O2HNVNKO.js} +2 -2
- package/dist/{chunk-2XMTZ5JR.js → chunk-OAZ6BIIB.js} +3 -3
- package/dist/{chunk-IZHGT5HD.js → chunk-OO4GUE4E.js} +3 -3
- package/dist/{chunk-KSZB7TIY.js → chunk-OYGJZA24.js} +8 -8
- package/dist/{chunk-H6BT45SN.js → chunk-P2GNNEMN.js} +1 -1
- package/dist/{chunk-5HAYT43L.js → chunk-P3PSLC2K.js} +22 -6
- package/dist/{chunk-HHVIE45A.js → chunk-P6LKX3IQ.js} +4 -4
- package/dist/{chunk-NMS5XSLX.js → chunk-PGD6CNWO.js} +1 -1
- package/dist/{chunk-NVZ7R4EK.js → chunk-PWZEJNO6.js} +3 -3
- package/dist/{chunk-NPDVWFAQ.js → chunk-QEU6VM4O.js} +1 -1
- package/dist/{chunk-UIEKW4SG.js → chunk-R5L5E3TC.js} +0 -1
- package/dist/{chunk-2WQ3YZMN.js → chunk-RGFVHYDP.js} +2 -2
- package/dist/{chunk-YQMIKX54.js → chunk-RIK6WUMO.js} +62 -29
- package/dist/{chunk-BH2SF4TT.js → chunk-RTRORHSP.js} +1 -1
- package/dist/{chunk-4SP6OUO7.js → chunk-RVOSA4RR.js} +845 -193
- package/dist/{chunk-LKZCUFOW.js → chunk-SCYVGPLI.js} +2 -2
- package/dist/{chunk-XIUGSUE4.js → chunk-SIABEREK.js} +6 -2
- package/dist/{chunk-P7TRFL4P.js → chunk-SQBCNEJB.js} +4 -1
- package/dist/{chunk-3ZP3QC47.js → chunk-THTYCJGF.js} +2 -2
- package/dist/{chunk-4EX4OKGZ.js → chunk-TIPNNOZC.js} +5 -5
- package/dist/{chunk-UZ7EZW3B.js → chunk-TO53KK2P.js} +6 -1
- package/dist/{chunk-2MS623GW.js → chunk-TPCP2UOI.js} +3 -3
- package/dist/{chunk-Y3SIQN4J.js → chunk-TUOZ6AXC.js} +2 -2
- package/dist/{chunk-KRPLP5LP.js → chunk-U6N547QA.js} +1 -1
- package/dist/{chunk-RESEJSCV.js → chunk-VJ7NLYFE.js} +2 -2
- package/dist/{chunk-UXNA2H2V.js → chunk-VLI6AWS3.js} +2 -2
- package/dist/{chunk-TDAGJJPZ.js → chunk-VNAPEZX2.js} +1 -1
- package/dist/{chunk-EBVVMUAA.js → chunk-VVTCUIPN.js} +1 -1
- package/dist/{chunk-FVTYJUXR.js → chunk-W5MMPPGX.js} +2 -2
- package/dist/{chunk-BQMHJ6OW.js → chunk-WGNP5ND2.js} +20 -12
- package/dist/{chunk-5OTA2PUH.js → chunk-WLGOIMTI.js} +2 -2
- package/dist/{chunk-IGJEKO2P.js → chunk-WTPS73RM.js} +4 -4
- package/dist/{chunk-R6EGUTIV.js → chunk-YFIUABSF.js} +2 -2
- package/dist/{chunk-7PJBJ2DU.js → chunk-YSGOXZBB.js} +1 -1
- package/dist/{chunk-ZECJ7Q6C.js → chunk-YVIPJGFG.js} +2 -2
- package/dist/{chunk-5KKZXA44.js → chunk-ZBOIYC2G.js} +4 -2
- package/dist/{chunk-RBVFNUAL.js → chunk-ZOKD5F7M.js} +2 -2
- package/dist/{collapse-BSPH3BFM.js → collapse-6X5S2S3G.js} +2 -1
- package/dist/completion-registry.js +6 -37
- package/dist/copy-image.d.ts +34 -0
- package/dist/copy-image.js +96 -0
- package/dist/countdown.js +1 -1
- package/dist/dgmo-router-EPBQKQW2.js +100 -0
- package/dist/{dimensions-DS6FWLRY.js → dimensions-DBCRBZIU.js} +4 -4
- package/dist/editor.js +2 -7
- package/dist/{flowchart-parser-NZXASOZG.js → flowchart-parser-SM5LHF2D.js} +4 -4
- package/dist/{flowchart-renderer-PTCRIANF.js → flowchart-renderer-PPS2GTTD.js} +10 -10
- package/dist/highlight.js +3 -8
- package/dist/index.d.ts +42 -6
- package/dist/index.js +62 -57
- package/dist/{layout-MXHR3P35.js → layout-3J72UULM.js} +3 -3
- package/dist/{layout-U3AH6M7J.js → layout-AF4KA5B2.js} +4 -4
- package/dist/{layout-IT4ZTV6C.js → layout-FCFUVCRI.js} +7 -7
- package/dist/{layout-KV27UW25.js → layout-H2KP5A6M.js} +1 -1
- package/dist/{layout-ND26WVX2.js → layout-IXQNVRBE.js} +3 -3
- package/dist/{layout-ISSBWBH7.js → layout-KELSNWBD.js} +7 -7
- package/dist/{layout-JTIRCKAW.js → layout-LNVIH45F.js} +3 -3
- package/dist/{layout-VC3MXRB4.js → layout-MPSH3YWE.js} +7 -7
- package/dist/{layout-HFBK5UEG.js → layout-PPIVGJXD.js} +2 -2
- package/dist/{layout-RH3N46HP.js → layout-R6G4MEO3.js} +4 -3
- package/dist/{layout-search-BBX2BMEF.js → layout-search-C2TYUH4L.js} +5 -5
- package/dist/{parser-BT4NI6JY.js → parser-2AXU2MHJ.js} +3 -3
- package/dist/{parser-3QIFY5IN.js → parser-4BOP77CD.js} +2 -2
- package/dist/{parser-TAYRTCPR.js → parser-4GHAYZKZ.js} +5 -5
- package/dist/{parser-LTRQASGB.js → parser-5HQPPVHJ.js} +3 -3
- package/dist/{parser-EAQPZX2B.js → parser-5RUD4A3X.js} +3 -3
- package/dist/{parser-BJ7RJNUM.js → parser-6WURFLOB.js} +3 -3
- package/dist/{parser-R3LPEQIT.js → parser-722KLLAQ.js} +4 -4
- package/dist/{parser-KMKVFET2.js → parser-B7SCN7FG.js} +2 -2
- package/dist/{parser-TUAEX6ML.js → parser-BNRX35NT.js} +3 -3
- package/dist/{parser-NL73FSFI.js → parser-BPYHIG24.js} +3 -3
- package/dist/{parser-3LT3ZUUC.js → parser-CRJYLOHA.js} +2 -2
- package/dist/{parser-NUU3DVW4.js → parser-DGLKH4NT.js} +2 -2
- package/dist/{parser-5UZV32ZI.js → parser-DRUGM3R6.js} +2 -2
- package/dist/{parser-KLCSFQ3J.js → parser-DWV2CYBS.js} +3 -3
- package/dist/{parser-2IKPQVKX.js → parser-F3JJNIFC.js} +3 -3
- package/dist/{parser-EFF22GYO.js → parser-F75WNYMK.js} +3 -3
- package/dist/{parser-RTWPFKXG.js → parser-GBQY3WOZ.js} +3 -3
- package/dist/{parser-F7NDRPMA.js → parser-GM5B2EPW.js} +3 -3
- package/dist/{parser-K2DI26SC.js → parser-H6HT2WFQ.js} +2 -2
- package/dist/{parser-PEZ7RN43.js → parser-HM6FEX5K.js} +3 -3
- package/dist/{parser-YG625J5H.js → parser-L7SI3PW4.js} +4 -4
- package/dist/{parser-GMQJISZ6.js → parser-LUJX7AXO.js} +2 -2
- package/dist/{parser-A3AN76RQ.js → parser-MWINQNQW.js} +3 -3
- package/dist/{parser-KJPPUN4D.js → parser-OHBBDCG4.js} +2 -2
- package/dist/{parser-4RFY7D52.js → parser-QWTECQEC.js} +5 -5
- package/dist/{parser-4TBSWULQ.js → parser-TTGZYLYD.js} +3 -3
- package/dist/{parser-6TDWUKM5.js → parser-UHKROC7Z.js} +3 -3
- package/dist/{parser-H5OODY5N.js → parser-W6NX3AIV.js} +3 -3
- package/dist/{parser-GDLKUBTO.js → parser-WIKXZP4X.js} +2 -2
- package/dist/{parser-4Y6PODW6.js → parser-XEJP37GQ.js} +3 -3
- package/dist/{parser-RCIEKN7Y.js → parser-Y7QXD2UR.js} +2 -2
- package/dist/{parser-7QKQ4P4P.js → parser-ZV756RMP.js} +5 -5
- package/dist/{parser-KKF6Y5MM.js → parser-ZWWQZ4XZ.js} +4 -3
- package/dist/{redraw-AHW7EUUF.js → redraw-BZ4GI6IC.js} +6 -4
- package/dist/{redraw-STZ4WJAI.js → redraw-LEOXS7C6.js} +3 -3
- package/dist/{renderer-J3GPDK73.js → renderer-2MCV75JQ.js} +12 -12
- package/dist/{renderer-TINHO2IO.js → renderer-2V2XY2V7.js} +4 -4
- package/dist/{renderer-PHLCYVSN.js → renderer-5AEDVLAA.js} +8 -7
- package/dist/{renderer-W4MUMXJE.js → renderer-5GP7YUS4.js} +3 -3
- package/dist/{renderer-FMTLSOCX.js → renderer-66NCRXSC.js} +6 -6
- package/dist/{renderer-AM7P4LN7.js → renderer-6HU44IGJ.js} +4 -4
- package/dist/{renderer-JJ4QW3SK.js → renderer-7C76HP5W.js} +6 -6
- package/dist/{renderer-O6RP52CQ.js → renderer-7RAMBMTH.js} +6 -6
- package/dist/{renderer-M5DUMITP.js → renderer-BYLQ37T2.js} +8 -8
- package/dist/{renderer-7OGGV327.js → renderer-CVCCW7UT.js} +4 -4
- package/dist/{renderer-QTPWRRJ7.js → renderer-D6EH5UQ6.js} +6 -6
- package/dist/renderer-E3334XLT.js +84 -0
- package/dist/{renderer-IXBOT6DU.js → renderer-F7YGMEGQ.js} +2 -2
- package/dist/{renderer-XCLARXCK.js → renderer-GKY55M4Z.js} +5 -5
- package/dist/{renderer-KJ3V5BYP.js → renderer-LFZKG2GR.js} +5 -5
- package/dist/{renderer-2LYX6NHN.js → renderer-LJPUCG3U.js} +5 -5
- package/dist/{renderer-DAZWHNLI.js → renderer-MGF2NNGG.js} +3 -3
- package/dist/{renderer-HX6ICPDX.js → renderer-MVBAQP3M.js} +4 -4
- package/dist/{renderer-XOWDERU2.js → renderer-MZIWP55B.js} +5 -5
- package/dist/{renderer-MWZC7TMD.js → renderer-N6PM5CSG.js} +7 -7
- package/dist/{renderer-ISQJ2ELA.js → renderer-N75E3UVY.js} +5 -5
- package/dist/{renderer-53B523PM.js → renderer-ONENGXFQ.js} +7 -7
- package/dist/{renderer-RUSQJFFC.js → renderer-PEJF6R2I.js} +2 -2
- package/dist/{renderer-36446HSH.js → renderer-QZJZIAT3.js} +2 -2
- package/dist/{renderer-UTEEJDGB.js → renderer-SYRH3B62.js} +6 -6
- package/dist/{renderer-LNP23NSM.js → renderer-TS5NHOQD.js} +6 -6
- package/dist/{renderer-J7ZSTJUE.js → renderer-VNJOZPSH.js} +7 -7
- package/dist/{renderer-OUDHH5MV.js → renderer-VNUDN6F5.js} +12 -12
- package/dist/{renderer-JYHA6R2D.js → renderer-VUXAAGUG.js} +5 -5
- package/dist/{renderer-BXD5KVSR.js → renderer-YJVQT7QG.js} +6 -6
- package/dist/{renderer-radial-WFUX3Z3C.js → renderer-radial-4R7AKETK.js} +5 -5
- package/dist/{state-parser-KPVW5CRI.js → state-parser-EQBBEKHR.js} +5 -5
- package/dist/{state-renderer-ZVEI265C.js → state-renderer-SOGZ2CNN.js} +12 -12
- package/dist/{themes-DzIH3Hjv.d.ts → themes-CbJL3w8L.d.ts} +1 -1
- package/docs/ai-integration.md +5 -6
- package/docs/language-reference.md +69 -105
- package/gallery/fixtures/whiteboard.dgmo +1 -0
- package/package.json +5 -1
- package/dist/chunk-6BQSDF77.js +0 -734
- package/dist/chunk-NWSPPGIE.js +0 -60
- package/dist/chunk-VBMRZCMQ.js +0 -1465
- package/dist/chunk-WZBZXZ6T.js +0 -636
- package/dist/dgmo-router-E5O7RJSW.js +0 -101
- package/dist/layout-D4L44NRG.js +0 -11
- package/dist/parser-YHDGKPZI.js +0 -14
- package/dist/renderer-4SE7R22T.js +0 -85
- package/dist/renderer-WPN2SXGT.js +0 -29
- package/gallery/fixtures/sketch.dgmo +0 -22
|
@@ -98,7 +98,7 @@ function renderNoteBox(parent, rect, lines, palette, opts) {
|
|
|
98
98
|
noteG.attr("data-line-end", String(opts.endLineNumber));
|
|
99
99
|
}
|
|
100
100
|
if (interactive) {
|
|
101
|
-
noteG.style("cursor", "pointer").attr("role", "button").attr("
|
|
101
|
+
noteG.style("cursor", "pointer").attr("role", "button").attr("aria-expanded", "true").attr("aria-label", "Collapse note");
|
|
102
102
|
}
|
|
103
103
|
const boxPath = noteG.append("path").attr(
|
|
104
104
|
"d",
|
|
@@ -136,7 +136,7 @@ var NOTE_BADGE_OPACITY = 0.6;
|
|
|
136
136
|
function renderNoteBadge(parent, center, palette, opts) {
|
|
137
137
|
const fill = noteBoxFill(palette, opts.isDark, opts.color);
|
|
138
138
|
const accent = noteAccent(palette, opts.color);
|
|
139
|
-
const g = parent.append("g").attr("class", "note note-badge").attr("data-note-toggle", "").attr("transform", `translate(${center.x}, ${center.y})`).attr("opacity", NOTE_BADGE_OPACITY).style("cursor", "pointer").attr("role", "button").attr("
|
|
139
|
+
const g = parent.append("g").attr("class", "note note-badge").attr("data-note-toggle", "").attr("transform", `translate(${center.x}, ${center.y})`).attr("opacity", NOTE_BADGE_OPACITY).style("cursor", "pointer").attr("role", "button").attr("aria-expanded", "false").attr("aria-label", "Expand note");
|
|
140
140
|
if (opts.lineNumber !== void 0) {
|
|
141
141
|
g.attr("data-line-number", String(opts.lineNumber));
|
|
142
142
|
}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
layoutJourneyMap,
|
|
4
4
|
scoreToColor,
|
|
5
5
|
scoreToCurveY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5H7SA5ZD.js";
|
|
7
7
|
import {
|
|
8
8
|
parseJourneyMap
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GM2SLMQW.js";
|
|
10
10
|
import {
|
|
11
11
|
serializeSvg
|
|
12
12
|
} from "./chunk-CYRB2JTN.js";
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
} from "./chunk-XCKNFFKM.js";
|
|
22
22
|
import {
|
|
23
23
|
renderIntegratedLegend
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PGD6CNWO.js";
|
|
25
25
|
import {
|
|
26
26
|
NOTE_BULLET_INDENT,
|
|
27
27
|
wrapNoteBody
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-67N26CER.js";
|
|
29
29
|
import {
|
|
30
30
|
renderInlineText
|
|
31
31
|
} from "./chunk-QKPOIJBT.js";
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
resolveActiveTagGroup,
|
|
37
37
|
tagAttrKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
39
39
|
import {
|
|
40
40
|
fillModeFromOptions
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FUYEXLAN.js";
|
|
42
42
|
import {
|
|
43
43
|
measureText,
|
|
44
44
|
truncateText,
|
|
@@ -69,14 +69,16 @@ function isFullCanvasFill(tag, bgColor, canvas) {
|
|
|
69
69
|
const x = numAttr(tag, "x") ?? 0;
|
|
70
70
|
const y = numAttr(tag, "y") ?? 0;
|
|
71
71
|
const T = 1.5;
|
|
72
|
-
return Math.abs(x) <= T && Math.abs(y) <= T && Math.abs(w - canvas.w) <= T && Math.abs(h - canvas.h) <= T;
|
|
72
|
+
return Math.abs(x - canvas.x) <= T && Math.abs(y - canvas.y) <= T && Math.abs(w - canvas.w) <= T && Math.abs(h - canvas.h) <= T;
|
|
73
73
|
}
|
|
74
74
|
function rootCanvas(rootTag, svg) {
|
|
75
|
+
const vb = readViewBox(svg);
|
|
76
|
+
if (vb) return { x: vb.x, y: vb.y, w: vb.width, h: vb.height };
|
|
75
77
|
const wm = rootTag.match(/\bwidth="([\d.]+)"/);
|
|
76
78
|
const hm = rootTag.match(/\bheight="([\d.]+)"/);
|
|
77
|
-
if (wm && hm)
|
|
78
|
-
|
|
79
|
-
return
|
|
79
|
+
if (wm && hm)
|
|
80
|
+
return { x: 0, y: 0, w: parseFloat(wm[1]), h: parseFloat(hm[1]) };
|
|
81
|
+
return null;
|
|
80
82
|
}
|
|
81
83
|
function numAttr(tag, name) {
|
|
82
84
|
const m = tag.match(new RegExp(`\\b${name}="([^"]*)"`));
|
|
@@ -227,5 +229,6 @@ function computeBBox(svg) {
|
|
|
227
229
|
export {
|
|
228
230
|
normalizeSvgForEmbed,
|
|
229
231
|
defaultEmbedBackground,
|
|
230
|
-
getEmbedSvgViewBox
|
|
232
|
+
getEmbedSvgViewBox,
|
|
233
|
+
readViewBox
|
|
231
234
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-2CW5ZTNH.js";
|
|
8
8
|
import {
|
|
9
9
|
layoutInlineHeader
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R5L5E3TC.js";
|
|
11
11
|
import {
|
|
12
12
|
TITLE_FONT_SIZE,
|
|
13
13
|
TITLE_FONT_WEIGHT,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-XCKNFFKM.js";
|
|
27
27
|
import {
|
|
28
28
|
renderIntegratedLegend
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PGD6CNWO.js";
|
|
30
30
|
import {
|
|
31
31
|
getLegendExtent,
|
|
32
32
|
getMaxLegendReservedHeight
|
|
@@ -38,12 +38,12 @@ import {
|
|
|
38
38
|
UNTAGGED_TAG_COLOR,
|
|
39
39
|
resolveTagColor,
|
|
40
40
|
tagAttrKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
42
42
|
import {
|
|
43
43
|
fillModeFromOptions,
|
|
44
44
|
legendInlineRequested,
|
|
45
45
|
legendSuppressed
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FUYEXLAN.js";
|
|
47
47
|
import {
|
|
48
48
|
LEGEND_GROUP_GAP
|
|
49
49
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-XSVWUOUZ.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutInlineHeader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R5L5E3TC.js";
|
|
7
7
|
import {
|
|
8
8
|
TITLE_FONT_SIZE,
|
|
9
9
|
TITLE_FONT_WEIGHT,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-XCKNFFKM.js";
|
|
15
15
|
import {
|
|
16
16
|
renderIntegratedLegend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PGD6CNWO.js";
|
|
18
18
|
import {
|
|
19
19
|
getLegendExtent,
|
|
20
20
|
getMaxLegendReservedHeight
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
resolveTagColor,
|
|
27
27
|
tagAttrKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
29
29
|
import {
|
|
30
30
|
LEGEND_GROUP_GAP
|
|
31
31
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
matchTagBlockHeading,
|
|
5
5
|
stripDefaultModifier,
|
|
6
6
|
tagAttrKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
8
8
|
import {
|
|
9
9
|
FILL_FAMILY_TOKENS,
|
|
10
10
|
extractColor,
|
|
11
11
|
measureIndent,
|
|
12
12
|
parseFirstLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FUYEXLAN.js";
|
|
14
14
|
import {
|
|
15
15
|
emit
|
|
16
16
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
stripDefaultModifier,
|
|
19
19
|
tagAttrKey,
|
|
20
20
|
validateTagGroupNames
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
22
22
|
import {
|
|
23
23
|
AliasRegistry,
|
|
24
24
|
C4_REGISTRY,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
splitNameAndMeta,
|
|
31
31
|
warnUnknownMetaKeys,
|
|
32
32
|
withTagAliases
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FUYEXLAN.js";
|
|
34
34
|
import {
|
|
35
35
|
formatDgmoError,
|
|
36
36
|
makeDgmoError,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeNodeText,
|
|
3
3
|
layoutMindmap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WGNP5ND2.js";
|
|
5
5
|
import {
|
|
6
6
|
FULL_TEXT_ATTR,
|
|
7
7
|
fullNodeText,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-B5DHFFZP.js";
|
|
10
10
|
import {
|
|
11
11
|
parseMindmap
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SIABEREK.js";
|
|
13
13
|
import {
|
|
14
14
|
extractExportSvg,
|
|
15
15
|
runInExportContainer
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-24YPR5EH.js";
|
|
20
20
|
import {
|
|
21
21
|
layoutInlineHeader
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-R5L5E3TC.js";
|
|
23
23
|
import {
|
|
24
24
|
TITLE_FONT_SIZE,
|
|
25
25
|
TITLE_FONT_WEIGHT
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-XCKNFFKM.js";
|
|
34
34
|
import {
|
|
35
35
|
renderIntegratedLegend
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PGD6CNWO.js";
|
|
37
37
|
import {
|
|
38
38
|
getLegendExtent,
|
|
39
39
|
getMaxLegendReservedHeight
|
|
@@ -49,12 +49,12 @@ import {
|
|
|
49
49
|
} from "./chunk-ICLB27PZ.js";
|
|
50
50
|
import {
|
|
51
51
|
tagAttrKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
53
53
|
import {
|
|
54
54
|
fillModeFromOptions,
|
|
55
55
|
legendInlineRequested,
|
|
56
56
|
legendSuppressed
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-FUYEXLAN.js";
|
|
58
58
|
import {
|
|
59
59
|
LEGEND_GROUP_GAP
|
|
60
60
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -318,7 +318,7 @@ function renderMindmap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
if (node.hasChildren) {
|
|
321
|
-
nodeG.attr("data-node-toggle", node.id).attr("
|
|
321
|
+
nodeG.attr("data-node-toggle", node.id).attr("role", "button").attr(
|
|
322
322
|
"aria-expanded",
|
|
323
323
|
node.hiddenCount != null && node.hiddenCount > 0 ? "false" : "true"
|
|
324
324
|
).attr("aria-label", node.label);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-24YPR5EH.js";
|
|
13
13
|
import {
|
|
14
14
|
layoutInlineHeader
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R5L5E3TC.js";
|
|
16
16
|
import {
|
|
17
17
|
TITLE_FONT_SIZE,
|
|
18
18
|
TITLE_FONT_WEIGHT
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-XCKNFFKM.js";
|
|
39
39
|
import {
|
|
40
40
|
renderIntegratedLegend
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PGD6CNWO.js";
|
|
42
42
|
import {
|
|
43
43
|
getLegendExtent,
|
|
44
44
|
getMaxLegendReservedHeight
|
|
@@ -54,12 +54,12 @@ import {
|
|
|
54
54
|
} from "./chunk-ICLB27PZ.js";
|
|
55
55
|
import {
|
|
56
56
|
tagAttrKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
58
58
|
import {
|
|
59
59
|
fillModeFromOptions,
|
|
60
60
|
legendInlineRequested,
|
|
61
61
|
legendSuppressed
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-FUYEXLAN.js";
|
|
63
63
|
import {
|
|
64
64
|
EYE_CLOSED_PATH,
|
|
65
65
|
EYE_OPEN_PATH,
|
|
@@ -280,7 +280,7 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
280
280
|
for (const c of layout.containers) {
|
|
281
281
|
const cG = contentG.append("g").attr("transform", `translate(${c.x}, ${c.y})`).attr("class", "sitemap-container").attr("data-line-number", String(c.lineNumber));
|
|
282
282
|
if (c.hasChildren) {
|
|
283
|
-
cG.attr("data-node-toggle", c.nodeId).attr("
|
|
283
|
+
cG.attr("data-node-toggle", c.nodeId).attr("role", "button").attr("aria-expanded", String(!c.hiddenCount)).attr("aria-label", c.label);
|
|
284
284
|
}
|
|
285
285
|
if (onClickItem) {
|
|
286
286
|
cG.style("cursor", "pointer").on(
|
|
@@ -347,7 +347,7 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
347
347
|
for (const node of layout.nodes) {
|
|
348
348
|
const nodeG = contentG.append("g").attr("transform", `translate(${node.x - node.width / 2}, ${node.y})`).attr("class", "sitemap-node").attr("data-line-number", String(node.lineNumber)).attr("data-node-id", node.id);
|
|
349
349
|
if (node.hasChildren) {
|
|
350
|
-
nodeG.attr("data-node-toggle", node.id).attr("
|
|
350
|
+
nodeG.attr("data-node-toggle", node.id).attr("role", "button").attr("aria-expanded", String(!node.hiddenCount));
|
|
351
351
|
}
|
|
352
352
|
if (onClickItem) {
|
|
353
353
|
nodeG.style("cursor", "pointer").on("click", () => onClickItem(node.lineNumber));
|
|
@@ -507,8 +507,8 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
async function renderSitemapForExport(content, theme, palette) {
|
|
510
|
-
const { parseSitemap } = await import("./parser-
|
|
511
|
-
const { layoutSitemap } = await import("./layout-
|
|
510
|
+
const { parseSitemap } = await import("./parser-UHKROC7Z.js");
|
|
511
|
+
const { layoutSitemap } = await import("./layout-IXQNVRBE.js");
|
|
512
512
|
const { getPalette, DEFAULT_PALETTE_ID } = await import("./palettes-4Y7CL2QL.js");
|
|
513
513
|
const isDark = theme === "dark";
|
|
514
514
|
const defaultCfg = getPalette(DEFAULT_PALETTE_ID);
|