yuhwa 1.5.2 → 1.6.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.
Files changed (45) hide show
  1. package/dist/astro.d.ts +1 -1
  2. package/dist/astro.js +1 -1
  3. package/dist/browser.d.ts +3 -3
  4. package/dist/browser.js +5 -5
  5. package/dist/canvas.js +1 -1
  6. package/dist/cli.js +11 -3
  7. package/dist/editor/assets/{index-Dd3yJXpt.css → index-BtyZhez4.css} +1 -1
  8. package/dist/editor/assets/index-ChQpisN7.js +689 -0
  9. package/dist/editor/assets/{lsp.worker-BuZEbjK9.js → lsp.worker-bwlomb1r.js} +22 -22
  10. package/dist/editor/index.html +2 -2
  11. package/dist/{figure-BtRpJvZ9.d.ts → figure-CqzRbgF5.d.ts} +1 -1
  12. package/dist/{index-C6v0NhkF.d.ts → index-CT7AJAf8.d.ts} +3 -2
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +5 -5
  15. package/dist/ironmark.d.ts +1 -1
  16. package/dist/ironmark.js +1 -1
  17. package/dist/llms.txt +14 -6
  18. package/dist/lsp-browser.js +1 -1
  19. package/dist/lsp-node.js +15 -8
  20. package/dist/lsp-server.js +1 -1
  21. package/dist/lsp.js +1 -1
  22. package/dist/markdown-it.d.ts +2 -2
  23. package/dist/markdown-it.js +2 -2
  24. package/dist/{node-Cdzt2Mis.js → node-MjVxKTHg.js} +3 -3
  25. package/dist/{parse-fnqTkelX.js → parse-BT2Xuqty.js} +426 -58
  26. package/dist/{plugin-DX1Pv2Tq.js → plugin-Dckiw3N9.js} +1 -1
  27. package/dist/{plugin-DhSeDLo1.d.ts → plugin-y9uy8ayQ.d.ts} +26 -2
  28. package/dist/plugin.d.ts +1 -1
  29. package/dist/plugin.js +2 -2
  30. package/dist/{raster-B_SJsm-q.js → raster-Dz9_MPsh.js} +1 -1
  31. package/dist/remark.d.ts +1 -1
  32. package/dist/remark.js +1 -1
  33. package/dist/satteri.d.ts +1 -1
  34. package/dist/satteri.js +1 -1
  35. package/dist/{server-BW2tKjSu.js → server-Bgqav5i4.js} +2 -2
  36. package/dist/{service-CXRIavFP.js → service-BFj8Un47.js} +17 -10
  37. package/dist/{shared-DJCDEbFf.js → shared-BuNGLF8_.js} +655 -109
  38. package/dist/{src-CQ8ltV_K.js → src-WJP0qnZY.js} +253 -57
  39. package/dist/vite.d.ts +1 -1
  40. package/dist/vite.js +3 -3
  41. package/dist/vuepress.d.ts +1 -1
  42. package/dist/vuepress.js +1 -1
  43. package/dist/yuhwa.iife.js +64 -56
  44. package/package.json +1 -1
  45. package/dist/editor/assets/index-DyXXchTq.js +0 -689
@@ -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-DyXXchTq.js"></script>
13
- <link rel="stylesheet" crossorigin href="./assets/index-Dd3yJXpt.css">
12
+ <script type="module" crossorigin src="./assets/index-ChQpisN7.js"></script>
13
+ <link rel="stylesheet" crossorigin href="./assets/index-BtyZhez4.css">
14
14
  </head>
15
15
  <body>
16
16
  <svg width="0" height="0" style="position: absolute" aria-hidden="true">
@@ -1,4 +1,4 @@
1
- import { n as Options } from "./index-C6v0NhkF.js";
1
+ import { n as Options } from "./index-CT7AJAf8.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 { 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";
1
+ import { At as YuhwaPlugin, G as Layout, K as LayoutOverrides, N as Diagnostic, P as Diagram, Tn as Measure, Tt as PanelOption, X as PanelHandle, d as ParseOptions, k as AlignSide, tt as PartEdit, ut as LayoutOptions } from "./plugin-y9uy8ayQ.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;
@@ -49,6 +49,7 @@ interface JsonResult {
49
49
  errors: string[];
50
50
  }
51
51
  declare function fromJSON(input: DiagramJSON | string): JsonResult;
52
+ declare const ALIGN_SIDES: AlignSide[];
52
53
  /** Serialise layout overrides as a `layout { ... }` block (without trailing newline). */
53
54
  declare function formatLayout(o: LayoutOverrides): string;
54
55
  /** Replace (or append, or remove) the layout block. */
@@ -291,4 +292,4 @@ declare function toSource(input: string | DiagramJSON): {
291
292
  };
292
293
  /** Parse, lay out and render a diagram to an SVG string. Never throws on bad input. */
293
294
  declare function render(input: string | DiagramJSON, opts?: Options): Result;
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 };
295
+ 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, JsonResult as dt, editPart as et, mindmap as f, fromJSON as ft, sequence as g, timeline as h, hash as i, setPartTone as it, NODE_PROPS as j, ENUMS as k, kanban as l, ALIGN_SIDES as lt, chart as m, Options as n, removeElement as nt, toSource as o, setSetting as ot, git as p, renderSvg as pt, RasterOptions as q, Result as r, setLabel as rt, builtins as s, writeLayout as st, InputFormat as t, formatLayout as tt, quadrant as u, DiagramJSON 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 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 };
1
+ import { $ as PartAction, A as Box, At as YuhwaPlugin, B as LabelRef, Bt as InkColors, C as serializeProps, Ct as PanelCtx, Dn as canvasMeasure, Dt as RowKind, E as splitTrailingProps, En as approxMeasure, Et as RowCtx, F as Direction, Ft as unuse, G as Layout, H as LaidGroup, Ht as esc, I as EdgeDecl, It as use, J as NodeOverride, Jt as renderSegs, K as LayoutOverrides, Kt as parseInline, L as EdgeOverride, Lt as MarkerKind, M as Curve, Mt as perPass, N as Diagnostic, Nt as recolor, O as Align, Ot as RowPaint, P as Diagram, Pt as registry, Q as PanelPart, Qt as tspans, R as GroupDecl, Rt as ShapeKind, S as parseProps, Sn as registerTheme, St as FrameKind, T as setTrailingProp, Tt as PanelOption, U as LaidNode, V as LaidEdge, Vt as Seg, W as LaidPanel, X as PanelHandle, Y as PanelDecl, Yt as segsW, Z as PanelOverride, _ as isYuhwaPath, _n as isGenericFont, _t as lineStyle, a as portOn, an as THEME_KEYS, at as ResolvedNodeStyle, b as onlyColor, bn as isToneOrHex, c as KNOWN_SETTINGS, cn as Theme, ct as SourceRef, d as ParseOptions, dn as createTheme, dt as layout, en as LineStyle, et as PartChange, f as SETTING_HELP, ft as dashFor, g as blockBraces, gt as groupProp, h as TokKind, hn as getTheme, ht as groupPath, in as THEMES, it as ResolvedEdgeStyle, j as Component, jt as optionKind, k as AlignSide, kt as StatementKind, l as LexedLine, ln as ThemeInput, lt as GRID, m as Tok, mn as fontStack, nn as RAMPS, nt as Point, on as THEME_NAMES, ot as ShapeName, p as SETTING_VALUES, pn as fontFamilies, q as NodeDecl, r as SHAPES, rt as Props, sn as TONES, st as Side, tt as PartEdit, u as PANELS, v as joinPath, vn as isSafeCss, w as setLineProp, wn as themeNames, wt as PanelKind, x as parse, xn as ramp, xt as Decoration, y as lex, yn as isSafeLink, z as HeadKind, zt as renderHead } from "./plugin-y9uy8ayQ.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 JsonResult, et as editPart, f as mindmap, ft as fromJSON, g as sequence, h as timeline, i as hash, it as setPartTone, j as NODE_PROPS, k as ENUMS, l as kanban, lt as ALIGN_SIDES, m as chart, n as Options, nt as removeElement, o as toSource, ot as setSetting, p as git, pt as renderSvg, 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 DiagramJSON, v as footer, w as shapes, x as charts, y as frames, z as MD_LANGUAGES } from "./index-CT7AJAf8.js";
3
+ export { ALIGN_SIDES, type Align, type AlignSide, 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_HELP, 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, groupProp, 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 { $ 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 };
1
+ import { $t as fontStack, A as PANEL_PROP_HELP, At as renderSegs, Bt as tspans, C as COLORS, D as NODE_PROPS, Dt as parseInline, E as GROUP_PROPS, F as SHAPES, Gt as THEMES, J as renderHead, Jt as TONES, Kt as THEME_KEYS, M as lint, Nt as segsW, O as NUMBERS, Q as ALIGN_SIDES, Qt as fontFamilies, R as portOn, S as BOOLS, T as ENUMS, Ut as RAMPS, Xt as createTheme, an as isToneOrHex, b as splitTrailingProps, c as isYuhwaPath, ct as groupPath, d as onlyColor, en as getTheme, f as parse, g as serializeProps, i as SETTING_VALUES, in as isSafeLink, k as PANEL_PROPS, l as joinPath, ln as themeNames, lt as groupProp, n as PANELS, nn as isGenericFont, nt as dashFor, on as ramp, p as parseProps, qt as THEME_NAMES, r as SETTING_HELP, rn as isSafeCss, s as blockBraces, sn as registerTheme, t as KNOWN_SETTINGS, u as lex, ut as lineStyle, v as setLineProp, w as EDGE_PROPS, xt as esc, y as setTrailingProp } from "./parse-BT2Xuqty.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-Dckiw3N9.js";
3
+ import { A as kanban, B as frames, C as isMermaid, D as layout, E as GRID, F as chart, G as shapes, H as charts, I as timeline, L as sequence, M as gantt, N as mindmap, O as builtins, P as git, R as legend, S as fromMermaid, T as renderSvg, U as themes, V as tables, W as markers, _ 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 quadrant, k as treeview, 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 footer } from "./src-WJP0qnZY.js";
4
+ import { n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-Dz9_MPsh.js";
5
+ export { ALIGN_SIDES, BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, MD_LANGUAGES, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, PANEL_PROP_HELP, RAMPS, SETTING_HELP, 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, groupProp, 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-BtRpJvZ9.js";
21
+ import { t as YuhwaDocsOptions } from "./figure-CqzRbgF5.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-Cdzt2Mis.js";
1
+ import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-MjVxKTHg.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
@@ -31,7 +31,7 @@ orders --> queue "Events" [shape: hexagon]: publish [flow: true]
31
31
 
32
32
  ## Statements
33
33
 
34
- - Setting: `key: value` at top level. Keys: title, subtitle, theme, accent, direction (right|down|left|up), curve (smooth|orthogonal|straight), gap, rank-gap, max-width, font, font-size, background, padding, shadow, radius, stroke-width, shape, grid, panels (row|column|grid|wrap), panel-gap, wrap, edge-color, edge-width, legend, footer.
34
+ - Setting: `key: value` at top level. Keys: title, subtitle, theme, accent, direction (right|down|left|up), curve (smooth|orthogonal|straight), gap, rank-gap, max-width, font, font-size, background, padding, shadow, radius, stroke-width, shape, grid, panels (row|column|grid|wrap), panel-gap, wrap, edge-color, edge-width, merge (none|in|out|both), legend, footer.
35
35
  - Node: `id "Label" .class [props]`; label, classes and props are optional.
36
36
  Ids: letters (any script), digits, `_`, inner `-`; start with a letter or `_`.
37
37
  The label defaults to the id; multi-word labels need quotes. `\n` breaks a
@@ -80,15 +80,20 @@ orders --> queue "Events" [shape: hexagon]: publish [flow: true]
80
80
 
81
81
  ## Props
82
82
 
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.
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, align, merge, 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, merge.
85
+ - Group: color, fill, stroke, text, font, font-size, font-weight, italic, border-style, dashed, dotted, meta, caps, align, merge, gap, padding.
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`
89
- keeps an edge out of the layout; `shape: text` is an annotation without a box.
89
+ keeps an edge out of the layout; `merge: in|out|both` joins edges sharing a node and side into one
90
+ trunk with a single arrow head: as a setting, on a node or group (the edges ending there) or on an
91
+ edge (its own ends); `shape: text` is an annotation without a box.
90
92
  `below: <id>`, `above`, `right-of`, `left-of` and `rank` place a node next to another
91
- node without drawing an edge; do not use invisible edges for that. The `max-width: <px>` setting
93
+ node without drawing an edge; do not use invisible edges for that. `align: [side] <id>` lines a
94
+ node or group up with another; on a group, `align: <side>` alone puts its members' <side> edges on one line, keeping their ranks. A group's
95
+ `gap: <px>` spaces its members, also between ranks its own edges join (nested groups inherit it) and `padding` takes 1 to 4 numbers like
96
+ CSS (`8 24` = top/bottom 8, left/right 24). The `max-width: <px>` setting
92
97
  wraps the ranks of a right or left diagram into rows that fit that width.
93
98
  `frame: <kind> <text>` draws window chrome: browser, window, terminal.
94
99
 
@@ -181,6 +186,9 @@ layout {
181
186
  }
182
187
  ```
183
188
 
189
+ `rank a b c` keeps nodes in one rank. `align [center|left|right|top|bottom] a b c`
190
+ lines up nodes or groups on one edge or their centres; neither pins anything.
191
+
184
192
  `panel at X Y` pins a panel. `panel:part D` (`panel:part DX DY` for free
185
193
  parts) nudges one part:
186
194
 
@@ -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-BW2tKjSu.js";
2
+ import { i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-Bgqav5i4.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 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";
3
+ import { $ as themeNames, B as PLACEMENT_PROPS, C as SETTING_VALUES, D as lex, E as joinPath, F as GROUP_PROPS, G as SPAN_KEYS, H as ALIGN_SIDES, I as NODE_PROPS, J as spanKey, L as NUMBERS, M as COLORS, N as EDGE_PROPS, O as parse, P as ENUMS, R as PANEL_PROPS, S as SETTING_HELP, U as ALIGN_SIDES_HINT, V as SHAPES, W as listsIds, Y as THEME_KEYS, Z as TONES, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, et as table, i as format, j as BOOLS, k as serializeProps, n as applyChange, o as onTypeEdits, p as isMarkdown, q as parseSpanStyle, r as diffEdits, s as tidy, t as VERSION, v as optionKind, w as blockBraces, x as PANELS, z as PANEL_PROP_HELP } from "./shared-BuNGLF8_.js";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  // \0rolldown/runtime.js
6
6
  var __defProp = Object.defineProperty;
@@ -10762,6 +10762,7 @@ const LAYOUT_WORDS = /* @__PURE__ */ new Set([
10762
10762
  "via",
10763
10763
  "ports",
10764
10764
  "rank",
10765
+ "align",
10765
10766
  "label"
10766
10767
  ]);
10767
10768
  const PROP_PART = /("(?:[^"\\]|\\.)*"?|'(?:[^'\\]|\\.)*'?)|(?<=(?:^|,)\s*)([\w-]+)(?=\s*:)|(#[0-9a-fA-F]{3,8}|-?\d+(?:\.\d+)?%?)(?=[\s,]|$)|([^\s,:"'][^\s,"']*)/g;
@@ -10858,6 +10859,7 @@ function propInfo(key, panel) {
10858
10859
  if (ENUMS[key]) return `one of: ${ENUMS[key].join(", ")}`;
10859
10860
  if (DEPRECATED_PROPS.has(key)) return "old name of `color`";
10860
10861
  if (COLORS.includes(key)) return "a palette name or any CSS colour (#hex, rgb(), hsl())";
10862
+ if (key === "padding") return "1 to 4 numbers like CSS: all sides, y x, top x bottom, or top right bottom left";
10861
10863
  return "text";
10862
10864
  }
10863
10865
  /**
@@ -10958,7 +10960,7 @@ var YuhwaService = class {
10958
10960
  if (!t.length) continue;
10959
10961
  const known = (x) => !!x && x.kind === "ident" && kinds.has(x.value);
10960
10962
  if (li > ls && li < le) {
10961
- if (t[0].value === "rank" && t[1]?.value !== "at" && t[1]?.value !== "size") {
10963
+ if (listsIds(t[0].value, t[1]?.value)) {
10962
10964
  for (const x of t.slice(1)) if (known(x)) add(li, x);
10963
10965
  } else {
10964
10966
  if (known(t[0])) add(li, t[0]);
@@ -11098,6 +11100,8 @@ var YuhwaService = class {
11098
11100
  const themeKeyItems = () => Object.entries(THEME_KEYS).map(([k, { info }]) => item(k, ITEM.Property, info, `${k}: `));
11099
11101
  const nodes = () => [...d.nodes.values()].map((n) => item(n.id, ITEM.Variable, n.label !== n.id ? n.label : void 0));
11100
11102
  const ends = () => [...nodes(), ...d.panels.map((x) => item(x.id, ITEM.Module, x.kind))];
11103
+ const alignIds = () => [...nodes(), ...[...d.groups.values()].map((g) => item(g.id, ITEM.Module, g.label || "group"))];
11104
+ const propItems = (key, panel) => !panel && key === "align" ? [...values(ALIGN_SIDES), ...alignIds()] : values(propValues(key, panel, d));
11101
11105
  const toks = lex(line).tokens;
11102
11106
  const spec = openSpan(before);
11103
11107
  const brace = before.length - (spec?.length ?? 0) - 1;
@@ -11136,7 +11140,7 @@ var YuhwaService = class {
11136
11140
  if (colon >= 0) {
11137
11141
  const key = seg.slice(0, colon).trim().toLowerCase();
11138
11142
  if (kind === "theme") return values(themeValues(key, d));
11139
- return values(propValues(key, panel, d));
11143
+ return propItems(key, panel);
11140
11144
  }
11141
11145
  if (kind === "theme") return themeKeyItems();
11142
11146
  const keys = kind === "edge" ? EDGE_PROPS : kind === "group" ? GROUP_PROPS : kind === "class" ? ALL_PROPS : panel ? [...Object.keys(PANELS.get(panel)?.options ?? {}), ...PANEL_PROPS] : NODE_PROPS;
@@ -11149,7 +11153,7 @@ var YuhwaService = class {
11149
11153
  const key = kv[2].toLowerCase();
11150
11154
  if (a.depth[p.line] === 0 && declAbove(a, p.line) < 0) return values(settingValues(key, d));
11151
11155
  if (inThemeBlock(a, p.line)) return values(themeValues(key, d));
11152
- return values(propValues(key, void 0, d));
11156
+ return propItems(key);
11153
11157
  }
11154
11158
  const [ls, le] = d.layoutBlock ?? [-1, -1];
11155
11159
  const lineStart = !before.slice(0, wordStart).trim();
@@ -11157,10 +11161,12 @@ var YuhwaService = class {
11157
11161
  if (lineStart) return [
11158
11162
  ...ends(),
11159
11163
  ...[...new Set(d.edges.map((e) => e.key))].map((k) => item(k, ITEM.Variable, "edge")),
11160
- item("rank", ITEM.Keyword)
11164
+ item("rank", ITEM.Keyword),
11165
+ item("align", ITEM.Keyword, `line up nodes or groups: align ${ALIGN_SIDES_HINT} a b c`)
11161
11166
  ];
11162
11167
  const prev = toks.filter((t) => t.end <= wordStart);
11163
11168
  if (prev[0]?.value === "rank") return nodes();
11169
+ if (prev[0]?.value === "align") return prev.length === 1 ? propItems("align") : alignIds();
11164
11170
  const last = prev[prev.length - 1]?.value;
11165
11171
  const before2 = prev[prev.length - 2]?.value;
11166
11172
  if (last === "ports" || before2 === "ports") return values(SIDES);
@@ -11177,7 +11183,7 @@ var YuhwaService = class {
11177
11183
  if (decl >= 0) {
11178
11184
  for (const k of new Set(declProps(a, decl))) if (!DEPRECATED_PROPS.has(k)) out.push(item(k, ITEM.Property, propInfo(k), `${k}: `));
11179
11185
  } else if (a.depth[p.line] === 0) {
11180
- out.push(...[...KNOWN_SETTINGS].map((k) => item(k, ITEM.Property, "setting", `${k}: `)));
11186
+ out.push(...[...KNOWN_SETTINGS].map((k) => item(k, ITEM.Property, SETTING_HELP[k] ?? "setting (whole diagram)", `${k}: `)));
11181
11187
  for (const k of HEAD_KEYWORDS) out.push(item(k, ITEM.Keyword));
11182
11188
  for (const [k, kind] of PANELS) out.push(item(k, ITEM.Module, kind.syntax ?? "panel"));
11183
11189
  for (const name of Object.keys(d.defs ?? {})) out.push(item(name, ITEM.Function, "component", `${name}(`));
@@ -11269,7 +11275,7 @@ var YuhwaService = class {
11269
11275
  const key = t.value.toLowerCase();
11270
11276
  if (!KNOWN_SETTINGS.has(key)) return null;
11271
11277
  const vs = settingValues(key, a.diagram);
11272
- return md(`**setting** \`${key}\`${vs.length ? `\n\none of: ${vs.join(", ")}` : ""}`, t);
11278
+ return md(`**setting** \`${key}\` · whole diagram${SETTING_HELP[key] ? `\n\n${SETTING_HELP[key]}` : ""}${vs.length ? `\n\none of: ${vs.join(", ")}` : ""}`, t);
11273
11279
  }
11274
11280
  if (t === toks[0] && t.kind === "ident" && toks[1]?.value === ":") return md(`**prop** \`${t.value}\`: ${propInfo(t.value.toLowerCase())}`, t);
11275
11281
  if (t.kind === "props") {
@@ -11336,7 +11342,7 @@ var YuhwaService = class {
11336
11342
  const layout = li > ls && li < le;
11337
11343
  const h = t[0]?.value === "export" ? 1 : 0;
11338
11344
  const head = t[h]?.value;
11339
- const keyed = !layout && t[h]?.kind === "ident" && t[h + 1]?.value === ":" && !t.some((x) => x.kind === "arrow");
11345
+ const keyed = !layout && t[h]?.kind === "ident" && t[h + 1]?.value === ":";
11340
11346
  const keywordHead = !!t.length && isKeywordHead(t);
11341
11347
  let arrow = false;
11342
11348
  let label = false;
@@ -11360,6 +11366,7 @@ var YuhwaService = class {
11360
11366
  else if ((head === "import" || t[0]?.value === "export") && (x.value === "from" || x.value === "as")) push(li, x.start, x.end, "keyword");
11361
11367
  else if (keyed) push(li, x.start, x.end, k === h ? "property" : "enumMember");
11362
11368
  else if (layout && LAYOUT_WORDS.has(x.value)) push(li, x.start, x.end, "keyword");
11369
+ else if (layout && k === 1 && head === "align" && ALIGN_SIDES.some((s) => s === x.value)) push(li, x.start, x.end, "enumMember");
11363
11370
  }
11364
11371
  const line = a.lines[li];
11365
11372
  const end = lex(line).codeEnd;
@@ -1 +1 @@
1
- export { t as startServer } from "./server-BW2tKjSu.js";
1
+ export { t as startServer } from "./server-Bgqav5i4.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-CXRIavFP.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-BFj8Un47.js";
@@ -9,8 +9,8 @@
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-BtRpJvZ9.js";
13
- type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string;
12
+ import { t as YuhwaDocsOptions } from "./figure-CqzRbgF5.js";
13
+ type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string | Promise<string>;
14
14
  interface MarkdownIt {
15
15
  renderer: {
16
16
  rules: {
@@ -1,5 +1,5 @@
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";
1
+ import { d as zoomTag, i as renderBlock, l as toHtml, u as wantsRender } from "./node-MjVxKTHg.js";
2
+ import { a as MD_LANGUAGES } from "./src-WJP0qnZY.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 { rn as table, s as isYuhwaPath } from "./parse-fnqTkelX.js";
4
- import { a as MD_LANGUAGES, n as render } from "./src-CQ8ltV_K.js";
3
+ import { c as isYuhwaPath, mn as table } from "./parse-BT2Xuqty.js";
4
+ import { a as MD_LANGUAGES, n as render } from "./src-WJP0qnZY.js";
5
5
  import { n as zoomScript } from "./zoom-script-DPxmav2F.js";
6
6
  import { t as zoomHeight } from "./zoom-D3Lahr1T.js";
7
- import { o as svgSize, t as base64 } from "./raster-B_SJsm-q.js";
7
+ import { o as svgSize, t as base64 } from "./raster-Dz9_MPsh.js";
8
8
  import { t as svgDataUri } from "./svg-uri-Dx8SGV-n.js";
9
9
  // src/integrations/png.ts
10
10
  let resvg;