@zombie-mermaid/core 2.2.6 → 3.0.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.
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/package.json +1 -1
- package/src/types.ts +1 -6
package/dist/index.d.cts
CHANGED
|
@@ -189,11 +189,9 @@ export declare function extractInitConfig(lines: string[]): InitConfig;
|
|
|
189
189
|
* Options applicable to flowchart (`graph` / `flowchart`) and state
|
|
190
190
|
* (`stateDiagram-v2`) diagrams — both share `DiagramType: 'flowchart'` and
|
|
191
191
|
* the same layout/render pipeline (src/layout-engine.ts, src/renderer.ts),
|
|
192
|
-
* so they share one option shape.
|
|
193
|
-
* everywhere (accepted for forward compatibility only) but grouped here
|
|
194
|
-
* since it's spacing-shaped like `padding`/`nodeSpacing`/`layerSpacing`.
|
|
192
|
+
* so they share one option shape.
|
|
195
193
|
*/
|
|
196
|
-
export declare type FlowchartRenderOptions = CommonRenderOptions & Pick<RenderOptions, 'padding' | 'nodeSpacing' | 'layerSpacing' | '
|
|
194
|
+
export declare type FlowchartRenderOptions = CommonRenderOptions & Pick<RenderOptions, 'padding' | 'nodeSpacing' | 'layerSpacing' | 'mergeEdges' | 'direction' | 'curve' | 'fontSizes' | 'interactivity' | 'layoutCache'>;
|
|
197
195
|
|
|
198
196
|
/**
|
|
199
197
|
* Serialize a color as `#rrggbb` when fully opaque, otherwise as
|
|
@@ -640,8 +638,6 @@ export declare interface RenderOptions {
|
|
|
640
638
|
nodeSpacing?: number;
|
|
641
639
|
/** Vertical spacing between layers. Default: 48. Flowchart/state diagrams only — class/ER diagrams use fixed internal spacing. */
|
|
642
640
|
layerSpacing?: number;
|
|
643
|
-
/** Currently unused — accepted for forward compatibility but not read anywhere. */
|
|
644
|
-
componentSpacing?: number;
|
|
645
641
|
/** Whether to bundle overlapping fan-out/fan-in edge paths into shared trunks to reduce visual clutter. Default: true */
|
|
646
642
|
mergeEdges?: boolean;
|
|
647
643
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -189,11 +189,9 @@ export declare function extractInitConfig(lines: string[]): InitConfig;
|
|
|
189
189
|
* Options applicable to flowchart (`graph` / `flowchart`) and state
|
|
190
190
|
* (`stateDiagram-v2`) diagrams — both share `DiagramType: 'flowchart'` and
|
|
191
191
|
* the same layout/render pipeline (src/layout-engine.ts, src/renderer.ts),
|
|
192
|
-
* so they share one option shape.
|
|
193
|
-
* everywhere (accepted for forward compatibility only) but grouped here
|
|
194
|
-
* since it's spacing-shaped like `padding`/`nodeSpacing`/`layerSpacing`.
|
|
192
|
+
* so they share one option shape.
|
|
195
193
|
*/
|
|
196
|
-
export declare type FlowchartRenderOptions = CommonRenderOptions & Pick<RenderOptions, 'padding' | 'nodeSpacing' | 'layerSpacing' | '
|
|
194
|
+
export declare type FlowchartRenderOptions = CommonRenderOptions & Pick<RenderOptions, 'padding' | 'nodeSpacing' | 'layerSpacing' | 'mergeEdges' | 'direction' | 'curve' | 'fontSizes' | 'interactivity' | 'layoutCache'>;
|
|
197
195
|
|
|
198
196
|
/**
|
|
199
197
|
* Serialize a color as `#rrggbb` when fully opaque, otherwise as
|
|
@@ -640,8 +638,6 @@ export declare interface RenderOptions {
|
|
|
640
638
|
nodeSpacing?: number;
|
|
641
639
|
/** Vertical spacing between layers. Default: 48. Flowchart/state diagrams only — class/ER diagrams use fixed internal spacing. */
|
|
642
640
|
layerSpacing?: number;
|
|
643
|
-
/** Currently unused — accepted for forward compatibility but not read anywhere. */
|
|
644
|
-
componentSpacing?: number;
|
|
645
641
|
/** Whether to bundle overlapping fan-out/fan-in edge paths into shared trunks to reduce visual clutter. Default: true */
|
|
646
642
|
mergeEdges?: boolean;
|
|
647
643
|
/**
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -292,8 +292,6 @@ export interface RenderOptions {
|
|
|
292
292
|
nodeSpacing?: number
|
|
293
293
|
/** Vertical spacing between layers. Default: 48. Flowchart/state diagrams only — class/ER diagrams use fixed internal spacing. */
|
|
294
294
|
layerSpacing?: number
|
|
295
|
-
/** Currently unused — accepted for forward compatibility but not read anywhere. */
|
|
296
|
-
componentSpacing?: number
|
|
297
295
|
/** Whether to bundle overlapping fan-out/fan-in edge paths into shared trunks to reduce visual clutter. Default: true */
|
|
298
296
|
mergeEdges?: boolean
|
|
299
297
|
/**
|
|
@@ -614,9 +612,7 @@ export type CommonRenderOptions = Pick<
|
|
|
614
612
|
* Options applicable to flowchart (`graph` / `flowchart`) and state
|
|
615
613
|
* (`stateDiagram-v2`) diagrams — both share `DiagramType: 'flowchart'` and
|
|
616
614
|
* the same layout/render pipeline (src/layout-engine.ts, src/renderer.ts),
|
|
617
|
-
* so they share one option shape.
|
|
618
|
-
* everywhere (accepted for forward compatibility only) but grouped here
|
|
619
|
-
* since it's spacing-shaped like `padding`/`nodeSpacing`/`layerSpacing`.
|
|
615
|
+
* so they share one option shape.
|
|
620
616
|
*/
|
|
621
617
|
export type FlowchartRenderOptions = CommonRenderOptions &
|
|
622
618
|
Pick<
|
|
@@ -624,7 +620,6 @@ export type FlowchartRenderOptions = CommonRenderOptions &
|
|
|
624
620
|
| 'padding'
|
|
625
621
|
| 'nodeSpacing'
|
|
626
622
|
| 'layerSpacing'
|
|
627
|
-
| 'componentSpacing'
|
|
628
623
|
| 'mergeEdges'
|
|
629
624
|
| 'direction'
|
|
630
625
|
| 'curve'
|