@diagrammo/dgmo 0.50.1 → 0.51.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 +6640 -0
- package/dist/advanced.js +207 -161
- package/dist/{analyzer-UYKBXAKR.js → analyzer-BJ54GIFB.js} +3 -3
- package/dist/auto.css +31 -8
- package/dist/auto.d.ts +60 -0
- package/dist/auto.js +169 -133
- package/dist/auto.mjs +2245 -1030
- package/dist/block.css +28 -8
- package/dist/block.d.ts +130 -0
- package/dist/block.js +103 -68
- package/dist/{charts-d3-LR6D3D7A.js → charts-d3-7E4B4IMW.js} +9 -9
- package/dist/{chunk-6IAA2QQ2.js → chunk-2EQMXBBQ.js} +2 -2
- package/dist/{chunk-XJLKLU4D.js → chunk-2ILHQOL3.js} +3 -3
- package/dist/{chunk-SXRTRMEE.js → chunk-2UJSV2VT.js} +3 -3
- package/dist/{chunk-LE4MYMLI.js → chunk-32XPAAET.js} +5 -5
- package/dist/{chunk-NU3XLTGP.js → chunk-332ZR4QU.js} +4 -4
- package/dist/{chunk-F7BFXWNQ.js → chunk-3JLKYGBQ.js} +2 -2
- package/dist/{chunk-QROYX7TT.js → chunk-3LV2NCB6.js} +3 -3
- package/dist/{chunk-ZAD4HV2G.js → chunk-3ODS2VGL.js} +99 -99
- package/dist/{chunk-3XGZF2QJ.js → chunk-3YSQZ75W.js} +6 -6
- package/dist/{chunk-FJUNPCYI.js → chunk-467TVMQL.js} +2 -2
- package/dist/{chunk-HHXOONLX.js → chunk-4B5YISOR.js} +38 -1
- package/dist/{chunk-6HJBFVLO.js → chunk-4QZ43D7I.js} +3 -3
- package/dist/{chunk-4S52SK6G.js → chunk-4VWJ4LW2.js} +15 -8
- package/dist/chunk-4XFBQT5O.js +35 -0
- package/dist/{chunk-2C56LEML.js → chunk-5F5ELR3V.js} +3 -3
- package/dist/{chunk-EAMEADTV.js → chunk-5PDTIBLV.js} +83 -21
- package/dist/{chunk-C2CVAM3U.js → chunk-5PZT4DQG.js} +160 -87
- package/dist/{chunk-IAEC4KLA.js → chunk-5QKQSSPO.js} +2 -2
- package/dist/{chunk-5OWVC2A6.js → chunk-5SVOCD5W.js} +6 -6
- package/dist/{chunk-VBYSIOOY.js → chunk-5WPNFSXP.js} +3 -3
- package/dist/{chunk-4MJ7M6YL.js → chunk-5X6YQA2J.js} +7 -7
- package/dist/{chunk-JJUOHGX2.js → chunk-65WJYYKJ.js} +4 -4
- package/dist/{chunk-3UIKSPFB.js → chunk-6BQFET7X.js} +3 -3
- package/dist/{chunk-U2HGPLZS.js → chunk-6H7O2OPM.js} +14 -1
- package/dist/{chunk-DZXYF2F5.js → chunk-6K2M4VSR.js} +3 -3
- package/dist/{chunk-PGEGPSCZ.js → chunk-6MNGECP2.js} +2 -2
- package/dist/{chunk-3XPUDB7B.js → chunk-6NFYEQDX.js} +266 -38
- package/dist/{chunk-4XK3FLFB.js → chunk-6NYWYNBI.js} +3 -3
- package/dist/{chunk-TWQUYVP3.js → chunk-7DF4J4RL.js} +4 -4
- package/dist/{chunk-H73FP42Q.js → chunk-7DYOELRK.js} +3 -3
- package/dist/{chunk-L3UHP6TD.js → chunk-7L4UJOY6.js} +1 -2
- package/dist/{chunk-QJP6PG7F.js → chunk-AB7INMR5.js} +9 -9
- package/dist/{chunk-3LKM6FMW.js → chunk-AE7II3E3.js} +2 -2
- package/dist/{chunk-BTUTZMPT.js → chunk-AFIEPDLX.js} +97 -42
- package/dist/chunk-APKUAJ2L.js +220 -0
- package/dist/{chunk-X6EZPSW6.js → chunk-AXW3M6OQ.js} +7 -7
- package/dist/{chunk-66RUL3XF.js → chunk-B63YB7X3.js} +5 -5
- package/dist/{chunk-DSWVNQVS.js → chunk-BGP54HVR.js} +4 -59
- package/dist/{chunk-3NODSS6A.js → chunk-BYJBIALT.js} +7 -7
- package/dist/{chunk-3YPY3OXD.js → chunk-CC4YRBWV.js} +2 -2
- package/dist/{chunk-HLJVEAOF.js → chunk-DY7XLRHK.js} +8 -33
- package/dist/{chunk-OMNGQPEZ.js → chunk-E7Y3SYKW.js} +3 -3
- package/dist/{chunk-HTMN2Z6U.js → chunk-EDA6C7MV.js} +50 -7
- package/dist/{chunk-7L3R6I3U.js → chunk-ENRS56GC.js} +3 -3
- package/dist/{chunk-2KGXHFYK.js → chunk-EXOQP75F.js} +7 -7
- package/dist/{chunk-BBGDM4NQ.js → chunk-F3FYUFUH.js} +26 -8
- package/dist/{chunk-GL5UZ6NY.js → chunk-FC5I2KXV.js} +3 -3
- package/dist/{chunk-VVW3F3MD.js → chunk-FTBZV6NE.js} +9 -9
- package/dist/{chunk-7QKLIMRZ.js → chunk-G3PF3S7P.js} +41 -46
- package/dist/{chunk-J6K7RP6P.js → chunk-GD6L76WD.js} +3 -3
- package/dist/{chunk-I2WKW7C7.js → chunk-GGHRAITI.js} +3 -3
- package/dist/{chunk-YIA4LEX4.js → chunk-GNSFLJAA.js} +96 -4
- package/dist/{chunk-IUMPEA64.js → chunk-GROLTAWZ.js} +4 -4
- package/dist/{chunk-Q4V4XQWV.js → chunk-GTWKD3QT.js} +2 -2
- package/dist/{chunk-F2L5GCQ4.js → chunk-GU46PPT3.js} +3 -3
- package/dist/{chunk-6IUAK7RZ.js → chunk-H6PI3KJT.js} +2 -2
- package/dist/{chunk-SCQ5VPUF.js → chunk-HFMYN6N2.js} +2 -2
- package/dist/{chunk-GKC3HILQ.js → chunk-I2QZFCS2.js} +27 -4
- package/dist/{chunk-MCZ5LBZD.js → chunk-IE477RQZ.js} +7 -7
- package/dist/{chunk-3Y2DRD7S.js → chunk-IEDMFNU7.js} +3 -3
- package/dist/{chunk-M5RXSRO2.js → chunk-IEWG6J7C.js} +4 -4
- package/dist/{chunk-P7CE7LXL.js → chunk-IUJODQKX.js} +6 -6
- package/dist/{chunk-NWED7CYO.js → chunk-IUO34HKW.js} +6 -6
- package/dist/{chunk-NX4EQS3U.js → chunk-J76PIKAT.js} +2 -2
- package/dist/{chunk-O7WP4ZD4.js → chunk-JED6ZDEE.js} +2 -2
- package/dist/{chunk-6BFZKBGD.js → chunk-JJXGQIRV.js} +2 -2
- package/dist/{chunk-O7NUCTFU.js → chunk-JM4LEPY3.js} +2 -2
- package/dist/{chunk-VDOOQZUD.js → chunk-JSSX2SX4.js} +4 -4
- package/dist/{chunk-SQLNBA64.js → chunk-KFNWFNAA.js} +3 -3
- package/dist/{chunk-VVZRV54S.js → chunk-KJGG2JKQ.js} +143 -82
- package/dist/{chunk-OTAL43EH.js → chunk-LV4BETUU.js} +8 -2
- package/dist/{chunk-VUJGMJE6.js → chunk-MVN25IF6.js} +4 -4
- package/dist/{chunk-CLD2OKV7.js → chunk-MX2EY5Y7.js} +2 -2
- package/dist/{chunk-Y4RNXEAO.js → chunk-ND76YJCN.js} +139 -25
- package/dist/{chunk-KFZYNWWO.js → chunk-NEQ6GJXB.js} +4 -4
- package/dist/{chunk-PFHVU7UA.js → chunk-NI3XQBPB.js} +2 -2
- package/dist/{chunk-WW32K72E.js → chunk-OJTXTQA2.js} +9 -9
- package/dist/{chunk-YNRDWYZP.js → chunk-OQKP2X3D.js} +170 -51
- package/dist/{chunk-AHGF2YYA.js → chunk-OTOHI4JO.js} +2 -2
- package/dist/{chunk-HEVYAHLW.js → chunk-OU7HLO7I.js} +4 -4
- package/dist/{chunk-GBE54KY6.js → chunk-OZPBJM5Q.js} +3 -3
- package/dist/{chunk-EOFPYPAU.js → chunk-P3NRSSUU.js} +51 -11
- package/dist/{chunk-TSA237IM.js → chunk-PZDBOK2Q.js} +2 -2
- package/dist/{chunk-3P2DKJCG.js → chunk-Q62FEYK3.js} +2 -2
- package/dist/{chunk-DFTFPYUD.js → chunk-QHI5XVUJ.js} +7 -7
- package/dist/{chunk-HQCHYB5F.js → chunk-QOOUC2J5.js} +2 -2
- package/dist/{chunk-XDXNDSKO.js → chunk-QZPEGJOM.js} +5 -2
- package/dist/{chunk-TN35C5KM.js → chunk-RAHVMKBG.js} +2 -2
- package/dist/chunk-RBDIYLA5.js +267 -0
- package/dist/{chunk-OTQKUHRS.js → chunk-RBHWPDBB.js} +3 -3
- package/dist/{chunk-BH3UYK36.js → chunk-RLFVAKEO.js} +3 -3
- package/dist/{chunk-3LH5CLP4.js → chunk-RXKTSFDL.js} +150 -5
- package/dist/{chunk-RZ6YKEUJ.js → chunk-TK2VQQX2.js} +6 -6
- package/dist/{chunk-I7F2A35O.js → chunk-TMACGPW5.js} +25 -47
- package/dist/{chunk-5GJYGP5Z.js → chunk-TRM2J7ZN.js} +8 -8
- package/dist/{chunk-BCYVE3N5.js → chunk-TYS6CSS5.js} +2 -2
- package/dist/{chunk-7PQYTZMA.js → chunk-U5SI5NIM.js} +95 -232
- package/dist/{chunk-KHEYDLMT.js → chunk-VB4UJ3H2.js} +2 -2
- package/dist/{chunk-HGN652MU.js → chunk-VL2O2F3W.js} +2 -2
- package/dist/{chunk-ONA5KPV3.js → chunk-VNSXLA6G.js} +4 -4
- package/dist/{chunk-CMCR5WBW.js → chunk-WBRZJOEC.js} +3 -3
- package/dist/{chunk-5LWQH6QV.js → chunk-WCT3NYCV.js} +1 -1
- package/dist/{chunk-T4VOVZT5.js → chunk-WJ7RW65H.js} +4 -4
- package/dist/{chunk-SCHXJTZL.js → chunk-WQLMU7VG.js} +2 -2
- package/dist/{chunk-C4GQDB5L.js → chunk-WRNFDFPU.js} +2 -2
- package/dist/{chunk-66NVRO4K.js → chunk-X7EC3L2H.js} +7 -7
- package/dist/{chunk-QXKWYZNR.js → chunk-XEQXCIBC.js} +3 -3
- package/dist/{chunk-C63UWAKM.js → chunk-Y2ZE3MSG.js} +2 -2
- package/dist/{chunk-FA6K3FWM.js → chunk-Y6GBQTBK.js} +6 -6
- package/dist/{chunk-7UEMZREK.js → chunk-YAA6IID3.js} +2 -2
- package/dist/{chunk-PZFVK3IH.js → chunk-YGJZWZTY.js} +2 -2
- package/dist/{chunk-7TV5Y53Y.js → chunk-ZJ3LS7DW.js} +3 -3
- package/dist/{chunk-PH5X4GIP.js → chunk-ZO27FGJS.js} +2 -2
- package/dist/cli.cjs +163 -147
- package/dist/clock.js +91 -5
- package/dist/countdown.js +208 -82
- package/dist/dgmo-router-Y2VEX46B.js +86 -0
- package/dist/dimensions-F7B5C4BJ.js +22 -0
- package/dist/editor.js +14 -1
- package/dist/element.d.ts +68 -0
- package/dist/element.js +170 -134
- package/dist/element.mjs +2209 -1015
- package/dist/{flowchart-parser-OE4WHLTF.js → flowchart-parser-MY53QWTZ.js} +4 -4
- package/dist/{flowchart-renderer-GPCSMTOR.js → flowchart-renderer-AQSMEMYF.js} +8 -8
- package/dist/highlight.js +14 -1
- package/dist/index.d.ts +185 -0
- package/dist/index.js +57 -53
- package/dist/{layout-7SKMFYHL.js → layout-46N4JJYK.js} +5 -5
- package/dist/layout-4DIUOX2T.js +14 -0
- package/dist/{layout-7H4H46CS.js → layout-7QXCNOVS.js} +3 -3
- package/dist/{layout-NXG63LWH.js → layout-AM2JWW3X.js} +4 -4
- package/dist/{layout-7MZ5NF2N.js → layout-CBCLPMSG.js} +5 -5
- package/dist/{layout-DC4TVXER.js → layout-EE6GE46Y.js} +5 -5
- package/dist/{layout-FGQWRYYW.js → layout-F4WO357A.js} +3 -3
- package/dist/layout-G23F7LDH.js +9 -0
- package/dist/{layout-QNUQLEHU.js → layout-HYZPWAK5.js} +3 -3
- package/dist/{layout-FWODLIMP.js → layout-JDJAEQ3P.js} +6 -6
- package/dist/layout-MUPRALE5.js +14 -0
- package/dist/{layout-34CLNICW.js → layout-OAC4PEAC.js} +5 -5
- package/dist/{layout-5BG6DFCU.js → layout-YVTNOTN4.js} +6 -6
- package/dist/{layout-PUQCB6AN.js → layout-ZDOSXL5G.js} +7 -7
- package/dist/{layout-search-QS44PI5R.js → layout-search-55FU6HD3.js} +6 -157
- package/dist/map-data/gazetteer.json +1 -1
- package/dist/{parser-36HVKU5U.js → parser-2Q2T4C3B.js} +6 -5
- package/dist/{parser-B5FVS7O6.js → parser-3A42DZ72.js} +3 -3
- package/dist/{parser-CSFUN3CT.js → parser-4RFTKAQX.js} +5 -4
- package/dist/{parser-IJBMRXMC.js → parser-57ILIFZ2.js} +5 -5
- package/dist/{parser-DFFEDKHH.js → parser-5A2UWU6B.js} +3 -3
- package/dist/{parser-H3XEPFPV.js → parser-5PDYJGWA.js} +4 -4
- package/dist/{parser-O4HIUN6G.js → parser-6BJEXUFX.js} +4 -4
- package/dist/{parser-MTOMTWTD.js → parser-6ZKABF5S.js} +6 -5
- package/dist/{parser-WAV5JRPT.js → parser-AIMHGJRR.js} +4 -4
- package/dist/{parser-TXND652E.js → parser-AZJ25OKK.js} +4 -4
- package/dist/{parser-4AI5ZN5F.js → parser-B77S5SZM.js} +3 -3
- package/dist/{parser-IBWNAPY4.js → parser-BEPSWJAD.js} +3 -3
- package/dist/{parser-D5VILGN2.js → parser-BKI42XBQ.js} +4 -4
- package/dist/{parser-LWKKBNSA.js → parser-C3D7MVXY.js} +3 -3
- package/dist/{parser-HYRTF3DO.js → parser-CDG7CHV5.js} +3 -3
- package/dist/{parser-CVMEDULU.js → parser-CZOJ7XQ6.js} +4 -4
- package/dist/{parser-AXKBDGNO.js → parser-E2RL6JYF.js} +5 -5
- package/dist/{parser-PSA4UBSP.js → parser-EH5VE7ZN.js} +4 -4
- package/dist/{parser-K3XXLMUW.js → parser-FQ6GZFMR.js} +4 -4
- package/dist/{parser-RV4M6AS2.js → parser-GKLZKEIK.js} +4 -4
- package/dist/{parser-MPCE5JBG.js → parser-H6ABKHZZ.js} +4 -4
- package/dist/{parser-RZPVAQVX.js → parser-I6GGFKOQ.js} +4 -3
- package/dist/{parser-W4PQUGX3.js → parser-JA7JQ7NF.js} +4 -4
- package/dist/{parser-5OXGPNBF.js → parser-KKTJ6M3Y.js} +5 -5
- package/dist/parser-OK22AC6Y.js +14 -0
- package/dist/{parser-4NO6VZ6S.js → parser-OK2ILHRT.js} +4 -4
- package/dist/{parser-YS7TOS2K.js → parser-OUTPNJWC.js} +3 -3
- package/dist/{parser-KCR2WS3V.js → parser-PORDUX5E.js} +4 -4
- package/dist/{parser-VKOJM7KS.js → parser-SRVFR7PM.js} +4 -4
- package/dist/{parser-TGQZJ5OT.js → parser-UKFFZCFJ.js} +4 -4
- package/dist/{parser-JJR52VAT.js → parser-UMWPLORP.js} +5 -5
- package/dist/{parser-AGVYTQXV.js → parser-Z4TZV2CB.js} +4 -4
- package/dist/{renderer-A5VE5BCI.js → renderer-2AUFT3E2.js} +8 -8
- package/dist/{renderer-FPE3J5VZ.js → renderer-2HTNBIF2.js} +11 -11
- package/dist/{renderer-R2WNIC2C.js → renderer-3K3IB7D5.js} +8 -8
- package/dist/{renderer-2AZ5HJFK.js → renderer-3YNIWF5I.js} +4 -4
- package/dist/{renderer-PJM35LJN.js → renderer-3YPZHMOU.js} +3 -3
- package/dist/{renderer-JCCHNECZ.js → renderer-4WR6WMVF.js} +9 -9
- package/dist/{renderer-HDCCZURL.js → renderer-66MERVQ2.js} +9 -9
- package/dist/{renderer-2QPMJ2DA.js → renderer-6RKQPNJI.js} +9 -9
- package/dist/{renderer-FYSVXL7M.js → renderer-ARMJBP6C.js} +11 -11
- package/dist/{renderer-6OKF44KS.js → renderer-CO2DW7S7.js} +13 -13
- package/dist/{renderer-BSR2O2H6.js → renderer-EDJ2O4S5.js} +13 -12
- package/dist/{renderer-CYB4LK3G.js → renderer-F7U3MFCV.js} +9 -9
- package/dist/{renderer-72LGR2YF.js → renderer-GD2COXVL.js} +4 -2
- package/dist/{renderer-B5TBNZJE.js → renderer-GQIESYEM.js} +8 -8
- package/dist/{renderer-ODUUOPVT.js → renderer-HCKJDFXD.js} +13 -13
- package/dist/{renderer-QAOBLRXV.js → renderer-HYGHO4SJ.js} +10 -10
- package/dist/{renderer-5DSEWF74.js → renderer-JC3RDUT7.js} +8 -8
- package/dist/{renderer-7RH2SI3B.js → renderer-KQB7UGDS.js} +3 -3
- package/dist/{renderer-45PSOL3E.js → renderer-NKJ24TEA.js} +5 -5
- package/dist/{renderer-AUW2BE6G.js → renderer-OYO67VZK.js} +9 -9
- package/dist/{renderer-DAXMXIKD.js → renderer-QIWVHWZO.js} +3 -3
- package/dist/{renderer-PSMMZCKH.js → renderer-QRWACQRI.js} +8 -8
- package/dist/{renderer-4ITCHBT7.js → renderer-QXGN5H3A.js} +5 -5
- package/dist/renderer-QXPP4TA2.js +27 -0
- package/dist/{renderer-KS7YZJE2.js → renderer-RGIYOTKJ.js} +10 -10
- package/dist/{renderer-FF24KZCI.js → renderer-RHT4MHFU.js} +8 -8
- package/dist/{renderer-PPIHO5FI.js → renderer-RYR3TJ46.js} +12 -11
- package/dist/{renderer-NGXZTRK6.js → renderer-SRKDNDFB.js} +8 -8
- package/dist/{renderer-SBS3YWU5.js → renderer-TGTUABCI.js} +8 -8
- package/dist/{renderer-7SD6MSBS.js → renderer-TXJFKPOG.js} +11 -11
- package/dist/{renderer-HVCU2C3Z.js → renderer-UV6MI64M.js} +3 -3
- package/dist/renderer-radial-FWABAZHB.js +21 -0
- package/dist/{resolver-FHBCO3PL.js → resolver-EMTGNR3D.js} +4 -3
- package/dist/{state-parser-3REXRK3R.js → state-parser-6T6CNMPX.js} +4 -4
- package/dist/{state-renderer-XYLNRWXR.js → state-renderer-AWZ3ECAX.js} +8 -8
- package/dist/themes-32xj5ZTW.d.ts +943 -0
- package/docs/language-reference.md +98 -10
- package/gallery/fixtures/clock.dgmo +3 -3
- package/gallery/fixtures/countdown-far.dgmo +2 -0
- package/gallery/fixtures/countdown-tz.dgmo +5 -0
- package/package.json +1 -1
- package/dist/dgmo-router-YTU3ENAX.js +0 -84
- package/dist/dimensions-OTBKC5M6.js +0 -22
- package/dist/layout-6RDJHS6E.js +0 -9
- package/dist/layout-J36454XU.js +0 -14
- package/dist/layout-LD6XTLD6.js +0 -14
- package/dist/parser-4WQQQXCG.js +0 -13
- package/dist/renderer-UYMQQCJK.js +0 -24
- package/dist/renderer-radial-F7X5F2VU.js +0 -21
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
analyzePert,
|
|
3
3
|
buildProjectSubtitle,
|
|
4
4
|
buildSummary
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-J76PIKAT.js";
|
|
6
|
+
import "./chunk-7L4UJOY6.js";
|
|
7
7
|
import "./chunk-USZW2HHU.js";
|
|
8
8
|
import "./chunk-CXK4DZH3.js";
|
|
9
9
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
buildProjectSubtitle,
|
|
13
13
|
buildSummary
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=analyzer-
|
|
15
|
+
//# sourceMappingURL=analyzer-BJ54GIFB.js.map
|
package/dist/auto.css
CHANGED
|
@@ -54,21 +54,25 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* === Toolbar ===
|
|
57
|
-
* The diagram is the star: the toolbar is
|
|
58
|
-
* (
|
|
59
|
-
*
|
|
60
|
-
* the
|
|
57
|
+
* The diagram is the star: the toolbar is an overlay pinned to the diagram's
|
|
58
|
+
* top-right corner (position:absolute — it reserves no layout space, so the
|
|
59
|
+
* block is exactly as tall as the chart). It stays fully transparent until
|
|
60
|
+
* the block is hovered or focused, or the source panel is open. It is the
|
|
61
|
+
* <summary> of the source <details>, so toggling works without any JS.
|
|
61
62
|
* No text labels, no disclosure triangle — three wordless icon buttons. */
|
|
62
63
|
.dgmo-source-wrap {
|
|
63
64
|
margin: 0;
|
|
64
65
|
}
|
|
65
66
|
.dgmo-toolbar {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 0.4em;
|
|
69
|
+
right: 0.4em;
|
|
70
|
+
z-index: 2;
|
|
66
71
|
display: flex;
|
|
67
72
|
align-items: center;
|
|
68
73
|
justify-content: flex-end;
|
|
69
74
|
gap: 0.25em;
|
|
70
|
-
|
|
71
|
-
padding: 0.15em 0;
|
|
75
|
+
padding: 0.15em;
|
|
72
76
|
opacity: 0;
|
|
73
77
|
transition: opacity 0.15s ease;
|
|
74
78
|
cursor: pointer;
|
|
@@ -171,6 +175,14 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
171
175
|
overflow: auto;
|
|
172
176
|
border-radius: 0.5em;
|
|
173
177
|
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
|
|
178
|
+
/* Opaque surface behind the enlarged diagram so a transparent embed doesn't
|
|
179
|
+
* show the page through it. The client overrides this inline with the block's
|
|
180
|
+
* own palette bg (data-dgmo-bg); this is the fallback for blocks that predate
|
|
181
|
+
* that attribute. */
|
|
182
|
+
background: #fff;
|
|
183
|
+
}
|
|
184
|
+
[data-theme="dark"] .dgmo-lightbox-svg {
|
|
185
|
+
background: #1e1e1e;
|
|
174
186
|
}
|
|
175
187
|
.dgmo-lightbox-svg > svg {
|
|
176
188
|
display: block;
|
|
@@ -205,9 +217,10 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
205
217
|
* border so the code visibly belongs to the chart above it. The frame box
|
|
206
218
|
* (border + padding) is RESERVED at all times — with the border transparent
|
|
207
219
|
* while closed — so opening the panel only paints the border in. It never
|
|
208
|
-
* reflows the diagram
|
|
209
|
-
*
|
|
220
|
+
* reflows the diagram. position:relative anchors the overlay toolbar to
|
|
221
|
+
* this box. */
|
|
210
222
|
.dgmo:has(> .dgmo-source-wrap) {
|
|
223
|
+
position: relative;
|
|
211
224
|
border: 1px solid transparent;
|
|
212
225
|
border-radius: 0.6em;
|
|
213
226
|
padding: 0.75em 0.75em 0.5em;
|
|
@@ -250,6 +263,13 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
250
263
|
font-size: 0.85em;
|
|
251
264
|
margin: 0.5em 0 0;
|
|
252
265
|
}
|
|
266
|
+
.dgmo-error-docs {
|
|
267
|
+
display: inline-block;
|
|
268
|
+
margin-top: 0.6em;
|
|
269
|
+
font-size: 0.9em;
|
|
270
|
+
font-weight: 600;
|
|
271
|
+
color: inherit;
|
|
272
|
+
}
|
|
253
273
|
|
|
254
274
|
/* === Source highlight roles ===
|
|
255
275
|
* Light values mirror LIGHT_ROLE_STYLES; dark overrides mirror
|
|
@@ -399,6 +419,9 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
399
419
|
.dgmo-theme-dark .dgmo-dark {
|
|
400
420
|
display: block;
|
|
401
421
|
}
|
|
422
|
+
.dgmo-theme-dark .dgmo-lightbox-svg {
|
|
423
|
+
background: #1e1e1e;
|
|
424
|
+
}
|
|
402
425
|
.dgmo-theme-dark .dgmo-tok-keyword {
|
|
403
426
|
color: #81a1c1;
|
|
404
427
|
font-weight: bold;
|
package/dist/auto.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared browser-embed helpers for the `@diagrammo/dgmo` client-side
|
|
3
|
+
* drop-ins (`./auto` script-tag renderer and `./element` custom element).
|
|
4
|
+
*
|
|
5
|
+
* These are the SVG sanitizer, theme resolver, the standard-block DOM
|
|
6
|
+
* assembler (canonical chrome from `src/embed` — BL-114), the error card,
|
|
7
|
+
* aria-label derivation, style injection, and share-URL builder — factored
|
|
8
|
+
* out of `auto/index.ts` so the two entries share one implementation rather
|
|
9
|
+
* than diverging copies. The `auto` entry's public `window.dgmo` surface is
|
|
10
|
+
* unaffected; it imports from here.
|
|
11
|
+
*/
|
|
12
|
+
declare const VERSION: string;
|
|
13
|
+
|
|
14
|
+
type ThemePreference = 'auto' | 'light' | 'dark' | 'transparent';
|
|
15
|
+
declare function resolveTheme(theme: ThemePreference | undefined): 'light' | 'dark' | 'transparent';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* `@diagrammo/dgmo/auto` — IIFE-distributed auto-renderer for static HTML.
|
|
19
|
+
*
|
|
20
|
+
* Drop a `<script src="…/auto.js">` on any page; on `DOMContentLoaded`
|
|
21
|
+
* this module scans for `.dgmo, .language-dgmo`, runs `render()`, and
|
|
22
|
+
* replaces each match with the standard DGMO embed block (BL-114,
|
|
23
|
+
* `figure.dgmo.dgmo-rendered`) — the diagram plus a hover-reveal icon
|
|
24
|
+
* toolbar with view-source, Copy, and "Open in editor" actions.
|
|
25
|
+
*
|
|
26
|
+
* Public API: frozen `window.dgmo` and alias `window.diagrammo` with
|
|
27
|
+
* `{ initialize, run, version }`. Configuration is read from the
|
|
28
|
+
* bundle's own `<script data-config='{…}'>` (JSON with strict
|
|
29
|
+
* allowlist) or via `dgmo.initialize(opts)` for `data-auto="false"`
|
|
30
|
+
* embedders.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
interface AutoConfig {
|
|
34
|
+
theme?: 'auto' | 'light' | 'dark' | 'transparent';
|
|
35
|
+
palette?: string;
|
|
36
|
+
/** Show the source-view toggle + collapsible source panel. Default true. */
|
|
37
|
+
showSource?: boolean;
|
|
38
|
+
/** Show the copy-source button. Default true. */
|
|
39
|
+
showCopy?: boolean;
|
|
40
|
+
/** Show the expand (full-screen) button. Default true. */
|
|
41
|
+
showExpand?: boolean;
|
|
42
|
+
/** Show the open-in-editor link. Default true. */
|
|
43
|
+
showEditorLink?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface RunOptions {
|
|
46
|
+
nodes?: Element[] | NodeListOf<Element>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare function findScriptTag(): HTMLScriptElement | null;
|
|
50
|
+
declare function parseConfig(raw: string | null | undefined): Partial<AutoConfig>;
|
|
51
|
+
declare function selectTargets(root?: ParentNode): Element[];
|
|
52
|
+
declare function initialize(opts?: AutoConfig): void;
|
|
53
|
+
declare function run(opts?: RunOptions): Promise<void>;
|
|
54
|
+
declare const api: Readonly<{
|
|
55
|
+
initialize: typeof initialize;
|
|
56
|
+
run: typeof run;
|
|
57
|
+
version: string;
|
|
58
|
+
}>;
|
|
59
|
+
|
|
60
|
+
export { type AutoConfig, type RunOptions, VERSION, api as default, findScriptTag, initialize, parseConfig, resolveTheme, run, selectTargets };
|