@sobree/core 0.1.26 → 0.1.27
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AnchoredFrame, Block } from '../../doc/types';
|
|
1
|
+
import { AnchoredFrame, Block, SectionProperties } from '../../doc/types';
|
|
2
2
|
/**
|
|
3
3
|
* Splice flowable frames' content into `body` at their anchor
|
|
4
4
|
* paragraph and drop them from the overlay set. Returns the rebuilt
|
|
5
5
|
* body and the frames that remain overlays (with `paragraphIndex`
|
|
6
6
|
* remapped to the new body positions). Pure — no mutation of inputs.
|
|
7
7
|
*/
|
|
8
|
-
export declare function flowDisplacingTextboxes(body: readonly Block[], frames: readonly AnchoredFrame[]): {
|
|
8
|
+
export declare function flowDisplacingTextboxes(body: readonly Block[], frames: readonly AnchoredFrame[], sections: readonly SectionProperties[]): {
|
|
9
9
|
body: Block[];
|
|
10
10
|
frames: AnchoredFrame[];
|
|
11
11
|
};
|
|
@@ -10,4 +10,8 @@ import { Block, NamedStyle, NumberingDefinition, SectionProperties } from '../..
|
|
|
10
10
|
* `rawParts` is threaded to image rendering so `<img src>` can be
|
|
11
11
|
* populated from embedded bytes via a blob URL.
|
|
12
12
|
*/
|
|
13
|
-
export declare function renderBlocks(blocks: readonly Block[], host: HTMLElement, numbering: readonly NumberingDefinition[], styles?: readonly NamedStyle[], rawParts?: Record<string, Uint8Array>, blockIds?: readonly string[], sections?: readonly SectionProperties[]
|
|
13
|
+
export declare function renderBlocks(blocks: readonly Block[], host: HTMLElement, numbering: readonly NumberingDefinition[], styles?: readonly NamedStyle[], rawParts?: Record<string, Uint8Array>, blockIds?: readonly string[], sections?: readonly SectionProperties[],
|
|
14
|
+
/** Body block indices that carry an anchored frame. Such a block counts
|
|
15
|
+
* as a valid target for a deferred page break even when its body flow is
|
|
16
|
+
* empty — a float-only brochure panel page is still a page. */
|
|
17
|
+
frameAnchoredIndices?: ReadonlySet<number>): void;
|