flow-mindmap 0.5.1 → 0.5.3

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.
@@ -75,6 +75,11 @@ import type { MindMapNode, MindMapImage, RichContent } from '../types';
75
75
  * roughly 2.14× larger nodes. */
76
76
  declare function fontAt(depth: number, baseFontSize?: number): number;
77
77
  declare function heightAt(depth: number, baseFontSize?: number): number;
78
+ /** Horizontal (or vertical, in org mode) gap between a parent at the
79
+ * given depth and its immediate children. The gap shrinks with
80
+ * depth so deeper tiers sit closer together, but never below
81
+ * H_GAP_MIN. */
82
+ declare function hGapForDepth(parentDepth: number): number;
78
83
  /** Max text-label width in px. MUST match `max-width` on `.zm-text`
79
84
  * in MindMap.vue. The layout reserves this much room for the label
80
85
  * regardless of how long the actual text is — the DOM then truncates
@@ -140,10 +145,16 @@ export declare const LAYOUT: {
140
145
  NODE_PAD_H: number[];
141
146
  NODE_FONT_WEIGHTS: number[];
142
147
  H_GAP: number;
148
+ H_GAP_MIN: number;
149
+ H_GAP_DECAY: number;
143
150
  V_GAP: number;
144
151
  SIDE_PADDING: number;
145
152
  heightAt: typeof heightAt;
146
153
  fontAt: typeof fontAt;
154
+ /** Depth-dependent horizontal gap between a parent at `parentDepth`
155
+ * and its children. Deeper tiers get a smaller gap, clamped to
156
+ * H_GAP_MIN. */
157
+ hGapForDepth: typeof hGapForDepth;
147
158
  /** Clear the text-measurement cache (call after font load). */
148
159
  clearMeasureCache: () => void;
149
160
  };