@diagrammo/dgmo 0.48.2 → 0.50.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/.cursorrules +12 -3
- package/.github/copilot-instructions.md +12 -3
- package/.windsurfrules +12 -3
- package/SKILL.md +12 -3
- package/dist/advanced.d.ts +851 -1
- package/dist/advanced.js +601 -177
- package/dist/auto.css +63 -0
- package/dist/auto.js +220 -110
- package/dist/auto.mjs +45920 -33167
- package/dist/block.css +63 -0
- package/dist/block.d.ts +13 -5
- package/dist/block.js +239 -62
- package/dist/{charts-d3-QOZHKTCT.js → charts-d3-DKUD7MQE.js} +9 -8
- package/dist/{chunk-3MQQNXPD.js → chunk-2C56LEML.js} +3 -3
- package/dist/{chunk-L66GEFB6.js → chunk-2JJ2KNPI.js} +4 -4
- package/dist/{chunk-6SM5NJQH.js → chunk-2QYTMIRR.js} +4 -4
- package/dist/{chunk-RJE5JTVK.js → chunk-3G6TMNVF.js} +7 -7
- package/dist/{chunk-MO5YHHMQ.js → chunk-3LKM6FMW.js} +2 -2
- package/dist/{chunk-76OWZ3BA.js → chunk-3P2DKJCG.js} +2 -2
- package/dist/chunk-3TDRHT4J.js +1043 -0
- package/dist/chunk-3XPUDB7B.js +420 -0
- package/dist/{chunk-2LACINWN.js → chunk-3ZPC476N.js} +7 -7
- package/dist/{chunk-G2H74XJZ.js → chunk-4BMJQFNK.js} +8 -8
- package/dist/{chunk-THXCFRTU.js → chunk-4S723I74.js} +9 -9
- package/dist/{chunk-6NYWYNBI.js → chunk-4XK3FLFB.js} +3 -3
- package/dist/chunk-5JSWBPZZ.js +607 -0
- package/dist/{chunk-WCT3NYCV.js → chunk-5LWQH6QV.js} +1 -1
- package/dist/{chunk-7DTWEFUE.js → chunk-5Z736BSU.js} +8 -8
- package/dist/{chunk-ERLBPDGU.js → chunk-6BFZKBGD.js} +2 -2
- package/dist/{chunk-6HO5ZTXK.js → chunk-6IAA2QQ2.js} +2 -2
- package/dist/{chunk-H6PI3KJT.js → chunk-6IUAK7RZ.js} +2 -2
- package/dist/{chunk-RTLBSQ3G.js → chunk-6M5PJFQG.js} +3 -3
- package/dist/{chunk-Z5CGSFJB.js → chunk-6X4AKWLF.js} +4 -4
- package/dist/{chunk-OJR3MQYV.js → chunk-6ZT4U37Q.js} +291 -52
- package/dist/{chunk-5QXL4NYS.js → chunk-7G2ER4CY.js} +10 -5
- package/dist/chunk-7PQYTZMA.js +681 -0
- package/dist/{chunk-OURHMODR.js → chunk-7RB5Q6MB.js} +11 -11
- package/dist/{chunk-YAA6IID3.js → chunk-7UEMZREK.js} +2 -2
- package/dist/{chunk-AN2MOO5T.js → chunk-A3WQVFBS.js} +3 -3
- package/dist/{chunk-VOKGH627.js → chunk-AHGF2YYA.js} +13 -3
- package/dist/{chunk-CI2G3OEB.js → chunk-ASS5YYIZ.js} +12 -12
- package/dist/{chunk-TYS6CSS5.js → chunk-BCYVE3N5.js} +2 -2
- package/dist/chunk-BDXC7MDK.js +2395 -0
- package/dist/chunk-BTUTZMPT.js +482 -0
- package/dist/{chunk-YGJTDXVR.js → chunk-C4GQDB5L.js} +2 -2
- package/dist/{chunk-Y2ZE3MSG.js → chunk-C63UWAKM.js} +2 -2
- package/dist/{chunk-725LDASD.js → chunk-CLD2OKV7.js} +2 -2
- package/dist/{chunk-WBRZJOEC.js → chunk-CMCR5WBW.js} +3 -3
- package/dist/{chunk-IZMRON6C.js → chunk-CVV36CWI.js} +2 -2
- package/dist/chunk-DMJJ3CEQ.js +254 -0
- package/dist/{chunk-MZSBFAPJ.js → chunk-EJTKV7CY.js} +9 -9
- package/dist/{chunk-FITOLXSX.js → chunk-EOFPYPAU.js} +26 -2
- package/dist/{chunk-X5LCYCL5.js → chunk-ER5SCQWQ.js} +5 -5
- package/dist/{chunk-4OHACBGX.js → chunk-F2L5GCQ4.js} +2 -2
- package/dist/{chunk-FCIIHT24.js → chunk-F5UDBSJY.js} +7 -7
- package/dist/{chunk-3JLKYGBQ.js → chunk-F7BFXWNQ.js} +2 -2
- package/dist/{chunk-FANX6UJR.js → chunk-FAL7NOK3.js} +11 -11
- package/dist/{chunk-BUPDIHML.js → chunk-FB2WHOEQ.js} +4 -4
- package/dist/chunk-FL4IOQ37.js +379 -0
- package/dist/{chunk-LIOHW36Z.js → chunk-GBE54KY6.js} +6 -5
- package/dist/{chunk-RUNNI6VE.js → chunk-GL5UZ6NY.js} +3 -3
- package/dist/{chunk-4GRI7MEB.js → chunk-GPWHQ5FJ.js} +6 -6
- package/dist/chunk-GROQGHCT.js +960 -0
- package/dist/{chunk-SGZYXELT.js → chunk-H73FP42Q.js} +9 -6
- package/dist/{chunk-PBAHEPLQ.js → chunk-HGN652MU.js} +7 -6
- package/dist/{chunk-3SMGIJDD.js → chunk-HHXOONLX.js} +13 -1
- package/dist/{chunk-QOOUC2J5.js → chunk-HQCHYB5F.js} +2 -2
- package/dist/{chunk-AELOBFW5.js → chunk-I4IFRCUB.js} +3 -3
- package/dist/{chunk-GMR5MFHJ.js → chunk-I7F2A35O.js} +2 -2
- package/dist/{chunk-T2OE3YQB.js → chunk-IA3FJYWR.js} +3 -3
- package/dist/chunk-IAEC4KLA.js +492 -0
- package/dist/chunk-IVKC4GID.js +32 -0
- package/dist/{chunk-HSH73DP6.js → chunk-JFYIP7XU.js} +139 -39
- package/dist/{chunk-CKNVO24D.js → chunk-JZNMXEIV.js} +2 -2
- package/dist/chunk-KJXIHOVL.js +940 -0
- package/dist/chunk-L2ZTFHAY.js +331 -0
- package/dist/{chunk-B7JUCQUA.js → chunk-M5RXSRO2.js} +4 -4
- package/dist/{chunk-ULOEATBZ.js → chunk-NFFIKVNO.js} +106 -29
- package/dist/{chunk-PZMETGLY.js → chunk-NISQC5KW.js} +358 -122
- package/dist/chunk-O4VUFXIH.js +574 -0
- package/dist/{chunk-RVMRZAPB.js → chunk-O76UD6VJ.js} +3 -3
- package/dist/{chunk-JM4LEPY3.js → chunk-O7NUCTFU.js} +2 -2
- package/dist/{chunk-JED6ZDEE.js → chunk-O7WP4ZD4.js} +2 -2
- package/dist/{chunk-EVCVDTXE.js → chunk-OHQEMBLI.js} +3 -3
- package/dist/{chunk-ZBWMSD5N.js → chunk-ONA5KPV3.js} +4 -4
- package/dist/{chunk-Y3J7VR52.js → chunk-OTAL43EH.js} +34 -2
- package/dist/{chunk-WCSOJFU3.js → chunk-OTP5KVLO.js} +3 -3
- package/dist/{chunk-RYEGFMUO.js → chunk-PGEGPSCZ.js} +2 -2
- package/dist/{chunk-ZO27FGJS.js → chunk-PH5X4GIP.js} +2 -2
- package/dist/{chunk-ZJEL4H2R.js → chunk-PJUGRJHJ.js} +9 -9
- package/dist/{chunk-ZGR7ULFJ.js → chunk-PLZI6KPM.js} +26 -14
- package/dist/{chunk-3R5POCTZ.js → chunk-PMN3Q7RJ.js} +6 -6
- package/dist/{chunk-YGJZWZTY.js → chunk-PZFVK3IH.js} +2 -2
- package/dist/chunk-Q4V4XQWV.js +158 -0
- package/dist/chunk-QDFNCATJ.js +325 -0
- package/dist/{chunk-QEBUY5NY.js → chunk-QFQ35BTO.js} +4 -4
- package/dist/chunk-QQJUTGQH.js +135 -0
- package/dist/{chunk-PWIHZ6NJ.js → chunk-QUJGFNFN.js} +4 -4
- package/dist/{chunk-J5FIXQRT.js → chunk-R56LASIN.js} +4 -4
- package/dist/{chunk-SRTU6HMQ.js → chunk-RV26LTUU.js} +8 -8
- package/dist/chunk-RV6A2B5S.js +354 -0
- package/dist/{chunk-EB6FPQUP.js → chunk-S5GRONXL.js} +3 -3
- package/dist/{chunk-5MLYVTYM.js → chunk-SCHXJTZL.js} +2 -2
- package/dist/{chunk-T3UBLACL.js → chunk-SCQ5VPUF.js} +19 -5
- package/dist/{chunk-PBHE5UG6.js → chunk-SGFZZAUO.js} +46 -12
- package/dist/{chunk-BUVJFRPY.js → chunk-SU2VBK4L.js} +4 -4
- package/dist/{chunk-SML67VPV.js → chunk-T4BRO3Z6.js} +3 -3
- package/dist/{chunk-NURGB5Z4.js → chunk-TSA237IM.js} +2 -2
- package/dist/chunk-TWCLK2GA.js +273 -0
- package/dist/{chunk-IJZFN3HM.js → chunk-TWQUYVP3.js} +4 -4
- package/dist/{chunk-DKEPS5LH.js → chunk-U2HGPLZS.js} +36 -2
- package/dist/{chunk-B65G5DNL.js → chunk-URSQLCTR.js} +3 -3
- package/dist/{chunk-ILKORZ3H.js → chunk-UUS2GIJZ.js} +7 -7
- package/dist/{chunk-XAKEUMEJ.js → chunk-UXOSVCLJ.js} +4 -4
- package/dist/{chunk-QLCCJEJI.js → chunk-WCUHAQKB.js} +2 -2
- package/dist/{chunk-WVAJFAIA.js → chunk-WWN566I7.js} +257 -101
- package/dist/{chunk-IPWPWM6R.js → chunk-X2NMFTG3.js} +111 -10
- package/dist/{chunk-UWN33VNX.js → chunk-XCLHOZAM.js} +10 -10
- package/dist/{chunk-P235SVAH.js → chunk-XDXNDSKO.js} +2 -2
- package/dist/chunk-XHVV4NVW.js +51 -0
- package/dist/{chunk-33LCUH4H.js → chunk-XMVQ5F4M.js} +4 -4
- package/dist/{chunk-MITI6NOL.js → chunk-YA7D2N2O.js} +11 -11
- package/dist/{chunk-7JEGTRLD.js → chunk-YB3FW24O.js} +3 -3
- package/dist/chunk-YNRDWYZP.js +295 -0
- package/dist/{chunk-44CM72SQ.js → chunk-YZLMKW4T.js} +3 -3
- package/dist/chunk-Z6XJQ6KO.js +452 -0
- package/dist/cli.cjs +179 -133
- package/dist/clock.d.ts +10 -0
- package/dist/clock.js +235 -0
- package/dist/countdown.d.ts +12 -0
- package/dist/countdown.js +450 -0
- package/dist/dgmo-router-QOMFCOOV.js +84 -0
- package/dist/dimensions-P5FSX2QN.js +22 -0
- package/dist/editor.js +43 -2
- package/dist/element.js +220 -110
- package/dist/element.mjs +45920 -33167
- package/dist/{flowchart-parser-ZNSKIBVR.js → flowchart-parser-OE4WHLTF.js} +4 -4
- package/dist/{flowchart-renderer-SNDSII4D.js → flowchart-renderer-GPCSMTOR.js} +8 -8
- package/dist/highlight.d.ts +17 -1
- package/dist/highlight.js +163 -6
- package/dist/index.d.ts +5 -1
- package/dist/index.js +199 -233
- package/dist/{layout-HRBZPFCN.js → layout-34CLNICW.js} +5 -5
- package/dist/layout-46366KBT.js +10 -0
- package/dist/{layout-HWDSRX5E.js → layout-5BG6DFCU.js} +6 -6
- package/dist/layout-6RDJHS6E.js +9 -0
- package/dist/{layout-7QXCNOVS.js → layout-7H4H46CS.js} +3 -3
- package/dist/{layout-46N4JJYK.js → layout-7SKMFYHL.js} +5 -5
- package/dist/{layout-EE6GE46Y.js → layout-DC4TVXER.js} +5 -5
- package/dist/layout-FGQWRYYW.js +14 -0
- package/dist/{layout-S2QBYSK2.js → layout-NXG63LWH.js} +3 -3
- package/dist/{layout-N76NR4ZO.js → layout-PUQCB6AN.js} +7 -7
- package/dist/{layout-HYZPWAK5.js → layout-QNUQLEHU.js} +3 -3
- package/dist/{layout-UM5F4DJB.js → layout-T3OZU5QW.js} +5 -5
- package/dist/layout-TJIWF7EM.js +14 -0
- package/dist/layout-VYELEAW7.js +14 -0
- package/dist/{layout-5RA6QWR6.js → layout-WZHNDT2O.js} +6 -6
- package/dist/{layout-search-OYV77HHS.js → layout-search-QS44PI5R.js} +6 -6
- package/dist/{parser-6BTRLKRZ.js → parser-45DENHFZ.js} +4 -4
- package/dist/{parser-TFZFBVWN.js → parser-4AI5ZN5F.js} +3 -3
- package/dist/{parser-XDVELHRK.js → parser-4P36TUVD.js} +4 -4
- package/dist/{parser-ZSDPZYQP.js → parser-5AURY4A6.js} +4 -4
- package/dist/{parser-N5O4IHUN.js → parser-A2BEFMGK.js} +4 -4
- package/dist/parser-B5FVS7O6.js +11 -0
- package/dist/{parser-NGU3ETO6.js → parser-C2HF2C2E.js} +4 -4
- package/dist/parser-CSFUN3CT.js +14 -0
- package/dist/{parser-TRTHDFPP.js → parser-D3QT6GWN.js} +5 -5
- package/dist/parser-D5637H5H.js +15 -0
- package/dist/{parser-VQP2UJ6W.js → parser-DFFEDKHH.js} +3 -3
- package/dist/parser-DOKMZXVZ.js +13 -0
- package/dist/parser-FMPCVFRK.js +15 -0
- package/dist/{parser-Y6WTBU76.js → parser-HYRTF3DO.js} +3 -3
- package/dist/{parser-I6KXEYFK.js → parser-I2UIJKVQ.js} +4 -4
- package/dist/{parser-O5J4VBII.js → parser-IBWNAPY4.js} +3 -3
- package/dist/{parser-PQ3POX45.js → parser-KUQWRPIT.js} +4 -4
- package/dist/{parser-2MFP2H2E.js → parser-LWKKBNSA.js} +3 -3
- package/dist/{parser-OV7NOBW6.js → parser-O4QFCUW7.js} +5 -5
- package/dist/{parser-IXSZZQHY.js → parser-PGMQDD4G.js} +4 -4
- package/dist/{parser-3STE62GB.js → parser-Q4QKCIWQ.js} +4 -4
- package/dist/parser-QTOB4KFL.js +14 -0
- package/dist/{parser-2EWECDSA.js → parser-QYYM4QVW.js} +4 -4
- package/dist/{parser-4OGOBJJ4.js → parser-RZMQP7MM.js} +4 -4
- package/dist/parser-RZPVAQVX.js +11 -0
- package/dist/parser-SOUJOEYI.js +13 -0
- package/dist/{parser-4FL2CMDG.js → parser-UQE5OWZI.js} +5 -5
- package/dist/{parser-NRAI6O25.js → parser-WAV5JRPT.js} +4 -4
- package/dist/{parser-KNSQSKQO.js → parser-YLKYBRIT.js} +5 -5
- package/dist/{parser-XKRP7QKP.js → parser-YS7TOS2K.js} +3 -3
- package/dist/{parser-AQETEVRW.js → parser-ZSOWUBML.js} +5 -5
- package/dist/{parser-CFZD5IBL.js → parser-ZTBATMLX.js} +4 -4
- package/dist/{renderer-VACVQYML.js → renderer-35HSIDMZ.js} +8 -8
- package/dist/{renderer-5MYBMBYO.js → renderer-4ITCHBT7.js} +5 -5
- package/dist/{renderer-CLJHQPBJ.js → renderer-67NPCBIS.js} +11 -11
- package/dist/{renderer-5NDVNDAZ.js → renderer-6GHYK7DX.js} +9 -9
- package/dist/{renderer-Z7I3W2PP.js → renderer-6RNGHC5Z.js} +8 -8
- package/dist/renderer-72LGR2YF.js +14 -0
- package/dist/{renderer-KQB7UGDS.js → renderer-7RH2SI3B.js} +3 -3
- package/dist/renderer-7SWMIFMM.js +21 -0
- package/dist/renderer-BBCEFILK.js +24 -0
- package/dist/{renderer-JGBKUCZD.js → renderer-BSW7SRIZ.js} +4 -4
- package/dist/{renderer-BYCNMBF7.js → renderer-BY533UWU.js} +11 -11
- package/dist/{renderer-6W5462RB.js → renderer-BZSBPTZJ.js} +9 -9
- package/dist/{renderer-7MVLWWQD.js → renderer-CXUC4KAD.js} +9 -9
- package/dist/{renderer-QIWVHWZO.js → renderer-DAXMXIKD.js} +3 -3
- package/dist/renderer-FZUKFUNZ.js +23 -0
- package/dist/renderer-G2NLGNKF.js +17 -0
- package/dist/renderer-GO3FE3RA.js +24 -0
- package/dist/{renderer-ZGNTUWC4.js → renderer-HPGR6USK.js} +8 -8
- package/dist/{renderer-UV6MI64M.js → renderer-HVCU2C3Z.js} +3 -3
- package/dist/renderer-ICJN2SA2.js +24 -0
- package/dist/{renderer-AWWAF6XD.js → renderer-INEXO7B6.js} +10 -10
- package/dist/{renderer-YY2OSF6E.js → renderer-KDYCFRBX.js} +8 -8
- package/dist/renderer-KY4KQBTF.js +19 -0
- package/dist/{renderer-B2OMQIQG.js → renderer-LBN65V45.js} +13 -13
- package/dist/{renderer-N43WR5GV.js → renderer-MGBWOCXG.js} +10 -10
- package/dist/{renderer-PGX2TKVS.js → renderer-O4JKUGKO.js} +8 -8
- package/dist/{renderer-4JHRUBE6.js → renderer-OOGFODWP.js} +10 -10
- package/dist/{renderer-6EEZHMH4.js → renderer-Q6ZKPLS6.js} +9 -9
- package/dist/{renderer-RPOA5YPZ.js → renderer-SZQ326M5.js} +12 -12
- package/dist/{renderer-ZRNG54CW.js → renderer-TKG6LS4U.js} +11 -11
- package/dist/{renderer-W4M6QLIJ.js → renderer-TQMZGDAX.js} +13 -13
- package/dist/renderer-radial-JELMHQ24.js +21 -0
- package/dist/{resolver-NOAA7ID7.js → resolver-FHBCO3PL.js} +3 -3
- package/dist/{state-parser-Z2V23ATR.js → state-parser-3REXRK3R.js} +4 -4
- package/dist/{state-renderer-B4DQBM6M.js → state-renderer-XYLNRWXR.js} +8 -8
- package/docs/ai-integration.md +12 -3
- package/docs/language-reference.md +429 -24
- package/gallery/fixtures/body.dgmo +17 -0
- package/gallery/fixtures/bracket.dgmo +30 -0
- package/gallery/fixtures/clock.dgmo +8 -0
- package/gallery/fixtures/countdown.dgmo +3 -0
- package/gallery/fixtures/family.dgmo +23 -0
- package/gallery/fixtures/goal.dgmo +4 -0
- package/gallery/fixtures/sketch.dgmo +22 -0
- package/package.json +12 -4
- package/dist/chunk-ODZVHU3R.js +0 -153
- package/dist/dgmo-router-X35VLZLM.js +0 -73
- package/dist/dimensions-J3FHIMJ6.js +0 -22
- package/dist/layout-5T6RH5M6.js +0 -14
- package/dist/layout-G23F7LDH.js +0 -9
- package/dist/layout-OB3RI63S.js +0 -14
- package/dist/parser-JAL2HD4I.js +0 -13
- package/dist/renderer-SMIBCRVB.js +0 -24
- package/dist/renderer-radial-C32GPJQ7.js +0 -21
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extractColor,
|
|
3
|
+
parseFirstLine
|
|
4
|
+
} from "./chunk-OTAL43EH.js";
|
|
5
|
+
import {
|
|
6
|
+
resolveColor
|
|
7
|
+
} from "./chunk-TLVIHFRO.js";
|
|
8
|
+
import {
|
|
9
|
+
makeDgmoError,
|
|
10
|
+
makeFail
|
|
11
|
+
} from "./chunk-CXK4DZH3.js";
|
|
12
|
+
|
|
13
|
+
// src/clock/zone-coords.ts
|
|
14
|
+
var ZONE_COORDS = {
|
|
15
|
+
// ── North America ──
|
|
16
|
+
"America/New_York": { lat: 40.71, lon: -74.01 },
|
|
17
|
+
"America/Detroit": { lat: 42.33, lon: -83.05 },
|
|
18
|
+
"America/Toronto": { lat: 43.65, lon: -79.38 },
|
|
19
|
+
"America/Montreal": { lat: 45.51, lon: -73.57 },
|
|
20
|
+
"America/Chicago": { lat: 41.85, lon: -87.65 },
|
|
21
|
+
"America/Winnipeg": { lat: 49.9, lon: -97.14 },
|
|
22
|
+
"America/Mexico_City": { lat: 19.43, lon: -99.13 },
|
|
23
|
+
"America/Denver": { lat: 39.74, lon: -104.98 },
|
|
24
|
+
"America/Phoenix": { lat: 33.45, lon: -112.07 },
|
|
25
|
+
"America/Edmonton": { lat: 53.55, lon: -113.5 },
|
|
26
|
+
"America/Los_Angeles": { lat: 34.05, lon: -118.24 },
|
|
27
|
+
"America/Vancouver": { lat: 49.28, lon: -123.12 },
|
|
28
|
+
"America/Tijuana": { lat: 32.53, lon: -117.02 },
|
|
29
|
+
"America/Anchorage": { lat: 61.22, lon: -149.9 },
|
|
30
|
+
"America/Adak": { lat: 51.88, lon: -176.66 },
|
|
31
|
+
"Pacific/Honolulu": { lat: 21.31, lon: -157.86 },
|
|
32
|
+
"America/Halifax": { lat: 44.65, lon: -63.57 },
|
|
33
|
+
"America/St_Johns": { lat: 47.56, lon: -52.71 },
|
|
34
|
+
"America/Havana": { lat: 23.13, lon: -82.36 },
|
|
35
|
+
"America/Panama": { lat: 8.98, lon: -79.52 },
|
|
36
|
+
"America/Guatemala": { lat: 14.61, lon: -90.53 },
|
|
37
|
+
"America/Costa_Rica": { lat: 9.93, lon: -84.08 },
|
|
38
|
+
// ── South America ──
|
|
39
|
+
"America/Bogota": { lat: 4.61, lon: -74.08 },
|
|
40
|
+
"America/Lima": { lat: -12.05, lon: -77.05 },
|
|
41
|
+
"America/Caracas": { lat: 10.5, lon: -66.93 },
|
|
42
|
+
"America/La_Paz": { lat: -16.5, lon: -68.15 },
|
|
43
|
+
"America/Santiago": { lat: -33.45, lon: -70.67 },
|
|
44
|
+
"America/Argentina/Buenos_Aires": { lat: -34.6, lon: -58.45 },
|
|
45
|
+
"America/Montevideo": { lat: -34.88, lon: -56.18 },
|
|
46
|
+
"America/Asuncion": { lat: -25.28, lon: -57.67 },
|
|
47
|
+
"America/Sao_Paulo": { lat: -23.53, lon: -46.62 },
|
|
48
|
+
"America/Bahia": { lat: -12.97, lon: -38.51 },
|
|
49
|
+
"America/Manaus": { lat: -3.13, lon: -60.02 },
|
|
50
|
+
"America/Guayaquil": { lat: -2.17, lon: -79.83 },
|
|
51
|
+
// ── Europe ──
|
|
52
|
+
"Europe/London": { lat: 51.51, lon: -0.13 },
|
|
53
|
+
"Europe/Dublin": { lat: 53.33, lon: -6.25 },
|
|
54
|
+
"Europe/Lisbon": { lat: 38.72, lon: -9.13 },
|
|
55
|
+
"Europe/Madrid": { lat: 40.42, lon: -3.7 },
|
|
56
|
+
"Europe/Paris": { lat: 48.85, lon: 2.35 },
|
|
57
|
+
"Europe/Brussels": { lat: 50.85, lon: 4.35 },
|
|
58
|
+
"Europe/Amsterdam": { lat: 52.37, lon: 4.89 },
|
|
59
|
+
"Europe/Berlin": { lat: 52.52, lon: 13.4 },
|
|
60
|
+
"Europe/Zurich": { lat: 47.38, lon: 8.54 },
|
|
61
|
+
"Europe/Rome": { lat: 41.9, lon: 12.5 },
|
|
62
|
+
"Europe/Vienna": { lat: 48.21, lon: 16.37 },
|
|
63
|
+
"Europe/Prague": { lat: 50.09, lon: 14.42 },
|
|
64
|
+
"Europe/Warsaw": { lat: 52.23, lon: 21.01 },
|
|
65
|
+
"Europe/Stockholm": { lat: 59.33, lon: 18.06 },
|
|
66
|
+
"Europe/Oslo": { lat: 59.91, lon: 10.75 },
|
|
67
|
+
"Europe/Copenhagen": { lat: 55.68, lon: 12.57 },
|
|
68
|
+
"Europe/Helsinki": { lat: 60.17, lon: 24.94 },
|
|
69
|
+
"Europe/Athens": { lat: 37.98, lon: 23.73 },
|
|
70
|
+
"Europe/Bucharest": { lat: 44.43, lon: 26.1 },
|
|
71
|
+
"Europe/Budapest": { lat: 47.5, lon: 19.04 },
|
|
72
|
+
"Europe/Kyiv": { lat: 50.45, lon: 30.52 },
|
|
73
|
+
"Europe/Kiev": { lat: 50.45, lon: 30.52 },
|
|
74
|
+
"Europe/Istanbul": { lat: 41.01, lon: 28.98 },
|
|
75
|
+
"Europe/Moscow": { lat: 55.76, lon: 37.62 },
|
|
76
|
+
"Europe/Reykjavik": { lat: 64.15, lon: -21.95 },
|
|
77
|
+
// ── Africa ──
|
|
78
|
+
"Africa/Casablanca": { lat: 33.57, lon: -7.59 },
|
|
79
|
+
"Africa/Lagos": { lat: 6.45, lon: 3.4 },
|
|
80
|
+
"Africa/Accra": { lat: 5.56, lon: -0.2 },
|
|
81
|
+
"Africa/Algiers": { lat: 36.75, lon: 3.06 },
|
|
82
|
+
"Africa/Tunis": { lat: 36.8, lon: 10.18 },
|
|
83
|
+
"Africa/Cairo": { lat: 30.04, lon: 31.24 },
|
|
84
|
+
"Africa/Johannesburg": { lat: -26.2, lon: 28.05 },
|
|
85
|
+
"Africa/Nairobi": { lat: -1.29, lon: 36.82 },
|
|
86
|
+
"Africa/Addis_Ababa": { lat: 9.03, lon: 38.74 },
|
|
87
|
+
"Africa/Khartoum": { lat: 15.5, lon: 32.56 },
|
|
88
|
+
"Africa/Kinshasa": { lat: -4.32, lon: 15.31 },
|
|
89
|
+
"Africa/Dakar": { lat: 14.69, lon: -17.44 },
|
|
90
|
+
"Africa/Harare": { lat: -17.83, lon: 31.05 },
|
|
91
|
+
"Indian/Mauritius": { lat: -20.16, lon: 57.5 },
|
|
92
|
+
// ── Middle East / West + Central Asia ──
|
|
93
|
+
"Asia/Jerusalem": { lat: 31.78, lon: 35.22 },
|
|
94
|
+
"Asia/Beirut": { lat: 33.89, lon: 35.5 },
|
|
95
|
+
"Asia/Amman": { lat: 31.95, lon: 35.93 },
|
|
96
|
+
"Asia/Riyadh": { lat: 24.71, lon: 46.68 },
|
|
97
|
+
"Asia/Qatar": { lat: 25.29, lon: 51.53 },
|
|
98
|
+
"Asia/Dubai": { lat: 25.2, lon: 55.27 },
|
|
99
|
+
"Asia/Baghdad": { lat: 33.31, lon: 44.36 },
|
|
100
|
+
"Asia/Tehran": { lat: 35.69, lon: 51.39 },
|
|
101
|
+
"Asia/Baku": { lat: 40.41, lon: 49.87 },
|
|
102
|
+
"Asia/Yerevan": { lat: 40.18, lon: 44.51 },
|
|
103
|
+
"Asia/Tbilisi": { lat: 41.72, lon: 44.79 },
|
|
104
|
+
"Asia/Karachi": { lat: 24.86, lon: 67.01 },
|
|
105
|
+
"Asia/Tashkent": { lat: 41.31, lon: 69.28 },
|
|
106
|
+
"Asia/Almaty": { lat: 43.25, lon: 76.95 },
|
|
107
|
+
// ── South + Southeast Asia ──
|
|
108
|
+
"Asia/Kolkata": { lat: 22.57, lon: 88.36 },
|
|
109
|
+
"Asia/Calcutta": { lat: 22.57, lon: 88.36 },
|
|
110
|
+
"Asia/Colombo": { lat: 6.93, lon: 79.85 },
|
|
111
|
+
"Asia/Kathmandu": { lat: 27.72, lon: 85.32 },
|
|
112
|
+
"Asia/Dhaka": { lat: 23.81, lon: 90.41 },
|
|
113
|
+
"Asia/Yangon": { lat: 16.8, lon: 96.15 },
|
|
114
|
+
"Asia/Bangkok": { lat: 13.75, lon: 100.5 },
|
|
115
|
+
"Asia/Ho_Chi_Minh": { lat: 10.82, lon: 106.63 },
|
|
116
|
+
"Asia/Jakarta": { lat: -6.21, lon: 106.85 },
|
|
117
|
+
"Asia/Kuala_Lumpur": { lat: 3.14, lon: 101.69 },
|
|
118
|
+
"Asia/Singapore": { lat: 1.29, lon: 103.85 },
|
|
119
|
+
"Asia/Manila": { lat: 14.6, lon: 120.98 },
|
|
120
|
+
// ── East Asia ──
|
|
121
|
+
"Asia/Hong_Kong": { lat: 22.32, lon: 114.17 },
|
|
122
|
+
"Asia/Shanghai": { lat: 31.23, lon: 121.47 },
|
|
123
|
+
"Asia/Taipei": { lat: 25.03, lon: 121.57 },
|
|
124
|
+
"Asia/Seoul": { lat: 37.57, lon: 126.98 },
|
|
125
|
+
"Asia/Tokyo": { lat: 35.68, lon: 139.69 },
|
|
126
|
+
"Asia/Ulaanbaatar": { lat: 47.92, lon: 106.92 },
|
|
127
|
+
"Asia/Vladivostok": { lat: 43.12, lon: 131.9 },
|
|
128
|
+
// ── Australia / Pacific ──
|
|
129
|
+
"Australia/Perth": { lat: -31.95, lon: 115.86 },
|
|
130
|
+
"Australia/Adelaide": { lat: -34.93, lon: 138.6 },
|
|
131
|
+
"Australia/Darwin": { lat: -12.46, lon: 130.84 },
|
|
132
|
+
"Australia/Brisbane": { lat: -27.47, lon: 153.03 },
|
|
133
|
+
"Australia/Sydney": { lat: -33.87, lon: 151.21 },
|
|
134
|
+
"Australia/Melbourne": { lat: -37.81, lon: 144.96 },
|
|
135
|
+
"Australia/Hobart": { lat: -42.88, lon: 147.33 },
|
|
136
|
+
"Pacific/Auckland": { lat: -36.85, lon: 174.76 },
|
|
137
|
+
"Pacific/Fiji": { lat: -18.14, lon: 178.44 },
|
|
138
|
+
"Pacific/Guam": { lat: 13.47, lon: 144.75 },
|
|
139
|
+
"Pacific/Port_Moresby": { lat: -9.5, lon: 147.15 },
|
|
140
|
+
"Pacific/Tongatapu": { lat: -21.13, lon: -175.2 },
|
|
141
|
+
// ── UTC ──
|
|
142
|
+
UTC: { lat: 51.48, lon: 0 }
|
|
143
|
+
};
|
|
144
|
+
function coordsFor(zone) {
|
|
145
|
+
return ZONE_COORDS[zone] ?? null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// src/clock/parser.ts
|
|
149
|
+
var DIRECTIVES = /* @__PURE__ */ new Set([
|
|
150
|
+
"analog",
|
|
151
|
+
"hours",
|
|
152
|
+
"days",
|
|
153
|
+
"no-sun",
|
|
154
|
+
"time-24",
|
|
155
|
+
"no-title",
|
|
156
|
+
"direction",
|
|
157
|
+
"color-by"
|
|
158
|
+
]);
|
|
159
|
+
var WEEKDAY_ABBR = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
160
|
+
function weekdayIndex(token) {
|
|
161
|
+
const t = token.trim().toLowerCase().slice(0, 3);
|
|
162
|
+
const i = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"].indexOf(t);
|
|
163
|
+
return i < 0 ? null : i;
|
|
164
|
+
}
|
|
165
|
+
function parseClockTime(token) {
|
|
166
|
+
const m = token.trim().toLowerCase().match(/^(\d{1,2})(?::(\d{2}))?\s*(am|pm)?$/);
|
|
167
|
+
if (!m) return null;
|
|
168
|
+
let h = Number(m[1]);
|
|
169
|
+
const min = m[2] ? Number(m[2]) : 0;
|
|
170
|
+
if (min > 59) return null;
|
|
171
|
+
const mer = m[3];
|
|
172
|
+
if (mer) {
|
|
173
|
+
if (h < 1 || h > 12) return null;
|
|
174
|
+
if (mer === "am") h = h === 12 ? 0 : h;
|
|
175
|
+
else h = h === 12 ? 12 : h + 12;
|
|
176
|
+
} else if (h > 24) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return { min: h * 60 + min, mer: Boolean(mer) };
|
|
180
|
+
}
|
|
181
|
+
function isValidZone(zone) {
|
|
182
|
+
try {
|
|
183
|
+
new Intl.DateTimeFormat("en-US", { timeZone: zone });
|
|
184
|
+
return true;
|
|
185
|
+
} catch {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function looksLikeZone(token) {
|
|
190
|
+
return token.includes("/") || token === "UTC" || coordsFor(token) !== null;
|
|
191
|
+
}
|
|
192
|
+
function defaultWorkDays() {
|
|
193
|
+
return { Mon: true, Tue: true, Wed: true, Thu: true, Fri: true };
|
|
194
|
+
}
|
|
195
|
+
function parseDays(rest) {
|
|
196
|
+
const days = {};
|
|
197
|
+
const range = rest.match(/^([a-z]{3,})\s*-\s*([a-z]{3,})$/i);
|
|
198
|
+
if (range) {
|
|
199
|
+
const a = weekdayIndex(range[1]);
|
|
200
|
+
const b = weekdayIndex(range[2]);
|
|
201
|
+
if (a === null || b === null) return null;
|
|
202
|
+
let i = a;
|
|
203
|
+
for (let n = 0; n < 7; n++) {
|
|
204
|
+
days[WEEKDAY_ABBR[i]] = true;
|
|
205
|
+
if (i === b) break;
|
|
206
|
+
i = (i + 1) % 7;
|
|
207
|
+
}
|
|
208
|
+
return days;
|
|
209
|
+
}
|
|
210
|
+
const toks = rest.split(/[,\s]+/).filter(Boolean);
|
|
211
|
+
let any = false;
|
|
212
|
+
for (const tok of toks) {
|
|
213
|
+
const wd = weekdayIndex(tok);
|
|
214
|
+
if (wd !== null) {
|
|
215
|
+
days[WEEKDAY_ABBR[wd]] = true;
|
|
216
|
+
any = true;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return any ? days : null;
|
|
220
|
+
}
|
|
221
|
+
function zoneCity(zone) {
|
|
222
|
+
const seg = zone.split("/").pop() ?? zone;
|
|
223
|
+
return seg.replace(/_/g, " ");
|
|
224
|
+
}
|
|
225
|
+
function parseClock(content, palette) {
|
|
226
|
+
const result = {
|
|
227
|
+
type: "clock",
|
|
228
|
+
title: null,
|
|
229
|
+
titleLineNumber: null,
|
|
230
|
+
face: "digital",
|
|
231
|
+
hours12: true,
|
|
232
|
+
sun: true,
|
|
233
|
+
noTitle: false,
|
|
234
|
+
columns: false,
|
|
235
|
+
colorBy: "place",
|
|
236
|
+
work: null,
|
|
237
|
+
entries: [],
|
|
238
|
+
diagnostics: [],
|
|
239
|
+
error: null
|
|
240
|
+
};
|
|
241
|
+
const fail = makeFail(result);
|
|
242
|
+
const warn = (line, message) => {
|
|
243
|
+
result.diagnostics.push(makeDgmoError(line, message, "warning"));
|
|
244
|
+
};
|
|
245
|
+
const softError = (line, message) => {
|
|
246
|
+
result.diagnostics.push(makeDgmoError(line, message, "error"));
|
|
247
|
+
};
|
|
248
|
+
if (!content?.trim()) return fail(0, "No content provided");
|
|
249
|
+
const lines = content.split("\n");
|
|
250
|
+
const entries = [];
|
|
251
|
+
let headerParsed = false;
|
|
252
|
+
let workStart = null;
|
|
253
|
+
let workEnd = null;
|
|
254
|
+
let workDays = null;
|
|
255
|
+
for (let i = 0; i < lines.length; i++) {
|
|
256
|
+
const lineNum = i + 1;
|
|
257
|
+
const raw = lines[i];
|
|
258
|
+
const trimmed = raw.replace(/\s+(#|\/\/).*$/, "").trim();
|
|
259
|
+
if (!trimmed || trimmed.startsWith("#") || trimmed.startsWith("//"))
|
|
260
|
+
continue;
|
|
261
|
+
if (!headerParsed) {
|
|
262
|
+
const first = parseFirstLine(trimmed);
|
|
263
|
+
if (first?.chartType !== "clock") {
|
|
264
|
+
return fail(lineNum, 'Expected "clock [Title]" as the first line.');
|
|
265
|
+
}
|
|
266
|
+
if (first.title) {
|
|
267
|
+
const { label: label2, color: color2 } = extractColor(
|
|
268
|
+
first.title,
|
|
269
|
+
palette,
|
|
270
|
+
result.diagnostics,
|
|
271
|
+
lineNum
|
|
272
|
+
);
|
|
273
|
+
result.title = (color2 !== void 0 ? first.title : label2) || null;
|
|
274
|
+
}
|
|
275
|
+
result.titleLineNumber = lineNum;
|
|
276
|
+
headerParsed = true;
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
const tokens = trimmed.split(/\s+/);
|
|
280
|
+
const key = tokens[0].toLowerCase();
|
|
281
|
+
const rest = tokens.slice(1).join(" ").trim();
|
|
282
|
+
if (DIRECTIVES.has(key)) {
|
|
283
|
+
switch (key) {
|
|
284
|
+
case "analog":
|
|
285
|
+
result.face = "analog";
|
|
286
|
+
break;
|
|
287
|
+
case "hours": {
|
|
288
|
+
const m = rest.match(/^(\S+)\s*-\s*(\S+)$/);
|
|
289
|
+
const s = m ? parseClockTime(m[1]) : null;
|
|
290
|
+
const e = m ? parseClockTime(m[2]) : null;
|
|
291
|
+
if (!s || !e) {
|
|
292
|
+
softError(
|
|
293
|
+
lineNum,
|
|
294
|
+
`"hours" needs a window like 9-17, 9am-5pm, or 8:30-5:15 (got "${rest}").`
|
|
295
|
+
);
|
|
296
|
+
} else {
|
|
297
|
+
let end = e.min;
|
|
298
|
+
if (!e.mer && end <= s.min && end < 12 * 60) end += 12 * 60;
|
|
299
|
+
workStart = s.min;
|
|
300
|
+
workEnd = end;
|
|
301
|
+
}
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
case "days": {
|
|
305
|
+
const parsed = parseDays(rest);
|
|
306
|
+
if (parsed === null) {
|
|
307
|
+
softError(
|
|
308
|
+
lineNum,
|
|
309
|
+
`"days" needs weekdays like mon-fri or mon,wed,fri (got "${rest}").`
|
|
310
|
+
);
|
|
311
|
+
} else {
|
|
312
|
+
workDays = parsed;
|
|
313
|
+
}
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
case "no-sun":
|
|
317
|
+
result.sun = false;
|
|
318
|
+
break;
|
|
319
|
+
case "time-24":
|
|
320
|
+
result.hours12 = false;
|
|
321
|
+
break;
|
|
322
|
+
case "no-title":
|
|
323
|
+
result.noTitle = true;
|
|
324
|
+
break;
|
|
325
|
+
case "color-by": {
|
|
326
|
+
const v = rest.trim().toLowerCase();
|
|
327
|
+
const modes = ["place", "work", "daylight", "time", "none"];
|
|
328
|
+
if (v === "" || modes.includes(v)) {
|
|
329
|
+
result.colorBy = v || "place";
|
|
330
|
+
} else {
|
|
331
|
+
warn(
|
|
332
|
+
lineNum,
|
|
333
|
+
`Unknown color-by "${rest}" \u2014 use place|work|daylight|time|none.`
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
case "direction": {
|
|
339
|
+
const v = rest.trim().toLowerCase();
|
|
340
|
+
result.columns = v.startsWith("lr") || v === "columns";
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
const zoneIdx = tokens.findIndex((t) => looksLikeZone(t));
|
|
347
|
+
if (zoneIdx < 0) {
|
|
348
|
+
warn(
|
|
349
|
+
lineNum,
|
|
350
|
+
`No time zone found in "${trimmed}" \u2014 expected an IANA zone like America/New_York.`
|
|
351
|
+
);
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
const zone = tokens[zoneIdx];
|
|
355
|
+
const placeTokens = tokens.slice(0, zoneIdx);
|
|
356
|
+
let label = null;
|
|
357
|
+
let color;
|
|
358
|
+
const afterZone = tokens.slice(zoneIdx + 1);
|
|
359
|
+
const asIdx = afterZone.findIndex((t) => t.toLowerCase() === "as");
|
|
360
|
+
if (asIdx >= 0) {
|
|
361
|
+
const ex = extractColor(
|
|
362
|
+
afterZone.slice(asIdx + 1).join(" ").trim(),
|
|
363
|
+
palette,
|
|
364
|
+
void 0,
|
|
365
|
+
lineNum
|
|
366
|
+
);
|
|
367
|
+
if (ex.label) label = ex.label;
|
|
368
|
+
color = ex.color;
|
|
369
|
+
} else if (palette && afterZone.length === 1) {
|
|
370
|
+
color = resolveColor(afterZone[0], palette) ?? void 0;
|
|
371
|
+
}
|
|
372
|
+
const place = placeTokens.join(" ").trim() || zoneCity(zone);
|
|
373
|
+
if (!isValidZone(zone)) {
|
|
374
|
+
warn(
|
|
375
|
+
lineNum,
|
|
376
|
+
`Unknown time zone "${zone}" \u2014 row skipped (use an IANA zone like America/New_York).`
|
|
377
|
+
);
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
const coords = coordsFor(zone);
|
|
381
|
+
entries.push({
|
|
382
|
+
place,
|
|
383
|
+
zone,
|
|
384
|
+
label: label ?? place,
|
|
385
|
+
lat: coords?.lat ?? null,
|
|
386
|
+
lon: coords?.lon ?? null,
|
|
387
|
+
color: color ?? null,
|
|
388
|
+
lineNumber: lineNum
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
if (!headerParsed) {
|
|
392
|
+
return fail(0, 'Expected "clock [Title]" as the first line.');
|
|
393
|
+
}
|
|
394
|
+
if (workStart !== null && workEnd !== null) {
|
|
395
|
+
const work = {
|
|
396
|
+
startMin: workStart,
|
|
397
|
+
endMin: workEnd,
|
|
398
|
+
days: workDays ?? defaultWorkDays()
|
|
399
|
+
};
|
|
400
|
+
result.work = work;
|
|
401
|
+
} else if (workDays !== null) {
|
|
402
|
+
warn(
|
|
403
|
+
result.titleLineNumber ?? 1,
|
|
404
|
+
"`days` has no effect without `hours` \u2014 the working-hours status needs a window."
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
result.entries = entries;
|
|
408
|
+
if (entries.length === 0) {
|
|
409
|
+
softError(
|
|
410
|
+
result.titleLineNumber ?? 1,
|
|
411
|
+
'A clock needs at least one place row (e.g. "London Europe/London").'
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
return result;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
parseClock
|
|
419
|
+
};
|
|
420
|
+
//# sourceMappingURL=chunk-3XPUDB7B.js.map
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
EDGE_STROKE_WIDTH,
|
|
16
16
|
NODE_STROKE_WIDTH
|
|
17
17
|
} from "./chunk-3CIOJ5YJ.js";
|
|
18
|
-
import {
|
|
19
|
-
renderIntegratedLegend
|
|
20
|
-
} from "./chunk-PWIHZ6NJ.js";
|
|
21
18
|
import {
|
|
22
19
|
ScaleContext
|
|
23
20
|
} from "./chunk-YYVTBZZC.js";
|
|
21
|
+
import {
|
|
22
|
+
renderIntegratedLegend
|
|
23
|
+
} from "./chunk-QUJGFNFN.js";
|
|
24
24
|
import {
|
|
25
25
|
getMaxLegendReservedHeight
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7UEMZREK.js";
|
|
27
27
|
import {
|
|
28
28
|
TITLE_FONT_SIZE,
|
|
29
29
|
TITLE_FONT_WEIGHT,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
CHAR_WIDTH_RATIO,
|
|
37
37
|
measureText,
|
|
38
38
|
truncateText
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5LWQH6QV.js";
|
|
40
40
|
import {
|
|
41
41
|
contrastText,
|
|
42
42
|
mix,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-P6T66CCZ.js";
|
|
48
48
|
import {
|
|
49
49
|
resolveTagColor
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-WCUHAQKB.js";
|
|
51
51
|
import {
|
|
52
52
|
resolveColor
|
|
53
53
|
} from "./chunk-TLVIHFRO.js";
|
|
@@ -783,4 +783,4 @@ export {
|
|
|
783
783
|
renderBoxesAndLines,
|
|
784
784
|
renderBoxesAndLinesForExport
|
|
785
785
|
};
|
|
786
|
-
//# sourceMappingURL=chunk-
|
|
786
|
+
//# sourceMappingURL=chunk-3ZPC476N.js.map
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
MONTH_ABBR,
|
|
3
3
|
computeTimeTicks
|
|
4
4
|
} from "./chunk-YRYKTYMQ.js";
|
|
5
|
-
import {
|
|
6
|
-
renderIntegratedLegend
|
|
7
|
-
} from "./chunk-PWIHZ6NJ.js";
|
|
8
5
|
import {
|
|
9
6
|
ScaleContext
|
|
10
7
|
} from "./chunk-YYVTBZZC.js";
|
|
8
|
+
import {
|
|
9
|
+
renderIntegratedLegend
|
|
10
|
+
} from "./chunk-QUJGFNFN.js";
|
|
11
11
|
import {
|
|
12
12
|
controlsGroupCapsuleWidth,
|
|
13
13
|
getMaxLegendReservedHeight
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7UEMZREK.js";
|
|
15
15
|
import {
|
|
16
16
|
TITLE_FONT_SIZE,
|
|
17
17
|
TITLE_FONT_WEIGHT,
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
LEGEND_PILL_PAD,
|
|
35
35
|
measureLegendText,
|
|
36
36
|
truncateLegendText
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-HQCHYB5F.js";
|
|
38
38
|
import {
|
|
39
39
|
CHAR_WIDTH_RATIO,
|
|
40
40
|
measureText,
|
|
41
41
|
truncateText
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5LWQH6QV.js";
|
|
43
43
|
import {
|
|
44
44
|
contrastText,
|
|
45
45
|
getSeriesColors,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
resolveActiveTagGroup,
|
|
51
51
|
resolveTagColor,
|
|
52
52
|
tagAttrKey
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WCUHAQKB.js";
|
|
54
54
|
import {
|
|
55
55
|
normalizeName
|
|
56
56
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -2101,4 +2101,4 @@ export {
|
|
|
2101
2101
|
renderGantt,
|
|
2102
2102
|
buildTagLaneRowList
|
|
2103
2103
|
};
|
|
2104
|
-
//# sourceMappingURL=chunk-
|
|
2104
|
+
//# sourceMappingURL=chunk-4BMJQFNK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeNodeText,
|
|
3
3
|
layoutMindmap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IA3FJYWR.js";
|
|
5
5
|
import {
|
|
6
6
|
renderInlineText
|
|
7
7
|
} from "./chunk-3HDBAXF5.js";
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
EDGE_STROKE_WIDTH,
|
|
15
15
|
NODE_STROKE_WIDTH
|
|
16
16
|
} from "./chunk-3CIOJ5YJ.js";
|
|
17
|
-
import {
|
|
18
|
-
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-PWIHZ6NJ.js";
|
|
20
17
|
import {
|
|
21
18
|
ScaleContext
|
|
22
19
|
} from "./chunk-YYVTBZZC.js";
|
|
20
|
+
import {
|
|
21
|
+
renderIntegratedLegend
|
|
22
|
+
} from "./chunk-QUJGFNFN.js";
|
|
23
23
|
import {
|
|
24
24
|
getMaxLegendReservedHeight
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7UEMZREK.js";
|
|
26
26
|
import {
|
|
27
27
|
TITLE_FONT_SIZE,
|
|
28
28
|
TITLE_FONT_WEIGHT
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
} from "./chunk-6KFWC4CO.js";
|
|
33
33
|
import {
|
|
34
34
|
LEGEND_GROUP_GAP
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HQCHYB5F.js";
|
|
36
36
|
import {
|
|
37
37
|
parseMindmap
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-S5GRONXL.js";
|
|
39
39
|
import {
|
|
40
40
|
preprocessDescriptionLine
|
|
41
41
|
} from "./chunk-IYULMRBE.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "./chunk-P6T66CCZ.js";
|
|
46
46
|
import {
|
|
47
47
|
tagAttrKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WCUHAQKB.js";
|
|
49
49
|
|
|
50
50
|
// src/mindmap/renderer.ts
|
|
51
51
|
import * as d3Selection from "d3-selection";
|
|
@@ -388,4 +388,4 @@ export {
|
|
|
388
388
|
renderMindmap,
|
|
389
389
|
renderMindmapForExport
|
|
390
390
|
};
|
|
391
|
-
//# sourceMappingURL=chunk-
|
|
391
|
+
//# sourceMappingURL=chunk-4S723I74.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildPlacedNotes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O7WP4ZD4.js";
|
|
4
4
|
import {
|
|
5
5
|
noteCanvasShift
|
|
6
6
|
} from "./chunk-6EK55ART.js";
|
|
7
7
|
import {
|
|
8
8
|
measureText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LWQH6QV.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveNotes
|
|
12
12
|
} from "./chunk-FMDSF3OV.js";
|
|
@@ -326,4 +326,4 @@ function layoutERDiagram(parsed, options) {
|
|
|
326
326
|
export {
|
|
327
327
|
layoutERDiagram
|
|
328
328
|
};
|
|
329
|
-
//# sourceMappingURL=chunk-
|
|
329
|
+
//# sourceMappingURL=chunk-4XK3FLFB.js.map
|