@zombie-mermaid/svg-renderer 5.14.0 → 5.14.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.
- package/dist/index.cjs +60 -58
- package/dist/index.js +56 -54
- package/dist/shared/index.d.ts +11 -0
- package/package.json +3 -3
package/dist/shared/index.d.ts
CHANGED
|
@@ -734,6 +734,17 @@ export declare function resolveCssColors(svg: string, colors: DiagramColors): st
|
|
|
734
734
|
*/
|
|
735
735
|
export declare function resolveFontSizes(overrides?: FontSizeOptions): FontSizes;
|
|
736
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Mermaid's self-message loop (`M x,y C x+60,y-10 x+60,y+30 x,y+20`): the
|
|
739
|
+
* control points sit 60px out, so the curve itself reaches 3/4 of that.
|
|
740
|
+
* Shared with the renderer, and with the bounding box and gap fitting here.
|
|
741
|
+
*/
|
|
742
|
+
export declare const SELF_LOOP_CONTROL = 60;
|
|
743
|
+
|
|
744
|
+
export declare const SELF_LOOP_EXTENT: number;
|
|
745
|
+
|
|
746
|
+
export declare const SELF_LOOP_HEIGHT = 20;
|
|
747
|
+
|
|
737
748
|
export declare function smoothCurvePath(points: Array<{
|
|
738
749
|
x: number;
|
|
739
750
|
y: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zombie-mermaid/svg-renderer",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.2",
|
|
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/
|
|
54
|
-
"@zombie-mermaid/
|
|
53
|
+
"@zombie-mermaid/core": "5.14.2",
|
|
54
|
+
"@zombie-mermaid/mermaid-parser": "5.14.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"elkjs": "^0.11.0 || ^0.12.0"
|