@sobree/core 0.1.36 → 0.1.38

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.
@@ -65,6 +65,9 @@ export interface SobreeDocument {
65
65
  */
66
66
  settings?: {
67
67
  defaultTabStopTwips?: number;
68
+ /** `<w:noColumnBalance/>` — disable column balancing at continuous
69
+ * section breaks document-wide (columns fill column-first). */
70
+ noColumnBalance?: boolean;
68
71
  };
69
72
  /**
70
73
  * NOTE: inline-drawing frames are emitted as `InlineFrame` BLOCKS
@@ -39,6 +39,8 @@ export interface SectionColumns {
39
39
  * (Word's `<w:cols w:equalWidth="0">`). Absent/`true` → equal columns,
40
40
  * which the renderer flows with CSS multi-column. */
41
41
  equalWidth?: boolean;
42
+ /** `<w:cols w:sep="1">` — draw a thin vertical rule between columns. */
43
+ separator?: boolean;
42
44
  /** Per-column geometry from `<w:col w:w w:space>`, present only for the
43
45
  * unequal case. `length === count`. Each entry's `spaceTwips` is the
44
46
  * gap AFTER that column (the last column's is usually absent). The
@@ -31,6 +31,10 @@ export interface DocSettings {
31
31
  * for tab advances in paragraphs that don't declare their own
32
32
  * `<w:tabs>`. Word's factory default is 720 twips (0.5"). */
33
33
  defaultTabStopTwips?: number;
34
+ /** `<w:compat><w:noColumnBalance/>` — disable column balancing at
35
+ * continuous section breaks document-wide (columns fill column-first
36
+ * instead of equalising on the last page). */
37
+ noColumnBalance?: boolean;
34
38
  }
35
39
  export declare function parseSettingsXml(xml: string | undefined): DocSettings;
36
40
  /**
@@ -14,4 +14,7 @@ export declare function renderBlocks(blocks: readonly Block[], host: HTMLElement
14
14
  /** Body block indices that carry an anchored frame. Such a block counts
15
15
  * as a valid target for a deferred page break even when its body flow is
16
16
  * empty — a float-only brochure panel page is still a page. */
17
- frameAnchoredIndices?: ReadonlySet<number>): void;
17
+ frameAnchoredIndices?: ReadonlySet<number>,
18
+ /** `<w:noColumnBalance/>` — fill multi-column sections column-first even
19
+ * at continuous breaks (document-wide opt-out of column balancing). */
20
+ noColumnBalance?: boolean): void;
@@ -21,7 +21,7 @@ import { SectionProperties } from '../../../doc/types';
21
21
  * `nextSection` is the section that BEGINS immediately after this one; its
22
22
  * break type is what TERMINATES this one, and so decides balance vs fill.
23
23
  */
24
- export declare function openColumnContainerIfNeeded(host: HTMLElement, section: SectionProperties | undefined, sectionIndex?: number, nextSection?: SectionProperties | undefined): HTMLElement;
24
+ export declare function openColumnContainerIfNeeded(host: HTMLElement, section: SectionProperties | undefined, sectionIndex?: number, nextSection?: SectionProperties | undefined, noColumnBalance?: boolean): HTMLElement;
25
25
  /**
26
26
  * Whether a multi-column section should FILL column-first (column 0 to the
27
27
  * page bottom, then column 1) rather than balance its last page.