@embedpdf/web 3.0.0-next.15 → 3.0.0-next.16

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
@@ -58,6 +58,47 @@ interface WebClock {
58
58
  */
59
59
  declare function browserClock(): WebClock;
60
60
  //#endregion
61
+ //#region src/printer.d.ts
62
+ /**
63
+ * The browser's print dialog, for the kernel: `createKernel({ printer: browserPrinter() })`.
64
+ *
65
+ * Where the browser's own PDF viewer prints a PDF file (a desktop browser with it on), the
66
+ * printer takes the kernel's PDF copy and the viewer prints it from a hidden frame: sharp text
67
+ * and lines. Everywhere it prints pictures: one sheet per page, the page's picture on a sheet of
68
+ * the page's own size (`@page`), shrunk to fit when the browser prints on other paper. A desktop
69
+ * browser prints the sheets from a hidden frame. iOS prints a frame as a picture of the page
70
+ * around it, so there the sheets print from the page itself, hidden on screen. Safari prints only
71
+ * from a tap, so there the printer says it `needsTap`.
72
+ *
73
+ * Structurally `HostPrinter` from `@embedpdf/core`, declared here so this package stays
74
+ * dependency-free.
75
+ */
76
+ /** Structural twin of `PrintSheet` (`@embedpdf/core`). */
77
+ interface WebPrintSheet {
78
+ readonly image: Blob;
79
+ readonly widthPt: number;
80
+ readonly heightPt: number;
81
+ }
82
+ /** Structural twin of `StagedPrint` (`@embedpdf/core`). */
83
+ interface WebStagedPrint {
84
+ print(): Promise<void>;
85
+ dispose(): void;
86
+ }
87
+ /** Structural twin of `HostPrinter` (`@embedpdf/core`). */
88
+ interface WebPrinter {
89
+ readonly needsTap?: boolean;
90
+ stage(sheets: readonly WebPrintSheet[], options: {
91
+ readonly name: string;
92
+ readonly signal?: AbortSignal;
93
+ }): Promise<WebStagedPrint>;
94
+ stagePdf?(pdf: Uint8Array, options: {
95
+ readonly name: string;
96
+ readonly signal?: AbortSignal;
97
+ }): Promise<WebStagedPrint>;
98
+ }
99
+ /** The browser's printer: it prints PDFs where the browser's own PDF viewer does. */
100
+ declare function browserPrinter(): WebPrinter;
101
+ //#endregion
61
102
  //#region src/css-text.d.ts
62
103
  /**
63
104
  * Style records as CSS text. This package hands styles out as records with
@@ -2101,8 +2142,8 @@ interface TextBoxCss {
2101
2142
  /** The plate's inset from the box, in page points. */
2102
2143
  padding: number;
2103
2144
  }
2104
- /** A text box's body style as CSS: put it on the editor element. */
2105
- interface TextBoxStyle {
2145
+ /** A text box's body style as CSS. */
2146
+ type TextBoxStyle = {
2106
2147
  fontFamily: string;
2107
2148
  /** In pixels, with its unit. */
2108
2149
  fontSize: string;
@@ -2111,40 +2152,111 @@ interface TextBoxStyle {
2111
2152
  fontStyle: string;
2112
2153
  textDecoration: string;
2113
2154
  textAlign: 'left' | 'center' | 'right';
2114
- }
2115
- /**
2116
- * A text box's body style at `scale` pixels per point: font, size, color and
2117
- * alignment. No line height: the editor binding states the engine's line
2118
- * model per face on the element itself.
2119
- */
2120
- declare function textBoxStyleOf(css: TextBoxCss, scale: number): TextBoxStyle;
2121
- /** Where a free text's editor element goes, and the scale it draws at. */
2122
- interface TextPlatePixels {
2123
- left: number;
2124
- top: number;
2125
- width: number;
2126
- height: number;
2127
- /** Pixels per page point. */
2128
- scale: number;
2129
- }
2130
- /**
2131
- * The editor element of a free text box in the page layer's pixels: the
2132
- * engine's text plate (`SetPlateRect` and its `re W n` clip), the box inset
2133
- * by its padding. Place it there with no CSS padding, so its edge is the
2134
- * plate's: CSS padding doesn't clip overflow, and scrolled lines would paint
2135
- * over the border band. The box never grows with its text.
2136
- */
2137
- declare function textPlateInPixels(item: {
2155
+ };
2156
+ /** The layer's own editor element for a free text box, as CSS. */
2157
+ type FreeTextBoxStyle = TextBoxStyle & {
2158
+ position: 'absolute';
2159
+ left: string;
2160
+ top: string;
2161
+ /** The plate's size times the editor's legible scale, in pixels with their unit. */
2162
+ width: string;
2163
+ height: string;
2164
+ boxSizing: 'border-box';
2165
+ /** The box's fill and border are the vector scene's, under this layer. */
2166
+ background: 'transparent';
2167
+ whiteSpace: 'pre-wrap';
2168
+ overflowWrap: 'break-word';
2169
+ overflowX: 'hidden';
2170
+ /** It scrolls while someone types, and clips otherwise, where the baked appearance clips. */
2171
+ overflowY: 'auto' | 'hidden';
2172
+ outline: string;
2173
+ cursor: 'text' | 'default';
2174
+ /** Draws the editor, laid out at a legible size, at the plate's size, turned like the box. */
2175
+ transform: string;
2176
+ transformOrigin: '0 0';
2177
+ /** Not typing: presses fall through to the shapes (select, move, resize). */
2178
+ pointerEvents: 'auto' | 'none';
2179
+ };
2180
+ /** The layer's own editor element for a free text box, and the scale its text is laid out at. */
2181
+ interface FreeTextBox {
2182
+ readonly style: FreeTextBoxStyle;
2183
+ /** Pixels per page point the editor lays its text out at: what its editor takes. */
2184
+ readonly scale: number;
2185
+ }
2186
+ /**
2187
+ * The layer's own editor element for a free text box: the engine's text
2188
+ * plate (`SetPlateRect` and its `re W n` clip), the box inset by its padding,
2189
+ * with no CSS padding, so its edge is the plate's: CSS padding doesn't clip
2190
+ * overflow, and scrolled lines would paint over the border band. The box
2191
+ * never grows with its text. It is laid out at a legible size and drawn back
2192
+ * at the plate's (`legible-text.ts`), and a turned box turns about its
2193
+ * centre, as the baked appearance does. While someone types it takes the
2194
+ * pointer and shows an `outline` of that color.
2195
+ */
2196
+ declare function freeTextBoxOf(item: {
2138
2197
  box: {
2139
2198
  x: number;
2140
2199
  y: number;
2141
2200
  width: number;
2142
2201
  height: number;
2143
2202
  };
2144
- css: {
2145
- padding: number;
2146
- };
2147
- }, page: PageToPixels): TextPlatePixels;
2203
+ css: TextBoxCss;
2204
+ /** Clockwise, in degrees, about the box's centre. */
2205
+ rot?: number;
2206
+ editing: boolean;
2207
+ }, page: PageToPixels, outline: string): FreeTextBox;
2208
+ /** Your own element as a text box's editor, as CSS: it fills its parent. */
2209
+ type OwnTextBoxStyle = TextBoxStyle & {
2210
+ /** The parent's size times the editor's legible scale, in percent with its unit. */
2211
+ width: string;
2212
+ height: string;
2213
+ boxSizing: 'border-box';
2214
+ /** Draws the editor, laid out at a legible size, at its parent's size. */
2215
+ transform: string;
2216
+ transformOrigin: '0 0';
2217
+ /** While someone types, it takes the pointer (the caret, a drag over words). */
2218
+ pointerEvents?: 'auto';
2219
+ };
2220
+ /** Your own element as a text box's editor, and the scale its text is laid out at. */
2221
+ interface OwnTextBox {
2222
+ readonly style: OwnTextBoxStyle;
2223
+ /** Pixels per page point the editor lays its text out at: what its editor takes. */
2224
+ readonly scale: number;
2225
+ }
2226
+ /**
2227
+ * Your own element as the editor of a text box you draw yourself, at `scale`
2228
+ * pixels per point where it is ({@link textBoxEditorScaleOf}): the box's body
2229
+ * style, filling the element's parent, laid out at a legible size and drawn
2230
+ * back at the parent's (`legible-text.ts`). Draw the box's frame (its fill,
2231
+ * border and padding) on the parent: what's on the element scales with it.
2232
+ */
2233
+ declare function ownTextBoxOf(item: {
2234
+ css: TextBoxCss;
2235
+ editing: boolean;
2236
+ }, scale: number): OwnTextBox;
2237
+ //#endregion
2238
+ //#region src/legible-text.d.ts
2239
+ /**
2240
+ * Editors laid out at a legible size and drawn at the page's. iOS Safari zooms the page in when
2241
+ * a field takes focus with text under 16 CSS pixels, to 16 over that size, and it reads the
2242
+ * field's own computed font size: a transform doesn't change that size (CSS `zoom` does). Text
2243
+ * on a page is drawn at the page's scale, so a form field or a text box on a phone often has
2244
+ * smaller text. Such an editor is laid out {@link legibleScaleOf} times bigger (its text, lines
2245
+ * and box alike), and a `scale()` from its top-left corner draws it back at the page's size: the
2246
+ * same picture, with text iOS reads as legible. Every other browser draws it the same way.
2247
+ */
2248
+ /** The smallest text, in CSS pixels, a field takes focus with on iOS without the page zooming in. */
2249
+ declare const LEGIBLE_FONT_PX = 16;
2250
+ /**
2251
+ * How many times bigger to lay out an editor whose text is `fontPx` CSS pixels, so its text is
2252
+ * at least {@link LEGIBLE_FONT_PX}: 1 when it already is.
2253
+ */
2254
+ declare function legibleScaleOf(fontPx: number): number;
2255
+ /**
2256
+ * The transform that draws an element laid out `legible` times bigger back at its size, from its
2257
+ * top-left corner (`transformOrigin: '0 0'`), or null when it is laid out at its size.
2258
+ */
2259
+ declare function legibleShrinkOf(legible: number): string | null;
2148
2260
  //#endregion
2149
2261
  //#region src/annotation-renderers.d.ts
2150
2262
  /**
@@ -2361,8 +2473,19 @@ type TextFieldStyle = FieldTextStyle & {
2361
2473
  letterSpacing?: string;
2362
2474
  };
2363
2475
  /**
2364
- * A text field's editor style. A font size of 0 means "fit the box" in PDF:
2365
- * the box height for one line, Acrobat's 12 pt for several.
2476
+ * The size of a text field's text in pixels at `frame`. A font size of 0 means "fit the box" in
2477
+ * PDF: the box height for one line, Acrobat's 12 pt for several.
2478
+ */
2479
+ declare function textFieldFontPxOf(field: {
2480
+ box: {
2481
+ width: number;
2482
+ };
2483
+ look: FieldLook;
2484
+ multiline: boolean;
2485
+ }, frame: PixelRect): number;
2486
+ /**
2487
+ * A text field's editor style at `frame`, with its lengths `legible` times bigger for an editor
2488
+ * laid out at a legible size (`legible-text.ts`).
2366
2489
  */
2367
2490
  declare function textFieldStyleOf(field: {
2368
2491
  box: {
@@ -2372,7 +2495,7 @@ declare function textFieldStyleOf(field: {
2372
2495
  multiline: boolean;
2373
2496
  comb: boolean;
2374
2497
  maxLength: number | null;
2375
- }, frame: PixelRect, colors: FormColors): TextFieldStyle;
2498
+ }, frame: PixelRect, colors: FormColors, legible?: number): TextFieldStyle;
2376
2499
  /** A list box as the layer draws it: the field's text look, and its border. */
2377
2500
  type ListBoxStyle = FieldTextStyle & {
2378
2501
  /** In pixels, with its unit; never thinner than one pixel. */
@@ -2552,7 +2675,18 @@ interface TextEditorLayout {
2552
2675
  readonly comb: boolean;
2553
2676
  }
2554
2677
  /** A text field's editor: see-through at rest, the field's own look while focused. */
2555
- type TextFieldEditorStyle = FormControlFill & TextFieldStyle & {
2678
+ type TextFieldEditorStyle = TextFieldStyle & {
2679
+ position: 'absolute';
2680
+ left: '0';
2681
+ top: '0';
2682
+ /** The widget's box times the editor's legible scale, in percent with its unit. */
2683
+ width: string;
2684
+ height: string;
2685
+ boxSizing: 'border-box';
2686
+ margin: '0';
2687
+ /** Draws the editor, laid out at a legible size, at the size of the widget's box. */
2688
+ transform: string;
2689
+ transformOrigin: '0 0';
2556
2690
  border: 'none';
2557
2691
  outline: string;
2558
2692
  outlineOffset: string;
@@ -2573,6 +2707,9 @@ type TextFieldEditorStyle = FormControlFill & TextFieldStyle & {
2573
2707
  * control would swallow clicks, and the box below runs the widget's action
2574
2708
  * (the read-only "button" pattern), so a disabled one lets them through.
2575
2709
  *
2710
+ * It fills the widget's box, laid out at a legible size and drawn back at the
2711
+ * box's (`legible-text.ts`), so iOS doesn't zoom the page in when it takes focus.
2712
+ *
2576
2713
  * With the engine's `layout` of the text being typed, the editor writes it
2577
2714
  * where the engine will draw it: in the engine's face (mounted), at the size
2578
2715
  * it draws (a fitted size resolved), in the box inside the border, a line of
@@ -3519,9 +3656,8 @@ declare function createSurfaceFocusFollower(): SurfaceFocusFollower;
3519
3656
  interface StandardCommandsBrowser {
3520
3657
  copySelection: typeof copySelection;
3521
3658
  saveFile(bytes: Uint8Array, fileName: string): void;
3522
- print(): void;
3523
3659
  }
3524
3660
  declare const standardCommandsBrowser: StandardCommandsBrowser;
3525
3661
  //#endregion
3526
- export { type ActionsUiAdapterShape, type ActionsUiEffectContext, type ActionsUiOrigin, type AnchorTarget, type AnchoredFit, type AnchoredOptions, type AnchoredPlacement, type AnchoredPoint, type AnchoredPosition, type AnchoredRect, type AnchoredSide, type AnchoredSize, type AnnotationAnchorShape, type AnnotationChromePaint, type AnnotationDrawing, type AnnotationLookFrame, type AppearancePicture, type AppearanceUrl, type AttachSelectionHandleOptions, type BehaviorRendererEntry, type ByteStore, type ChromeInPixels, type ChromeLine, type ChromeLinePaint, type ChromeNodeShape, type ChromePaintSettings, type ChromeShapePaint, type ClickDetector, type ClientBox, type ClientProjectedPage, type ClipboardSelectionSource, type CommandShortcutOptions, type CommentPageLayout, type CommentThreadPage, type CreationDraftAnchorShape, type CssFont, type DefaultActionsUiAdapterOptions, EPDF_VARIABLES, type EditorDocumentFactory, type EditorElement, type EditorNode, type EditorPosition, type EditorRoot, type EditorStyle, type EpdfCssOnlyVariable, type EpdfFollowedVariable, type EpdfSettingVariable, type EpdfTheme, type EpdfThemeVariables, type EpdfTranslucentVariable, type EpdfVariable, type EpdfVariableDefinition, FORM_CONTROL_FILL, type FieldLook, type FieldTextStyle, type FilePickerPort, type FocusTrapOptions, type FormColorSettings, type FormColors, type FormControlFill, type FormFocusRingStyle, type FrameBox, type FrameFraction, type FramePixels, type IndexedDbByteStoreOptions, type LineModel, type LinkActionDispatcher, type LinkActionSource, type LinkAnchor, type LinkAnchorEvent, type LinkAnchorShape, type LinkEventShape, type LinkHoverPump, type ListBoxControlStyle, type ListBoxStyle, type LookRendererEntry, type LookState, type MenuKeysOptions, type MountableFontProgram, type ObjectUrl, type ObjectUrlImageSource, type OptimisticSelection, type Orientation, type PageBoundsAnchor, type PageClientSpace, type PageContext, type PageContextTransform, type PageFrameShape, type PageLayerTransform, type PageLayers, type PagePart, type PagePoint, type PagePointerHub, type PagePointerPage, type PagePointerSample, type PageQuad, type PageRef, type PageSurfaceLayout, type PageToPixels, type PageViewEnv, type PageViewPage, type PageViewTransformInput, type PaintedImageCallbacks, type PaintedParts, type PartRights, type PickFileOptions, type PictureBytes, type PictureLayerOptions, type PictureOrPainting, type PicturePartProps, type PixelBox, type PixelRect, type ProjectedTransform, type RendererBehaviorRegistry, type RendererEntry, type RendererInteractiveContext, type RichTextEditorAlign, type RichTextEditorBinding, type RichTextEditorCommand, type RichTextEditorDecoration, type RichTextEditorDocument, type RichTextEditorHost, type RichTextEditorParagraph, type RichTextEditorProps, type RichTextEditorRange, type RichTextEditorRun, type RichTextEditorScript, type RichTextEditorStyle, type RotationAnchorShape, type RovingFocus, type RovingFocusOptions, type RovingMove, type ScenePaint, type SceneShapeNode, type ScrollbarLayout, type ScrollbarMetrics, type ScrollbarPointerEvent, type ScrollbarPresses, type ScrollbarStage, type ScrollbarTrack, type SearchHighlightOptions, type SearchHighlightPiece, type SearchHitShape, type SelectOptions, type SelectionAnchorShape, type SelectionClipboardOptions, type SelectionEndpointShape, type SelectionEndpointsShape, type SelectionHandleSession, type ShortcutCommands, type ShortcutRefusal, type ShownUrls, type StageDemandSource, type StageGestureHost, type StageGestureOptions, type StageGestureSink, type StagePageDemand, type StagePointerKind, type StageProjection, type StageSurfaceHost, type StageSurfaceHub, type StageSurfaceOptions, type StageSurfaceSample, type StageWheelSample, type StandardCommandsBrowser, type StyleRecord, type SurfaceBox, type SurfaceFocusFollower, type SurfaceFocusOptions, type SurfaceTransform, type SvgCursorOptions, type SvgShape, type SvgShapeTag, type SvgShapesOptions, TOOLBAR_ITEM_ATTRIBUTE, type TextBoxCss, type TextBoxEditor, type TextBoxEditorAnnotation, type TextBoxEditorFollower, type TextBoxEditorItem, type TextBoxStyle, type TextEditorLayout, type TextFieldDrafts, type TextFieldEditor, type TextFieldEditorState, type TextFieldEditorStyle, type TextFieldStyle, type TextPlatePixels, type ToggleForm, type ToolCursorImage, type ToolCursorSpec, type ToolbarFitMetrics, type ToolbarLengths, type TurnedBox, type ViewProjector, type WebClock, type WebFontMetrics, type WebPlatformFeedback, type WheelSample, type WidgetBoxStyle, type WidgetEventKind, anchoredViewOf, annotationChromePaint, annotationDrawingOf, applyFirstLineShift, attachFocusTrap, attachMenuKeys, attachPagePointer, attachRichTextEditor, attachRovingFocus, attachSelectionHandle, attachTextBoxEditor, attachToolbarFocus, bakedAppearanceOf, bindCommandShortcuts, bindPaintedImage, bindWidgetEvents, browserClock, canTakeFocus, chromeInPixels, clientPageProjector, computeReleaseVelocity, containsFocus, copySelection, createClickCounter, createClickDetector, createDefaultActionsUiAdapter, createFontMounts, createOptimisticSelection, createScrollbarPresses, createShownUrls, createStageGestureController, createStageSurface, createSurfaceFocusFollower, createTextBoxEditorFollower, createTextFieldEditor, createToolbarLengths, cssFontOf, cssText, deepActiveElementOf, directionOf, editingTextKeyOf, enrichCommentThreads, epdfThemeVariables, firstLineShiftFor, fitAnchoredRect, focusablesIn, fontProgramsOf, formColorsOf, formFocusRingStyleOf, frameInPixels, ghostOpacity, hoverLink, indexedDbByteStore, installFilePickerProvider, isMacPlatform, isModifiedClick, isTabbable, isUnavailable, isUprightQuad, isolatePointerDown, isolateWheel, layerTextBoxesOf, lineModelFor, linkActivateContextOf, linkAnchorOf, linkHrefOf, listBoxControlStyleOf, listBoxStyleOf, livePageContext, loadAppearanceUrls, loadObjectUrl, lookFrameOf, lookRendererFor, makePageContext, menuItemLabelOf, mixAccent, mountFontProgram, mountWebFont, moveFocusInto, navigableLinksOf, objectUrlOf, observeAnchoredFit, observeClientGeometry, observeContentHeight, observeContentLength, observeContentWidth, observeHeight, observeLength, observeOutsidePress, observeWidth, offsetOfPosition, openExternalUri, pageClientSpace, pageLayersOf, pageSurfaceLayout, pageViewTransformInput, paint, paintDefault, partsDrawnTwice, pickFile, pickImageFile, pickRequestedFile, pictureLayerOptionsOf, pictureOrPainting, positionAnchoredRect, positionOfOffset, pressToggle, projectAnchoredTarget, quadInPixels, rasterInFrame, rectInPixels, registerRendererBehaviors, renderRichText, rendererBehaviorId, rovingMoveOf, rovingTargetOf, sameAnchoredFit, sameAnnotationAnchor, sameCreationDraftAnchor, samePageBounds, sameRotationAnchor, sameSelectionAnchor, sameSelectionEndpoints, sanitizeExternalUri, saveFile, sceneViewBox, scrollbarLayout, searchHighlightsOf, sendLinkEvent, serializeRichText, showSelectedOptions, shownAppearance, stagePageDemand, stageViewProjector, standardCommandsBrowser, styleDeltaOf, svgCursor, svgPoints, svgShapesOf, tabbablesIn, textBoxEditorScaleOf, textBoxStyleOf, textFieldEditorStyleOf, textFieldStyleOf, textPlateInPixels, toolCursorsOf, toolbarMeasureKey, toolbarStopsOf, typeaheadMatchOf, usesKey, vibrationFeedback, webFontMetrics, wheelZoomFactor, widgetBoxStyleOf, wireSelectionClipboard, wkFeedback };
3662
+ export { type ActionsUiAdapterShape, type ActionsUiEffectContext, type ActionsUiOrigin, type AnchorTarget, type AnchoredFit, type AnchoredOptions, type AnchoredPlacement, type AnchoredPoint, type AnchoredPosition, type AnchoredRect, type AnchoredSide, type AnchoredSize, type AnnotationAnchorShape, type AnnotationChromePaint, type AnnotationDrawing, type AnnotationLookFrame, type AppearancePicture, type AppearanceUrl, type AttachSelectionHandleOptions, type BehaviorRendererEntry, type ByteStore, type ChromeInPixels, type ChromeLine, type ChromeLinePaint, type ChromeNodeShape, type ChromePaintSettings, type ChromeShapePaint, type ClickDetector, type ClientBox, type ClientProjectedPage, type ClipboardSelectionSource, type CommandShortcutOptions, type CommentPageLayout, type CommentThreadPage, type CreationDraftAnchorShape, type CssFont, type DefaultActionsUiAdapterOptions, EPDF_VARIABLES, type EditorDocumentFactory, type EditorElement, type EditorNode, type EditorPosition, type EditorRoot, type EditorStyle, type EpdfCssOnlyVariable, type EpdfFollowedVariable, type EpdfSettingVariable, type EpdfTheme, type EpdfThemeVariables, type EpdfTranslucentVariable, type EpdfVariable, type EpdfVariableDefinition, FORM_CONTROL_FILL, type FieldLook, type FieldTextStyle, type FilePickerPort, type FocusTrapOptions, type FormColorSettings, type FormColors, type FormControlFill, type FormFocusRingStyle, type FrameBox, type FrameFraction, type FramePixels, type FreeTextBox, type FreeTextBoxStyle, type IndexedDbByteStoreOptions, LEGIBLE_FONT_PX, type LineModel, type LinkActionDispatcher, type LinkActionSource, type LinkAnchor, type LinkAnchorEvent, type LinkAnchorShape, type LinkEventShape, type LinkHoverPump, type ListBoxControlStyle, type ListBoxStyle, type LookRendererEntry, type LookState, type MenuKeysOptions, type MountableFontProgram, type ObjectUrl, type ObjectUrlImageSource, type OptimisticSelection, type Orientation, type OwnTextBox, type OwnTextBoxStyle, type PageBoundsAnchor, type PageClientSpace, type PageContext, type PageContextTransform, type PageFrameShape, type PageLayerTransform, type PageLayers, type PagePart, type PagePoint, type PagePointerHub, type PagePointerPage, type PagePointerSample, type PageQuad, type PageRef, type PageSurfaceLayout, type PageToPixels, type PageViewEnv, type PageViewPage, type PageViewTransformInput, type PaintedImageCallbacks, type PaintedParts, type PartRights, type PickFileOptions, type PictureBytes, type PictureLayerOptions, type PictureOrPainting, type PicturePartProps, type PixelBox, type PixelRect, type ProjectedTransform, type RendererBehaviorRegistry, type RendererEntry, type RendererInteractiveContext, type RichTextEditorAlign, type RichTextEditorBinding, type RichTextEditorCommand, type RichTextEditorDecoration, type RichTextEditorDocument, type RichTextEditorHost, type RichTextEditorParagraph, type RichTextEditorProps, type RichTextEditorRange, type RichTextEditorRun, type RichTextEditorScript, type RichTextEditorStyle, type RotationAnchorShape, type RovingFocus, type RovingFocusOptions, type RovingMove, type ScenePaint, type SceneShapeNode, type ScrollbarLayout, type ScrollbarMetrics, type ScrollbarPointerEvent, type ScrollbarPresses, type ScrollbarStage, type ScrollbarTrack, type SearchHighlightOptions, type SearchHighlightPiece, type SearchHitShape, type SelectOptions, type SelectionAnchorShape, type SelectionClipboardOptions, type SelectionEndpointShape, type SelectionEndpointsShape, type SelectionHandleSession, type ShortcutCommands, type ShortcutRefusal, type ShownUrls, type StageDemandSource, type StageGestureHost, type StageGestureOptions, type StageGestureSink, type StagePageDemand, type StagePointerKind, type StageProjection, type StageSurfaceHost, type StageSurfaceHub, type StageSurfaceOptions, type StageSurfaceSample, type StageWheelSample, type StandardCommandsBrowser, type StyleRecord, type SurfaceBox, type SurfaceFocusFollower, type SurfaceFocusOptions, type SurfaceTransform, type SvgCursorOptions, type SvgShape, type SvgShapeTag, type SvgShapesOptions, TOOLBAR_ITEM_ATTRIBUTE, type TextBoxCss, type TextBoxEditor, type TextBoxEditorAnnotation, type TextBoxEditorFollower, type TextBoxEditorItem, type TextBoxStyle, type TextEditorLayout, type TextFieldDrafts, type TextFieldEditor, type TextFieldEditorState, type TextFieldEditorStyle, type TextFieldStyle, type ToggleForm, type ToolCursorImage, type ToolCursorSpec, type ToolbarFitMetrics, type ToolbarLengths, type TurnedBox, type ViewProjector, type WebClock, type WebFontMetrics, type WebPlatformFeedback, type WebPrintSheet, type WebPrinter, type WebStagedPrint, type WheelSample, type WidgetBoxStyle, type WidgetEventKind, anchoredViewOf, annotationChromePaint, annotationDrawingOf, applyFirstLineShift, attachFocusTrap, attachMenuKeys, attachPagePointer, attachRichTextEditor, attachRovingFocus, attachSelectionHandle, attachTextBoxEditor, attachToolbarFocus, bakedAppearanceOf, bindCommandShortcuts, bindPaintedImage, bindWidgetEvents, browserClock, browserPrinter, canTakeFocus, chromeInPixels, clientPageProjector, computeReleaseVelocity, containsFocus, copySelection, createClickCounter, createClickDetector, createDefaultActionsUiAdapter, createFontMounts, createOptimisticSelection, createScrollbarPresses, createShownUrls, createStageGestureController, createStageSurface, createSurfaceFocusFollower, createTextBoxEditorFollower, createTextFieldEditor, createToolbarLengths, cssFontOf, cssText, deepActiveElementOf, directionOf, editingTextKeyOf, enrichCommentThreads, epdfThemeVariables, firstLineShiftFor, fitAnchoredRect, focusablesIn, fontProgramsOf, formColorsOf, formFocusRingStyleOf, frameInPixels, freeTextBoxOf, ghostOpacity, hoverLink, indexedDbByteStore, installFilePickerProvider, isMacPlatform, isModifiedClick, isTabbable, isUnavailable, isUprightQuad, isolatePointerDown, isolateWheel, layerTextBoxesOf, legibleScaleOf, legibleShrinkOf, lineModelFor, linkActivateContextOf, linkAnchorOf, linkHrefOf, listBoxControlStyleOf, listBoxStyleOf, livePageContext, loadAppearanceUrls, loadObjectUrl, lookFrameOf, lookRendererFor, makePageContext, menuItemLabelOf, mixAccent, mountFontProgram, mountWebFont, moveFocusInto, navigableLinksOf, objectUrlOf, observeAnchoredFit, observeClientGeometry, observeContentHeight, observeContentLength, observeContentWidth, observeHeight, observeLength, observeOutsidePress, observeWidth, offsetOfPosition, openExternalUri, ownTextBoxOf, pageClientSpace, pageLayersOf, pageSurfaceLayout, pageViewTransformInput, paint, paintDefault, partsDrawnTwice, pickFile, pickImageFile, pickRequestedFile, pictureLayerOptionsOf, pictureOrPainting, positionAnchoredRect, positionOfOffset, pressToggle, projectAnchoredTarget, quadInPixels, rasterInFrame, rectInPixels, registerRendererBehaviors, renderRichText, rendererBehaviorId, rovingMoveOf, rovingTargetOf, sameAnchoredFit, sameAnnotationAnchor, sameCreationDraftAnchor, samePageBounds, sameRotationAnchor, sameSelectionAnchor, sameSelectionEndpoints, sanitizeExternalUri, saveFile, sceneViewBox, scrollbarLayout, searchHighlightsOf, sendLinkEvent, serializeRichText, showSelectedOptions, shownAppearance, stagePageDemand, stageViewProjector, standardCommandsBrowser, styleDeltaOf, svgCursor, svgPoints, svgShapesOf, tabbablesIn, textBoxEditorScaleOf, textFieldEditorStyleOf, textFieldFontPxOf, textFieldStyleOf, toolCursorsOf, toolbarMeasureKey, toolbarStopsOf, typeaheadMatchOf, usesKey, vibrationFeedback, webFontMetrics, wheelZoomFactor, widgetBoxStyleOf, wireSelectionClipboard, wkFeedback };
3527
3663
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -58,6 +58,47 @@ interface WebClock {
58
58
  */
59
59
  declare function browserClock(): WebClock;
60
60
  //#endregion
61
+ //#region src/printer.d.ts
62
+ /**
63
+ * The browser's print dialog, for the kernel: `createKernel({ printer: browserPrinter() })`.
64
+ *
65
+ * Where the browser's own PDF viewer prints a PDF file (a desktop browser with it on), the
66
+ * printer takes the kernel's PDF copy and the viewer prints it from a hidden frame: sharp text
67
+ * and lines. Everywhere it prints pictures: one sheet per page, the page's picture on a sheet of
68
+ * the page's own size (`@page`), shrunk to fit when the browser prints on other paper. A desktop
69
+ * browser prints the sheets from a hidden frame. iOS prints a frame as a picture of the page
70
+ * around it, so there the sheets print from the page itself, hidden on screen. Safari prints only
71
+ * from a tap, so there the printer says it `needsTap`.
72
+ *
73
+ * Structurally `HostPrinter` from `@embedpdf/core`, declared here so this package stays
74
+ * dependency-free.
75
+ */
76
+ /** Structural twin of `PrintSheet` (`@embedpdf/core`). */
77
+ interface WebPrintSheet {
78
+ readonly image: Blob;
79
+ readonly widthPt: number;
80
+ readonly heightPt: number;
81
+ }
82
+ /** Structural twin of `StagedPrint` (`@embedpdf/core`). */
83
+ interface WebStagedPrint {
84
+ print(): Promise<void>;
85
+ dispose(): void;
86
+ }
87
+ /** Structural twin of `HostPrinter` (`@embedpdf/core`). */
88
+ interface WebPrinter {
89
+ readonly needsTap?: boolean;
90
+ stage(sheets: readonly WebPrintSheet[], options: {
91
+ readonly name: string;
92
+ readonly signal?: AbortSignal;
93
+ }): Promise<WebStagedPrint>;
94
+ stagePdf?(pdf: Uint8Array, options: {
95
+ readonly name: string;
96
+ readonly signal?: AbortSignal;
97
+ }): Promise<WebStagedPrint>;
98
+ }
99
+ /** The browser's printer: it prints PDFs where the browser's own PDF viewer does. */
100
+ declare function browserPrinter(): WebPrinter;
101
+ //#endregion
61
102
  //#region src/css-text.d.ts
62
103
  /**
63
104
  * Style records as CSS text. This package hands styles out as records with
@@ -2101,8 +2142,8 @@ interface TextBoxCss {
2101
2142
  /** The plate's inset from the box, in page points. */
2102
2143
  padding: number;
2103
2144
  }
2104
- /** A text box's body style as CSS: put it on the editor element. */
2105
- interface TextBoxStyle {
2145
+ /** A text box's body style as CSS. */
2146
+ type TextBoxStyle = {
2106
2147
  fontFamily: string;
2107
2148
  /** In pixels, with its unit. */
2108
2149
  fontSize: string;
@@ -2111,40 +2152,111 @@ interface TextBoxStyle {
2111
2152
  fontStyle: string;
2112
2153
  textDecoration: string;
2113
2154
  textAlign: 'left' | 'center' | 'right';
2114
- }
2115
- /**
2116
- * A text box's body style at `scale` pixels per point: font, size, color and
2117
- * alignment. No line height: the editor binding states the engine's line
2118
- * model per face on the element itself.
2119
- */
2120
- declare function textBoxStyleOf(css: TextBoxCss, scale: number): TextBoxStyle;
2121
- /** Where a free text's editor element goes, and the scale it draws at. */
2122
- interface TextPlatePixels {
2123
- left: number;
2124
- top: number;
2125
- width: number;
2126
- height: number;
2127
- /** Pixels per page point. */
2128
- scale: number;
2129
- }
2130
- /**
2131
- * The editor element of a free text box in the page layer's pixels: the
2132
- * engine's text plate (`SetPlateRect` and its `re W n` clip), the box inset
2133
- * by its padding. Place it there with no CSS padding, so its edge is the
2134
- * plate's: CSS padding doesn't clip overflow, and scrolled lines would paint
2135
- * over the border band. The box never grows with its text.
2136
- */
2137
- declare function textPlateInPixels(item: {
2155
+ };
2156
+ /** The layer's own editor element for a free text box, as CSS. */
2157
+ type FreeTextBoxStyle = TextBoxStyle & {
2158
+ position: 'absolute';
2159
+ left: string;
2160
+ top: string;
2161
+ /** The plate's size times the editor's legible scale, in pixels with their unit. */
2162
+ width: string;
2163
+ height: string;
2164
+ boxSizing: 'border-box';
2165
+ /** The box's fill and border are the vector scene's, under this layer. */
2166
+ background: 'transparent';
2167
+ whiteSpace: 'pre-wrap';
2168
+ overflowWrap: 'break-word';
2169
+ overflowX: 'hidden';
2170
+ /** It scrolls while someone types, and clips otherwise, where the baked appearance clips. */
2171
+ overflowY: 'auto' | 'hidden';
2172
+ outline: string;
2173
+ cursor: 'text' | 'default';
2174
+ /** Draws the editor, laid out at a legible size, at the plate's size, turned like the box. */
2175
+ transform: string;
2176
+ transformOrigin: '0 0';
2177
+ /** Not typing: presses fall through to the shapes (select, move, resize). */
2178
+ pointerEvents: 'auto' | 'none';
2179
+ };
2180
+ /** The layer's own editor element for a free text box, and the scale its text is laid out at. */
2181
+ interface FreeTextBox {
2182
+ readonly style: FreeTextBoxStyle;
2183
+ /** Pixels per page point the editor lays its text out at: what its editor takes. */
2184
+ readonly scale: number;
2185
+ }
2186
+ /**
2187
+ * The layer's own editor element for a free text box: the engine's text
2188
+ * plate (`SetPlateRect` and its `re W n` clip), the box inset by its padding,
2189
+ * with no CSS padding, so its edge is the plate's: CSS padding doesn't clip
2190
+ * overflow, and scrolled lines would paint over the border band. The box
2191
+ * never grows with its text. It is laid out at a legible size and drawn back
2192
+ * at the plate's (`legible-text.ts`), and a turned box turns about its
2193
+ * centre, as the baked appearance does. While someone types it takes the
2194
+ * pointer and shows an `outline` of that color.
2195
+ */
2196
+ declare function freeTextBoxOf(item: {
2138
2197
  box: {
2139
2198
  x: number;
2140
2199
  y: number;
2141
2200
  width: number;
2142
2201
  height: number;
2143
2202
  };
2144
- css: {
2145
- padding: number;
2146
- };
2147
- }, page: PageToPixels): TextPlatePixels;
2203
+ css: TextBoxCss;
2204
+ /** Clockwise, in degrees, about the box's centre. */
2205
+ rot?: number;
2206
+ editing: boolean;
2207
+ }, page: PageToPixels, outline: string): FreeTextBox;
2208
+ /** Your own element as a text box's editor, as CSS: it fills its parent. */
2209
+ type OwnTextBoxStyle = TextBoxStyle & {
2210
+ /** The parent's size times the editor's legible scale, in percent with its unit. */
2211
+ width: string;
2212
+ height: string;
2213
+ boxSizing: 'border-box';
2214
+ /** Draws the editor, laid out at a legible size, at its parent's size. */
2215
+ transform: string;
2216
+ transformOrigin: '0 0';
2217
+ /** While someone types, it takes the pointer (the caret, a drag over words). */
2218
+ pointerEvents?: 'auto';
2219
+ };
2220
+ /** Your own element as a text box's editor, and the scale its text is laid out at. */
2221
+ interface OwnTextBox {
2222
+ readonly style: OwnTextBoxStyle;
2223
+ /** Pixels per page point the editor lays its text out at: what its editor takes. */
2224
+ readonly scale: number;
2225
+ }
2226
+ /**
2227
+ * Your own element as the editor of a text box you draw yourself, at `scale`
2228
+ * pixels per point where it is ({@link textBoxEditorScaleOf}): the box's body
2229
+ * style, filling the element's parent, laid out at a legible size and drawn
2230
+ * back at the parent's (`legible-text.ts`). Draw the box's frame (its fill,
2231
+ * border and padding) on the parent: what's on the element scales with it.
2232
+ */
2233
+ declare function ownTextBoxOf(item: {
2234
+ css: TextBoxCss;
2235
+ editing: boolean;
2236
+ }, scale: number): OwnTextBox;
2237
+ //#endregion
2238
+ //#region src/legible-text.d.ts
2239
+ /**
2240
+ * Editors laid out at a legible size and drawn at the page's. iOS Safari zooms the page in when
2241
+ * a field takes focus with text under 16 CSS pixels, to 16 over that size, and it reads the
2242
+ * field's own computed font size: a transform doesn't change that size (CSS `zoom` does). Text
2243
+ * on a page is drawn at the page's scale, so a form field or a text box on a phone often has
2244
+ * smaller text. Such an editor is laid out {@link legibleScaleOf} times bigger (its text, lines
2245
+ * and box alike), and a `scale()` from its top-left corner draws it back at the page's size: the
2246
+ * same picture, with text iOS reads as legible. Every other browser draws it the same way.
2247
+ */
2248
+ /** The smallest text, in CSS pixels, a field takes focus with on iOS without the page zooming in. */
2249
+ declare const LEGIBLE_FONT_PX = 16;
2250
+ /**
2251
+ * How many times bigger to lay out an editor whose text is `fontPx` CSS pixels, so its text is
2252
+ * at least {@link LEGIBLE_FONT_PX}: 1 when it already is.
2253
+ */
2254
+ declare function legibleScaleOf(fontPx: number): number;
2255
+ /**
2256
+ * The transform that draws an element laid out `legible` times bigger back at its size, from its
2257
+ * top-left corner (`transformOrigin: '0 0'`), or null when it is laid out at its size.
2258
+ */
2259
+ declare function legibleShrinkOf(legible: number): string | null;
2148
2260
  //#endregion
2149
2261
  //#region src/annotation-renderers.d.ts
2150
2262
  /**
@@ -2361,8 +2473,19 @@ type TextFieldStyle = FieldTextStyle & {
2361
2473
  letterSpacing?: string;
2362
2474
  };
2363
2475
  /**
2364
- * A text field's editor style. A font size of 0 means "fit the box" in PDF:
2365
- * the box height for one line, Acrobat's 12 pt for several.
2476
+ * The size of a text field's text in pixels at `frame`. A font size of 0 means "fit the box" in
2477
+ * PDF: the box height for one line, Acrobat's 12 pt for several.
2478
+ */
2479
+ declare function textFieldFontPxOf(field: {
2480
+ box: {
2481
+ width: number;
2482
+ };
2483
+ look: FieldLook;
2484
+ multiline: boolean;
2485
+ }, frame: PixelRect): number;
2486
+ /**
2487
+ * A text field's editor style at `frame`, with its lengths `legible` times bigger for an editor
2488
+ * laid out at a legible size (`legible-text.ts`).
2366
2489
  */
2367
2490
  declare function textFieldStyleOf(field: {
2368
2491
  box: {
@@ -2372,7 +2495,7 @@ declare function textFieldStyleOf(field: {
2372
2495
  multiline: boolean;
2373
2496
  comb: boolean;
2374
2497
  maxLength: number | null;
2375
- }, frame: PixelRect, colors: FormColors): TextFieldStyle;
2498
+ }, frame: PixelRect, colors: FormColors, legible?: number): TextFieldStyle;
2376
2499
  /** A list box as the layer draws it: the field's text look, and its border. */
2377
2500
  type ListBoxStyle = FieldTextStyle & {
2378
2501
  /** In pixels, with its unit; never thinner than one pixel. */
@@ -2552,7 +2675,18 @@ interface TextEditorLayout {
2552
2675
  readonly comb: boolean;
2553
2676
  }
2554
2677
  /** A text field's editor: see-through at rest, the field's own look while focused. */
2555
- type TextFieldEditorStyle = FormControlFill & TextFieldStyle & {
2678
+ type TextFieldEditorStyle = TextFieldStyle & {
2679
+ position: 'absolute';
2680
+ left: '0';
2681
+ top: '0';
2682
+ /** The widget's box times the editor's legible scale, in percent with its unit. */
2683
+ width: string;
2684
+ height: string;
2685
+ boxSizing: 'border-box';
2686
+ margin: '0';
2687
+ /** Draws the editor, laid out at a legible size, at the size of the widget's box. */
2688
+ transform: string;
2689
+ transformOrigin: '0 0';
2556
2690
  border: 'none';
2557
2691
  outline: string;
2558
2692
  outlineOffset: string;
@@ -2573,6 +2707,9 @@ type TextFieldEditorStyle = FormControlFill & TextFieldStyle & {
2573
2707
  * control would swallow clicks, and the box below runs the widget's action
2574
2708
  * (the read-only "button" pattern), so a disabled one lets them through.
2575
2709
  *
2710
+ * It fills the widget's box, laid out at a legible size and drawn back at the
2711
+ * box's (`legible-text.ts`), so iOS doesn't zoom the page in when it takes focus.
2712
+ *
2576
2713
  * With the engine's `layout` of the text being typed, the editor writes it
2577
2714
  * where the engine will draw it: in the engine's face (mounted), at the size
2578
2715
  * it draws (a fitted size resolved), in the box inside the border, a line of
@@ -3519,9 +3656,8 @@ declare function createSurfaceFocusFollower(): SurfaceFocusFollower;
3519
3656
  interface StandardCommandsBrowser {
3520
3657
  copySelection: typeof copySelection;
3521
3658
  saveFile(bytes: Uint8Array, fileName: string): void;
3522
- print(): void;
3523
3659
  }
3524
3660
  declare const standardCommandsBrowser: StandardCommandsBrowser;
3525
3661
  //#endregion
3526
- export { type ActionsUiAdapterShape, type ActionsUiEffectContext, type ActionsUiOrigin, type AnchorTarget, type AnchoredFit, type AnchoredOptions, type AnchoredPlacement, type AnchoredPoint, type AnchoredPosition, type AnchoredRect, type AnchoredSide, type AnchoredSize, type AnnotationAnchorShape, type AnnotationChromePaint, type AnnotationDrawing, type AnnotationLookFrame, type AppearancePicture, type AppearanceUrl, type AttachSelectionHandleOptions, type BehaviorRendererEntry, type ByteStore, type ChromeInPixels, type ChromeLine, type ChromeLinePaint, type ChromeNodeShape, type ChromePaintSettings, type ChromeShapePaint, type ClickDetector, type ClientBox, type ClientProjectedPage, type ClipboardSelectionSource, type CommandShortcutOptions, type CommentPageLayout, type CommentThreadPage, type CreationDraftAnchorShape, type CssFont, type DefaultActionsUiAdapterOptions, EPDF_VARIABLES, type EditorDocumentFactory, type EditorElement, type EditorNode, type EditorPosition, type EditorRoot, type EditorStyle, type EpdfCssOnlyVariable, type EpdfFollowedVariable, type EpdfSettingVariable, type EpdfTheme, type EpdfThemeVariables, type EpdfTranslucentVariable, type EpdfVariable, type EpdfVariableDefinition, FORM_CONTROL_FILL, type FieldLook, type FieldTextStyle, type FilePickerPort, type FocusTrapOptions, type FormColorSettings, type FormColors, type FormControlFill, type FormFocusRingStyle, type FrameBox, type FrameFraction, type FramePixels, type IndexedDbByteStoreOptions, type LineModel, type LinkActionDispatcher, type LinkActionSource, type LinkAnchor, type LinkAnchorEvent, type LinkAnchorShape, type LinkEventShape, type LinkHoverPump, type ListBoxControlStyle, type ListBoxStyle, type LookRendererEntry, type LookState, type MenuKeysOptions, type MountableFontProgram, type ObjectUrl, type ObjectUrlImageSource, type OptimisticSelection, type Orientation, type PageBoundsAnchor, type PageClientSpace, type PageContext, type PageContextTransform, type PageFrameShape, type PageLayerTransform, type PageLayers, type PagePart, type PagePoint, type PagePointerHub, type PagePointerPage, type PagePointerSample, type PageQuad, type PageRef, type PageSurfaceLayout, type PageToPixels, type PageViewEnv, type PageViewPage, type PageViewTransformInput, type PaintedImageCallbacks, type PaintedParts, type PartRights, type PickFileOptions, type PictureBytes, type PictureLayerOptions, type PictureOrPainting, type PicturePartProps, type PixelBox, type PixelRect, type ProjectedTransform, type RendererBehaviorRegistry, type RendererEntry, type RendererInteractiveContext, type RichTextEditorAlign, type RichTextEditorBinding, type RichTextEditorCommand, type RichTextEditorDecoration, type RichTextEditorDocument, type RichTextEditorHost, type RichTextEditorParagraph, type RichTextEditorProps, type RichTextEditorRange, type RichTextEditorRun, type RichTextEditorScript, type RichTextEditorStyle, type RotationAnchorShape, type RovingFocus, type RovingFocusOptions, type RovingMove, type ScenePaint, type SceneShapeNode, type ScrollbarLayout, type ScrollbarMetrics, type ScrollbarPointerEvent, type ScrollbarPresses, type ScrollbarStage, type ScrollbarTrack, type SearchHighlightOptions, type SearchHighlightPiece, type SearchHitShape, type SelectOptions, type SelectionAnchorShape, type SelectionClipboardOptions, type SelectionEndpointShape, type SelectionEndpointsShape, type SelectionHandleSession, type ShortcutCommands, type ShortcutRefusal, type ShownUrls, type StageDemandSource, type StageGestureHost, type StageGestureOptions, type StageGestureSink, type StagePageDemand, type StagePointerKind, type StageProjection, type StageSurfaceHost, type StageSurfaceHub, type StageSurfaceOptions, type StageSurfaceSample, type StageWheelSample, type StandardCommandsBrowser, type StyleRecord, type SurfaceBox, type SurfaceFocusFollower, type SurfaceFocusOptions, type SurfaceTransform, type SvgCursorOptions, type SvgShape, type SvgShapeTag, type SvgShapesOptions, TOOLBAR_ITEM_ATTRIBUTE, type TextBoxCss, type TextBoxEditor, type TextBoxEditorAnnotation, type TextBoxEditorFollower, type TextBoxEditorItem, type TextBoxStyle, type TextEditorLayout, type TextFieldDrafts, type TextFieldEditor, type TextFieldEditorState, type TextFieldEditorStyle, type TextFieldStyle, type TextPlatePixels, type ToggleForm, type ToolCursorImage, type ToolCursorSpec, type ToolbarFitMetrics, type ToolbarLengths, type TurnedBox, type ViewProjector, type WebClock, type WebFontMetrics, type WebPlatformFeedback, type WheelSample, type WidgetBoxStyle, type WidgetEventKind, anchoredViewOf, annotationChromePaint, annotationDrawingOf, applyFirstLineShift, attachFocusTrap, attachMenuKeys, attachPagePointer, attachRichTextEditor, attachRovingFocus, attachSelectionHandle, attachTextBoxEditor, attachToolbarFocus, bakedAppearanceOf, bindCommandShortcuts, bindPaintedImage, bindWidgetEvents, browserClock, canTakeFocus, chromeInPixels, clientPageProjector, computeReleaseVelocity, containsFocus, copySelection, createClickCounter, createClickDetector, createDefaultActionsUiAdapter, createFontMounts, createOptimisticSelection, createScrollbarPresses, createShownUrls, createStageGestureController, createStageSurface, createSurfaceFocusFollower, createTextBoxEditorFollower, createTextFieldEditor, createToolbarLengths, cssFontOf, cssText, deepActiveElementOf, directionOf, editingTextKeyOf, enrichCommentThreads, epdfThemeVariables, firstLineShiftFor, fitAnchoredRect, focusablesIn, fontProgramsOf, formColorsOf, formFocusRingStyleOf, frameInPixels, ghostOpacity, hoverLink, indexedDbByteStore, installFilePickerProvider, isMacPlatform, isModifiedClick, isTabbable, isUnavailable, isUprightQuad, isolatePointerDown, isolateWheel, layerTextBoxesOf, lineModelFor, linkActivateContextOf, linkAnchorOf, linkHrefOf, listBoxControlStyleOf, listBoxStyleOf, livePageContext, loadAppearanceUrls, loadObjectUrl, lookFrameOf, lookRendererFor, makePageContext, menuItemLabelOf, mixAccent, mountFontProgram, mountWebFont, moveFocusInto, navigableLinksOf, objectUrlOf, observeAnchoredFit, observeClientGeometry, observeContentHeight, observeContentLength, observeContentWidth, observeHeight, observeLength, observeOutsidePress, observeWidth, offsetOfPosition, openExternalUri, pageClientSpace, pageLayersOf, pageSurfaceLayout, pageViewTransformInput, paint, paintDefault, partsDrawnTwice, pickFile, pickImageFile, pickRequestedFile, pictureLayerOptionsOf, pictureOrPainting, positionAnchoredRect, positionOfOffset, pressToggle, projectAnchoredTarget, quadInPixels, rasterInFrame, rectInPixels, registerRendererBehaviors, renderRichText, rendererBehaviorId, rovingMoveOf, rovingTargetOf, sameAnchoredFit, sameAnnotationAnchor, sameCreationDraftAnchor, samePageBounds, sameRotationAnchor, sameSelectionAnchor, sameSelectionEndpoints, sanitizeExternalUri, saveFile, sceneViewBox, scrollbarLayout, searchHighlightsOf, sendLinkEvent, serializeRichText, showSelectedOptions, shownAppearance, stagePageDemand, stageViewProjector, standardCommandsBrowser, styleDeltaOf, svgCursor, svgPoints, svgShapesOf, tabbablesIn, textBoxEditorScaleOf, textBoxStyleOf, textFieldEditorStyleOf, textFieldStyleOf, textPlateInPixels, toolCursorsOf, toolbarMeasureKey, toolbarStopsOf, typeaheadMatchOf, usesKey, vibrationFeedback, webFontMetrics, wheelZoomFactor, widgetBoxStyleOf, wireSelectionClipboard, wkFeedback };
3662
+ export { type ActionsUiAdapterShape, type ActionsUiEffectContext, type ActionsUiOrigin, type AnchorTarget, type AnchoredFit, type AnchoredOptions, type AnchoredPlacement, type AnchoredPoint, type AnchoredPosition, type AnchoredRect, type AnchoredSide, type AnchoredSize, type AnnotationAnchorShape, type AnnotationChromePaint, type AnnotationDrawing, type AnnotationLookFrame, type AppearancePicture, type AppearanceUrl, type AttachSelectionHandleOptions, type BehaviorRendererEntry, type ByteStore, type ChromeInPixels, type ChromeLine, type ChromeLinePaint, type ChromeNodeShape, type ChromePaintSettings, type ChromeShapePaint, type ClickDetector, type ClientBox, type ClientProjectedPage, type ClipboardSelectionSource, type CommandShortcutOptions, type CommentPageLayout, type CommentThreadPage, type CreationDraftAnchorShape, type CssFont, type DefaultActionsUiAdapterOptions, EPDF_VARIABLES, type EditorDocumentFactory, type EditorElement, type EditorNode, type EditorPosition, type EditorRoot, type EditorStyle, type EpdfCssOnlyVariable, type EpdfFollowedVariable, type EpdfSettingVariable, type EpdfTheme, type EpdfThemeVariables, type EpdfTranslucentVariable, type EpdfVariable, type EpdfVariableDefinition, FORM_CONTROL_FILL, type FieldLook, type FieldTextStyle, type FilePickerPort, type FocusTrapOptions, type FormColorSettings, type FormColors, type FormControlFill, type FormFocusRingStyle, type FrameBox, type FrameFraction, type FramePixels, type FreeTextBox, type FreeTextBoxStyle, type IndexedDbByteStoreOptions, LEGIBLE_FONT_PX, type LineModel, type LinkActionDispatcher, type LinkActionSource, type LinkAnchor, type LinkAnchorEvent, type LinkAnchorShape, type LinkEventShape, type LinkHoverPump, type ListBoxControlStyle, type ListBoxStyle, type LookRendererEntry, type LookState, type MenuKeysOptions, type MountableFontProgram, type ObjectUrl, type ObjectUrlImageSource, type OptimisticSelection, type Orientation, type OwnTextBox, type OwnTextBoxStyle, type PageBoundsAnchor, type PageClientSpace, type PageContext, type PageContextTransform, type PageFrameShape, type PageLayerTransform, type PageLayers, type PagePart, type PagePoint, type PagePointerHub, type PagePointerPage, type PagePointerSample, type PageQuad, type PageRef, type PageSurfaceLayout, type PageToPixels, type PageViewEnv, type PageViewPage, type PageViewTransformInput, type PaintedImageCallbacks, type PaintedParts, type PartRights, type PickFileOptions, type PictureBytes, type PictureLayerOptions, type PictureOrPainting, type PicturePartProps, type PixelBox, type PixelRect, type ProjectedTransform, type RendererBehaviorRegistry, type RendererEntry, type RendererInteractiveContext, type RichTextEditorAlign, type RichTextEditorBinding, type RichTextEditorCommand, type RichTextEditorDecoration, type RichTextEditorDocument, type RichTextEditorHost, type RichTextEditorParagraph, type RichTextEditorProps, type RichTextEditorRange, type RichTextEditorRun, type RichTextEditorScript, type RichTextEditorStyle, type RotationAnchorShape, type RovingFocus, type RovingFocusOptions, type RovingMove, type ScenePaint, type SceneShapeNode, type ScrollbarLayout, type ScrollbarMetrics, type ScrollbarPointerEvent, type ScrollbarPresses, type ScrollbarStage, type ScrollbarTrack, type SearchHighlightOptions, type SearchHighlightPiece, type SearchHitShape, type SelectOptions, type SelectionAnchorShape, type SelectionClipboardOptions, type SelectionEndpointShape, type SelectionEndpointsShape, type SelectionHandleSession, type ShortcutCommands, type ShortcutRefusal, type ShownUrls, type StageDemandSource, type StageGestureHost, type StageGestureOptions, type StageGestureSink, type StagePageDemand, type StagePointerKind, type StageProjection, type StageSurfaceHost, type StageSurfaceHub, type StageSurfaceOptions, type StageSurfaceSample, type StageWheelSample, type StandardCommandsBrowser, type StyleRecord, type SurfaceBox, type SurfaceFocusFollower, type SurfaceFocusOptions, type SurfaceTransform, type SvgCursorOptions, type SvgShape, type SvgShapeTag, type SvgShapesOptions, TOOLBAR_ITEM_ATTRIBUTE, type TextBoxCss, type TextBoxEditor, type TextBoxEditorAnnotation, type TextBoxEditorFollower, type TextBoxEditorItem, type TextBoxStyle, type TextEditorLayout, type TextFieldDrafts, type TextFieldEditor, type TextFieldEditorState, type TextFieldEditorStyle, type TextFieldStyle, type ToggleForm, type ToolCursorImage, type ToolCursorSpec, type ToolbarFitMetrics, type ToolbarLengths, type TurnedBox, type ViewProjector, type WebClock, type WebFontMetrics, type WebPlatformFeedback, type WebPrintSheet, type WebPrinter, type WebStagedPrint, type WheelSample, type WidgetBoxStyle, type WidgetEventKind, anchoredViewOf, annotationChromePaint, annotationDrawingOf, applyFirstLineShift, attachFocusTrap, attachMenuKeys, attachPagePointer, attachRichTextEditor, attachRovingFocus, attachSelectionHandle, attachTextBoxEditor, attachToolbarFocus, bakedAppearanceOf, bindCommandShortcuts, bindPaintedImage, bindWidgetEvents, browserClock, browserPrinter, canTakeFocus, chromeInPixels, clientPageProjector, computeReleaseVelocity, containsFocus, copySelection, createClickCounter, createClickDetector, createDefaultActionsUiAdapter, createFontMounts, createOptimisticSelection, createScrollbarPresses, createShownUrls, createStageGestureController, createStageSurface, createSurfaceFocusFollower, createTextBoxEditorFollower, createTextFieldEditor, createToolbarLengths, cssFontOf, cssText, deepActiveElementOf, directionOf, editingTextKeyOf, enrichCommentThreads, epdfThemeVariables, firstLineShiftFor, fitAnchoredRect, focusablesIn, fontProgramsOf, formColorsOf, formFocusRingStyleOf, frameInPixels, freeTextBoxOf, ghostOpacity, hoverLink, indexedDbByteStore, installFilePickerProvider, isMacPlatform, isModifiedClick, isTabbable, isUnavailable, isUprightQuad, isolatePointerDown, isolateWheel, layerTextBoxesOf, legibleScaleOf, legibleShrinkOf, lineModelFor, linkActivateContextOf, linkAnchorOf, linkHrefOf, listBoxControlStyleOf, listBoxStyleOf, livePageContext, loadAppearanceUrls, loadObjectUrl, lookFrameOf, lookRendererFor, makePageContext, menuItemLabelOf, mixAccent, mountFontProgram, mountWebFont, moveFocusInto, navigableLinksOf, objectUrlOf, observeAnchoredFit, observeClientGeometry, observeContentHeight, observeContentLength, observeContentWidth, observeHeight, observeLength, observeOutsidePress, observeWidth, offsetOfPosition, openExternalUri, ownTextBoxOf, pageClientSpace, pageLayersOf, pageSurfaceLayout, pageViewTransformInput, paint, paintDefault, partsDrawnTwice, pickFile, pickImageFile, pickRequestedFile, pictureLayerOptionsOf, pictureOrPainting, positionAnchoredRect, positionOfOffset, pressToggle, projectAnchoredTarget, quadInPixels, rasterInFrame, rectInPixels, registerRendererBehaviors, renderRichText, rendererBehaviorId, rovingMoveOf, rovingTargetOf, sameAnchoredFit, sameAnnotationAnchor, sameCreationDraftAnchor, samePageBounds, sameRotationAnchor, sameSelectionAnchor, sameSelectionEndpoints, sanitizeExternalUri, saveFile, sceneViewBox, scrollbarLayout, searchHighlightsOf, sendLinkEvent, serializeRichText, showSelectedOptions, shownAppearance, stagePageDemand, stageViewProjector, standardCommandsBrowser, styleDeltaOf, svgCursor, svgPoints, svgShapesOf, tabbablesIn, textBoxEditorScaleOf, textFieldEditorStyleOf, textFieldFontPxOf, textFieldStyleOf, toolCursorsOf, toolbarMeasureKey, toolbarStopsOf, typeaheadMatchOf, usesKey, vibrationFeedback, webFontMetrics, wheelZoomFactor, widgetBoxStyleOf, wireSelectionClipboard, wkFeedback };
3527
3663
  //# sourceMappingURL=index.d.ts.map