yuhwa 1.5.0 → 1.5.2

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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/astro.d.ts +1 -1
  3. package/dist/astro.js +1 -1
  4. package/dist/browser.d.ts +3 -3
  5. package/dist/browser.js +10 -7
  6. package/dist/canvas.js +1 -1
  7. package/dist/cli.js +32 -11
  8. package/dist/editor/assets/index-Dd3yJXpt.css +1 -0
  9. package/dist/editor/assets/index-DyXXchTq.js +689 -0
  10. package/dist/editor/assets/lsp.worker-BuZEbjK9.js +36 -0
  11. package/dist/editor/index.html +68 -57
  12. package/dist/{figure-BXrdbiqy.d.ts → figure-BtRpJvZ9.d.ts} +1 -1
  13. package/dist/{index-DVU2kSdX.d.ts → index-C6v0NhkF.d.ts} +35 -2
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.js +5 -5
  16. package/dist/ironmark.d.ts +1 -1
  17. package/dist/ironmark.js +1 -1
  18. package/dist/llms.txt +4 -4
  19. package/dist/lsp-browser.js +1 -1
  20. package/dist/lsp-node.js +20 -13
  21. package/dist/lsp-server.js +1 -1
  22. package/dist/lsp.js +1 -1
  23. package/dist/markdown-it.d.ts +1 -1
  24. package/dist/markdown-it.js +2 -2
  25. package/dist/{node-B8dLsEzl.js → node-Cdzt2Mis.js} +6 -6
  26. package/dist/{parse-CD6SmUc1.js → parse-fnqTkelX.js} +120 -42
  27. package/dist/{plugin-Dq5VmHe8.js → plugin-DX1Pv2Tq.js} +1 -1
  28. package/dist/{plugin-Dj66dvC1.d.ts → plugin-DhSeDLo1.d.ts} +43 -27
  29. package/dist/plugin.d.ts +1 -1
  30. package/dist/plugin.js +2 -2
  31. package/dist/{raster-Cul5L1bT.js → raster-B_SJsm-q.js} +3 -3
  32. package/dist/remark.d.ts +1 -1
  33. package/dist/remark.js +1 -1
  34. package/dist/satteri.d.ts +1 -1
  35. package/dist/satteri.js +1 -1
  36. package/dist/{server-DCZj9bmz.js → server-BW2tKjSu.js} +6 -3
  37. package/dist/{service-Cno307YA.js → service-CXRIavFP.js} +18 -14
  38. package/dist/{shared-DgVcoAJb.js → shared-DJCDEbFf.js} +1877 -1312
  39. package/dist/{src-CBd46GH5.js → src-CQ8ltV_K.js} +1906 -1267
  40. package/dist/vite.d.ts +1 -1
  41. package/dist/vite.js +3 -3
  42. package/dist/vuepress.d.ts +1 -1
  43. package/dist/vuepress.js +1 -1
  44. package/dist/yuhwa.iife.js +54 -54
  45. package/dist/{zoom-yxhxX16c.js → zoom-D3Lahr1T.js} +1 -1
  46. package/dist/{zoom-script-CaJ5MNUw.js → zoom-script-DPxmav2F.js} +1 -1
  47. package/dist/zoom.js +2 -2
  48. package/package.json +1 -1
  49. package/dist/editor/assets/index-BAdhu8vV.js +0 -689
  50. package/dist/editor/assets/index-DaWl0OPj.css +0 -1
  51. package/dist/editor/assets/lsp.worker-PVetuBwo.js +0 -36
@@ -9,8 +9,8 @@
9
9
  rel="icon"
10
10
  href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232563eb'/%3E%3Cstop offset='1' stop-color='%239333ea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='15' fill='url%28%23g%29'/%3E%3Crect x='9' y='11' width='26' height='17' rx='5' fill='%23fff'/%3E%3Cpath d='M15 17.5h10M15 22h14' stroke='%237c3aed' stroke-opacity='.35' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M18 28v5a11 11 0 0 0 11 11h1' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='m29 38 6 6-6 6' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='38' y='36' width='17' height='16' rx='5' fill='%23fff' fill-opacity='.9'/%3E%3C/svg%3E"
11
11
  />
12
- <script type="module" crossorigin src="./assets/index-BAdhu8vV.js"></script>
13
- <link rel="stylesheet" crossorigin href="./assets/index-DaWl0OPj.css">
12
+ <script type="module" crossorigin src="./assets/index-DyXXchTq.js"></script>
13
+ <link rel="stylesheet" crossorigin href="./assets/index-Dd3yJXpt.css">
14
14
  </head>
15
15
  <body>
16
16
  <svg width="0" height="0" style="position: absolute" aria-hidden="true">
@@ -115,71 +115,82 @@
115
115
  </svg>
116
116
  yuhwa
117
117
  </a>
118
- <div class="toolbar">
119
- <label class="field unset"
120
- ><span>Template</span
118
+ <div class="toolbar" role="toolbar" aria-label="Diagram">
119
+ <label class="field unset" title="Replace the diagram with a template"
120
+ ><span>New</span
121
121
  ><select id="template">
122
- <option value="">Start from…</option>
122
+ <option value="">from template…</option>
123
123
  </select></label
124
124
  >
125
- <label class="field unset"
126
- ><span>Insert</span
125
+ <label class="field unset" title="Insert a snippet at the cursor"
126
+ ><span
127
+ ><svg><use href="#i-plus" /></svg>Add</span
127
128
  ><select id="insert">
128
- <option value="">Add…</option>
129
+ <option value="">snippet…</option>
129
130
  </select></label
130
131
  >
131
- <label class="field"
132
- ><span>Theme</span
133
- ><select id="theme"></select
134
- ></label>
135
- <label class="field"
136
- ><span>Direction</span
137
- ><select id="direction">
138
- <option>right</option>
139
- <option>down</option>
140
- <option>left</option>
141
- <option>up</option>
142
- </select></label
143
- >
144
- <label class="field"
145
- ><span>Edges</span
146
- ><select id="curve">
147
- <option>smooth</option>
148
- <option>orthogonal</option>
149
- <option>straight</option>
150
- </select></label
151
- >
152
- </div>
153
- <div class="group">
154
- <button id="undo" class="icon" title="Undo (⌘Z)" aria-label="Undo">
155
- <svg><use href="#i-undo" /></svg>
156
- </button>
157
- <button id="redo" class="icon" title="Redo (⇧⌘Z)" aria-label="Redo">
158
- <svg><use href="#i-redo" /></svg>
159
- </button>
160
- <button id="reset" class="icon" title="Reset layout: remove all manual positions" aria-label="Reset layout">
161
- <svg><use href="#i-reset" /></svg>
132
+ <button id="import" title="Import a Mermaid flowchart, JSON or a .yu file">
133
+ <svg><use href="#i-import" /></svg><span class="wide">Import</span>
162
134
  </button>
135
+ <span class="divider" aria-hidden="true"></span>
136
+ <div class="fields" role="group" aria-label="Diagram settings">
137
+ <label class="field" title="Colours and fonts"
138
+ ><span>Theme</span
139
+ ><select id="theme"></select
140
+ ></label>
141
+ <label class="field" title="Which way the graph flows"
142
+ ><span>Flow</span
143
+ ><select id="direction">
144
+ <option>right</option>
145
+ <option>down</option>
146
+ <option>left</option>
147
+ <option>up</option>
148
+ </select></label
149
+ >
150
+ <label class="field" title="How edges are drawn"
151
+ ><span>Edges</span
152
+ ><select id="curve">
153
+ <option>smooth</option>
154
+ <option>orthogonal</option>
155
+ <option>straight</option>
156
+ </select></label
157
+ >
158
+ </div>
159
+ <span class="divider" aria-hidden="true"></span>
160
+ <div class="group" role="group" aria-label="History">
161
+ <button id="undo" class="icon" title="Undo (⌘Z)" aria-label="Undo">
162
+ <svg><use href="#i-undo" /></svg>
163
+ </button>
164
+ <button id="redo" class="icon" title="Redo (⇧⌘Z)" aria-label="Redo">
165
+ <svg><use href="#i-redo" /></svg>
166
+ </button>
167
+ <button id="reset" class="icon" title="Reset layout: remove all manual positions" aria-label="Reset layout">
168
+ <svg><use href="#i-reset" /></svg>
169
+ </button>
170
+ </div>
163
171
  </div>
164
- <button id="import" title="Import a Mermaid flowchart, JSON or a .yu file">
165
- <svg><use href="#i-import" /></svg><span class="wide">Import</span>
166
- </button>
167
172
  <div class="spacer"></div>
168
173
  <span id="status" role="status"></span>
169
- <div class="group">
170
- <button id="copy-svg" title="Copy SVG">
171
- <svg><use href="#i-copy" /></svg>SVG
172
- </button>
173
- <button id="download" title="Download SVG">
174
- <svg><use href="#i-download" /></svg><span class="wide">Download</span>
175
- </button>
176
- <button id="download-png" title="Download PNG">
177
- <svg><use href="#i-download" /></svg>PNG
178
- </button>
179
- <button id="copy-md" title="Copy as Markdown">
180
- <svg><use href="#i-md" /></svg><span class="wide">Markdown</span>
181
- </button>
182
- </div>
174
+ <details class="menu" id="export">
175
+ <summary class="button" title="Copy or download the diagram">
176
+ <svg><use href="#i-download" /></svg>Export
177
+ </summary>
178
+ <div class="menu-list" role="menu">
179
+ <button id="copy-svg" role="menuitem">
180
+ <svg><use href="#i-copy" /></svg>Copy SVG
181
+ </button>
182
+ <button id="copy-md" role="menuitem">
183
+ <svg><use href="#i-md" /></svg>Copy as Markdown
184
+ </button>
185
+ <hr />
186
+ <button id="download" role="menuitem">
187
+ <svg><use href="#i-download" /></svg>Download SVG
188
+ </button>
189
+ <button id="download-png" role="menuitem">
190
+ <svg><use href="#i-download" /></svg>Download PNG <small>2×</small>
191
+ </button>
192
+ </div>
193
+ </details>
183
194
  <button id="share" class="primary" title="Copy a link to this diagram">
184
195
  <svg><use href="#i-link" /></svg>Share
185
196
  </button>
@@ -1,4 +1,4 @@
1
- import { n as Options } from "./index-DVU2kSdX.js";
1
+ import { n as Options } from "./index-C6v0NhkF.js";
2
2
  /**
3
3
  * SVG to PNG in Node, with @resvg/resvg-js (an optional peer dependency: Node
4
4
  * has no canvas). Synchronous, so markdown plugins can call it while they
@@ -1,4 +1,4 @@
1
- import { Et as YuhwaPlugin, L as Diagnostic, R as Diagram, X as LayoutOverrides, Y as Layout, at as PartEdit, et as PanelHandle, mt as LayoutOptions, v as ParseOptions, xn as Measure, xt as PanelOption } from "./plugin-Dj66dvC1.js";
1
+ import { A as Diagnostic, Et as YuhwaPlugin, H as Layout, Q as PartEdit, U as LayoutOverrides, d as ParseOptions, j as Diagram, q as PanelHandle, st as LayoutOptions, xn as Measure, xt as PanelOption } from "./plugin-DhSeDLo1.js";
2
2
  interface RenderOptions {
3
3
  /** prefix for ids inside the SVG, so several diagrams can live on one page */
4
4
  idPrefix?: string;
@@ -89,6 +89,36 @@ declare function editPart(source: string, panelId: string, edit: PartEdit, d?: D
89
89
  };
90
90
  /** Finish a panel drag. Prefer the declaration; a purely visual handle uses layout. */
91
91
  declare function writePanelDrag(source: string, d: Diagram, id: string, handle: PanelHandle): string;
92
+ /** Add an edge `from -> to` among the top-level statements, unless one is already there. */
93
+ declare function addEdge(source: string, edge: {
94
+ from: string;
95
+ to: string;
96
+ }, d?: Diagram): string;
97
+ /**
98
+ * Add a node: `id "label"`, at the end of `group`'s block when there is one,
99
+ * and with an edge `from -> id` when `from` is given. The edge goes inside
100
+ * the group only when `from` is in the same group, so it pulls no node in.
101
+ */
102
+ declare function addNode(source: string, node: {
103
+ id: string;
104
+ label?: string;
105
+ from?: string;
106
+ group?: string;
107
+ }, d?: Diagram): string;
108
+ /**
109
+ * Delete an element from the source:
110
+ *
111
+ * - an edge: its line, when no other edge is written on it;
112
+ * - a node: its declaration and every edge to or from it; a node only those
113
+ * edges declared stays, on its own line;
114
+ * - a group: its `{ }` lines, with the members kept and dedented;
115
+ * - a panel: its whole block.
116
+ *
117
+ * Layout entries for it go too. The source comes back unchanged when the
118
+ * element cannot be cut out on its own (a chain `a -> b -> c`, a line that
119
+ * declares other nodes as well, a declaration from a component).
120
+ */
121
+ declare function removeElement(source: string, target: Target, d?: Diagram): string;
92
122
  /** a font file to embed, as `@font-face` would name it */
93
123
  interface FontSource {
94
124
  family: string;
@@ -191,12 +221,15 @@ interface ConvertResult {
191
221
  }
192
222
  /** true when the source is Mermaid that yuhwa converts (a flowchart or one of the types above) */
193
223
  declare function isMermaid(source: string): boolean;
224
+ /** Converts Mermaid source to yuhwa: flowcharts here, every other type through `CONVERTERS`. */
194
225
  declare function fromMermaid(source: string): ConvertResult;
195
226
  declare const NODE_PROPS: string[];
196
227
  declare const EDGE_PROPS: string[];
197
228
  declare const GROUP_PROPS: string[];
198
229
  /** frame props every panel takes, next to the plugin's own */
199
230
  declare const PANEL_PROPS: string[];
231
+ /** what a panel prop does, where the value alone does not say it (hover, the editor, the guide) */
232
+ declare const PANEL_PROP_HELP: Record<string, string>;
200
233
  /** allowed values for enum-like props */
201
234
  declare const ENUMS: Record<string, string[]>;
202
235
  /** props whose value must be a colour (or `none`/`transparent`), on nodes, edges, groups and panels */
@@ -258,4 +291,4 @@ declare function toSource(input: string | DiagramJSON): {
258
291
  };
259
292
  /** Parse, lay out and render a diagram to an SVG string. Never throws on bad input. */
260
293
  declare function render(input: string | DiagramJSON, opts?: Options): Result;
261
- export { setPartTone as $, GROUP_PROPS as A, MdOptions as B, markers as C, COLORS as D, BOOLS as E, ConvertResult as F, FontSource as G, findBlocks as H, fromMermaid as I, loadFonts as J, RasterOptions as K, isMermaid as L, NUMBERS as M, PANEL_PROPS as N, EDGE_PROPS as O, lint as P, setLabel as Q, MD_LANGUAGES as R, themes as S, GUIDE as T, processMarkdown as U, MdResult as V, replaceBlockSource as W, editPart as X, svgToCanvas as Y, formatLayout as Z, legend as _, render as a, JsonResult as at, tables as b, treeview as c, gantt as d, setProp as et, mindmap as f, sequence as g, timeline as h, hash as i, DiagramJSON as it, NODE_PROPS as j, ENUMS as k, kanban as l, chart as m, Options as n, writeLayout as nt, toSource as o, fromJSON as ot, git as p, embedFonts as q, Result as r, writePanelDrag as rt, builtins as s, renderSvg as st, InputFormat as t, setSetting as tt, quadrant as u, footer as v, shapes as w, charts as x, frames as y, MdBlock as z };
294
+ export { addNode as $, GROUP_PROPS as A, MdBlock as B, markers as C, COLORS as D, BOOLS as E, lint as F, replaceBlockSource as G, MdResult as H, ConvertResult as I, embedFonts as J, FontSource as K, fromMermaid as L, NUMBERS as M, PANEL_PROPS as N, EDGE_PROPS as O, PANEL_PROP_HELP as P, addEdge as Q, isMermaid as R, themes as S, GUIDE as T, findBlocks as U, MdOptions as V, processMarkdown as W, svgToCanvas as X, loadFonts as Y, Target as Z, legend as _, render as a, setProp as at, tables as b, treeview as c, writePanelDrag as ct, gantt as d, fromJSON as dt, editPart as et, mindmap as f, renderSvg as ft, sequence as g, timeline as h, hash as i, setPartTone as it, NODE_PROPS as j, ENUMS as k, kanban as l, DiagramJSON as lt, chart as m, Options as n, removeElement as nt, toSource as o, setSetting as ot, git as p, RasterOptions as q, Result as r, setLabel as rt, builtins as s, writeLayout as st, InputFormat as t, formatLayout as tt, quadrant as u, JsonResult as ut, footer as v, shapes as w, charts as x, frames as y, MD_LANGUAGES as z };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as PanelDecl, A as setLineProp, At as registry, B as EdgeDecl, C as isYuhwaPath, Cn as canvasMeasure, Ct as RowKind, D as parse, Dt as optionKind, E as onlyColor, Et as YuhwaPlugin, F as Component, Ft as renderHead, G as LaidEdge, Gt as segsW, H as GroupDecl, Ht as parseInline, I as Curve, It as InkColors, J as LaidPanel, Jt as tspans, K as LaidGroup, L as Diagnostic, Lt as Seg, M as splitTrailingProps, Mt as use, Nt as MarkerKind, O as parseProps, Ot as perPass, P as Box, Pt as ShapeKind, Q as NodeOverride, Qt as RAMPS, R as Diagram, Rt as esc, S as blockBraces, Sn as approxMeasure, St as RowCtx, T as lex, Tt as StatementKind, U as HeadKind, V as EdgeOverride, W as LabelRef, Wt as renderSegs, X as LayoutOverrides, Xt as LineStyle, Y as Layout, Z as NodeDecl, _ as PANELS, _n as ramp, _t as Decoration, an as ThemeInput, at as PartEdit, b as Tok, bn as themeNames, bt as PanelKind, ct as ResolvedEdgeStyle, dn as getTheme, dt as Side, en as THEMES, et as PanelHandle, f as portOn, ft as SourceRef, g as LexedLine, gn as isToneOrHex, gt as layout, h as KNOWN_SETTINGS, hn as isSafeLink, ht as groupPath, in as Theme, it as PartChange, j as setTrailingProp, jt as unuse, k as serializeProps, kt as recolor, ln as fontFamilies, lt as ResolvedNodeStyle, mn as isSafeCss, nn as THEME_NAMES, nt as PanelPart, o as lineStyle, ot as Point, pn as isGenericFont, pt as GRID, q as LaidNode, r as dashFor, rn as TONES, rt as PartAction, sn as createTheme, st as Props, tn as THEME_KEYS, tt as PanelOverride, u as SHAPES, un as fontStack, ut as ShapeName, v as ParseOptions, vn as registerTheme, vt as FrameKind, w as joinPath, wt as RowPaint, x as TokKind, xt as PanelOption, y as SETTING_VALUES, yt as PanelCtx, z as Direction } from "./plugin-Dj66dvC1.js";
2
- import { $ as setPartTone, A as GROUP_PROPS, B as MdOptions, C as markers, D as COLORS, E as BOOLS, F as ConvertResult, G as FontSource, H as findBlocks, I as fromMermaid, J as loadFonts, K as RasterOptions, L as isMermaid, M as NUMBERS, N as PANEL_PROPS, O as EDGE_PROPS, P as lint, Q as setLabel, R as MD_LANGUAGES, S as themes, T as GUIDE, U as processMarkdown, V as MdResult, W as replaceBlockSource, X as editPart, Y as svgToCanvas, Z as formatLayout, _ as legend, a as render, at as JsonResult, b as tables, c as treeview, d as gantt, et as setProp, f as mindmap, g as sequence, h as timeline, i as hash, it as DiagramJSON, j as NODE_PROPS, k as ENUMS, l as kanban, m as chart, n as Options, nt as writeLayout, o as toSource, ot as fromJSON, p as git, q as embedFonts, r as Result, rt as writePanelDrag, s as builtins, st as renderSvg, t as InputFormat, tt as setSetting, u as quadrant, v as footer, w as shapes, x as charts, y as frames, z as MdBlock } from "./index-DVU2kSdX.js";
3
- export { BOOLS, type Box, COLORS, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FontSource, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, MD_LANGUAGES, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOption, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type RasterOptions, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, findBlocks, fontFamilies, fontStack, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isGenericFont, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, loadFonts, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag };
1
+ import { $ as Point, A as Diagnostic, At as registry, B as LaidNode, C as setLineProp, Cn as canvasMeasure, Ct as RowKind, D as Box, Dt as optionKind, Et as YuhwaPlugin, F as GroupDecl, Ft as renderHead, G as NodeOverride, Gt as segsW, H as Layout, Ht as parseInline, I as HeadKind, It as InkColors, J as PanelOverride, Jt as tspans, K as PanelDecl, L as LabelRef, Lt as Seg, M as Direction, Mt as use, N as EdgeDecl, Nt as MarkerKind, O as Component, Ot as perPass, P as EdgeOverride, Pt as ShapeKind, Q as PartEdit, Qt as RAMPS, R as LaidEdge, Rt as esc, S as serializeProps, Sn as approxMeasure, St as RowCtx, T as splitTrailingProps, Tt as StatementKind, U as LayoutOverrides, V as LaidPanel, W as NodeDecl, Wt as renderSegs, X as PartAction, Xt as LineStyle, Y as PanelPart, Z as PartChange, _ as joinPath, _n as ramp, _t as Decoration, a as portOn, an as ThemeInput, at as SourceRef, b as parse, bn as themeNames, bt as PanelKind, c as KNOWN_SETTINGS, ct as groupPath, d as ParseOptions, dn as getTheme, en as THEMES, et as Props, f as SETTING_VALUES, g as isYuhwaPath, gn as isToneOrHex, h as blockBraces, hn as isSafeLink, in as Theme, it as Side, j as Diagram, jt as unuse, k as Curve, kt as recolor, l as LexedLine, ln as fontFamilies, lt as layout, m as TokKind, mn as isSafeCss, nn as THEME_NAMES, nt as ResolvedNodeStyle, ot as GRID, p as Tok, pn as isGenericFont, pt as lineStyle, q as PanelHandle, r as SHAPES, rn as TONES, rt as ShapeName, sn as createTheme, tn as THEME_KEYS, tt as ResolvedEdgeStyle, u as PANELS, un as fontStack, ut as dashFor, v as lex, vn as registerTheme, vt as FrameKind, w as setTrailingProp, wt as RowPaint, x as parseProps, xt as PanelOption, y as onlyColor, yt as PanelCtx, z as LaidGroup } from "./plugin-DhSeDLo1.js";
2
+ import { $ as addNode, A as GROUP_PROPS, B as MdBlock, C as markers, D as COLORS, E as BOOLS, F as lint, G as replaceBlockSource, H as MdResult, I as ConvertResult, J as embedFonts, K as FontSource, L as fromMermaid, M as NUMBERS, N as PANEL_PROPS, O as EDGE_PROPS, P as PANEL_PROP_HELP, Q as addEdge, R as isMermaid, S as themes, T as GUIDE, U as findBlocks, V as MdOptions, W as processMarkdown, X as svgToCanvas, Y as loadFonts, Z as Target, _ as legend, a as render, at as setProp, b as tables, c as treeview, ct as writePanelDrag, d as gantt, dt as fromJSON, et as editPart, f as mindmap, ft as renderSvg, g as sequence, h as timeline, i as hash, it as setPartTone, j as NODE_PROPS, k as ENUMS, l as kanban, lt as DiagramJSON, m as chart, n as Options, nt as removeElement, o as toSource, ot as setSetting, p as git, q as RasterOptions, r as Result, rt as setLabel, s as builtins, st as writeLayout, t as InputFormat, tt as formatLayout, u as quadrant, ut as JsonResult, v as footer, w as shapes, x as charts, y as frames, z as MD_LANGUAGES } from "./index-C6v0NhkF.js";
3
+ export { BOOLS, type Box, COLORS, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FontSource, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, MD_LANGUAGES, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, PANEL_PROP_HELP, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOption, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type RasterOptions, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Target, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, addEdge, addNode, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, findBlocks, fontFamilies, fontStack, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isGenericFont, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, loadFonts, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, removeElement, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Bt as getTheme, C as ENUMS, D as PANEL_PROPS, E as NUMBERS, Et as tspans, F as portOn, G as renderHead, Gt as isToneOrHex, Ht as isGenericFont, It as createTheme, Kt as ramp, M as SHAPES, Mt as THEME_KEYS, Nt as THEME_NAMES, Pt as TONES, Rt as fontFamilies, S as EDGE_PROPS, T as NODE_PROPS, Ut as isSafeCss, Wt as isSafeLink, Yt as themeNames, Z as lineStyle, _ as setTrailingProp, b as BOOLS, c as joinPath, ct as esc, d as parse, f as parseProps, g as setLineProp, gt as renderSegs, h as serializeProps, jt as THEMES, k as lint, kt as RAMPS, l as lex, n as PANELS, o as blockBraces, pt as parseInline, q as dashFor, qt as registerTheme, r as SETTING_VALUES, s as isYuhwaPath, t as KNOWN_SETTINGS, u as onlyColor, v as splitTrailingProps, w as GROUP_PROPS, x as COLORS, yt as segsW, zt as fontStack } from "./parse-CD6SmUc1.js";
2
- import { a as perPass, c as unuse, i as optionKind, l as use, n as approxMeasure, o as recolor, r as canvasMeasure, s as registry } from "./plugin-Dq5VmHe8.js";
3
- import { A as gantt, B as charts, C as GRID, D as treeview, E as builtins, F as sequence, H as markers, I as legend, L as footer, M as git, N as chart, O as kanban, P as timeline, R as frames, S as renderSvg, T as layout, U as shapes, V as themes, _ as writeLayout, a as MD_LANGUAGES, b as isMermaid, d as editPart, f as formatLayout, g as setSetting, h as setProp, i as GUIDE, j as mindmap, k as quadrant, l as processMarkdown, m as setPartTone, n as render, o as findBlocks, p as setLabel, r as toSource, t as hash, u as replaceBlockSource, v as writePanelDrag, w as groupPath, x as fromJSON, y as fromMermaid, z as tables } from "./src-CBd46GH5.js";
4
- import { n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-Cul5L1bT.js";
5
- export { BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, MD_LANGUAGES, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, findBlocks, fontFamilies, fontStack, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isGenericFont, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, loadFonts, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag };
1
+ import { $ as lineStyle, C as EDGE_PROPS, D as NUMBERS, E as NODE_PROPS, Ft as THEME_KEYS, Gt as isGenericFont, Ht as fontStack, It as THEME_NAMES, Jt as isToneOrHex, Kt as isSafeCss, L as portOn, Lt as TONES, Mt as RAMPS, O as PANEL_PROPS, P as SHAPES, Pt as THEMES, Qt as themeNames, S as COLORS, St as segsW, T as GROUP_PROPS, Ut as getTheme, Vt as fontFamilies, Xt as registerTheme, Y as dashFor, Yt as ramp, _ as setLineProp, c as joinPath, d as parse, f as parseProps, gt as parseInline, h as serializeProps, j as lint, k as PANEL_PROP_HELP, kt as tspans, l as lex, n as PANELS, o as blockBraces, q as renderHead, qt as isSafeLink, r as SETTING_VALUES, s as isYuhwaPath, t as KNOWN_SETTINGS, u as onlyColor, ut as esc, v as setTrailingProp, w as ENUMS, x as BOOLS, y as splitTrailingProps, yt as renderSegs, zt as createTheme } from "./parse-fnqTkelX.js";
2
+ import { a as perPass, c as unuse, i as optionKind, l as use, n as approxMeasure, o as recolor, r as canvasMeasure, s as registry } from "./plugin-DX1Pv2Tq.js";
3
+ import { A as treeview, B as footer, C as isMermaid, D as groupPath, E as GRID, F as git, G as markers, H as tables, I as chart, K as shapes, L as timeline, M as quadrant, N as gantt, O as layout, P as mindmap, R as sequence, S as fromMermaid, T as renderSvg, U as charts, V as frames, W as themes, _ as setPartTone, a as MD_LANGUAGES, b as writeLayout, d as addEdge, f as addNode, g as setLabel, h as removeElement, i as GUIDE, j as kanban, k as builtins, l as processMarkdown, m as formatLayout, n as render, o as findBlocks, p as editPart, r as toSource, t as hash, u as replaceBlockSource, v as setProp, w as fromJSON, x as writePanelDrag, y as setSetting, z as legend } from "./src-CQ8ltV_K.js";
4
+ import { n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-B_SJsm-q.js";
5
+ export { BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, MD_LANGUAGES, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, PANEL_PROP_HELP, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, addEdge, addNode, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, findBlocks, fontFamilies, fontStack, footer, formatLayout, frames, fromJSON, fromMermaid, gantt, getTheme, git, groupPath, hash, isGenericFont, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, kanban, layout, legend, lex, lineStyle, lint, loadFonts, markers, mindmap, onlyColor, optionKind, parse, parseInline, parseProps, perPass, portOn, processMarkdown, quadrant, ramp, recolor, registerTheme, registry, removeElement, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag };
@@ -18,7 +18,7 @@
18
18
  * ```yuhwa file="diagrams/arch.yu" renders that file instead of the block.
19
19
  * `zoom: 'inline'` adds the zoom script to `.md` output only; in `.mdx`, import `yuhwa/zoom`.
20
20
  */
21
- import { t as YuhwaDocsOptions } from "./figure-BXrdbiqy.js";
21
+ import { t as YuhwaDocsOptions } from "./figure-BtRpJvZ9.js";
22
22
  /**
23
23
  * replaces every yuhwa fence in `md` with its rendered figure; `files`, when
24
24
  * given, collects the diagram files the blocks read (`file="..."` and imports)
package/dist/ironmark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-B8dLsEzl.js";
1
+ import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-Cdzt2Mis.js";
2
2
  // src/integrations/ironmark.ts
3
3
  /**
4
4
  * ironmark support: renders ```yuhwa fences before ironmark parses the file.
package/dist/llms.txt CHANGED
@@ -80,9 +80,9 @@ orders --> queue "Events" [shape: hexagon]: publish [flow: true]
80
80
 
81
81
  ## Props
82
82
 
83
- - Node: shape, color, fill, stroke, text, font-size, font-weight, italic, sub, sub-color, icon, border, stroke-width, border-style, dashed, dotted, radius, bold, shadow, opacity, width, height, link, tooltip, meta, caps, mono, body-size, body-color, body-weight, line-height, max-width, below, above, right-of, left-of, rank, frame.
84
- - Edge: style, width, color, stroke, curve, head, tail, flow, animate, opacity, text, font-size, font-weight, italic, label-color, label-bg, dashed, dotted, thick, exit, from-side, enter, to-side, constraint, caption, rotate, length.
85
- - Group: color, fill, stroke, text, font-size, font-weight, italic, border-style, dashed, dotted, meta, caps.
83
+ - Node: shape, color, fill, stroke, text, font, font-size, font-weight, italic, sub, sub-color, icon, border, stroke-width, border-style, dashed, dotted, radius, bold, shadow, opacity, width, height, link, tooltip, meta, caps, mono, body-size, body-color, body-weight, line-height, max-width, below, above, right-of, left-of, rank, frame.
84
+ - Edge: style, width, color, stroke, curve, head, tail, flow, animate, opacity, text, font, font-size, font-weight, italic, label-color, label-bg, dashed, dotted, thick, exit, from-side, enter, to-side, constraint, caption, rotate, length.
85
+ - Group: color, fill, stroke, text, font, font-size, font-weight, italic, border-style, dashed, dotted, meta, caps.
86
86
 
87
87
  `sub` is a second, smaller line; `icon` an emoji before the label; `link`
88
88
  makes a node clickable; `flow: true` animates an edge; `constraint: false`
@@ -141,7 +141,7 @@ chart p95 "Latency p95" [type: column, unit: ms] {
141
141
  }
142
142
  ```
143
143
 
144
- Every panel takes `color`, `theme`, `background`, `fill`, `border`, `stroke`, `text`, `font-size`, `font-weight`, `italic`, `border-width`, `border-style`, `radius`, `shadow`, `frame`, `edge-color`, `edge-width`; `frame: false` drops the box. Body
144
+ Every panel takes `color`, `theme`, `background`, `fill`, `border`, `stroke`, `text`, `font`, `font-size`, `font-weight`, `italic`, `border-width`, `border-style`, `radius`, `shadow`, `frame`, `edge-color`, `edge-width`, `width`, `height`; `frame: false` drops the box. Body
145
145
  lines take `[props]` before the colon or at the end of the line.
146
146
 
147
147
  - `sequence`: `participant|actor id "Label" [color]` (`participant a, b, c` fixes the order), `a -> b: msg` (`-->` reply, `..>` dotted, `=>` thick, `a -> a` self call), `note a, b: text`, `--- section ---`. A message takes edge props at its end: `a -> b: retry [red, style: dotted]`. Header: `numbered`, `lifeline: <colour>`, `lifeline-style: dashed|dotted|solid`.
@@ -1,5 +1,5 @@
1
1
  import { t as __commonJSMin } from "./rolldown-runtime-CEjnN5Q1.js";
2
- import { i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-DCZj9bmz.js";
2
+ import { i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-BW2tKjSu.js";
3
3
  // ../../node_modules/.pnpm/vscode-jsonrpc@10.0.0/node_modules/vscode-jsonrpc/lib/browser/ril.js
4
4
  var require_ril = /* @__PURE__ */ __commonJSMin(((exports) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/lsp-node.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
- import { A as BOOLS, B as SPAN_KEYS, C as blockBraces, D as parse, E as lex, F as NODE_PROPS, H as parseSpanStyle, I as NUMBERS, J as themeNames, K as TONES, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, O as serializeProps, P as GROUP_PROPS, R as PLACEMENT_PROPS, S as SETTING_VALUES, T as joinPath, U as spanKey, W as THEME_KEYS, Y as table, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, i as format, j as COLORS, n as applyChange, o as onTypeEdits, p as isMarkdown, r as diffEdits, s as tidy, t as VERSION, v as optionKind, x as PANELS, z as SHAPES } from "./shared-DgVcoAJb.js";
3
+ import { A as BOOLS, B as SHAPES, C as blockBraces, D as parse, E as lex, F as NODE_PROPS, G as THEME_KEYS, I as NUMBERS, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, O as serializeProps, P as GROUP_PROPS, R as PANEL_PROP_HELP, S as SETTING_VALUES, T as joinPath, U as parseSpanStyle, V as SPAN_KEYS, W as spanKey, X as table, Y as themeNames, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, i as format, j as COLORS, n as applyChange, o as onTypeEdits, p as isMarkdown, q as TONES, r as diffEdits, s as tidy, t as VERSION, v as optionKind, x as PANELS, z as PLACEMENT_PROPS } from "./shared-DJCDEbFf.js";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  // \0rolldown/runtime.js
6
6
  var __defProp = Object.defineProperty;
@@ -10836,19 +10836,23 @@ function spanAt(line, ch) {
10836
10836
  };
10837
10837
  }
10838
10838
  }
10839
+ /** the values a panel option takes, in words */
10840
+ function valuesText(o) {
10841
+ if (o.kind === "select") return `one of: ${o.values.join(", ")}`;
10842
+ if (o.kind === "flag") return "true or false";
10843
+ if (o.kind === "number") return "a number";
10844
+ if (o.kind === "color") return "a palette name or any CSS colour (#hex, rgb(), hsl())";
10845
+ return "text";
10846
+ }
10839
10847
  function propInfo(key, panel) {
10840
- const opt = panel ? PANELS.get(panel)?.options?.[key] : void 0;
10848
+ const kind = panel ? PANELS.get(panel) : void 0;
10849
+ const opt = kind?.options?.[key];
10841
10850
  if (opt !== void 0) {
10842
- const o = optionKind(opt);
10843
- if (o.kind === "select") return `one of: ${o.values.join(", ")}`;
10844
- if (o.kind === "flag") return "true or false";
10845
- if (o.kind === "number") return "a number";
10846
- if (o.kind === "color") return "a palette name or any CSS colour (#hex, rgb(), hsl())";
10847
- return "text";
10851
+ const help = kind?.help?.[key];
10852
+ const values = valuesText(optionKind(opt));
10853
+ return help ? `${help}; ${values}` : values;
10848
10854
  }
10849
- if (panel && key === "frame") return "`false` drops the box";
10850
- if (panel && key === "theme") return "a theme name";
10851
- if (panel && key === "border") return "`none`, a palette name or any CSS colour";
10855
+ if (panel && PANEL_PROP_HELP[key]) return PANEL_PROP_HELP[key];
10852
10856
  if (BOOLS.includes(key)) return "true or false";
10853
10857
  if (NUMBERS.includes(key)) return "a number";
10854
10858
  if (ENUMS[key]) return `one of: ${ENUMS[key].join(", ")}`;
@@ -11458,7 +11462,7 @@ var YuhwaService = class {
11458
11462
  }));
11459
11463
  }
11460
11464
  blocked(a, key) {
11461
- if (a.decl.has(key)) return void 0;
11465
+ if (a.decl.has(key)) return;
11462
11466
  const n = a.diagram.nodes.get(key);
11463
11467
  const g = a.diagram.groups.get(key);
11464
11468
  if (g?.labelRef?.id) return `Group "${key}" takes its id from its label: give it an id first`;
@@ -11623,7 +11627,10 @@ function startServer(connection, opts = {}) {
11623
11627
  };
11624
11628
  const changed = (uri, src) => {
11625
11629
  const path = toPath(uri);
11626
- if (isMarkdown(path)) return void (src === void 0 ? pages.delete(path) : pages.set(path, src));
11630
+ if (isMarkdown(path)) {
11631
+ src === void 0 ? pages.delete(path) : pages.set(path, src);
11632
+ return;
11633
+ }
11627
11634
  if (src === void 0) {
11628
11635
  docs.delete(path);
11629
11636
  uris.delete(path);
@@ -1 +1 @@
1
- export { t as startServer } from "./server-DCZj9bmz.js";
1
+ export { t as startServer } from "./server-BW2tKjSu.js";
package/dist/lsp.js CHANGED
@@ -1 +1 @@
1
- export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as closeIndent, a as diffEdits, o as enterEdit, s as format, c as newlineIndent, l as newlinePrefix, u as offsetAt, d as onTypeEdits, f as positionAt, p as shiftLines } from "./service-Cno307YA.js";
1
+ export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as closeIndent, a as diffEdits, o as enterEdit, s as format, c as newlineIndent, l as newlinePrefix, u as offsetAt, d as onTypeEdits, f as positionAt, p as shiftLines } from "./service-CXRIavFP.js";
@@ -9,7 +9,7 @@
9
9
  * A fence with `no-render` (```yuhwa no-render) stays a code block.
10
10
  * ```yuhwa file="diagrams/arch.yu" renders that file instead of the block.
11
11
  */
12
- import { t as YuhwaDocsOptions } from "./figure-BXrdbiqy.js";
12
+ import { t as YuhwaDocsOptions } from "./figure-BtRpJvZ9.js";
13
13
  type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string;
14
14
  interface MarkdownIt {
15
15
  renderer: {
@@ -1,5 +1,5 @@
1
- import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-B8dLsEzl.js";
2
- import { a as MD_LANGUAGES } from "./src-CBd46GH5.js";
1
+ import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-Cdzt2Mis.js";
2
+ import { a as MD_LANGUAGES } from "./src-CQ8ltV_K.js";
3
3
  // src/integrations/markdown-it.ts
4
4
  /**
5
5
  * markdown-it plugin: renders ```yuhwa fences at build time.
@@ -1,10 +1,10 @@
1
1
  import { readFileSync, realpathSync } from "node:fs";
2
2
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
3
- import { en as table, s as isYuhwaPath } from "./parse-CD6SmUc1.js";
4
- import { a as MD_LANGUAGES, n as render } from "./src-CBd46GH5.js";
5
- import { n as zoomScript } from "./zoom-script-CaJ5MNUw.js";
6
- import { t as zoomHeight } from "./zoom-yxhxX16c.js";
7
- import { o as svgSize, t as base64 } from "./raster-Cul5L1bT.js";
3
+ import { rn as table, s as isYuhwaPath } from "./parse-fnqTkelX.js";
4
+ import { a as MD_LANGUAGES, n as render } from "./src-CQ8ltV_K.js";
5
+ import { n as zoomScript } from "./zoom-script-DPxmav2F.js";
6
+ import { t as zoomHeight } from "./zoom-D3Lahr1T.js";
7
+ import { o as svgSize, t as base64 } from "./raster-B_SJsm-q.js";
8
8
  import { t as svgDataUri } from "./svg-uri-Dx8SGV-n.js";
9
9
  // src/integrations/png.ts
10
10
  let resvg;
@@ -238,7 +238,7 @@ function wantsRender(lang, meta, languages = MD_LANGUAGES) {
238
238
  /** Node-only helper for the CLI and build-time integrations: `import` reads from disk. */
239
239
  /** Reads an `import "..."` target from disk; like `parse`, only `.yu` files. */
240
240
  function diskResolve(path) {
241
- if (!isYuhwaPath(path)) return void 0;
241
+ if (!isYuhwaPath(path)) return;
242
242
  try {
243
243
  return readFileSync(path, "utf8");
244
244
  } catch {