@zombie-mermaid/svg-renderer 5.14.2 → 5.14.4

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.
@@ -394,11 +394,11 @@ export declare function layoutClassDiagramSync(diagram: ClassDiagram, options?:
394
394
  export declare function layoutErDiagramSync(diagram: ErDiagram, options?: ErRenderOptions): PositionedErDiagram;
395
395
 
396
396
  /**
397
- * Lay out a flowchart, with its subgraphs arranged the way mermaid.js arranges
398
- * them (see `layout-engine/compound-flat.ts`). Anything that layout doesn't
399
- * handle, or can't make fit, is laid out by `layoutGraphSync`, so this is a
400
- * drop-in for it wherever the graph is a flowchart. Other diagram types that
401
- * share the engine (state, architecture) keep using `layoutGraphSync`.
397
+ * Lay out a flowchart. A flowchart with subgraphs is sent to ELK the way
398
+ * mermaid@12.3.0 sends it (one pass over the whole hierarchy; see
399
+ * `layoutGraphSync` and `usesMermaidElkPipeline` in `layout-engine/to-elk.ts`),
400
+ * then kept clear of subgraph borders. Other diagram types that share the
401
+ * engine (state, architecture) keep using `layoutGraphSync`.
402
402
  */
403
403
  export declare function layoutFlowchartSync(rawGraph: MermaidGraph, options?: FlowchartRenderOptions): PositionedGraph;
404
404
 
@@ -824,7 +824,9 @@ export declare function withDataSrc(svgTag: string, source: string | undefined):
824
824
  * Step between shown x-axis labels: 1 when every pair of neighbouring labels
825
825
  * keeps `X_LABEL_MIN_GAP` of clear space, otherwise the smallest n for which
826
826
  * every pair of shown (every n-th) labels does. Checked pairwise on the real
827
- * widths so one long label doesn't thin out an otherwise roomy axis.
827
+ * widths so one long label doesn't thin out an otherwise roomy axis. No longer
828
+ * used by the SVG layout, which labels every category as mermaid 12.2.0 does;
829
+ * kept as public API.
828
830
  */
829
831
  export declare function xLabelStep(labels: string[], bandWidth: number): number;
830
832
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zombie-mermaid/svg-renderer",
3
- "version": "5.14.2",
3
+ "version": "5.14.4",
4
4
  "license": "MIT",
5
5
  "description": "SVG rendering primitives and the ELK-backed layout engine behind zombie-mermaid's SVG output (maintained continuation of beautiful-mermaid).",
6
6
  "keywords": [
@@ -50,8 +50,8 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "entities": "^7.0.1",
53
- "@zombie-mermaid/core": "5.14.2",
54
- "@zombie-mermaid/mermaid-parser": "5.14.2"
53
+ "@zombie-mermaid/mermaid-parser": "5.14.4",
54
+ "@zombie-mermaid/core": "5.14.4"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "elkjs": "^0.11.0 || ^0.12.0"