@aiquants/markdown 11.1.1 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -8
- package/dist/{abnfDiagram-VRR7QNED-B9EKZZCe.js → abnfDiagram-VRR7QNED-BeF2m43m.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-BUUUWvsh.cjs → abnfDiagram-VRR7QNED-z9PQz34c.cjs} +1 -1
- package/dist/{arc-BWBxoAtH.js → arc-DVv-chqL.js} +1 -1
- package/dist/{arc-BdyZzyRm.cjs → arc-xerpbkWV.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-C-j7rcTN.cjs → architectureDiagram-ZJ3FMSHR-BbhKAjY1.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-C82P-Or8.js → architectureDiagram-ZJ3FMSHR-DziLxKGU.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-B28l1266.cjs → blockDiagram-677ZJIJ3-BE9toHXL.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-DQwdwRWd.js → blockDiagram-677ZJIJ3-BT6gMOEE.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-BHj3qRWp.cjs → c4Diagram-LMCZKHZV-0_pnNAW1.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-BKS-5aGN.js → c4Diagram-LMCZKHZV-DLjj1mUU.js} +2 -2
- package/dist/{channel-C_cP5iR1.cjs → channel-BZ_MerpF.cjs} +1 -1
- package/dist/{channel-CItIM75V.js → channel-GmFRsEfU.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-D52R-aDh.js → chunk-2Q5K7J3B-B7o1xlre.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-B0pXO2t7.cjs → chunk-2Q5K7J3B-R9eJ__01.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-e82Hm1LK.cjs → chunk-32BRIVSS-BudTBoqS.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-DUlLCGoQ.js → chunk-32BRIVSS-CFyR9274.js} +1 -1
- package/dist/{chunk-5VM5RSS4-DmYNlEib.cjs → chunk-5VM5RSS4-CMQUCJJO.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-WjZ3Kfp-.js → chunk-5VM5RSS4-POYkcQny.js} +1 -1
- package/dist/{chunk-EX3LRPZG-VOMDBd7V.cjs → chunk-EX3LRPZG-BzW1LAku.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-CZeIl-CM.js → chunk-EX3LRPZG-pn3k2_mC.js} +4 -4
- package/dist/{chunk-JWPE2WC7-XtdP0lPA.js → chunk-JWPE2WC7-CvNpq2Dn.js} +1 -1
- package/dist/{chunk-JWPE2WC7-DqZGyZxO.cjs → chunk-JWPE2WC7-fEYsRZ39.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-BGmMcnEb.js → chunk-MOJQB5TN-Bn7BQ7kl.js} +1 -1
- package/dist/{chunk-MOJQB5TN-C-I6Np3F.cjs → chunk-MOJQB5TN-CjVzlnml.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-BU0xXgGZ.cjs → chunk-PUDLZKDR-BobvD5Go.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-CVDCE8CQ.js → chunk-PUDLZKDR-xcx8OM2R.js} +6 -6
- package/dist/{chunk-RYQCIY6F-CazlBHVq.js → chunk-RYQCIY6F-DOnA9ySw.js} +1 -1
- package/dist/{chunk-RYQCIY6F-CzgqsQUG.cjs → chunk-RYQCIY6F-DTEci8k9.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-BHcjsh4X.cjs → chunk-V7JOEXUC-BlnXlLuz.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-DjZLR1xm.js → chunk-V7JOEXUC-CWBKCtnP.js} +5 -5
- package/dist/{chunk-VR4S4FIN-BdHVIRqw.js → chunk-VR4S4FIN-CUhNDIJC.js} +1 -1
- package/dist/{chunk-VR4S4FIN-DKCdFxYZ.cjs → chunk-VR4S4FIN-Cu6o180B.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-Z_rLeBGt.js → chunk-XXDRQBXY-BljQ697X.js} +1 -1
- package/dist/{chunk-XXDRQBXY-DqQWFq5n.cjs → chunk-XXDRQBXY-DbOPhA9H.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-x_3zaG1u.js → classDiagram-OUVF2IWQ-BBgwk_XP.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-HX7id7VH.cjs → classDiagram-OUVF2IWQ-VaejQYwI.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-x_3zaG1u.js → classDiagram-v2-EOCWNBFH-BBgwk_XP.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-HX7id7VH.cjs → classDiagram-v2-EOCWNBFH-VaejQYwI.cjs} +1 -1
- package/dist/components/svgImageLabels.d.ts +3 -0
- package/dist/components/svgRaster.d.ts +8 -0
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-Cyz8e4tp.js → cose-bilkent-JH36ORCC-B9kCeAhN.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-CWD_TQFn.cjs → cose-bilkent-JH36ORCC-DLDZAmwu.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-uBcUSDG3.js → cynefinDiagram-TSTJHNR4-1SLdTc8J.js} +2 -2
- package/dist/{cynefinDiagram-TSTJHNR4-DEFr3c5a.cjs → cynefinDiagram-TSTJHNR4-f8TPoM2I.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Bbd2N7Iu.js → dagre-VKFMJZFB-Cy4uEjUS.js} +2 -2
- package/dist/{dagre-VKFMJZFB-DByE8-C9.cjs → dagre-VKFMJZFB-JVRHYOgy.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-DPEX0cuZ.cjs → diagram-FQU43EPY-CsXwb5wa.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CgQwvhUg.js → diagram-FQU43EPY-DgIV-WCB.js} +2 -2
- package/dist/{diagram-G47NLZAW-BZsnXoS1.js → diagram-G47NLZAW-CBcS3zVm.js} +3 -3
- package/dist/{diagram-G47NLZAW-50nFSHRv.cjs → diagram-G47NLZAW-kyM05TuO.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-TShr7BQh.cjs → diagram-NH7WQ7WH-DMaPIfEU.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-eHSJPLfa.js → diagram-NH7WQ7WH-DY0ifoMa.js} +2 -2
- package/dist/{diagram-OA4YK3LP-Dphe8PdD.js → diagram-OA4YK3LP-DVx73wx0.js} +3 -3
- package/dist/{diagram-OA4YK3LP-r5leQ0jD.cjs → diagram-OA4YK3LP-I3x24OIe.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-pgeZBaVl.js → diagram-WEI45ONY-CJtAUskt.js} +2 -2
- package/dist/{diagram-WEI45ONY-BaT3chSs.cjs → diagram-WEI45ONY-epGzu1nR.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-D3EvTRKP.cjs → ebnfDiagram-CCIWWBDH-2ijWeTrW.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-Hf655Cjt.js → ebnfDiagram-CCIWWBDH-CvFnz51O.js} +3 -3
- package/dist/{erDiagram-Q63AITRT-fnT4vBqH.cjs → erDiagram-Q63AITRT-BDzCTiHo.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-YkVu4ce1.js → erDiagram-Q63AITRT-FSDxCDSt.js} +4 -4
- package/dist/{extractHeadings-DLNXUqAG.cjs → extractHeadings-Bza52qly.cjs} +74 -74
- package/dist/{extractHeadings-B8u8yqfC.js → extractHeadings-DCOCUzhN.js} +4049 -3977
- package/dist/flowDiagram-23GEKE2U-Caq5LuWz.js +7 -0
- package/dist/flowDiagram-23GEKE2U-nmpL2NN0.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-D-SkIoPg.js → ganttDiagram-NO4QXBWP-5pOFmgBZ.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-DC3d7PwO.cjs → ganttDiagram-NO4QXBWP-bD4zBw8I.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-CjYttPlh.js → gitGraphDiagram-IHSO6WYX-BIc0pTB3.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-DFUHvrlM.cjs → gitGraphDiagram-IHSO6WYX-rROFDTsW.cjs} +1 -1
- 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-CM_qocjy.cjs → infoDiagram-FWYZ7A6U-DFKEM7LV.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-DpELmEdt.js → infoDiagram-FWYZ7A6U-DhTRU4_g.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-doZ6ry1Q.js → ishikawaDiagram-FXEZZL3T-CYN0eWUu.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-uPR_QB-P.cjs → ishikawaDiagram-FXEZZL3T-DREhAN6W.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-B3Gvqmgz.js → journeyDiagram-5HDEW3XC-BFcCFydc.js} +4 -4
- package/dist/{journeyDiagram-5HDEW3XC-DKxRZGZY.cjs → journeyDiagram-5HDEW3XC-wh4cEokA.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-XEl_CQHs.js → kanban-definition-HUTT4EX6-DUKjgxOb.js} +2 -2
- package/dist/{kanban-definition-HUTT4EX6-CmEtZdgP.cjs → kanban-definition-HUTT4EX6-T2ch6_fu.cjs} +1 -1
- package/dist/{linear-CJwjH-8_.js → linear-C-tJG02v.js} +1 -1
- package/dist/{linear-BJeuATkk.cjs → linear-CeH9hz3W.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-B9zpExvk.cjs → mindmap-definition-LN4V7U3C-D9OA5nBQ.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-Cd2v2Y8Z.js → mindmap-definition-LN4V7U3C-DBzwfxML.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-DFYHpIqe.js → pegDiagram-2B236MQR-BHuZzOGn.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-DWCHB7kd.cjs → pegDiagram-2B236MQR-D6cTyqKd.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-CD581vqD.js → pieDiagram-ENE6RG2P-4zJR-Rxs.js} +3 -3
- package/dist/{pieDiagram-ENE6RG2P-LLQzK8bv.cjs → pieDiagram-ENE6RG2P-O7KG67we.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BhzJSnax.js → quadrantDiagram-ABIIQ3AL-CGZVeuBW.js} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-DjC_l1Fw.cjs → quadrantDiagram-ABIIQ3AL-CjPInyW4.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-C1tKXwxN.cjs → railroadDiagram-RFXS5EU6-BSqAF8yH.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-DmVOfohB.js → railroadDiagram-RFXS5EU6-C7g90jvH.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-DDpRa8G1.js → requirementDiagram-TGXJPOKE-B_rVj87i.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-DkGh_vLW.cjs → requirementDiagram-TGXJPOKE-D4HAfEXd.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CkCLaKDd.cjs → sankeyDiagram-HTMAVEWB-Kh00NLoF.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-3UuuubkA.js → sankeyDiagram-HTMAVEWB-RjDINztl.js} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CRC__bVC.js → sequenceDiagram-DBY2YBRQ-C8GGLaka.js} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-DcWj7JMz.cjs → sequenceDiagram-DBY2YBRQ-CPHDsiyC.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-Wb9vgGKU.cjs → sizeCapture-X5ZJPWSS-CsqWQvT7.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-DuxhTDeu.js → sizeCapture-X5ZJPWSS-i1oI1gCf.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DGfmIJEN.js → stateDiagram-2N3HPSRC-C2heZ3Mv.js} +2 -2
- package/dist/{stateDiagram-2N3HPSRC-CMBwcQE6.cjs → stateDiagram-2N3HPSRC-g7pEw9fc.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-7UPtJqUO.cjs → stateDiagram-v2-6OUMAXLB-B3Ohqiwm.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-ZyMZ4vTG.js → stateDiagram-v2-6OUMAXLB-CPhVBWW3.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-CpPHvYma.js → swimlanes-5IMT3BWC-DF44ln1f.js} +3 -3
- package/dist/{swimlanes-5IMT3BWC-CZzTj7hi.cjs → swimlanes-5IMT3BWC-DJUZ4d9B.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-ISXX19Uv.js → swimlanesDiagram-G3AALYLV-CvIDy8QL.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-By4sYWRa.cjs → swimlanesDiagram-G3AALYLV-DYsRMOrz.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-YNTe1gIW.js → timeline-definition-FHXFAJF6-DIBwpFvl.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-CLuuXV7h.cjs → timeline-definition-FHXFAJF6-DuHFAvAd.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-B2jRtjMe.js → vennDiagram-L72KCM5P-BUMlGoKi.js} +1 -1
- package/dist/{vennDiagram-L72KCM5P-DFt6CSPi.cjs → vennDiagram-L72KCM5P-DBpsLKf-.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-B1RAAbXU.cjs → wardleyDiagram-EHGQE667-BCowwfdI.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-ZOmJLYv5.js → wardleyDiagram-EHGQE667-uGh9tvhq.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-D1mJfFkC.cjs → xychartDiagram-FW5EYKEG-D5alUig9.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-JwURYtLn.js → xychartDiagram-FW5EYKEG-bhSUxFht.js} +2 -2
- package/package.json +7 -7
- package/dist/flowDiagram-23GEKE2U-B5AFLHup.js +0 -7
- package/dist/flowDiagram-23GEKE2U-BaQLONgC.cjs +0 -1
package/README.md
CHANGED
|
@@ -492,8 +492,9 @@ A block rendered without such a sheet shows plain inherited text: the components
|
|
|
492
492
|
|
|
493
493
|
Give `MarkdownViewer` or `MarkdownRenderer` a reader of image sources (`imageSource`, a `MarkdownImageSourceReader`),
|
|
494
494
|
and every storage SVG image that stands alone in its paragraph shows its source a press away: a toolbar above the image
|
|
495
|
-
whose **Source** toggle swaps the image for the text of its file, as written, and back
|
|
496
|
-
|
|
495
|
+
whose **Source** toggle swaps the image for the text of its file, as written, and back, and whose **Copy** puts the
|
|
496
|
+
image (as a PNG any application pastes as an image) or that text on the clipboard. Without a reader every image renders
|
|
497
|
+
as written.
|
|
497
498
|
|
|
498
499
|
- **Which images**: a paragraph whose only child (besides white space) is an `img` that, as the allow list keeps it,
|
|
499
500
|
carries a `data-asset-src` ending in `.svg` (any ASCII letter case), a `src`, and no `data-asset-exists="false"`, in a
|
|
@@ -513,12 +514,28 @@ renders as written.
|
|
|
513
514
|
or the block goes away. Until the answer it shows a loading line; then the text in a `<pre>` that wraps (a one-line
|
|
514
515
|
SVG never runs out sideways), never interprets it, takes the focus (the keyboard scrolls it) and is capped at the
|
|
515
516
|
viewport height less 2 × 44 px (`--aqmd-viewport-cap`, as the diagram and table boxes are) with its own scrolling. A
|
|
516
|
-
source the host cut gets a note under it
|
|
517
|
-
as
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
517
|
+
source the host cut gets a note under it. The text sits in a `<code>` inside the `<pre>`, so the display style colours
|
|
518
|
+
it as it colours its code blocks (Zenn's white text on its dark code background in either colour scheme). A failure
|
|
519
|
+
shows its text, with **Try again** when it may pass (the focus
|
|
520
|
+
moves to the toggle as the button goes). The press keeps the focus on the toggle (`aria-pressed`); the choice is not
|
|
521
|
+
kept, so the block opens on the image.
|
|
522
|
+
- **Copying**: **Copy** shows while the image shows and while the whole source shows, and tells the outcome in the
|
|
523
|
+
block's status line.
|
|
524
|
+
- With the image shown (`copyImage`, its outcomes `copiedImage` and `copyImageFailed`) it copies the image to paste as
|
|
525
|
+
an image: it reads the file through the reader, draws it on a canvas at the SVG's own width and height (the size a
|
|
526
|
+
browser's own Copy image gives; a root with only a `viewBox` is drawn at the size the document shows it), within
|
|
527
|
+
4096 × 4096 pixels of area and 32,767 pixels a side, and hands the clipboard the PNG as an `image/png`
|
|
528
|
+
`ClipboardItem` within the press, so a browser that only writes during a press (Safari) takes it too. The SVG is
|
|
529
|
+
drawn from a blob URL of the page's own origin, so the canvas stays readable whatever origin the image comes from,
|
|
530
|
+
and, as the image itself, loads nothing outside the file. A file the host cut, a read that fails, or a file the
|
|
531
|
+
browser cannot draw copies nothing and says it could not copy, as does a browser without `ClipboardItem`.
|
|
532
|
+
- With the whole source shown (`copy`, its outcomes `copied` and `copyFailed`) it writes the text exactly as read. A
|
|
533
|
+
source the host cut never offers Copy, so the clipboard never gets part of a file.
|
|
534
|
+
- Leaving the block aborts the read.
|
|
535
|
+
- **Toolbar**: 44 × 44 px controls in a wrapping row at the inline end that never covers the image, Copy first and the
|
|
536
|
+
Source toggle at the row's end (so the toggle stays put whether Copy shows or not), one tab stop whose controls the
|
|
537
|
+
arrow keys, Home and End walk, and the palette and focus ring the Mermaid and spreadsheet toolbars share
|
|
538
|
+
(`markdown.css`).
|
|
522
539
|
- **Layout**: the block replaces the paragraph with a `div` that holds the toolbar and, while the image shows, the
|
|
523
540
|
original paragraph (so the image keeps the paragraph's spacing). The root carries the paragraph's `data-source-lines`;
|
|
524
541
|
the paragraph inside it carries none.
|
|
@@ -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-Bn7BQ7kl.js";
|
|
2
|
+
import { p as f } from "./chunk-JWPE2WC7-CvNpq2Dn.js";
|
|
3
|
+
import { _ as n, U as o } from "./extractHeadings-DCOCUzhN.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-CjVzlnml.cjs"),u=require("./chunk-JWPE2WC7-fEYsRZ39.cjs"),n=require("./extractHeadings-Bza52qly.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-DCOCUzhN.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-Bza52qly.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;
|