@diagrammo/dgmo 0.53.0 → 0.54.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 +36 -0
- package/dist/advanced.js +159 -154
- package/dist/auto.js +142 -128
- package/dist/auto.mjs +775 -466
- package/dist/block.js +62 -60
- package/dist/chart-meta.js +50 -47
- package/dist/{charts-d3-DH2XA45I.js → charts-d3-25E4VWXO.js} +9 -8
- package/dist/chunk-2CW5ZTNH.js +58 -0
- package/dist/{chunk-PKNNHU7H.js → chunk-2NYXI35Z.js} +17 -10
- package/dist/{chunk-W5KMNC5U.js → chunk-2NZOHEP4.js} +9 -10
- package/dist/{chunk-6DCOIN4W.js → chunk-3FRO35WW.js} +768 -2
- package/dist/{chunk-6AUZPPAV.js → chunk-3KHJJP3J.js} +2 -2
- package/dist/{chunk-X3RXGSCZ.js → chunk-3SBHODJ4.js} +11 -11
- package/dist/{chunk-KUSAVOWZ.js → chunk-3SEEP2JM.js} +3 -3
- package/dist/{chunk-QWIBT6DS.js → chunk-47JNEKJA.js} +10 -10
- package/dist/{chunk-LHILKFDP.js → chunk-4T6OCSJ2.js} +9 -9
- package/dist/{chunk-XQ4KN6JQ.js → chunk-4ZIKWVSQ.js} +16 -15
- package/dist/{chunk-GMAH572Z.js → chunk-5VXU6MND.js} +2 -2
- package/dist/{chunk-HORZ5H2L.js → chunk-5XSNLXU5.js} +17 -17
- package/dist/{chunk-BFDVEO5R.js → chunk-62Y27T4C.js} +2 -2
- package/dist/{chunk-R5NH5BZG.js → chunk-6KL7TFLS.js} +6 -6
- package/dist/{chunk-UVDCHR4E.js → chunk-6OYDOQ2Q.js} +2 -2
- package/dist/{chunk-QI3BOLQB.js → chunk-7K6NDSXH.js} +4 -4
- package/dist/{chunk-27STWBOK.js → chunk-7SP4C6EV.js} +6 -8
- package/dist/{chunk-I46X5VUA.js → chunk-7TF3QOOD.js} +25 -1
- package/dist/{chunk-FGDSTT3F.js → chunk-7U4OR7CD.js} +2 -2
- package/dist/{chunk-VKNCC2GX.js → chunk-7UPFTBOW.js} +13 -13
- package/dist/{chunk-FT7TPPZ5.js → chunk-A3BDLDYG.js} +12 -12
- package/dist/{chunk-AZNXGWDC.js → chunk-ADCHLNWT.js} +7 -7
- package/dist/{chunk-CMVZWP32.js → chunk-AHTTKERF.js} +2 -2
- package/dist/{chunk-GAWKIIPO.js → chunk-AJFHNS67.js} +7 -7
- package/dist/{chunk-Q7AH665U.js → chunk-AQEYUVGJ.js} +111 -35
- package/dist/{chunk-BR7AYN76.js → chunk-B7N5KYXQ.js} +12 -12
- package/dist/chunk-BEOAKGNA.js +484 -0
- package/dist/{chunk-GABSL6TH.js → chunk-BM7MG6HT.js} +3 -3
- package/dist/{chunk-UKP5HWB5.js → chunk-BWYFIVZF.js} +4 -4
- package/dist/{chunk-7GUF6SDR.js → chunk-BZJIITYM.js} +9 -9
- package/dist/{chunk-RW5PEJ7D.js → chunk-C2UORMIA.js} +3 -3
- package/dist/{chunk-FXCB7H5O.js → chunk-CCGWX6AO.js} +2 -2
- package/dist/{chunk-AHXIMHDQ.js → chunk-COJW2NEY.js} +9 -9
- package/dist/{chunk-XY3UDKKH.js → chunk-COVYNAKJ.js} +4 -4
- package/dist/{chunk-GQ644SPD.js → chunk-CSHFU6LT.js} +14 -14
- package/dist/{chunk-JTMSWEIW.js → chunk-DLU643TF.js} +4 -4
- package/dist/{chunk-QAALSCKI.js → chunk-DPGQ5UMO.js} +12 -12
- package/dist/{chunk-I64ECJX3.js → chunk-EAI6XJ7D.js} +3 -3
- package/dist/{chunk-DWUMPMV2.js → chunk-EPRF3ZRV.js} +2 -2
- package/dist/{chunk-AIMLCDAO.js → chunk-EQOMY4PY.js} +2 -2
- package/dist/{chunk-XEAQDIMF.js → chunk-F7XM366V.js} +6 -6
- package/dist/{chunk-SG4PRYO3.js → chunk-FFVFZLRT.js} +49 -18
- package/dist/{chunk-LC3FFD43.js → chunk-FR6UFVSV.js} +12 -12
- package/dist/{chunk-6HTRCTAS.js → chunk-FVMKCZHF.js} +6 -4
- package/dist/{chunk-FUKNRLIJ.js → chunk-GK32ZFZY.js} +6 -6
- package/dist/{chunk-6KY7OCZC.js → chunk-GKYHWJXI.js} +3 -3
- package/dist/{chunk-NNYFQOTK.js → chunk-GQ5ECRP4.js} +10 -8
- package/dist/{chunk-PT4SW76W.js → chunk-HAA25PLC.js} +9 -9
- package/dist/{chunk-J7HI6G3G.js → chunk-HFEOOQ46.js} +6 -6
- package/dist/{chunk-KKHCNSKK.js → chunk-I47VHSPS.js} +5 -5
- package/dist/{chunk-YG2BEIQU.js → chunk-ICKXIMBA.js} +11 -11
- package/dist/{chunk-A44USUV7.js → chunk-ICZ7M6IZ.js} +23 -17
- package/dist/{chunk-HE5J53SZ.js → chunk-IOIMQHQ6.js} +3 -3
- package/dist/{chunk-3BEKKRH5.js → chunk-IYNKLCAZ.js} +8 -8
- package/dist/{chunk-774C2FF3.js → chunk-J7HQPVYH.js} +2 -2
- package/dist/{chunk-UFQJMOVZ.js → chunk-KBVOVDYP.js} +6 -6
- package/dist/{chunk-JHOAH4TI.js → chunk-KDK5EKUR.js} +2 -2
- package/dist/{chunk-VIRANCNY.js → chunk-KINOX74I.js} +14 -14
- package/dist/{chunk-VJHBSPGF.js → chunk-KQ3FNRGR.js} +3 -3
- package/dist/{chunk-U7NKYLX2.js → chunk-KQYQECWQ.js} +13 -13
- package/dist/{chunk-GMIJ35PW.js → chunk-KS5ZSM5T.js} +13 -13
- package/dist/{chunk-FLDC7ZAK.js → chunk-KV4HLIJE.js} +2 -2
- package/dist/{chunk-PYO4TJJ3.js → chunk-LPJ6H5X4.js} +11 -11
- package/dist/{chunk-LQHVDZYC.js → chunk-LRSW4JLE.js} +4 -4
- package/dist/{chunk-VRRDUYOK.js → chunk-M24VXUFG.js} +3 -3
- package/dist/{chunk-22OQWBWD.js → chunk-M3H7ZE6C.js} +10 -10
- package/dist/{chunk-MA3HJZHB.js → chunk-MTZOXISJ.js} +7 -7
- package/dist/{chunk-GWQJKTFS.js → chunk-N7BSBAVP.js} +94 -94
- package/dist/{chunk-65V6IRFN.js → chunk-NUTWTV6G.js} +10 -10
- package/dist/{chunk-HNBY6CNV.js → chunk-O576GYAP.js} +2 -2
- package/dist/{chunk-3CZLWOCI.js → chunk-OJ435DQZ.js} +3 -3
- package/dist/{chunk-BD3WGY4T.js → chunk-OR3R27CU.js} +2 -2
- package/dist/{chunk-2QC4HXCY.js → chunk-OSXQKC3S.js} +8 -10
- package/dist/{chunk-4RGZFA7H.js → chunk-Q5IHQ4NW.js} +11 -1
- package/dist/{chunk-ALYZ3MAA.js → chunk-QBYP2FBZ.js} +8 -476
- package/dist/{chunk-4ASVFYB2.js → chunk-R5BGGBFF.js} +5 -5
- package/dist/{chunk-YR43LJT5.js → chunk-RIEAN4D5.js} +15 -12
- package/dist/{chunk-P3H7QVDH.js → chunk-RRGKMJYL.js} +6 -6
- package/dist/{chunk-XG4NWFPY.js → chunk-S7FOIURR.js} +13 -13
- package/dist/{chunk-NNUMX6WX.js → chunk-S7YFT3PO.js} +40 -15
- package/dist/{chunk-SQCBSFT5.js → chunk-SBOAZ7YK.js} +51 -263
- package/dist/{chunk-VGNIDAPQ.js → chunk-SSHS42QG.js} +4 -4
- package/dist/{chunk-SGPFVDUL.js → chunk-T3FAJAJT.js} +6 -6
- package/dist/{chunk-AN2DQB3G.js → chunk-T7Y554OK.js} +12 -12
- package/dist/chunk-TGOMHUOV.js +218 -0
- package/dist/{chunk-W2DINCHL.js → chunk-TJN2OIVG.js} +31 -16
- package/dist/{chunk-CK2GMDXD.js → chunk-TLNVYWPA.js} +2 -2
- package/dist/{chunk-CQFNIIQN.js → chunk-U4IN6AHE.js} +2 -2
- package/dist/{chunk-HOXKNRON.js → chunk-UEU6IYKY.js} +2 -2
- package/dist/{chunk-UK6DKJLD.js → chunk-UIT7E6UF.js} +4 -4
- package/dist/{chunk-IQJCVREL.js → chunk-VMSBMIHW.js} +6 -6
- package/dist/{chunk-FFXCKZOU.js → chunk-VQFDBNYF.js} +3 -3
- package/dist/{chunk-PV2QO7QL.js → chunk-W6PCFRPL.js} +2 -2
- package/dist/{chunk-UQRIKAMH.js → chunk-WKNAJ4BR.js} +13 -13
- package/dist/{chunk-4WGMGKCZ.js → chunk-WW4BQ744.js} +11 -11
- package/dist/{chunk-ZXUAPTCK.js → chunk-WWHECSYZ.js} +2 -2
- package/dist/{chunk-4K42RUGC.js → chunk-XWODFBHJ.js} +43 -12
- package/dist/{chunk-VAO6ANGC.js → chunk-YENNFS5F.js} +9 -9
- package/dist/cli.cjs +160 -146
- package/dist/completion-registry.d.ts +129 -0
- package/dist/completion-registry.js +1270 -0
- package/dist/{compute-G55RG53N.js → compute-JAP5E2E4.js} +2 -2
- package/dist/dgmo-router-TGZWFIZO.js +88 -0
- package/dist/{dimensions-K6PGYYGT.js → dimensions-L6BXQXXL.js} +8 -8
- package/dist/editor.js +18 -0
- package/dist/element.js +142 -128
- package/dist/element.mjs +775 -466
- package/dist/{flowchart-parser-LALR6J6F.js → flowchart-parser-UKYOW3VM.js} +5 -5
- package/dist/{flowchart-renderer-DXYB5YRF.js → flowchart-renderer-DCFKUDDR.js} +9 -9
- package/dist/highlight.js +18 -0
- package/dist/index.js +65 -62
- package/dist/{layout-WCAIKGZG.js → layout-25Y3VDYF.js} +5 -5
- package/dist/layout-4SPLI4HG.js +15 -0
- package/dist/{layout-E6HR6PXH.js → layout-A6OIGZN2.js} +3 -3
- package/dist/{layout-3BVDMKXI.js → layout-CH4HFFRD.js} +4 -4
- package/dist/{layout-ZE5DRJWX.js → layout-G2ABQJQZ.js} +4 -4
- package/dist/{layout-3V2A4MUE.js → layout-ITLPDG6M.js} +6 -5
- package/dist/{layout-WSMPBQ4Q.js → layout-NF4EWFLT.js} +3 -3
- package/dist/layout-NY7MHJCL.js +15 -0
- package/dist/{layout-4IHCMWZN.js → layout-QBNAMEOA.js} +4 -4
- package/dist/{layout-OL2XFJXA.js → layout-SP7HJWKA.js} +3 -3
- package/dist/{layout-search-34DPZD43.js → layout-search-LUI475P3.js} +9 -4
- package/dist/{legend-constants-P5EQWRQQ.js → legend-constants-B77VKB3R.js} +7 -2
- package/dist/{parser-5QPFOB5F.js → parser-2UWWNTFL.js} +4 -4
- package/dist/{parser-CKA3QMAG.js → parser-3RXYQSA7.js} +5 -5
- package/dist/{parser-GKP2MHHL.js → parser-5C3PEZK3.js} +3 -3
- package/dist/{parser-275KP7JO.js → parser-66RYGJRB.js} +5 -6
- package/dist/{parser-7JHWEWXM.js → parser-6GN5YJBJ.js} +4 -4
- package/dist/{parser-XVPTRWZ4.js → parser-6MQM7WT3.js} +4 -4
- package/dist/{parser-7JVIDLLR.js → parser-7UI6UQ7B.js} +4 -4
- package/dist/{parser-5HQXCNOS.js → parser-B2A7XOAK.js} +3 -3
- package/dist/{parser-UWRX52PC.js → parser-CCNJKDDA.js} +4 -4
- package/dist/{parser-CRKLXGW7.js → parser-ESHNUFME.js} +4 -4
- package/dist/{parser-EXNBDNGY.js → parser-F4FEU57T.js} +3 -3
- package/dist/{parser-IVGHXLZP.js → parser-FHRMFUNX.js} +4 -3
- package/dist/{parser-XNKJCMMA.js → parser-FPCWDYQV.js} +4 -4
- package/dist/{parser-ZQDQTB4X.js → parser-FY3YFFBS.js} +5 -5
- package/dist/{parser-VOERD6XR.js → parser-GML6V2KZ.js} +4 -4
- package/dist/{parser-3CODK6RG.js → parser-HA3PF5FL.js} +4 -4
- package/dist/{parser-GN2MM5CC.js → parser-KTYF6WO5.js} +3 -3
- package/dist/{parser-ZGNXYFPS.js → parser-LTA2BOZO.js} +3 -3
- package/dist/{parser-FOOFEJQU.js → parser-LU7UAKNB.js} +4 -4
- package/dist/{parser-NNIL3HXU.js → parser-MHKYQPC2.js} +3 -3
- package/dist/{parser-IKWK2ZU3.js → parser-MVSYFK63.js} +4 -5
- package/dist/{parser-3VSWEKBF.js → parser-O7YQYFEN.js} +4 -4
- package/dist/{parser-YSLNDFLV.js → parser-OPIXXUY4.js} +4 -5
- package/dist/{parser-RNLTBIJ6.js → parser-S4EJPNVN.js} +4 -4
- package/dist/{parser-G26MTBFS.js → parser-T3D7BV6O.js} +3 -3
- package/dist/{parser-3KIGEEJM.js → parser-VVE4THG3.js} +4 -4
- package/dist/{parser-5FGJSQNS.js → parser-WPPJGB4R.js} +4 -4
- package/dist/{parser-27Z76SN3.js → parser-X5XLFY4Z.js} +4 -4
- package/dist/{parser-6B6SSZT7.js → parser-XCPMEB2Z.js} +3 -3
- package/dist/{parser-6PPHAXXH.js → parser-XRDUX2AR.js} +5 -5
- package/dist/{parser-FF4BMRSB.js → parser-YPWYT46P.js} +4 -4
- package/dist/{parser-4E4I3GNT.js → parser-YULS5MLD.js} +4 -4
- package/dist/{renderer-ZBTEX2JK.js → renderer-2DME63VZ.js} +4 -4
- package/dist/{renderer-RLMOTXZ6.js → renderer-3VY3VXJE.js} +13 -13
- package/dist/{renderer-6WRYVM5R.js → renderer-4A32DX5L.js} +8 -8
- package/dist/{renderer-UPF7NRTI.js → renderer-4K5YYX5R.js} +11 -11
- package/dist/{renderer-HIFQVEJA.js → renderer-6CFML5G3.js} +9 -9
- package/dist/{renderer-7NQSTQMQ.js → renderer-7HMZ5OCJ.js} +4 -4
- package/dist/{renderer-NE5W7CQP.js → renderer-B7Y6I7JX.js} +6 -5
- package/dist/{renderer-LVZAHRP6.js → renderer-C3RI4OPJ.js} +11 -12
- package/dist/{renderer-COLQFSFV.js → renderer-CJ56SUMF.js} +9 -9
- package/dist/{renderer-WFSUBKUL.js → renderer-COJZZ4F6.js} +8 -8
- package/dist/{renderer-SQ54MDSA.js → renderer-FXMGCSRP.js} +9 -9
- package/dist/{renderer-TYHGXAVT.js → renderer-G4UOW3RH.js} +4 -4
- package/dist/{renderer-YUXGXGSW.js → renderer-HQ4JFZOV.js} +9 -9
- package/dist/{renderer-JTCX6PCG.js → renderer-LHVCKEWF.js} +9 -9
- package/dist/{renderer-WNFXYYGL.js → renderer-OZX5KGQM.js} +8 -8
- package/dist/{renderer-CWEFGEIC.js → renderer-P3YQES7B.js} +13 -13
- package/dist/{renderer-UKXW2QPE.js → renderer-PLVIARM7.js} +9 -8
- package/dist/{renderer-5MPN7CXZ.js → renderer-RA4PTAMF.js} +5 -5
- package/dist/{renderer-JCZG6AYU.js → renderer-RMAM2SOJ.js} +10 -10
- package/dist/{renderer-JWGQSTMR.js → renderer-SES7QZYL.js} +14 -14
- package/dist/{renderer-KARQF3F3.js → renderer-TQ5QDZOE.js} +8 -8
- package/dist/{renderer-6EN5XXJZ.js → renderer-V5SNTPAM.js} +10 -10
- package/dist/{renderer-QD2SJF2I.js → renderer-WVD6G2TS.js} +9 -9
- package/dist/{renderer-AK2WO4EI.js → renderer-X2LYSMLU.js} +4 -4
- package/dist/{renderer-VMH6L6CP.js → renderer-Y3NXZINM.js} +8 -8
- package/dist/{renderer-XTXSOK3L.js → renderer-YEFOOULC.js} +10 -10
- package/dist/{renderer-YUKPS27O.js → renderer-YP3P6UVT.js} +8 -8
- package/dist/{renderer-D3BRNOMV.js → renderer-YVMETH6V.js} +11 -11
- package/dist/{renderer-2C6DJRYN.js → renderer-Z4GNKNXO.js} +8 -8
- package/dist/{renderer-radial-WF6VOUOD.js → renderer-radial-VYBZAXXE.js} +9 -9
- package/dist/{state-parser-L7DHZIQO.js → state-parser-VIW2WNA5.js} +5 -5
- package/dist/{state-renderer-TFEUOP4H.js → state-renderer-H22AQD3U.js} +12 -12
- package/package.json +5 -1
- package/dist/chunk-YJVA3QUU.js +0 -734
- package/dist/dgmo-router-B4S23EBH.js +0 -86
- package/dist/layout-3M5UYJHY.js +0 -14
- package/dist/layout-KPQWJNAG.js +0 -14
package/dist/advanced.d.ts
CHANGED
|
@@ -249,6 +249,16 @@ declare function parseChart(content: string, palette?: PaletteColors): ParsedCha
|
|
|
249
249
|
* "North America 250" → { label: "North America", values: [250] }
|
|
250
250
|
* "Q1 10 20 30" → { label: "Q1", values: [10, 20, 30] }
|
|
251
251
|
* "Revenue 1_000" → { label: "Revenue", values: [1000] }
|
|
252
|
+
* '"Wi-Fi 6" 70 80' → { label: "Wi-Fi 6", values: [70, 80], quotedLabel: true }
|
|
253
|
+
*
|
|
254
|
+
* A fully-quoted leading label is taken verbatim (quotes stripped) and is never
|
|
255
|
+
* eligible for value peeling — the escape hatch for labels that end in a digit
|
|
256
|
+
* (`"Wi-Fi 6"`, `"Layer 3"`), mirroring the treemap leaf rule.
|
|
257
|
+
*
|
|
258
|
+
* `trailingNumericCount` reports how many consecutive numeric tokens the row
|
|
259
|
+
* actually ends with, which may exceed `values.length` when `expectedValues`
|
|
260
|
+
* caps the walk. Callers use it to flag an over-long row instead of silently
|
|
261
|
+
* absorbing the surplus numbers into the label.
|
|
252
262
|
*
|
|
253
263
|
* Returns null if the line has no numeric value at the end.
|
|
254
264
|
*/
|
|
@@ -258,6 +268,11 @@ declare function parseDataRowValues(line: string, options?: {
|
|
|
258
268
|
}): {
|
|
259
269
|
label: string;
|
|
260
270
|
values: number[];
|
|
271
|
+
/** Label prefix with every trailing numeric token removed (diagnostics use
|
|
272
|
+
* this so the message names "Armor", not the corrupted "Armor 50 60"). */
|
|
273
|
+
bareLabel: string;
|
|
274
|
+
trailingNumericCount: number;
|
|
275
|
+
quotedLabel: boolean;
|
|
261
276
|
} | null;
|
|
262
277
|
|
|
263
278
|
interface LegendState {
|
|
@@ -490,6 +505,23 @@ interface LegendHandle {
|
|
|
490
505
|
}
|
|
491
506
|
type D3Sel = Selection<any, unknown, any, unknown>;
|
|
492
507
|
|
|
508
|
+
/** A parsed emphasis directive: which dual, and the names it lists. */
|
|
509
|
+
interface EmphasisDirective {
|
|
510
|
+
readonly kind: 'highlight' | 'dim';
|
|
511
|
+
readonly names: readonly string[];
|
|
512
|
+
/**
|
|
513
|
+
* True when the author used no comma, so `names` is a *guess* — `dim Ship
|
|
514
|
+
* Provisions` is one two-word element far more often than two one-word ones.
|
|
515
|
+
* Resolution tries the whole phrase first and only falls back to these
|
|
516
|
+
* tokens, which means a comma is never required for the common single-name
|
|
517
|
+
* case but always disambiguates when an author wants several.
|
|
518
|
+
*/
|
|
519
|
+
readonly ambiguous: boolean;
|
|
520
|
+
/** The directive's argument text, verbatim — the whole-phrase candidate. */
|
|
521
|
+
readonly raw: string;
|
|
522
|
+
readonly lineNumber: number;
|
|
523
|
+
}
|
|
524
|
+
|
|
493
525
|
type ExtendedChartType = 'sankey' | 'chord' | 'function' | 'scatter' | 'heatmap' | 'funnel';
|
|
494
526
|
interface ExtendedChartDataPoint {
|
|
495
527
|
label: string;
|
|
@@ -557,6 +589,10 @@ interface ParsedExtendedBase {
|
|
|
557
589
|
/** Cross-chart-type: when true, the renderer suppresses the legend and the
|
|
558
590
|
* vertical band it would occupy (#48). */
|
|
559
591
|
noLegend?: boolean;
|
|
592
|
+
/** §1.11 emphasis family: `highlight <Name>…` / `dim <Name>…`. Chart-level,
|
|
593
|
+
* mutually exclusive, last-one-wins. Resolved against real element names at
|
|
594
|
+
* render time via `resolveEmphasis`. */
|
|
595
|
+
emphasis?: EmphasisDirective;
|
|
560
596
|
categoryColors?: Record<string, string>;
|
|
561
597
|
categoryLineNumbers?: Record<string, number>;
|
|
562
598
|
nodeColors?: Record<string, string>;
|