yuhwa 1.5.3 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-BdMhpac8.js +689 -0
  8. package/dist/editor/assets/{index-Dd3yJXpt.css → index-BtyZhez4.css} +1 -1
  9. package/dist/editor/assets/{lsp.worker-BuZEbjK9.js → lsp.worker-MP6GH67i.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 +1 -1
  23. package/dist/markdown-it.js +2 -2
  24. package/dist/{node-Cdzt2Mis.js → node-MjEWjzvE.js} +3 -3
  25. package/dist/{parse-fnqTkelX.js → parse-BBETEHLI.js} +434 -60
  26. package/dist/{plugin-DX1Pv2Tq.js → plugin-BvUxNMpW.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-B_C620-4.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-IKsgBoqH.js} +2 -2
  36. package/dist/{service-CXRIavFP.js → service-UapanBwK.js} +17 -10
  37. package/dist/{shared-C_AaGkhz.js → shared-Dz7tyOXD.js} +663 -111
  38. package/dist/{src-CQ8ltV_K.js → src-H9qazt2P.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
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as YuhwaDocsOptions } from "./figure-BtRpJvZ9.js";
1
+ import { t as YuhwaDocsOptions } from "./figure-CqzRbgF5.js";
2
2
  interface Watcher {
3
3
  on: (event: "change" | "add", fn: (file: string) => void) => unknown;
4
4
  add: (files: string[]) => unknown;
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import remarkYuhwa from "./remark.js";
2
2
  import satteriYuhwa from "./satteri.js";
3
- import { n as onTrack, o as clientImports, r as pagesUsing } from "./node-Cdzt2Mis.js";
3
+ import { n as onTrack, o as clientImports, r as pagesUsing } from "./node-MjEWjzvE.js";
4
4
  // src/integrations/astro.ts
5
5
  /**
6
6
  * Astro integration, also for Starlight: renders ```yuhwa blocks in .md and
package/dist/browser.d.ts CHANGED
@@ -11,8 +11,8 @@
11
11
  * <yuhwa-diagram render="canvas">a -> b</yuhwa-diagram> // or png; default svg
12
12
  * el.source = 'a -> b' // re-renders
13
13
  */
14
- 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";
15
- 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, 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";
14
+ 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";
15
+ 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, 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";
16
16
  import { i as zoomable, n as Zoomer, r as zoomHeight, t as ZoomOptions } from "./zoom-CCSUbX1X.js";
17
17
  export declare function render(source: string, opts?: Options): Result;
18
18
  /** `render`, then draw the diagram into a canvas. */
@@ -41,4 +41,4 @@ export declare class YuhwaDiagram extends Base {
41
41
  connectedCallback(): void;
42
42
  attributeChangedCallback(): void;
43
43
  }
44
- 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, type ZoomOptions, type Zoomer, 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, 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, zoomHeight, zoomable };
44
+ 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, type ZoomOptions, type Zoomer, 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, 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, zoomHeight, zoomable };
package/dist/browser.js CHANGED
@@ -1,8 +1,8 @@
1
- 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$1, 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";
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";
1
+ 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$1, 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-H9qazt2P.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-BvUxNMpW.js";
3
3
  import { n as zoomable, t as zoomHeight } from "./zoom-D3Lahr1T.js";
4
- import { a as svgFamilies, c as swapForRaster, n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-B_SJsm-q.js";
5
- 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, b as unquote, 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";
4
+ import { a as svgFamilies, c as swapForRaster, n as embedFonts, r as loadFonts, s as svgToCanvas } from "./raster-B_C620-4.js";
5
+ 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, x as unquote, xt as esc, y as setTrailingProp } from "./parse-BBETEHLI.js";
6
6
  // src/browser.ts
7
7
  /**
8
8
  * Drop-in browser runtime: <script src="yuhwa.js"><\/script>
@@ -251,4 +251,4 @@ if (typeof document !== "undefined") {
251
251
  else run();
252
252
  }
253
253
  }
254
- 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, YuhwaDiagram, addEdge, addNode, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, fetchImports, 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, renderCanvas, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
254
+ 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, YuhwaDiagram, addEdge, addNode, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, embedFonts, esc, fetchImports, 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, renderCanvas, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, shapes, splitTrailingProps, svgToCanvas, tables, themeNames, themes, timeline, toSource, treeview, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
package/dist/canvas.js CHANGED
@@ -17,7 +17,7 @@ function installCanvas() {
17
17
  const swap = async (img) => {
18
18
  const svg = svgFromDataUri(img.getAttribute("src") ?? "");
19
19
  if (svg === void 0) return;
20
- const { swapForRaster } = await import("./raster-B_SJsm-q.js").then((n) => n.i);
20
+ const { swapForRaster } = await import("./raster-B_C620-4.js").then((n) => n.i);
21
21
  const canvas = await swapForRaster(img, svg, "canvas", img.alt);
22
22
  if (canvas) canvas.className = img.className;
23
23
  };
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
3
- import { B as SHAPES, F as NODE_PROPS, G as THEME_KEYS, H as esc, J as isSafeCss, K as THEME_NAMES, L as PANEL_PROPS, M as EDGE_PROPS, N as ENUMS, P as GROUP_PROPS, S as SETTING_VALUES, T as joinPath, _ as canvasMeasure, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, j as COLORS, k as unquote, l as render$1, m as pageBlocks, p as isMarkdown, q as TONES, s as tidy, t as VERSION, u as toSource, v as optionKind, w as isYuhwaPath, y as registry } from "./shared-C_AaGkhz.js";
3
+ import { A as unquote, C as SETTING_VALUES, E as joinPath, F as GROUP_PROPS, I as NODE_PROPS, K as esc, M as COLORS, N as EDGE_PROPS, P as ENUMS, Q as isSafeCss, R as PANEL_PROPS, T as isYuhwaPath, U as ALIGN_SIDES_HINT, V as SHAPES, X as THEME_NAMES, Y as THEME_KEYS, Z as TONES, _ as canvasMeasure, a as formatPage, b as KNOWN_SETTINGS, c as diskResolve, d as MD_LANGUAGES, f as findBlocks, g as replaceBlockSource, h as processMarkdown, i as format, l as render$1, m as pageBlocks, p as isMarkdown, s as tidy, t as VERSION, u as toSource, v as optionKind, y as registry } from "./shared-Dz7tyOXD.js";
4
4
  import { createServer } from "node:http";
5
5
  import { basename, dirname, extname, join, resolve, sep } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
@@ -410,9 +410,14 @@ orders --> queue "Events" [shape: hexagon]: publish [flow: true]
410
410
 
411
411
  \`sub\` is a second, smaller line; \`icon\` an emoji before the label; \`link\`
412
412
  makes a node clickable; \`flow: true\` animates an edge; \`constraint: false\`
413
- keeps an edge out of the layout; \`shape: text\` is an annotation without a box.
413
+ keeps an edge out of the layout; \`merge: in|out|both\` joins edges sharing a node and side into one
414
+ trunk with a single arrow head: as a setting, on a node or group (the edges ending there) or on an
415
+ edge (its own ends); \`shape: text\` is an annotation without a box.
414
416
  \`below: <id>\`, \`above\`, \`right-of\`, \`left-of\` and \`rank\` place a node next to another
415
- node without drawing an edge; do not use invisible edges for that. The \`max-width: <px>\` setting
417
+ node without drawing an edge; do not use invisible edges for that. \`align: [side] <id>\` lines a
418
+ 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
419
+ \`gap: <px>\` spaces its members, also between ranks its own edges join (nested groups inherit it) and \`padding\` takes 1 to 4 numbers like
420
+ CSS (\`8 24\` = top/bottom 8, left/right 24). The \`max-width: <px>\` setting
416
421
  wraps the ranks of a right or left diagram into rows that fit that width.
417
422
  \`frame: <kind> <text>\` draws window chrome: ${list$1(registry.frames.keys())}.
418
423
 
@@ -497,6 +502,9 @@ layout {
497
502
  }
498
503
  \`\`\`
499
504
 
505
+ \`rank a b c\` keeps nodes in one rank. \`align ${ALIGN_SIDES_HINT} a b c\`
506
+ lines up nodes or groups on one edge or their centres; neither pins anything.
507
+
500
508
  \`panel at X Y\` pins a panel. \`panel:part D\` (\`panel:part DX DY\` for free
501
509
  parts) nudges one part:
502
510