@zombie-mermaid/core 2.2.1 → 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 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. `componentSpacing` is currently a no-op
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' | 'componentSpacing' | 'mergeEdges' | 'direction' | 'curve' | 'fontSizes' | 'interactivity' | 'layoutCache'>;
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. `componentSpacing` is currently a no-op
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' | 'componentSpacing' | 'mergeEdges' | 'direction' | 'curve' | 'fontSizes' | 'interactivity' | 'layoutCache'>;
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
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@zombie-mermaid/core",
3
- "version": "2.2.1",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared types, theme, and text/statement utilities used by every zombie-mermaid renderer.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/dfadler/zombie-mermaid",
9
+ "directory": "packages/core"
10
+ },
6
11
  "type": "module",
7
12
  "sideEffects": false,
8
13
  "main": "dist/index.cjs",
@@ -32,4 +37,4 @@
32
37
  "dependencies": {
33
38
  "elkjs": "^0.11.0"
34
39
  }
35
- }
40
+ }
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. `componentSpacing` is currently a no-op
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'