@aiquants/markdown 11.6.0 → 11.6.1
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 +17 -9
- package/dist/{abnfDiagram-VRR7QNED-79-YSh_K.js → abnfDiagram-VRR7QNED-CNPa4Amd.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-DWb-CgfE.cjs → abnfDiagram-VRR7QNED-DA1FhoMO.cjs} +1 -1
- package/dist/{arc-7S4sKBip.js → arc-B5HYhmyA.js} +1 -1
- package/dist/{arc-Ct7JgzbU.cjs → arc-DpWieVdR.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-CqYSOu6T.cjs → architectureDiagram-ZJ3FMSHR-CtOy4eQw.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-DbazS36-.js → architectureDiagram-ZJ3FMSHR-Dq9Ji_ss.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-BN9v9gZ-.cjs → blockDiagram-677ZJIJ3-BFrK1cVr.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-yUFxR2AB.js → blockDiagram-677ZJIJ3-C29MtPfl.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-zoa11JBS.cjs → c4Diagram-LMCZKHZV-B-Zzfbb7.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-ChDvUvYJ.js → c4Diagram-LMCZKHZV-BENAHgCx.js} +2 -2
- package/dist/{channel-CjnjBBm3.js → channel-BPBmpvjP.js} +1 -1
- package/dist/{channel-B3Momvbx.cjs → channel-CloJXQTJ.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-CU00N_PH.js → chunk-2Q5K7J3B-Baih_I0x.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BFqqoKdy.cjs → chunk-2Q5K7J3B-khdwb5P6.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-n6Apfcwz.js → chunk-32BRIVSS-CvFrBQms.js} +1 -1
- package/dist/{chunk-32BRIVSS-D1kAmPLJ.cjs → chunk-32BRIVSS-DNEHcGy0.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-Dq5Hynyb.js → chunk-5VM5RSS4-D-CHS8NK.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BojaQz_F.cjs → chunk-5VM5RSS4-DyHmluAy.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-D-MPeU_l.js → chunk-EX3LRPZG-BE7dfz4i.js} +4 -4
- package/dist/{chunk-EX3LRPZG-DmcR2gTc.cjs → chunk-EX3LRPZG-Bln-66zI.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-CRKJdMCc.js → chunk-JWPE2WC7-BFvr7fTK.js} +1 -1
- package/dist/{chunk-JWPE2WC7-5XwT9koa.cjs → chunk-JWPE2WC7-Be4OZhVq.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-BAbxB6Wt.cjs → chunk-MOJQB5TN-4jP7ibIw.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-3vNO7Ocs.js → chunk-MOJQB5TN-DzmVBP7r.js} +1 -1
- package/dist/{chunk-PUDLZKDR-B9uAx29J.cjs → chunk-PUDLZKDR-CiV9slXG.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-D44jrM4A.js → chunk-PUDLZKDR-Cz6U2vY6.js} +6 -6
- package/dist/{chunk-RYQCIY6F-Cv0NI4r5.cjs → chunk-RYQCIY6F-Di1tJAzK.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-DvNezuk8.js → chunk-RYQCIY6F-DybZ6kDC.js} +1 -1
- package/dist/{chunk-V7JOEXUC-qDKOSk0E.js → chunk-V7JOEXUC-BO-hRkeL.js} +5 -5
- package/dist/{chunk-V7JOEXUC-B7-0gdwG.cjs → chunk-V7JOEXUC-lnMS5mom.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-DoAmSLKL.js → chunk-VR4S4FIN-C8GwMLgs.js} +1 -1
- package/dist/{chunk-VR4S4FIN-DdEF58hd.cjs → chunk-VR4S4FIN-CdVvXK3Z.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-C7_R2ESl.cjs → chunk-XXDRQBXY-Cy7CZGPS.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-CPc_CnDi.js → chunk-XXDRQBXY-bJCONQUB.js} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-CDL6Y0zH.js → classDiagram-OUVF2IWQ-BRTTG09-.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-D8V_ia1T.cjs → classDiagram-OUVF2IWQ-CdczDHov.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-CDL6Y0zH.js → classDiagram-v2-EOCWNBFH-BRTTG09-.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-D8V_ia1T.cjs → classDiagram-v2-EOCWNBFH-CdczDHov.cjs} +1 -1
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-CgYGsvBY.js → cose-bilkent-JH36ORCC-3yJASm2B.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-D36mBTa1.cjs → cose-bilkent-JH36ORCC-DGVOCRqn.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-C4ccvzDY.js → cynefinDiagram-TSTJHNR4-Bk4ZPz-p.js} +2 -2
- package/dist/{cynefinDiagram-TSTJHNR4-BVD1jBRh.cjs → cynefinDiagram-TSTJHNR4-CIyBWCUT.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Chy7TpIo.js → dagre-VKFMJZFB-BGB3cKw2.js} +2 -2
- package/dist/{dagre-VKFMJZFB-BZy2-Z-X.cjs → dagre-VKFMJZFB-BfBDrhyC.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-_vDqFQBf.js → diagram-FQU43EPY-Cay_eq5e.js} +2 -2
- package/dist/{diagram-FQU43EPY-CGQQGMxC.cjs → diagram-FQU43EPY-mC5ZPPOl.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-D_sO4PSP.cjs → diagram-G47NLZAW-BCQt1VIB.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-yxlia5t-.js → diagram-G47NLZAW-Dhhc68JM.js} +3 -3
- package/dist/{diagram-NH7WQ7WH-Bq2axsyf.js → diagram-NH7WQ7WH-Cl8Z6v7O.js} +2 -2
- package/dist/{diagram-NH7WQ7WH-BRFc3dHy.cjs → diagram-NH7WQ7WH-SPKn3csJ.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-DR8ONCwP.cjs → diagram-OA4YK3LP-CB2TRawM.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Bu2coUUB.js → diagram-OA4YK3LP-CYt5val7.js} +3 -3
- package/dist/{diagram-WEI45ONY-CO8Cka3N.js → diagram-WEI45ONY-DqGET2tJ.js} +2 -2
- package/dist/{diagram-WEI45ONY-2qs2PO34.cjs → diagram-WEI45ONY-o2MhIgLA.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-Cxh8ZtT_.js → ebnfDiagram-CCIWWBDH-Cw5FHNw7.js} +3 -3
- package/dist/{ebnfDiagram-CCIWWBDH-CeglVg-X.cjs → ebnfDiagram-CCIWWBDH-fDvEjNZQ.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-YXK1aGTi.js → erDiagram-Q63AITRT-C0IkJfJZ.js} +4 -4
- package/dist/{erDiagram-Q63AITRT-CAiZlm3_.cjs → erDiagram-Q63AITRT-Cfcu-JgV.cjs} +1 -1
- package/dist/{extractHeadings-ChjUMVbw.js → extractHeadings-BnnTGmkL.js} +3334 -3331
- package/dist/{extractHeadings-B1AsuS3b.cjs → extractHeadings-DO9TMcyl.cjs} +56 -56
- package/dist/flowDiagram-23GEKE2U-CT7PxHKx.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DNz8aCol.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-ztpU8x74.js → ganttDiagram-NO4QXBWP-DT9Qkoeh.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-UhNGYA_c.cjs → ganttDiagram-NO4QXBWP-RRhQ4Wa7.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-BqmWDevH.cjs → gitGraphDiagram-IHSO6WYX-AMJM7Lnn.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-BVHyOXzC.js → gitGraphDiagram-IHSO6WYX-CoKzbt0q.js} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-u5jAW1BW.cjs → infoDiagram-FWYZ7A6U-B1w9y9ic.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-CtPPZXcW.js → infoDiagram-FWYZ7A6U-DX5bR2wo.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-DSLCb5U8.cjs → ishikawaDiagram-FXEZZL3T-BHHyZio5.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-Brte0Ddn.js → ishikawaDiagram-FXEZZL3T-Ri4htGjq.js} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-BCAzbps1.js → journeyDiagram-5HDEW3XC-eox9s4AC.js} +4 -4
- package/dist/{journeyDiagram-5HDEW3XC-Bbp04jQE.cjs → journeyDiagram-5HDEW3XC-vDFWbeof.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-ChWKc0LP.cjs → kanban-definition-HUTT4EX6-BtX3FvkI.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-CNyzanxy.js → kanban-definition-HUTT4EX6-CLypcpY2.js} +2 -2
- package/dist/{linear-Cqco96HS.js → linear-BcczIOdB.js} +1 -1
- package/dist/{linear-DbIpUBgn.cjs → linear-CrB7aFlL.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-DzKkbdiT.js → mindmap-definition-LN4V7U3C-CbbLbrl0.js} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-BZd2a84K.cjs → mindmap-definition-LN4V7U3C-Dd50oNb-.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-wcsKpCXJ.js → pegDiagram-2B236MQR-DAkr6gze.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-DrUVQFHJ.cjs → pegDiagram-2B236MQR-bKX-ZKzC.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-Rr_wC5sF.cjs → pieDiagram-ENE6RG2P-B8cH83xn.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-CiQf4zJi.js → pieDiagram-ENE6RG2P-gyx5Dpbp.js} +3 -3
- package/dist/{quadrantDiagram-ABIIQ3AL-CyWI3Wm4.cjs → quadrantDiagram-ABIIQ3AL-CiAJgRDO.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-Bpo7TY9t.js → quadrantDiagram-ABIIQ3AL-xZILczPe.js} +2 -2
- package/dist/{railroadDiagram-RFXS5EU6-BnBB57wY.cjs → railroadDiagram-RFXS5EU6-CTXxxWxY.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-C5ZXR4L6.js → railroadDiagram-RFXS5EU6-Dv0X8h3P.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-B0tl_Jwn.js → requirementDiagram-TGXJPOKE-B_ePOT-U.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-BwR88GAB.cjs → requirementDiagram-TGXJPOKE-g7KqDG7e.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-yTsdOW_q.js → sankeyDiagram-HTMAVEWB-CzroMhU1.js} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-DxHj5IG1.cjs → sankeyDiagram-HTMAVEWB-l3cb6KfU.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-z0fpzKzY.js → sequenceDiagram-DBY2YBRQ-BphR_qZU.js} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-DEO1ZsJr.cjs → sequenceDiagram-DBY2YBRQ-DWs2Fd9c.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-bpuOXTvv.cjs → sizeCapture-X5ZJPWSS-DOIhGAPK.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-Aj3-106E.js → sizeCapture-X5ZJPWSS-fWMcl2N0.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CkFpvJ5I.cjs → stateDiagram-2N3HPSRC--O7IzZV9.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DGJO0Pvj.js → stateDiagram-2N3HPSRC-DpTZo3qN.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-D0YDxME7.js → stateDiagram-v2-6OUMAXLB-D3FbMT4L.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-tnSDv_sy.cjs → stateDiagram-v2-6OUMAXLB-Dl74nBF-.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-Bib1XFM-.cjs → swimlanes-5IMT3BWC-BE0YGRlD.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-iMCo0rMv.js → swimlanes-5IMT3BWC-DqPY7MRn.js} +3 -3
- package/dist/{swimlanesDiagram-G3AALYLV-ywhyY4G6.cjs → swimlanesDiagram-G3AALYLV-0_f27kfN.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-CXNOMTdt.js → swimlanesDiagram-G3AALYLV-CodPdl1l.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-fqq6Gi2A.cjs → timeline-definition-FHXFAJF6-CmIelfpi.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-zRLuqX2O.js → timeline-definition-FHXFAJF6-VtuF5hlf.js} +2 -2
- package/dist/{vennDiagram-L72KCM5P-Cjc5fQRJ.js → vennDiagram-L72KCM5P-3CHStnNA.js} +1 -1
- package/dist/{vennDiagram-L72KCM5P-CAmFprGQ.cjs → vennDiagram-L72KCM5P-Bidxbv2H.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-DqSV5RVx.cjs → wardleyDiagram-EHGQE667-DbHvzT5N.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-Bo_e9LrE.js → wardleyDiagram-EHGQE667-DraTv4lo.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-ByrCKuTx.js → xychartDiagram-FW5EYKEG-7kwsQWao.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-rY9U7Gaf.cjs → xychartDiagram-FW5EYKEG-CbRKMtne.cjs} +1 -1
- package/package.json +9 -9
- package/dist/flowDiagram-23GEKE2U-BVOD68W1.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-CEegkqrO.js +0 -7
package/README.md
CHANGED
|
@@ -630,7 +630,7 @@ Total 17,600 MT
|
|
|
630
630
|
| `zoom=N` | 25, 30, 35, 42, 50, 59, 71, 84, 100, 119, 141, 168, 200, 238, 283, 336, 400 | 100 | The zoom in percent the grid starts at: one of the grid's zoom steps as the toolbar shows them (`SPREADSHEET_ZOOM_STEP_PERCENTS`), since zooming in and out moves one step from where it is. The toolbar's percent and Ctrl+Alt+`0` still return to 100 % |
|
|
631
631
|
| `toolbar=N` | 0, 1 | 1 | 0 leaves out the toolbar and the table's size; the grid's own keys stay (Ctrl+C, Ctrl+Alt+`=` / `-` / `0`, Alt+wheel, Alt+Shift+Arrow and Alt+Shift+`=`), while full screen, saving and the size buttons go with it |
|
|
632
632
|
| `headings=N` | 0, 1 | 1 | 0 leaves out the column letters, the row numbers and their corner, in the grid and in the plain table (Excel's "headings"; `header=` is the table's own header rows) |
|
|
633
|
-
| `autofit=N` | 0, 1 | 0 | 1 fits every column to the widest text of all its rows (header rows in bold) when the grid loads, when the table or the options change, and when a web font finishes loading; a column without text keeps its width |
|
|
633
|
+
| `autofit=N` | 0, 1 | 0 | 1 fits every column to the widest text of all its rows (header rows in bold) when the grid loads, when the table or the options change, and when a web font of the cells' families finishes loading; a column without text keeps its width |
|
|
634
634
|
|
|
635
635
|
- **Options are strict**: words are `key=value` separated by white space, each key at most once, each value a decimal integer
|
|
636
636
|
without a sign or leading zeros. An unknown key, a repeated key, a malformed word, a value out of range or a `zoom` that is
|
|
@@ -648,9 +648,10 @@ Total 17,600 MT
|
|
|
648
648
|
the viewport's height less two 44 px bands, so the page can always be scrolled past it. A box whose `height` reaches the
|
|
649
649
|
rows the grid shows shows every row instead (`data-aqmd-spreadsheet-whole` on the block): it takes their height, rounded
|
|
650
650
|
up plus 1 px (the grid's reported content height once it has loaded, so rows a reader makes taller still fit), with no
|
|
651
|
-
cap. Its rows never scroll, so the wheel and a finger's vertical swipe over the table reach the page,
|
|
652
|
-
scrolls the page to the active cell
|
|
653
|
-
|
|
651
|
+
cap. Its rows never scroll, so the wheel and a finger's vertical swipe over the table reach the page, a keyboard move
|
|
652
|
+
scrolls the page to the active cell, and PageUp / PageDown move by the part of the table the window shows (the grid's
|
|
653
|
+
0.17.1); the 1 px keeps a fractional zoom's rounding from making the rows scrollable, which would let the grid take the
|
|
654
|
+
finger. The box is never wider than the table: once the grid has loaded, its width is the
|
|
654
655
|
grid's content width (`onContentSizeChange`, rounded up plus 1 px), at most the column's, and a wider table scrolls inside
|
|
655
656
|
it. The block and its toolbar keep the column's width, so zooming or resizing a column never moves a toolbar control. `layout="fill"` lets a host that shows one table in a pane of its own (a file preview) give the
|
|
656
657
|
block the pane's height: the toolbar and the notice keep their own height and the box takes the rest, but never less
|
|
@@ -762,15 +763,22 @@ Total 17,600 MT
|
|
|
762
763
|
every row never scrolls its rows, so a swipe over it does); Tab moves inside the grid and Escape leaves it; column widths,
|
|
763
764
|
row heights and the zoom are not saved (a reload resets all three; the grid also resets the widths when the column count
|
|
764
765
|
changes and the heights when the row count changes, an edit that adds or removes a column or a row included); with
|
|
765
|
-
`autofit=1` a reader's resize lasts until the table or the options change
|
|
766
|
+
`autofit=1` a reader's resize lasts until the table or the options change or a web font of the cells' families
|
|
767
|
+
finishes loading (a font only other parts of the page use leaves it), and the fit is skipped (the default widths
|
|
766
768
|
stay) when the cells it measures — an editable table's spare row and column included — pass the grid's operation budget;
|
|
767
769
|
printing shows the visible part of the grid only; the toolbar's copy uses the asynchronous clipboard, which browsers grant
|
|
768
770
|
only to a secure page (https or localhost) and with their permission (Ctrl+C in the grid works anywhere).
|
|
769
771
|
- **What the display options trade**: `zoom` below 100 shrinks the text (WCAG 1.4.4): a reader zooms back with the toolbar or
|
|
770
|
-
the grid's keys, but with `toolbar=0` a reader with only a pointer has the page's own zoom left. `
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
the grid's keys, but with `toolbar=0` a reader with only a pointer has the page's own zoom left. `toolbar=0` also leaves
|
|
773
|
+
out the bands toggle, the size controls, copying the whole table, the saves and full screen; the grid's keys still copy
|
|
774
|
+
a selection (Ctrl+C), size the active column or row (Alt+Shift+Arrow, Alt+Shift+`=`) and zoom (Ctrl+Alt+`=` / `-`).
|
|
775
|
+
`headings=0` removes the header edges a pointer drags, so a column's or a row's size changes by Alt+Shift+Arrow or, with
|
|
776
|
+
the toolbar, by its size buttons (WCAG 2.5.7). The cells, their roles and the header rows read the same with or without
|
|
777
|
+
the headings, which are presentation only. Below 100 % a cell is less than 24 CSS px tall, and `autofit=1` makes a
|
|
778
|
+
column of short text narrower than 24 px, so such cells fall under WCAG 2.5.8's minimum target size for a pointer (the
|
|
779
|
+
keyboard reaches every cell); the active cell's frame stays at least 3 CSS px at every zoom. A box that shows every row
|
|
780
|
+
has no height cap, so a table wider than the column keeps its horizontal scroll bar at the table's bottom: a reader
|
|
781
|
+
scrolls the page down to it, or scrolls sideways over the table (Shift+wheel) or by the keys.
|
|
774
782
|
|
|
775
783
|
### Viewer toolbar
|
|
776
784
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-
|
|
2
|
-
import { p as f } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as n, U as o } from "./extractHeadings-
|
|
1
|
+
import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-DzmVBP7r.js";
|
|
2
|
+
import { p as f } from "./chunk-JWPE2WC7-BFvr7fTK.js";
|
|
3
|
+
import { _ as n, U as o } from "./extractHeadings-BnnTGmkL.js";
|
|
4
4
|
import { M as c, b as d } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
5
|
var v = d().RailroadAbnf.parser.LangiumParser, i = /* @__PURE__ */ n((e) => {
|
|
6
6
|
const r = e.alternatives.map(g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-4jP7ibIw.cjs"),u=require("./chunk-JWPE2WC7-Be4OZhVq.cjs"),n=require("./extractHeadings-DO9TMcyl.cjs"),i=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var p=i.createRailroadAbnfServices().RailroadAbnf.parser.LangiumParser,o=n.__name(e=>{const r=e.alternatives.map(c);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),c=n.__name(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),f=n.__name(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),d=n.__name(e=>{const r=b(e.primary);if(!e.repeat)return r;const{min:t,max:s}=f(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),b=n.__name(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),g=n.__name(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=n.__name(e=>{u.populateCommonDb(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(r=>a.db.addRule(g(r)))},"populateDb"),y={parse:n.__name(e=>{a.db.clear(),n.log.debug("[ABNF Parser] Starting Langium parse");const r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.MermaidParseError(r);const t=r.value;n.log.debug("[ABNF Parser] Parsed rules:",t.rules.length),v(t),n.log.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a.db}},_={parser:y,db:a.db,renderer:a.renderer,styles:a.getStyles};exports.diagram=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-
|
|
1
|
+
import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-BnnTGmkL.js";
|
|
2
2
|
function cn(l) {
|
|
3
3
|
return l.innerRadius;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./extractHeadings-
|
|
1
|
+
"use strict";const n=require("./extractHeadings-DO9TMcyl.cjs");function $(o){return o.innerRadius}function b(o){return o.outerRadius}function k(o){return o.startAngle}function _(o){return o.endAngle}function nn(o){return o&&o.padAngle}function en(o,x,D,P,h,v,S,s){var E=D-o,r=P-x,e=S-h,p=s-v,i=p*E-e*r;if(!(i*i<n.epsilon))return i=(e*(x-v)-p*(o-h))/i,[o+i*E,x+i*r]}function M(o,x,D,P,h,v,S){var s=o-D,E=x-P,r=(S?v:-v)/n.sqrt(s*s+E*E),e=r*E,p=-r*s,i=o+e,u=x+p,c=D+e,f=P+p,j=(i+c)/2,l=(u+f)/2,y=c-i,g=f-u,A=y*y+g*g,R=h-v,T=i*f-c*u,H=(g<0?-1:1)*n.sqrt(n.max(0,R*R*A-T*T)),I=(T*g-y*H)/A,O=(-T*y-g*H)/A,q=(T*g+y*H)/A,d=(-T*y+g*H)/A,m=I-j,a=O-l,t=q-j,z=d-l;return m*m+a*a>t*t+z*z&&(I=q,O=d),{cx:I,cy:O,x01:-e,y01:-p,x11:I*(h/R-1),y11:O*(h/R-1)}}function an(){var o=$,x=b,D=n.constant(0),P=null,h=k,v=_,S=nn,s=null,E=n.withPath(r);function r(){var e,p,i=+o.apply(this,arguments),u=+x.apply(this,arguments),c=h.apply(this,arguments)-n.halfPi,f=v.apply(this,arguments)-n.halfPi,j=n.abs(f-c),l=f>c;if(s||(s=e=E()),u<i&&(p=u,u=i,i=p),!(u>n.epsilon))s.moveTo(0,0);else if(j>n.tau-n.epsilon)s.moveTo(u*n.cos(c),u*n.sin(c)),s.arc(0,0,u,c,f,!l),i>n.epsilon&&(s.moveTo(i*n.cos(f),i*n.sin(f)),s.arc(0,0,i,f,c,l));else{var y=c,g=f,A=c,R=f,T=j,H=j,I=S.apply(this,arguments)/2,O=I>n.epsilon&&(P?+P.apply(this,arguments):n.sqrt(i*i+u*u)),q=n.min(n.abs(u-i)/2,+D.apply(this,arguments)),d=q,m=q,a,t;if(O>n.epsilon){var z=n.asin(O/i*n.sin(I)),F=n.asin(O/u*n.sin(I));(T-=z*2)>n.epsilon?(z*=l?1:-1,A+=z,R-=z):(T=0,A=R=(c+f)/2),(H-=F*2)>n.epsilon?(F*=l?1:-1,y+=F,g-=F):(H=0,y=g=(c+f)/2)}var B=u*n.cos(y),C=u*n.sin(y),G=i*n.cos(R),J=i*n.sin(R);if(q>n.epsilon){var K=u*n.cos(g),L=u*n.sin(g),N=i*n.cos(A),Q=i*n.sin(A),w;if(j<n.pi)if(w=en(B,C,N,Q,K,L,G,J)){var U=B-w[0],V=C-w[1],W=K-w[0],X=L-w[1],Y=1/n.sin(n.acos((U*W+V*X)/(n.sqrt(U*U+V*V)*n.sqrt(W*W+X*X)))/2),Z=n.sqrt(w[0]*w[0]+w[1]*w[1]);d=n.min(q,(i-Z)/(Y-1)),m=n.min(q,(u-Z)/(Y+1))}else d=m=0}H>n.epsilon?m>n.epsilon?(a=M(N,Q,B,C,u,m,l),t=M(K,L,G,J,u,m,l),s.moveTo(a.cx+a.x01,a.cy+a.y01),m<q?s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,u,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),!l),s.arc(t.cx,t.cy,m,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):(s.moveTo(B,C),s.arc(0,0,u,y,g,!l)):s.moveTo(B,C),!(i>n.epsilon)||!(T>n.epsilon)?s.lineTo(G,J):d>n.epsilon?(a=M(G,J,K,L,i,-d,l),t=M(B,C,N,Q,i,-d,l),s.lineTo(a.cx+a.x01,a.cy+a.y01),d<q?s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,i,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),l),s.arc(t.cx,t.cy,d,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):s.arc(0,0,i,R,A,l)}if(s.closePath(),e)return s=null,e+""||null}return r.centroid=function(){var e=(+o.apply(this,arguments)+ +x.apply(this,arguments))/2,p=(+h.apply(this,arguments)+ +v.apply(this,arguments))/2-n.pi/2;return[n.cos(p)*e,n.sin(p)*e]},r.innerRadius=function(e){return arguments.length?(o=typeof e=="function"?e:n.constant(+e),r):o},r.outerRadius=function(e){return arguments.length?(x=typeof e=="function"?e:n.constant(+e),r):x},r.cornerRadius=function(e){return arguments.length?(D=typeof e=="function"?e:n.constant(+e),r):D},r.padRadius=function(e){return arguments.length?(P=e==null?null:typeof e=="function"?e:n.constant(+e),r):P},r.startAngle=function(e){return arguments.length?(h=typeof e=="function"?e:n.constant(+e),r):h},r.endAngle=function(e){return arguments.length?(v=typeof e=="function"?e:n.constant(+e),r):v},r.padAngle=function(e){return arguments.length?(S=typeof e=="function"?e:n.constant(+e),r):S},r.context=function(e){return arguments.length?(s=e??null,r):s},r}exports.d3arc=an;
|