yuhwa 1.1.0 → 1.2.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 (39) hide show
  1. package/dist/astro.d.ts +1 -1
  2. package/dist/browser.d.ts +2 -2
  3. package/dist/browser.js +2 -2
  4. package/dist/cli.js +11 -6
  5. package/dist/editor/assets/index-BphHLTvA.js +689 -0
  6. package/dist/editor/assets/lsp.worker-sZtzIA6-.js +30 -0
  7. package/dist/editor/index.html +1 -1
  8. package/dist/{figure-db587hh6.d.ts → figure-CA2hy0xh.d.ts} +1 -1
  9. package/dist/{index-CAO4FUcz.d.ts → index-CnnoZYl0.d.ts} +29 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +1 -1
  12. package/dist/ironmark.d.ts +1 -1
  13. package/dist/ironmark.js +1 -1
  14. package/dist/llms.txt +15 -10
  15. package/dist/lsp-browser.d.ts +2 -2
  16. package/dist/lsp-browser.js +1 -1
  17. package/dist/lsp-node.js +169 -31
  18. package/dist/lsp-server.d.ts +1 -1
  19. package/dist/lsp-server.js +1 -1
  20. package/dist/lsp.d.ts +44 -2
  21. package/dist/lsp.js +1 -1
  22. package/dist/markdown-it.d.ts +1 -1
  23. package/dist/markdown-it.js +1 -1
  24. package/dist/{node-DPojgovD.js → node-Bzn2uKXZ.js} +3 -3
  25. package/dist/remark.d.ts +1 -1
  26. package/dist/remark.js +1 -1
  27. package/dist/{server-BSHSx8uo.d.ts → server--jHjJjOS.d.ts} +1 -1
  28. package/dist/{server-CT_mbBNZ.js → server-Dxo7OG8K.js} +19 -2
  29. package/dist/{service-CNM6Z-RH.js → service-B1fpOg_L.js} +268 -29
  30. package/dist/{service-DquYYTVG.d.ts → service-Brvpt7Do.d.ts} +2 -0
  31. package/dist/{shared-B2rP00uA.js → shared-Ddw88O9D.js} +881 -417
  32. package/dist/{src-hrqH-a8K.js → src-DkQj7aIV.js} +855 -444
  33. package/dist/vite.d.ts +1 -1
  34. package/dist/vite.js +2 -2
  35. package/dist/vuepress.d.ts +1 -1
  36. package/dist/yuhwa.iife.js +63 -72
  37. package/package.json +1 -1
  38. package/dist/editor/assets/index-BGtCSg84.js +0 -689
  39. package/dist/editor/assets/lsp.worker-DUpBJRU2.js +0 -26
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as YuhwaDocsOptions } from "./figure-db587hh6.js";
1
+ import { t as YuhwaDocsOptions } from "./figure-CA2hy0xh.js";
2
2
  interface SetupParams {
3
3
  updateConfig: (config: {
4
4
  markdown: {
package/dist/browser.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * <yuhwa-diagram src="big.yu" zoom="480px"></yuhwa-diagram> // pan and zoom
10
10
  * el.source = 'a -> b' // re-renders
11
11
  */
12
- import { $ as PANELS, $t as PanelCtx, A as MdBlock, An as createTheme, At as Layout, B as setProp, Bt as PartEdit, C as NODE_PROPS, Cn as RAMPS, Ct as GroupDecl, D as ConvertResult, Dn as TONES, Dt as LaidGroup, E as lint, En as THEME_NAMES, Et as LaidEdge, F as replaceBlockSource, Fn as ramp, Ft as PanelHandle, G as lineStyle, Gt as ShapeName, H as writeLayout, Ht as Props, I as editPart, In as registerTheme, It as PanelOverride, J as JsonResult, Jt as GRID, K as SHAPES, Kt as Side, L as formatLayout, Ln as themeNames, Lt as PanelPart, M as MdResult, Mn as isSafeCss, Mt as NodeDecl, N as findBlocks, Nn as isSafeLink, Nt as NodeOverride, O as fromMermaid, On as Theme, Ot as LaidNode, P as processMarkdown, Pn as isToneOrHex, Pt as PanelDecl, Q as LexedLine, Qt as FrameKind, R as setLabel, Rn as approxMeasure, Rt as PartAction, S as GROUP_PROPS, Sn as LineStyle, St as EdgeOverride, T as PANEL_PROPS, Tn as THEME_KEYS, Tt as LabelRef, U as writePanelDrag, Ut as ResolvedEdgeStyle, V as setSetting, Vt as Point, W as dashFor, Wt as ResolvedNodeStyle, X as renderSvg, Xt as layout, Y as fromJSON, Yt as groupPath, Z as KNOWN_SETTINGS, Zt as Decoration, _ as themes, _n as Seg, _t as Curve, an as StatementKind, at as isYuhwaPath, b as EDGE_PROPS, bn as segsW, bt as Direction, c as git, cn as perPass, ct as onlyColor, d as sequence, dn as unuse, dt as serializeProps, en as PanelKind, et as ParseOptions, f as legend, fn as use, ft as setLineProp, g as charts, gn as InkColors, gt as Component, h as tables, hn as renderHead, ht as Box, i as hash, in as RowPaint, it as blockBraces, j as MdOptions, jn as getTheme, jt as LayoutOverrides, k as isMermaid, kn as ThemeInput, kt as LaidPanel, l as chart, ln as recolor, lt as parse, m as frames, mn as ShapeKind, mt as splitTrailingProps, n as Options, nn as RowCtx, nt as Tok, o as toSource, on as YuhwaPlugin, ot as joinPath, p as footer, pn as MarkerKind, pt as setTrailingProp, q as DiagramJSON, qt as SourceRef, r as Result, rn as RowKind, rt as TokKind, s as builtins, sn as optionKind, st as lex, t as InputFormat, tn as PanelOption, tt as SETTING_VALUES, u as timeline, un as registry, ut as parseProps, v as GUIDE, vn as parseInline, vt as Diagnostic, w as NUMBERS, wn as THEMES, wt as HeadKind, x as ENUMS, xn as tspans, xt as EdgeDecl, y as BOOLS, yn as renderSegs, yt as Diagram, z as setPartTone, zn as canvasMeasure, zt as PartChange } from "./index-CAO4FUcz.js";
12
+ import { $ as LexedLine, $t as FrameKind, A as isMermaid, An as ThemeInput, At as LaidPanel, B as setPartTone, Bn as canvasMeasure, Bt as PartChange, C as GROUP_PROPS, Cn as LineStyle, Ct as EdgeOverride, D as lint, Dn as THEME_NAMES, Dt as LaidEdge, E as PANEL_PROPS, En as THEME_KEYS, Et as LabelRef, F as processMarkdown, Fn as isToneOrHex, Ft as PanelDecl, G as dashFor, Gt as ResolvedNodeStyle, H as setSetting, Ht as Point, I as replaceBlockSource, In as ramp, It as PanelHandle, J as DiagramJSON, Jt as SourceRef, K as lineStyle, Kt as ShapeName, L as editPart, Ln as registerTheme, Lt as PanelOverride, M as MdOptions, Mn as getTheme, Mt as LayoutOverrides, N as MdResult, Nn as isSafeCss, Nt as NodeDecl, O as ConvertResult, On as TONES, Ot as LaidGroup, P as findBlocks, Pn as isSafeLink, Pt as NodeOverride, Q as KNOWN_SETTINGS, Qt as Decoration, R as formatLayout, Rn as themeNames, Rt as PanelPart, S as ENUMS, Sn as tspans, St as EdgeDecl, T as NUMBERS, Tn as THEMES, Tt as HeadKind, U as writeLayout, Ut as Props, V as setProp, Vt as PartEdit, W as writePanelDrag, Wt as ResolvedEdgeStyle, X as fromJSON, Xt as groupPath, Y as JsonResult, Yt as GRID, Z as renderSvg, Zt as layout, _ as themes, _n as InkColors, _t as Component, an as RowPaint, at as blockBraces, b as COLORS, bn as renderSegs, bt as Diagram, c as git, cn as optionKind, ct as lex, d as sequence, dn as registry, dt as parseProps, en as PanelCtx, et as PANELS, f as legend, fn as unuse, ft as serializeProps, g as charts, gn as renderHead, gt as Box, h as tables, hn as ShapeKind, ht as splitTrailingProps, i as hash, in as RowKind, it as TokKind, j as MdBlock, jn as createTheme, jt as Layout, k as fromMermaid, kn as Theme, kt as LaidNode, l as chart, ln as perPass, lt as onlyColor, m as frames, mn as MarkerKind, mt as setTrailingProp, n as Options, nn as PanelOption, nt as SETTING_VALUES, o as toSource, on as StatementKind, ot as isYuhwaPath, p as footer, pn as use, pt as setLineProp, q as SHAPES, qt as Side, r as Result, rn as RowCtx, rt as Tok, s as builtins, sn as YuhwaPlugin, st as joinPath, t as InputFormat, tn as PanelKind, tt as ParseOptions, u as timeline, un as recolor, ut as parse, v as GUIDE, vn as Seg, vt as Curve, w as NODE_PROPS, wn as RAMPS, wt as GroupDecl, x as EDGE_PROPS, xn as segsW, xt as Direction, y as BOOLS, yn as parseInline, yt as Diagnostic, z as setLabel, zn as approxMeasure, zt as PartAction } from "./index-CnnoZYl0.js";
13
13
  import { i as zoomable, n as Zoomer, r as zoomHeight, t as ZoomOptions } from "./zoom-CCSUbX1X.js";
14
14
  export declare function render(source: string, opts?: Options): Result;
15
15
  /**
@@ -34,4 +34,4 @@ export declare class YuhwaDiagram extends Base {
34
34
  connectedCallback(): void;
35
35
  attributeChangedCallback(): void;
36
36
  }
37
- export { BOOLS, type Box, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, 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, 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 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, type ZoomOptions, type Zoomer, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
37
+ 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 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, 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 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, type ZoomOptions, type Zoomer, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
package/dist/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as setLineProp, A as approxMeasure, At as themeNames, B as unuse, C as builtins, Ct as createTheme, D as sequence, Dt as isToneOrHex, E as timeline, Et as isSafeLink, F as themes, G as blockBraces, H as KNOWN_SETTINGS, I as optionKind, J as lex, K as isYuhwaPath, L as perPass, M as frames, N as tables, O as legend, Ot as ramp, P as charts, Q as serializeProps, R as recolor, S as layout, St as TONES, T as chart, Tt as isSafeCss, U as PANELS, V as use, W as SETTING_VALUES, X as parse, Y as onlyColor, Z as parseProps, _ as isMermaid, _t as tspans, a as findBlocks, at as GROUP_PROPS, b as GRID, bt as THEME_KEYS, c as editPart, ct as PANEL_PROPS, d as setPartTone, dt as renderHead, et as setTrailingProp, f as setProp, ft as dashFor, g as fromMermaid, gt as segsW, h as writePanelDrag, ht as renderSegs, i as GUIDE, it as ENUMS, j as canvasMeasure, k as footer, kt as registerTheme, l as formatLayout, lt as lint, m as writeLayout, mt as parseInline, n as render$1, nt as BOOLS, o as processMarkdown, ot as NODE_PROPS, p as setSetting, pt as lineStyle, q as joinPath, r as toSource, rt as EDGE_PROPS, s as replaceBlockSource, st as NUMBERS, t as hash, tt as splitTrailingProps, u as setLabel, ut as SHAPES, v as fromJSON, vt as RAMPS, w as git, wt as getTheme, x as groupPath, xt as THEME_NAMES, y as renderSvg, yt as THEMES, z as registry } from "./src-hrqH-a8K.js";
1
+ import { $ as setLineProp, A as approxMeasure, At as isSafeCss, B as unuse, C as builtins, Ct as RAMPS, D as sequence, Dt as TONES, E as timeline, Et as THEME_NAMES, F as themes, Ft as themeNames, G as blockBraces, H as KNOWN_SETTINGS, I as optionKind, J as lex, K as isYuhwaPath, L as perPass, M as frames, Mt as isToneOrHex, N as tables, Nt as ramp, O as legend, Ot as createTheme, P as charts, Pt as registerTheme, Q as serializeProps, R as recolor, S as layout, St as tspans, T as chart, Tt as THEME_KEYS, U as PANELS, V as use, W as SETTING_VALUES, X as parse, Y as onlyColor, Z as parseProps, _ as isMermaid, _t as parseInline, a as findBlocks, at as ENUMS, b as GRID, bt as segsW, c as editPart, ct as NUMBERS, d as setPartTone, dt as lint, et as setTrailingProp, f as setProp, ft as SHAPES, g as fromMermaid, h as writePanelDrag, ht as lineStyle, i as GUIDE, it as EDGE_PROPS, j as canvasMeasure, jt as isSafeLink, k as footer, kt as getTheme, l as formatLayout, lt as PANEL_PROPS, m as writeLayout, mt as dashFor, n as render$1, nt as BOOLS, o as processMarkdown, ot as GROUP_PROPS, p as setSetting, pt as renderHead, q as joinPath, r as toSource, rt as COLORS, s as replaceBlockSource, st as NODE_PROPS, t as hash, tt as splitTrailingProps, u as setLabel, v as fromJSON, w as git, wt as THEMES, x as groupPath, y as renderSvg, yt as renderSegs, z as registry } from "./src-DkQj7aIV.js";
2
2
  import { n as zoomable, t as zoomHeight } from "./zoom-QeqB6QlH.js";
3
3
  // src/browser.ts
4
4
  /**
@@ -184,4 +184,4 @@ if (typeof document !== "undefined") {
184
184
  else run();
185
185
  }
186
186
  }
187
- export { BOOLS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, YuhwaDiagram, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, fetchImports, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
187
+ export { BOOLS, COLORS, EDGE_PROPS, ENUMS, GRID, GROUP_PROPS, GUIDE, KNOWN_SETTINGS, NODE_PROPS, NUMBERS, PANELS, PANEL_PROPS, RAMPS, SETTING_VALUES, SHAPES, THEMES, THEME_KEYS, THEME_NAMES, TONES, YuhwaDiagram, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, fetchImports, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, optionKind, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, run, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, unuse, use, writeLayout, writePanelDrag, zoomHeight, zoomable };
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 { A as THEME_KEYS, C as ENUMS, D as PANEL_PROPS, M as TONES, N as isSafeCss, O as SHAPES, S as EDGE_PROPS, T as NODE_PROPS, _ as joinPath$1, a as tidy, c as toSource, d as registry, f as KNOWN_SETTINGS, g as isYuhwaPath, i as format, j as THEME_NAMES, k as esc, l as canvasMeasure, m as SETTING_VALUES, o as diskResolve, s as render$1, t as VERSION, u as optionKind, w as GROUP_PROPS } from "./shared-B2rP00uA.js";
3
+ import { C as COLORS, D as NODE_PROPS, E as GROUP_PROPS, I as THEME_KEYS, L as THEME_NAMES, N as esc, R as TONES, T as ENUMS, _ as isYuhwaPath, c as render$1, d as optionKind, f as registry, h as SETTING_VALUES, i as format, j as SHAPES, k as PANEL_PROPS, l as toSource, o as tidy, p as KNOWN_SETTINGS, s as diskResolve, t as VERSION, u as canvasMeasure, v as joinPath$1, w as EDGE_PROPS, z as isSafeCss } from "./shared-Ddw88O9D.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";
@@ -225,13 +225,14 @@ orders --> queue "Events" [shape: hexagon]: publish [flow: true]
225
225
  \`\`\`
226
226
  - Card: a node line ending in \`{\` takes body lines until a line that is only
227
227
  \`}\`. It draws a header (label, \`meta\` right, \`caps\` small caps), a divider
228
- and a monospace body.
228
+ and a monospace body. \`font-size\`/\`font-weight\`/\`text\` style the header;
229
+ \`body-size\`, \`body-weight\`, \`body-color\` and \`line-height\` style the body.
229
230
 
230
231
  ## Values
231
232
 
232
233
  - \`color\` sets fill, border and text in one: \`[blue]\` or \`[color: blue]\`.
233
- Palette: ${list(TONES)}; shades like blue-600; any CSS colour. \`fill\`,
234
- \`stroke\` and \`text\` colour one part.
234
+ Palette: ${list(TONES)}; shades like blue-600; any CSS colour. The colour
235
+ props (${list(COLORS)}) take the same values and colour one part.
235
236
  - Shapes: ${list(SHAPES)}.
236
237
  - Line styles: ${list(ENUMS.style)}. Heads: ${list(ENUMS.head)}. Sides (\`exit\`, \`enter\`): ${list(ENUMS.exit)}.
237
238
  - Themes: ${list(THEME_NAMES)}. Define one with \`theme brand [base: midnight, accent: orange]\`
@@ -269,8 +270,12 @@ checks "checks" [meta: 42s, caps: true] {
269
270
 
270
271
  Lines: text, \`left || right\` (right-aligned part), \`---\` divider, empty gap.
271
272
  Rows: ${code(registry.rows.map((r) => r.syntax ?? r.kind))}; a \`|---|\` row makes a table header.
272
- Inline markup (also in \`title\`, \`subtitle\`, \`footer\`): \`**bold**\`, \`*muted*\`,
273
- \`~~strike~~\`, \`\`code\`\`, \`[[chip]]\` / \`[[green: chip]]\`, \`{red: text}\`.
273
+ Inline markup (in every text: labels, \`sub\`, edge labels, group and panel titles,
274
+ \`title\`, \`subtitle\`, \`footer\`): \`**bold**\`, \`*muted*\`, \`~~strike~~\`, \`\`code\`\`,
275
+ \`[[chip]]\` / \`[[green: chip]]\`, \`{red: text}\`, and styled spans
276
+ \`{color: red, size: 18, weight: 700, italic | text}\` (short: \`{red, bold | text}\`).
277
+ Text props on every element (node, edge label, group and panel title): \`text\`,
278
+ \`font-size\`, \`font-weight\`, \`italic\`; a panel's \`font-size\` scales all its text.
274
279
 
275
280
  \`legend: .svc Service | --> async | red Deprecated\` and \`footer: a | b\` draw
276
281
  strips under the diagram; a legend item starts with a class, colour or arrow.