@sobree/core 0.1.7 → 0.1.9
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/embed/viewport.d.ts +7 -6
- package/dist/index.d.ts +4 -7
- package/dist/index.js +1348 -1370
- package/dist/index.js.map +1 -1
- package/dist/sobree.d.ts +4 -1
- package/package.json +1 -1
package/dist/embed/viewport.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ export interface ViewportOptions {
|
|
|
8
8
|
pinchZoomSensitivity?: number;
|
|
9
9
|
onScaleChange?: (scale: number) => void;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* re-
|
|
11
|
+
* @deprecated Inert — never fires. Layout-side zoom tiers are retired
|
|
12
|
+
* (see `pickRenderTier`): the tier is permanently 1, because tiered
|
|
13
|
+
* CSS-`zoom` re-layout rewrapped text and shifted pagination at tier
|
|
14
|
+
* boundaries. Zoom is a pure `transform: scale`; sharpness comes from
|
|
15
|
+
* the settle-phase re-raster. Retained so existing wiring compiles.
|
|
16
16
|
*/
|
|
17
17
|
onRenderTierChange?: (tier: number) => void;
|
|
18
18
|
/**
|
|
@@ -69,7 +69,8 @@ export declare class Viewport implements GestureHost {
|
|
|
69
69
|
/** Reset pan to origin and scale to 1. */
|
|
70
70
|
reset(): void;
|
|
71
71
|
getScale(): number;
|
|
72
|
-
/**
|
|
72
|
+
/** @deprecated Always `1` — layout-side zoom tiers are retired (see
|
|
73
|
+
* `pickRenderTier`). Retained so existing wiring compiles. */
|
|
73
74
|
getRenderTier(): number;
|
|
74
75
|
/**
|
|
75
76
|
* Fit `target` to the viewport.
|
package/dist/index.d.ts
CHANGED
|
@@ -21,16 +21,15 @@ export type { ApiRangeType, RevisionSpan, BlockInfo, ChangePayload, CommandBus,
|
|
|
21
21
|
export * from './doc/types';
|
|
22
22
|
export * from './doc/builders';
|
|
23
23
|
export { resolveStyleCascade } from './doc/styles';
|
|
24
|
-
export {
|
|
25
|
-
export { embedFontIntoDoc, removeFontFromDoc, FontFaceRegistry, generateFontKey, obfuscate, deobfuscate, isUnobfuscated, canEmbed, readFsType, } from './fonts';
|
|
24
|
+
export { embedFontIntoDoc, removeFontFromDoc, FontFaceRegistry, generateFontKey, obfuscate, deobfuscate, canEmbed, readFsType, } from './fonts';
|
|
26
25
|
export type { EmbedFontFaces, EmbedFontOptions, EmbedFontResult, EmbedMode, FsTypeReport, } from './fonts';
|
|
27
26
|
export { DEFAULT_HISTORY_CONFIG, History } from './history';
|
|
28
27
|
export type { HistoryConfig, HistoryDepth, HistoryEvent, HistoryListener, } from './history';
|
|
29
|
-
export { templateToBlocks, blocksToTemplate
|
|
28
|
+
export { templateToBlocks, blocksToTemplate } from './doc/pageSetupBridge';
|
|
30
29
|
export type { Selection, BlockRef, InlinePosition, Range } from './doc/api';
|
|
31
30
|
export { PaperStack } from './paperStack/paperStack';
|
|
32
31
|
export { Paper } from './paperStack/paper';
|
|
33
|
-
export { PAGE_SIZES, DEFAULT_PAGE_SETUP
|
|
32
|
+
export { PAGE_SIZES, DEFAULT_PAGE_SETUP } from './paperStack/pageSetup';
|
|
34
33
|
export type { PageSetup, PageSizeKey, PageZoneText, VerticalAlign, Orientation, Margins } from './paperStack/pageSetup';
|
|
35
34
|
export { Viewport } from './embed/viewport';
|
|
36
35
|
export type { ViewportOptions } from './embed/viewport';
|
|
@@ -41,9 +40,7 @@ export { MARK_COMMAND_DEFS, MARK_PROP, MARK_ON, toggleMark, isMarkActive, rangeA
|
|
|
41
40
|
export type { MarkCommandDef, ToggleableMark } from './plugins/marks';
|
|
42
41
|
export { enterZoneEdit } from './zoneEdit';
|
|
43
42
|
export type { ZoneKind, EnterZoneEditOptions } from './zoneEdit';
|
|
44
|
-
export {
|
|
45
|
-
export { attrsToRunProps, deltaToRuns, runPropsToAttrs, runsToDelta, } from './ydoc';
|
|
46
|
-
export type { DeltaOp, EmbedContent, LinkMark } from './ydoc';
|
|
43
|
+
export { applyDocumentToYDoc, projectYDoc, seedYDoc } from './ydoc';
|
|
47
44
|
export { BlobCache, BlobStoreError, fetchBlobStore, inMemoryBlobStore, isBlobHash, sha256Hex, } from './blob';
|
|
48
45
|
export type { BlobCacheOptions, BlobHash, BlobStore, FetchBlobStoreOptions, } from './blob';
|
|
49
46
|
export { HeadlessSobree } from './headless';
|