hexagon-editor 0.1.5 → 0.1.6
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 +24 -11
- package/dist/MarkdownEditor.vue.d.ts +28 -26
- package/dist/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
- package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
- package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
- package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
- package/dist/configure.d.ts +0 -2
- package/dist/configure.d.ts.map +1 -1
- package/dist/configure.js +11 -12
- package/dist/core/basic-editor-markdown.d.ts.map +1 -1
- package/dist/core/basic-editor-renderers.d.ts +6 -4
- package/dist/core/basic-editor-renderers.d.ts.map +1 -1
- package/dist/core/basic-editor-types.d.ts +2 -0
- package/dist/core/basic-editor-types.d.ts.map +1 -1
- package/dist/core/basic-editor.d.ts +1 -1
- package/dist/core/basic-editor.d.ts.map +1 -1
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core.js +28 -31
- package/dist/extensions.js +1 -1
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
- package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
- package/dist/index-D_CMntQU.js +3173 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3611 -1283
- package/dist/{markup-commands-B2NMfYHE.js → markup-commands-BYsx8ADT.js} +1989 -1963
- package/dist/presets.js +2 -2
- package/dist/public-types.d.ts +22 -0
- package/dist/public-types.d.ts.map +1 -1
- package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
- package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/renderer/markdown.d.ts +2 -1
- package/dist/renderer/markdown.d.ts.map +1 -1
- package/dist/renderer.css +1 -1
- package/dist/renderer.js +142 -146
- package/package.json +106 -108
- package/dist/MarkdownEditorLinkForm.css +0 -1
- package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
- package/dist/arc-y6UeoJpJ.js +0 -83
- package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
- package/dist/base.css +0 -1
- package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
- package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
- package/dist/channel-BwXGcavV.js +0 -5
- package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
- package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
- package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
- package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
- package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
- package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
- package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
- package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
- package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
- package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
- package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
- package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
- package/dist/core/optional-renderers.d.ts +0 -9
- package/dist/core/optional-renderers.d.ts.map +0 -1
- package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
- package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
- package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
- package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
- package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
- package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
- package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
- package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
- package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
- package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
- package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
- package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
- package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
- package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
- package/dist/graph-DAHC4kPm.js +0 -1545
- package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
- package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
- package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
- package/dist/katex-ByXcxnHy.js +0 -14436
- package/dist/katex-DoRnZ_sp.js +0 -11682
- package/dist/layout-DBbo_M5I.js +0 -1519
- package/dist/linear-BEdRfKba.js +0 -259
- package/dist/map-DRdzG8Ho.js +0 -224
- package/dist/markup-commands.css +0 -1
- package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
- package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
- package/dist/optional-renderers-BalvqqvY.js +0 -11
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
- package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
- package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
- package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
- package/dist/renderer/mermaid-runtime.d.ts +0 -4
- package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
- package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
- package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
- package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
- package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
- package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
- package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
- package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
- package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
- package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
- package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
- package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
- package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
package/package.json
CHANGED
|
@@ -1,110 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"vue-tsc": "^3.0.0"
|
|
109
|
-
}
|
|
2
|
+
"name": "hexagon-editor",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "Vue 3 Markdown/YFM WYSIWYG and markup editor",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./classname": {
|
|
16
|
+
"types": "./dist/classname.d.ts",
|
|
17
|
+
"import": "./dist/classname.js"
|
|
18
|
+
},
|
|
19
|
+
"./configure": {
|
|
20
|
+
"types": "./dist/configure.d.ts",
|
|
21
|
+
"import": "./dist/configure.js"
|
|
22
|
+
},
|
|
23
|
+
"./core": {
|
|
24
|
+
"types": "./dist/core/index.d.ts",
|
|
25
|
+
"import": "./dist/core.js"
|
|
26
|
+
},
|
|
27
|
+
"./extensions": {
|
|
28
|
+
"types": "./dist/extensions/index.d.ts",
|
|
29
|
+
"import": "./dist/extensions.js"
|
|
30
|
+
},
|
|
31
|
+
"./forms": {
|
|
32
|
+
"types": "./dist/forms/index.d.ts",
|
|
33
|
+
"import": "./dist/forms.js"
|
|
34
|
+
},
|
|
35
|
+
"./i18n": {
|
|
36
|
+
"types": "./dist/i18n/index.d.ts",
|
|
37
|
+
"import": "./dist/i18n.js"
|
|
38
|
+
},
|
|
39
|
+
"./presets": {
|
|
40
|
+
"types": "./dist/presets/index.d.ts",
|
|
41
|
+
"import": "./dist/presets.js"
|
|
42
|
+
},
|
|
43
|
+
"./renderer": {
|
|
44
|
+
"types": "./dist/renderer/index.d.ts",
|
|
45
|
+
"import": "./dist/renderer.js"
|
|
46
|
+
},
|
|
47
|
+
"./specs": {
|
|
48
|
+
"types": "./dist/extensions/specs.d.ts",
|
|
49
|
+
"import": "./dist/specs.js"
|
|
50
|
+
},
|
|
51
|
+
"./toolbar": {
|
|
52
|
+
"types": "./dist/toolbar/index.d.ts",
|
|
53
|
+
"import": "./dist/toolbar.js"
|
|
54
|
+
},
|
|
55
|
+
"./style.css": "./dist/index.css",
|
|
56
|
+
"./renderer.css": "./dist/renderer.css"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist",
|
|
60
|
+
"LICENSE",
|
|
61
|
+
"THIRD_PARTY_NOTICES.md"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "vite build && vite build --mode renderer",
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.json",
|
|
67
|
+
"lint": "eslint src --max-warnings=0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"vue": "^3.5.0"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@codemirror/commands": "^6.8.0",
|
|
74
|
+
"@codemirror/lang-markdown": "^6.3.0",
|
|
75
|
+
"@codemirror/language": "^6.10.0",
|
|
76
|
+
"@codemirror/state": "^6.5.0",
|
|
77
|
+
"@codemirror/view": "^6.36.0",
|
|
78
|
+
"@floating-ui/dom": "^1.7.0",
|
|
79
|
+
"markdown-it": "^14.1.0",
|
|
80
|
+
"markdown-it-deflist": "^4.0.0",
|
|
81
|
+
"markdown-it-ins": "^4.0.0",
|
|
82
|
+
"markdown-it-mark": "^4.0.0",
|
|
83
|
+
"markdown-it-sub": "^2.0.0",
|
|
84
|
+
"prosemirror-codemark": "^0.4.2",
|
|
85
|
+
"prosemirror-commands": "^1.6.0",
|
|
86
|
+
"prosemirror-dropcursor": "^1.8.3",
|
|
87
|
+
"prosemirror-history": "^1.4.0",
|
|
88
|
+
"prosemirror-inputrules": "^1.5.0",
|
|
89
|
+
"prosemirror-keymap": "^1.2.0",
|
|
90
|
+
"prosemirror-markdown": "^1.13.0",
|
|
91
|
+
"prosemirror-model": "^1.24.0",
|
|
92
|
+
"prosemirror-schema-list": "^1.5.0",
|
|
93
|
+
"prosemirror-state": "^1.4.0",
|
|
94
|
+
"prosemirror-tables": "^1.8.0",
|
|
95
|
+
"prosemirror-transform": "^1.12.0",
|
|
96
|
+
"prosemirror-view": "^1.38.0"
|
|
97
|
+
},
|
|
98
|
+
"devDependencies": {
|
|
99
|
+
"@types/markdown-it": "^14.1.2",
|
|
100
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
101
|
+
"@vue/server-renderer": "^3.5.0",
|
|
102
|
+
"jsdom": "^30.0.1",
|
|
103
|
+
"vite": "^7.0.0",
|
|
104
|
+
"vite-plugin-dts": "^4.5.0",
|
|
105
|
+
"vue": "^3.5.0",
|
|
106
|
+
"vue-tsc": "^3.0.0"
|
|
107
|
+
}
|
|
110
108
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.markdown-editor-form{--markdown-background: #fff;--markdown-border: #d8dbe0;--markdown-error: #c9341c;--markdown-focus-background: #e9efff;--markdown-focus-text: #1d3c93;--markdown-muted-text: #667085;--markdown-text: #202125;z-index:10;box-sizing:border-box;width:min(24rem,calc(100vw - 1rem));padding:.75rem;border:1px solid var(--markdown-border);border-radius:.5rem;box-shadow:0 .5rem 1.25rem #0000002e;color:var(--markdown-text);background:var(--markdown-background)}.markdown-editor-form[data-theme=dark]{--markdown-background: #1e2024;--markdown-border: #464b55;--markdown-error: #ff8f7a;--markdown-focus-background: #2d416e;--markdown-focus-text: #d7e2ff;--markdown-muted-text: #aab0bb;--markdown-text: #f1f3f5}@media(prefers-color-scheme:dark){.markdown-editor-form[data-theme=auto]{--markdown-background: #1e2024;--markdown-border: #464b55;--markdown-error: #ff8f7a;--markdown-focus-background: #2d416e;--markdown-focus-text: #d7e2ff;--markdown-muted-text: #aab0bb;--markdown-text: #f1f3f5}}.markdown-editor-form__layout{display:grid;gap:.5rem}.markdown-editor-form__row{display:grid;gap:.2rem;min-width:0}.markdown-editor-form__label{font-size:.75rem;color:var(--markdown-muted-text, var(--markdown-text))}.markdown-editor-form__input{box-sizing:border-box;min-width:0;width:100%;height:2rem;padding:0 .5rem;border:1px solid var(--markdown-border);border-radius:.25rem;color:inherit;background:var(--markdown-background);font:inherit}.markdown-editor-form__input:focus-visible{outline:2px solid var(--markdown-focus-text);outline-offset:1px}.markdown-editor-form__input--error{border-color:var(--markdown-error)}.markdown-editor-form__input:disabled{cursor:not-allowed;opacity:.55}.markdown-editor-form__input:read-only{background:var(--markdown-focus-background)}.markdown-editor-form__help{font-size:.7rem;color:var(--markdown-muted-text, var(--markdown-text))}.markdown-editor-form__help--error{color:var(--markdown-error)}.markdown-editor-form__footer{display:flex;justify-content:flex-end;gap:.25rem;margin-top:.5rem}.markdown-editor-form__footer button{min-width:2rem;height:2rem;padding:0 .5rem;border:0;border-radius:.25rem;color:var(--markdown-text);background:transparent;font:inherit;cursor:pointer}.markdown-editor-form__footer button:hover{color:var(--markdown-focus-text);background:var(--markdown-focus-background)}.markdown-editor-form__footer button:focus-visible{outline:2px solid var(--markdown-focus-text);outline-offset:1px}.markdown-editor-form__footer button:disabled{cursor:not-allowed;opacity:.55}@media(max-width:480px){.markdown-editor-form{width:calc(100vw - .5rem);padding:.625rem}.markdown-editor-form__footer{flex-wrap:wrap}}.markdown-editor-form__sizes[data-v-396f2d6a]{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.35rem}.markdown-editor-image-upload[data-v-396f2d6a]{display:flex;align-items:center;justify-content:center;min-height:2.25rem;padding:0 .75rem;border:1px dashed var(--markdown-border);border-radius:.375rem;cursor:pointer}.markdown-editor-image-upload[data-v-396f2d6a]:hover,.markdown-editor-image-upload[data-v-396f2d6a]:focus-within{border-color:var(--markdown-focus-text)}.markdown-editor-image-upload--disabled[data-v-396f2d6a]{cursor:default;opacity:.55}.markdown-editor-image-upload input[data-v-396f2d6a]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.markdown-editor-image-upload__error[data-v-396f2d6a]{margin:-.35rem 0 0;color:#d7504b;font-size:.75rem}.markdown-editor__form-checkbox[data-v-127342b7]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.markdown-editor__form-checkbox input[data-v-127342b7]{width:1rem;height:1rem;margin:0;accent-color:#5282ff}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { g as p, r as u, d as a } from "./chunk-6Q2QTUOP-DNiML-50.js";
|
|
2
|
-
import { p as f } from "./chunk-JWPE2WC7-DAjx3Kjr.js";
|
|
3
|
-
import { _ as n, l as o } from "./mermaid.core-CR0bA2Wa.js";
|
|
4
|
-
import { M as c, b as d } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
|
-
var v = d().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ n((e) => {
|
|
6
|
-
const r = e.alternatives.map(g);
|
|
7
|
-
return r.length === 1 ? r[0] : {
|
|
8
|
-
type: "choice",
|
|
9
|
-
alternatives: r
|
|
10
|
-
};
|
|
11
|
-
}, "transformAlternation"), g = /* @__PURE__ */ n((e) => {
|
|
12
|
-
const r = e.elements.map(y);
|
|
13
|
-
return r.length === 1 ? r[0] : {
|
|
14
|
-
type: "sequence",
|
|
15
|
-
elements: r
|
|
16
|
-
};
|
|
17
|
-
}, "transformConcatenation"), b = /* @__PURE__ */ n((e) => {
|
|
18
|
-
if (e.includes("*")) {
|
|
19
|
-
const [t, s] = e.split("*"), i = t ? parseInt(t, 10) : 0, m = s ? parseInt(s, 10) : 1 / 0;
|
|
20
|
-
return { min: i, max: m };
|
|
21
|
-
}
|
|
22
|
-
const r = parseInt(e, 10);
|
|
23
|
-
return { min: r, max: r };
|
|
24
|
-
}, "parseRepeat"), y = /* @__PURE__ */ n((e) => {
|
|
25
|
-
const r = A(e.primary);
|
|
26
|
-
if (!e.repeat)
|
|
27
|
-
return r;
|
|
28
|
-
const { min: t, max: s } = b(e.repeat);
|
|
29
|
-
return t === 0 && s === 1 ? { type: "optional", element: r } : {
|
|
30
|
-
type: "repetition",
|
|
31
|
-
element: r,
|
|
32
|
-
min: t,
|
|
33
|
-
max: s
|
|
34
|
-
};
|
|
35
|
-
}, "transformElement"), A = /* @__PURE__ */ n((e) => {
|
|
36
|
-
switch (e.$type) {
|
|
37
|
-
case "AbnfStringLiteral":
|
|
38
|
-
return {
|
|
39
|
-
type: "terminal",
|
|
40
|
-
value: e.value
|
|
41
|
-
};
|
|
42
|
-
case "AbnfNumVal":
|
|
43
|
-
return {
|
|
44
|
-
type: "terminal",
|
|
45
|
-
value: e.value
|
|
46
|
-
};
|
|
47
|
-
case "AbnfRuleName":
|
|
48
|
-
return {
|
|
49
|
-
type: "nonterminal",
|
|
50
|
-
name: e.name
|
|
51
|
-
};
|
|
52
|
-
case "AbnfGroup":
|
|
53
|
-
return l(e.element);
|
|
54
|
-
case "AbnfOptionalGroup":
|
|
55
|
-
return {
|
|
56
|
-
type: "optional",
|
|
57
|
-
element: l(e.element)
|
|
58
|
-
};
|
|
59
|
-
default:
|
|
60
|
-
throw new Error(`Unsupported ABNF primary node: ${e.$type}`);
|
|
61
|
-
}
|
|
62
|
-
}, "transformPrimary"), P = /* @__PURE__ */ n((e) => ({
|
|
63
|
-
name: e.name,
|
|
64
|
-
definition: l(e.definition)
|
|
65
|
-
}), "transformRule"), h = /* @__PURE__ */ n((e) => {
|
|
66
|
-
f(e, a), e.title && a.setTitle(e.title), e.rules.map((r) => a.addRule(P(r)));
|
|
67
|
-
}, "populateDb"), R = {
|
|
68
|
-
parse: /* @__PURE__ */ n((e) => {
|
|
69
|
-
a.clear(), o.debug("[ABNF Parser] Starting Langium parse");
|
|
70
|
-
const r = v.parse(e);
|
|
71
|
-
if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
|
|
72
|
-
throw new c(r);
|
|
73
|
-
const t = r.value;
|
|
74
|
-
o.debug("[ABNF Parser] Parsed rules:", t.rules.length), h(t), o.debug("[ABNF Parser] Parse complete");
|
|
75
|
-
}, "parse"),
|
|
76
|
-
parser: {
|
|
77
|
-
yy: a
|
|
78
|
-
}
|
|
79
|
-
}, w = {
|
|
80
|
-
parser: R,
|
|
81
|
-
db: a,
|
|
82
|
-
renderer: u,
|
|
83
|
-
styles: p
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
w as diagram
|
|
87
|
-
};
|
package/dist/arc-y6UeoJpJ.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Y as ln, $ as an, a0 as F, a1 as q, a2 as j, a3 as un, a4 as y, a5 as tn, a6 as J, a7 as _, a8 as rn, a9 as o, aa as on, ab as sn, ac as fn } from "./mermaid.core-CR0bA2Wa.js";
|
|
2
|
-
function cn(l) {
|
|
3
|
-
return l.innerRadius;
|
|
4
|
-
}
|
|
5
|
-
function yn(l) {
|
|
6
|
-
return l.outerRadius;
|
|
7
|
-
}
|
|
8
|
-
function gn(l) {
|
|
9
|
-
return l.startAngle;
|
|
10
|
-
}
|
|
11
|
-
function dn(l) {
|
|
12
|
-
return l.endAngle;
|
|
13
|
-
}
|
|
14
|
-
function mn(l) {
|
|
15
|
-
return l && l.padAngle;
|
|
16
|
-
}
|
|
17
|
-
function pn(l, h, I, D, v, A, z, a) {
|
|
18
|
-
var O = I - l, i = D - h, n = z - v, d = a - A, u = d * O - n * i;
|
|
19
|
-
if (!(u * u < y))
|
|
20
|
-
return u = (n * (h - A) - d * (l - v)) / u, [l + u * O, h + u * i];
|
|
21
|
-
}
|
|
22
|
-
function U(l, h, I, D, v, A, z) {
|
|
23
|
-
var a = l - I, O = h - D, i = (z ? A : -A) / J(a * a + O * O), n = i * O, d = -i * a, u = l + n, s = h + d, f = I + n, c = D + d, B = (u + f) / 2, t = (s + c) / 2, m = f - u, g = c - s, R = m * m + g * g, T = v - A, P = u * c - f * s, S = (g < 0 ? -1 : 1) * J(on(0, T * T * R - P * P)), Y = (P * g - m * S) / R, $ = (-P * m - g * S) / R, w = (P * g + m * S) / R, p = (-P * m + g * S) / R, x = Y - B, e = $ - t, r = w - B, C = p - t;
|
|
24
|
-
return x * x + e * e > r * r + C * C && (Y = w, $ = p), {
|
|
25
|
-
cx: Y,
|
|
26
|
-
cy: $,
|
|
27
|
-
x01: -n,
|
|
28
|
-
y01: -d,
|
|
29
|
-
x11: Y * (v / T - 1),
|
|
30
|
-
y11: $ * (v / T - 1)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function hn() {
|
|
34
|
-
var l = cn, h = yn, I = j(0), D = null, v = gn, A = dn, z = mn, a = null, O = ln(i);
|
|
35
|
-
function i() {
|
|
36
|
-
var n, d, u = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - un, c = A.apply(this, arguments) - un, B = rn(c - f), t = c > f;
|
|
37
|
-
if (a || (a = n = O()), s < u && (d = s, s = u, u = d), !(s > y)) a.moveTo(0, 0);
|
|
38
|
-
else if (B > tn - y)
|
|
39
|
-
a.moveTo(s * F(f), s * q(f)), a.arc(0, 0, s, f, c, !t), u > y && (a.moveTo(u * F(c), u * q(c)), a.arc(0, 0, u, c, f, t));
|
|
40
|
-
else {
|
|
41
|
-
var m = f, g = c, R = f, T = c, P = B, S = B, Y = z.apply(this, arguments) / 2, $ = Y > y && (D ? +D.apply(this, arguments) : J(u * u + s * s)), w = _(rn(s - u) / 2, +I.apply(this, arguments)), p = w, x = w, e, r;
|
|
42
|
-
if ($ > y) {
|
|
43
|
-
var C = sn($ / u * q(Y)), K = sn($ / s * q(Y));
|
|
44
|
-
(P -= C * 2) > y ? (C *= t ? 1 : -1, R += C, T -= C) : (P = 0, R = T = (f + c) / 2), (S -= K * 2) > y ? (K *= t ? 1 : -1, m += K, g -= K) : (S = 0, m = g = (f + c) / 2);
|
|
45
|
-
}
|
|
46
|
-
var G = s * F(m), H = s * q(m), L = u * F(T), M = u * q(T);
|
|
47
|
-
if (w > y) {
|
|
48
|
-
var N = s * F(g), Q = s * q(g), V = u * F(R), W = u * q(R), E;
|
|
49
|
-
if (B < an)
|
|
50
|
-
if (E = pn(G, H, V, W, N, Q, L, M)) {
|
|
51
|
-
var X = G - E[0], Z = H - E[1], b = N - E[0], k = Q - E[1], nn = 1 / q(fn((X * b + Z * k) / (J(X * X + Z * Z) * J(b * b + k * k))) / 2), en = J(E[0] * E[0] + E[1] * E[1]);
|
|
52
|
-
p = _(w, (u - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
|
|
53
|
-
} else
|
|
54
|
-
p = x = 0;
|
|
55
|
-
}
|
|
56
|
-
S > y ? x > y ? (e = U(V, W, G, H, s, x, t), r = U(N, Q, L, M, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), !t), a.arc(r.cx, r.cy, x, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : (a.moveTo(G, H), a.arc(0, 0, s, m, g, !t)) : a.moveTo(G, H), !(u > y) || !(P > y) ? a.lineTo(L, M) : p > y ? (e = U(L, M, N, Q, u, -p, t), r = U(G, H, V, W, u, -p, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), p < w ? a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, u, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), t), a.arc(r.cx, r.cy, p, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : a.arc(0, 0, u, T, R, t);
|
|
57
|
-
}
|
|
58
|
-
if (a.closePath(), n) return a = null, n + "" || null;
|
|
59
|
-
}
|
|
60
|
-
return i.centroid = function() {
|
|
61
|
-
var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, d = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2;
|
|
62
|
-
return [F(d) * n, q(d) * n];
|
|
63
|
-
}, i.innerRadius = function(n) {
|
|
64
|
-
return arguments.length ? (l = typeof n == "function" ? n : j(+n), i) : l;
|
|
65
|
-
}, i.outerRadius = function(n) {
|
|
66
|
-
return arguments.length ? (h = typeof n == "function" ? n : j(+n), i) : h;
|
|
67
|
-
}, i.cornerRadius = function(n) {
|
|
68
|
-
return arguments.length ? (I = typeof n == "function" ? n : j(+n), i) : I;
|
|
69
|
-
}, i.padRadius = function(n) {
|
|
70
|
-
return arguments.length ? (D = n == null ? null : typeof n == "function" ? n : j(+n), i) : D;
|
|
71
|
-
}, i.startAngle = function(n) {
|
|
72
|
-
return arguments.length ? (v = typeof n == "function" ? n : j(+n), i) : v;
|
|
73
|
-
}, i.endAngle = function(n) {
|
|
74
|
-
return arguments.length ? (A = typeof n == "function" ? n : j(+n), i) : A;
|
|
75
|
-
}, i.padAngle = function(n) {
|
|
76
|
-
return arguments.length ? (z = typeof n == "function" ? n : j(+n), i) : z;
|
|
77
|
-
}, i.context = function(n) {
|
|
78
|
-
return arguments.length ? (a = n ?? null, i) : a;
|
|
79
|
-
}, i;
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
hn as d
|
|
83
|
-
};
|