@inkbar/core 0.6.0 → 0.7.0

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/README.md CHANGED
@@ -283,7 +283,7 @@ Marks redraw when their records change, undo and redo included, and keep their e
283
283
 
284
284
  `suggestions.annotates('redact', { from, onRemoved })` links records to the annotations made from them. Its `add(record)` adds an annotation from `from(record)`, stores the link at `custom.<plugin>.<records name>` (here `custom.review.suggestions`) and fills the type's default colour when `from` gives none. `of(record)` returns the linked annotations. `onRemoved(record, annotation)` and `onChanged(record, annotation)` run inside the user's undo step, never on undo or redo. Call it in `setup`. The link travels with the annotation through a Gloss export and import.
285
285
 
286
- `quadsFromRect(rect)` and `rectFromQuads(quads)` from `@inkbar/core` convert between a box and the quads that text markup takes, and `doc.pageText(page)` resolves to a page's text joined with single spaces.
286
+ `quadsFromRect(rect)` and `rectFromQuads(quads)` from `@inkbar/core` convert between a box and the quads that text markup takes, and `doc.pageText(page)` resolves to a page's text joined the way the page reads: nothing between touching items, a space at line ends and at wide gaps.
287
287
 
288
288
  ### Going further
289
289
 
@@ -300,6 +300,44 @@ A command added with `ctx.commands.add` is disabled until a document is ready, u
300
300
  - Decorations from `ctx.decorate` re-apply when the annotations change. Call `ctx.redecorate()` when one reads state of your own that changed. Marks from `plugin.marks` take `refresh()` for the same job.
301
301
  - The framework packages run `setup` once the viewer has mounted in the browser, never while rendering on the server. Until then the plugin's commands are disabled, and anything `setup` creates, such as a store, doesn't exist yet.
302
302
 
303
+ ## Search
304
+
305
+ `doc.search(query, options?)` finds text across the document. The query is a string or a `RegExp`. It returns `SearchResults`: iterate it with `for await` to get hits as pages are scanned, or call `all()` for the lot.
306
+
307
+ ```ts
308
+ for await (const hit of doc.search('invoice')) {
309
+ console.log(hit.page, hit.text, `${hit.before}[${hit.text}]${hit.after}`)
310
+ }
311
+
312
+ const refs = await doc.search(/\b[A-Z]{2}\d{6}[A-D]\b/, { signal }).all()
313
+ ```
314
+
315
+ Options: `matchCase` (default false; a `RegExp` keeps its own `i` flag), `wholeWord` (a hit must not have a letter, digit or underscore on either side), `pages` (indices to search, in the order given; all pages in order by default) and `signal`, which stops the scan. A string matches the way the page reads: it finds text across line breaks and a hyphenated line end, and ignores accents, ligatures and curly quotes.
316
+
317
+ Each `SearchHit` has:
318
+
319
+ - `page`: 0-based page index.
320
+ - `start`, `end`: offsets into `doc.pageText(page)`.
321
+ - `text`: the page text the hit covers.
322
+ - `quads`, `rect`: where it is, in PDF user space. `quads` has one entry per run of text the hit touches, and can go straight into a text markup annotation. Each quad is cut where the page draws its glyphs and spans the font's full height, so it covers ascenders and descenders.
323
+ - `exact`: `true` when every quad comes from where the page draws its glyphs. `false` when some of the text could not be matched to them (right-to-left or vertical text, or an unusual file) and its quad is cut at estimated widths, which can fall short. Pad those before using them to cover text, as a redaction does.
324
+ - `before`, `after`: up to 40 characters of page text either side.
325
+
326
+ `viewer.search` is the state and actions behind the viewer's find bar: `state` (a readable of `open`, `query`, `matchCase`, `hits`, `current` and `scanning`), `open(query?)`, `setQuery`, `setMatchCase`, `next`, `previous` and `close`. `open()` runs the search and draws the highlights even with no find bar on the page. Plugins get the same object as `ctx.search`.
327
+
328
+ ```ts
329
+ import { createFindBar, createSearchButton } from '@inkbar/core/dom'
330
+
331
+ toolbar.append(createSearchButton(viewer))
332
+ viewer.element.querySelector('[data-ink-viewport-root]')!.append(createFindBar(viewer))
333
+ ```
334
+
335
+ `createSearchButton(viewer)` opens the bar. `createFindBar(viewer)` is a field with a match count, previous and next, a match-case toggle and close. Put it inside `[data-ink-viewport-root]`; the theme floats it over the top-right of the pages. Enter steps to the next match, `Shift+Enter` to the previous, and `Escape` closes and returns focus to where it was.
336
+
337
+ Ctrl/Cmd+F opens the bar when one is mounted and the key comes from inside the viewer, with the page selection (up to 200 characters) as the query. Without a bar, or from outside the viewer, the browser keeps the key.
338
+
339
+ Hits are drawn as a layer over the page that multiplies with it, so the text shows through. `@inkbar/theme` styles them with `--ink-search-hit` and, for the current hit, `--ink-search-current`.
340
+
303
341
  ## Signatures
304
342
 
305
343
  A signature here is a mark on the page, not a cryptographic signature of the file. Draw one, type your name in a handwriting font, or upload a scan, and it is saved as a template. The `signature` tool places the chosen template: a click puts it about 150 pt wide, centred on the press, and `Enter` puts it at the centre of the current page. It is turned against the page's `/Rotate`, so it reads upright on the page; a view rotation turns it with the page. A drawn signature becomes `ink` and the others a `stamp` (an image), both with `subject: 'Signature'`. Both keep their aspect ratio when resized.
package/dist/dom.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as PluginHistory, D as OpenOptions, E as InkStatus, Et as FreeTextAnnotation, Gt as NoteAnnotation, M as InkError, Rt as LineEnding, T as InkDocument, U as AnnotationEdit, W as AnnotationStore, X as RecordChange, Y as RecordBase, Z as RecordStore, _ as StyleGroup, _n as PdfAssets, _t as AnnotationInput, a as SignatureStore, b as ToolStyle, bn as Quad, cn as TextMarkupAnnotation, dt as cssVariableDefaults, g as ScopedToolStyle, hn as PageInfo, i as SignatureOptions, j as DocumentSource, m as CurrentStyle, mt as Annotation, o as SignatureTemplate, r as SignatureLibrary, un as Readable, ut as AnnotationDefaults, v as StyleKey, vn as Matrix, xn as Rect, xt as AnnotationType, y as StyleProps, yn as Point } from "./signatures-By4B40DP.mjs";
1
+ import { $ as RecordChange, A as SearchHit, Cn as Quad, D as OpenOptions, E as InkStatus, F as InkError, Jt as NoteAnnotation, K as AnnotationEdit, Q as RecordBase, Sn as Point, T as InkDocument, U as PluginHistory, Vt as LineEnding, _ as StyleGroup, _t as Annotation, a as SignatureStore, b as ToolStyle, bn as PdfAssets, bt as AnnotationInput, dn as TextMarkupAnnotation, et as RecordStore, g as ScopedToolStyle, i as SignatureOptions, k as DocumentSource, kt as FreeTextAnnotation, m as CurrentStyle, mt as cssVariableDefaults, o as SignatureTemplate, pn as Readable, pt as AnnotationDefaults, q as AnnotationStore, r as SignatureLibrary, v as StyleKey, vn as PageInfo, wn as Rect, wt as AnnotationType, xn as Matrix, y as StyleProps } from "./signatures-CalOktkf.mjs";
2
2
  import { IconNode } from "@inkbar/icons";
3
3
  //#region src/dom/transform.d.ts
4
4
  type ViewRotation = 0 | 90 | 180 | 270;
@@ -479,6 +479,51 @@ interface PluginApi extends PluginContext {
479
479
  }>(records: Records<T>, opts: MarksOptions<T>): MarksHandle;
480
480
  }
481
481
  //#endregion
482
+ //#region src/dom/search/controller.d.ts
483
+ interface SearchState {
484
+ open: boolean;
485
+ query: string;
486
+ matchCase: boolean;
487
+ /** Found so far, in `(page, start)` order. */
488
+ hits: readonly SearchHit[];
489
+ /** Index into `hits`, -1 when none. */
490
+ current: number;
491
+ scanning: boolean;
492
+ }
493
+ interface ViewerSearch {
494
+ readonly state: Readable<SearchState>;
495
+ /** Shows the bar, optionally with a query. */
496
+ open(query?: string): void;
497
+ setQuery(query: string): void;
498
+ setMatchCase(on: boolean): void;
499
+ next(): void;
500
+ previous(): void;
501
+ /** Hides the bar and clears the hits; the query and match case are kept. */
502
+ close(): void;
503
+ }
504
+ interface SearchController extends ViewerSearch {
505
+ /** @internal Registers a mounted find bar; returns the function that unregisters it. */
506
+ attachBar(): () => void;
507
+ /** Whether any find bar is mounted for this viewer. */
508
+ readonly barAttached: Readable<boolean>;
509
+ destroy(): void;
510
+ }
511
+ interface SearchControllerOptions {
512
+ document: Readable<InkDocument | null>;
513
+ /** The viewer's viewport, read on each call. */
514
+ viewport: () => Viewport | null | undefined;
515
+ /** Default 150. */
516
+ debounceMs?: number;
517
+ }
518
+ export declare function createSearchController(opts: SearchControllerOptions): SearchController;
519
+ /**
520
+ * The actions and state of `controller` without the bar registration: what callers of a viewer
521
+ * or a plugin get.
522
+ *
523
+ * @internal Shared with the framework bindings.
524
+ */
525
+ export declare function viewerSearchOf(controller: SearchController): ViewerSearch;
526
+ //#endregion
482
527
  //#region src/dom/tools/options.d.ts
483
528
  interface ToolOptions {
484
529
  /** The tool's current options. Throws a `RangeError` for an id no tool registered. */
@@ -708,6 +753,11 @@ interface PluginContext {
708
753
  scrollTo(page: number, rect: Rect, opts?: {
709
754
  behavior?: ScrollBehavior;
710
755
  }): void;
756
+ /**
757
+ * The viewer's search state and actions, shared with the find bar. Inert (always closed, no
758
+ * hits) when the host has no search.
759
+ */
760
+ readonly search: ViewerSearch;
711
761
  }
712
762
  /** A factory's parameters: its options, optional only when `O` has no required field. */
713
763
  type PluginFactoryArgs<O> = {} extends O ? [options?: O & PluginOptions] : [options: O & PluginOptions];
@@ -795,6 +845,8 @@ interface PluginHostOptions {
795
845
  decorate?: () => DecorateAnnotation | undefined;
796
846
  /** The viewer's viewport, read on each call; without one, `ctx.scrollTo` does nothing. */
797
847
  viewport?: () => Viewport | null | undefined;
848
+ /** The viewer's search; without one, `ctx.search` is inert. */
849
+ search?: ViewerSearch;
798
850
  }
799
851
  interface PluginHost extends LayerSource {
800
852
  readonly commands: ReadonlyMap<string, Command>;
@@ -814,6 +866,14 @@ interface PluginHost extends LayerSource {
814
866
  */
815
867
  export declare function createPluginHost(opts: PluginHostOptions): PluginHost;
816
868
  //#endregion
869
+ //#region src/dom/search/highlights.d.ts
870
+ /** The highlights of one viewer's pages; see `createSearchHighlights`. */
871
+ interface SearchHighlights {
872
+ mount(page: number, host: HTMLElement, transform: PageTransform): PageLayers;
873
+ /** Stops following the controller. Pages still mounted keep their highlights until they unmount. */
874
+ destroy(): void;
875
+ }
876
+ //#endregion
817
877
  //#region src/dom/page-mount.d.ts
818
878
  interface PageMountOptions {
819
879
  document: InkDocument;
@@ -831,6 +891,8 @@ interface PageMountOptions {
831
891
  devicePixelRatio?: number;
832
892
  /** Plugin layers, mounted above the overlay. The engine passes them for its pages only. */
833
893
  layers?: PluginLayers;
894
+ /** Search match highlights, mounted below the overlay. */
895
+ highlights?: SearchHighlights;
834
896
  /**
835
897
  * Canvas and text layer failures, with the layer that failed (cancellations are not
836
898
  * reported).
@@ -1482,6 +1544,11 @@ interface MountViewerOptions {
1482
1544
  * the app's decoration (its `decorate` option) so the two compose.
1483
1545
  */
1484
1546
  plugins?: PluginHost;
1547
+ /**
1548
+ * The viewer's search controller. Its matches are highlighted on every page the engine
1549
+ * mounts, below the annotations.
1550
+ */
1551
+ search?: SearchController;
1485
1552
  onActivate?(id: string): void;
1486
1553
  /**
1487
1554
  * After every (re)build: subscribe to the new viewport and controller here. It fires inside
@@ -1547,7 +1614,7 @@ export declare function mountViewer(opts: MountViewerOptions): ViewerEngine;
1547
1614
  * (bound to one document's store, so each engine makes its own), and the tool options and
1548
1615
  * signature library (one for the viewer's life).
1549
1616
  */
1550
- interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins'> {
1617
+ interface CreateViewerOptions extends Omit<MountViewerOptions, 'container' | 'document' | 'toolStyle' | 'toolHistory' | 'toolOptions' | 'signatureLibrary' | 'plugins' | 'search'> {
1551
1618
  source: DocumentSource;
1552
1619
  assets: PdfAssets;
1553
1620
  /** User password for encrypted files. `open` can pass its own for one load. */
@@ -1595,6 +1662,11 @@ interface Viewer {
1595
1662
  readonly commands: {
1596
1663
  get(id: string): Command | undefined;
1597
1664
  };
1665
+ /**
1666
+ * The search state and its actions, shared by the find bar, the toolbar button and plugins.
1667
+ * `open()` runs the search and draws the highlights even when no find bar is mounted.
1668
+ */
1669
+ readonly search: ViewerSearch;
1598
1670
  /**
1599
1671
  * Opens another document in place; the previous one is destroyed. Latest call wins.
1600
1672
  * `password` is used for this load only; without it, the constructor's `password` applies.
@@ -1606,12 +1678,61 @@ interface Viewer {
1606
1678
  }
1607
1679
  export declare function createViewer(el: HTMLElement, opts: CreateViewerOptions): Viewer;
1608
1680
  //#endregion
1681
+ //#region src/dom/search/find-bar.d.ts
1682
+ /**
1683
+ * The find bar for `viewer`: a field, the match count, previous and next, a match-case toggle
1684
+ * and close. Its buttons keep focus while used; Enter in the field steps to the next match,
1685
+ * Shift+Enter to the previous, Escape closes. Closing returns focus to where it was before the
1686
+ * bar opened, else to the document.
1687
+ */
1688
+ export declare function createFindBar(viewer: Viewer): HTMLElement;
1689
+ //#endregion
1690
+ //#region src/dom/search/find-key.d.ts
1691
+ /**
1692
+ * The text selected on the page inside `root`, on one line and trimmed; '' when there is none,
1693
+ * when it is not in `root`, when it is in the find bar, or when it is too long to be a query.
1694
+ */
1695
+ export declare function pageSelectionText(root: HTMLElement): string;
1696
+ /**
1697
+ * Ctrl/Cmd+F on a viewer's root. Call it from a `keydown` listener on that root (it reads
1698
+ * `currentTarget`). Takes the key only when a find bar is mounted for this viewer and the event
1699
+ * comes from inside the root; otherwise the browser keeps it. Opens the search with the page selection as
1700
+ * the query, if there is one, and focuses and selects the field. Returns whether it took the key.
1701
+ *
1702
+ * @internal Shared with the framework bindings.
1703
+ */
1704
+ export declare function handleFindKey(e: KeyboardEvent, controller: SearchController, selection: () => string): boolean;
1705
+ //#endregion
1706
+ //#region src/dom/search/find-text.d.ts
1707
+ /**
1708
+ * The count beside the field: "3 of 17", "3 of 12…" while scanning, "No results".
1709
+ *
1710
+ * @internal Shared with the framework bindings.
1711
+ */
1712
+ export declare function findCountText(s: SearchState): string;
1713
+ /**
1714
+ * Returns the function a bar calls with each search state for its live region's text.
1715
+ *
1716
+ * A settled scan reads "Match 3 of 17, page 2" or "No results". While a scan runs it says
1717
+ * nothing until a step moves the current hit, then "Match 3 of 12 so far, page 2", and keeps
1718
+ * that text as more hits arrive, so the region speaks once per step and once on settle rather
1719
+ * than once per hit.
1720
+ *
1721
+ * @internal Shared with the framework bindings; each bar keeps its own.
1722
+ */
1723
+ export declare function findAnnouncer(): (s: SearchState) => string;
1724
+ //#endregion
1609
1725
  //#region src/dom/viewer/controls.d.ts
1610
1726
  /**
1611
1727
  * An `<svg>` drawing `icon` from `@inkbar/icons`, hidden from assistive technology: the
1612
1728
  * control it sits in carries the name. The theme sizes it with `--ink-icon-size`.
1613
1729
  */
1614
1730
  export declare function createIcon(icon: IconNode): SVGSVGElement;
1731
+ /**
1732
+ * Opens the viewer's find bar; pressed while it is open. Pressing it again focuses the field.
1733
+ * The bar itself is `createFindBar`.
1734
+ */
1735
+ export declare function createSearchButton(viewer: Viewer): HTMLButtonElement;
1615
1736
  /**
1616
1737
  * A toolbar following the WAI-ARIA toolbar pattern: its buttons share one Tab stop, with
1617
1738
  * arrow keys, Home and End to move between them. Fields and selects are Tab stops of their
@@ -1847,5 +1968,5 @@ export declare function createSignatureDialog(viewer: Viewer, opts?: SignatureDi
1847
1968
  export declare function createSignaturePreview(t: SignatureTemplate): HTMLElement;
1848
1969
  export declare function createSignatureMenu(viewer: Viewer, opts?: SignatureDialogOptions): HTMLElement;
1849
1970
  //#endregion
1850
- export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults };
1971
+ export { type AnnotationDecoration, type AnnotationInputOf, type AnnotationLink, type AnnotationLinkSpec, type AnnotationSlotProps, type AnnotationState, type ArrowheadChoice, type BuiltinToolId, type CardSpec, type ColorMenuModel, type ColorMenuOptions, type ColorMenuSwatch, type ColorProperty, type ColorTrigger, type Command, type CommandOptions, type CommandRun, type CommandSpec, type CreateViewerOptions, type CssLayout, type CssLayoutInput, type CssPageBox, type CssRect, type CurrentStyle, type DecorateAnnotation, type EditorCloseReason, type FocusReturn, type FocusReturnOptions, type FreeTextEditor, type FreeTextEditorOptions, type HighlightMenuItem, type HighlightMenuModel, type HighlightOptions, type InkPlugin, type LayerEvent, type LayerSource, type LayerSpec, type LayoutMode, type LineStyleMenuItem, type LineStyleMenuModel, type LineStyleMenuSection, type MarksHandle, type MarksOptions, type MarkupKind, type Menu, type MenuOptions, type MountViewerOptions, type Overlay, type OverlayOptions, type PageHit, type PageLayer, type PageLayers, type PageMount, type PageMountOptions, type PageRenderer, type PageRendererOptions, type PageTransform, type Palette, type PluginApi, type PluginContext, type PluginHost, type PluginHostOptions, type PluginLayer, type PluginLayerHandle, type PluginLayers, type PluginOptions, type PluginStoreOptions, type Popover, type PopoverOptions, type Records, type ScopedToolStyle, type SearchController, type SearchControllerOptions, type SearchState, type SelectionQuads, type ShapeKind, type ShapeMenuItem, type ShapeMenuModel, type ShapeOptions, type SignatureDialog, type SignatureDialogOptions, type SignatureDraft, type SignatureDraftState, type SignatureMenuItem, type SignatureMenuModel, type SignatureOptions, type SignaturePad, type SignatureTab, type StyleGroup, type StyleKey, type StyleProps, type TextAlignChoice, type TextAlignKey, type TextLayerHandle, type TextLayerOptions, type TextStyleMenuModel, type TextStyleToggle, type TextToggleKey, type ThreadPopoverSlotProps, type Tool, type ToolContext, type ToolController, type ToolControllerOptions, type ToolId, type ToolKind, type ToolOptions, type ToolStyle, type ToolStyleTracker, type TypedSignatureOptions, type ViewRotation, type Viewer, type ViewerEngine, type ViewerSearch, type Viewport, type ViewportHit, type ViewportKeysOptions, type ViewportOptions, type ZoomValue, cssVariableDefaults };
1851
1972
  //# sourceMappingURL=dom.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog.ts","../src/dom/viewer/signature-menu.ts"],"mappings":";;;KAWY;;UAGK;EACf;EACA;EACA;EACA;;UAGe;WACN,MAAM;;WAEN;;;;;WAKA;;WAEA,UAAU;;WAEV,eAAe;;WAEf;;WAEA;;WAEA,QAAQ;EACjB,MAAM,GAAG,QAAQ;EACjB,UAAU,GAAG,OAAO;EACpB,UAAU,GAAG,OAAO;;EAEpB,YAAY;EACZ,QAAQ,GAAG,QAAQ;EACnB,YAAY,GAAG,UAAU;;EAEzB,cAAc;;;wBAIA,kBAAkB,cAAc;;;;;wBAWhC,oBACd,MAAM,UACN,cACA,eAAc,eACb;;;KC/DS;;UAGK;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,OAAO;EACP;EACA;;UAGe;EACf,gBAAgB;EAChB;EACA,UAAU;;EAEV;EACA,MAAM;;EAEN;;EAEA;;;wBASc,iBAAiB,OAAO,iBAAiB;;wBAyBzC,WACd,MAAM,UACN,UAAU,cACV;EAAa;EAAe;GAC5B,gCACA;;;;;wBAac,gBACd,QAAQ,WACR,mBACA,wBACA;;wBAec,mBACd,QAAQ,WACR,mBACA;;;KChFU;UAEK;EACf,WAAW;EACX,UAAU;;EAEV,OAAO;;EAEP,OAAO;;EAEP,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;EACA,QAAQ,cAAc,MAAM,aAAa,WAAW;EACpD,SAAS,cAAc,MAAM,aAAa,WAAW;EACrD,UAAU,cAAc,MAAM;;;UAIf;EACf;EACA,MAAM;EACN,WAAW;;UAGI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EP;;EAEA;;EAEA;EACA;;UAGe;WACN,OAAO,SAAS;WAChB;EACT,OAAO,KAAK;EACZ,QAAQ;EACR,QAAQ;;EAER,UAAU,MAAM;EAChB;;EAEA,WAAW,MAAM,mBAAmB;;;;;;EAMpC,KAAK,SAAS,mBAAmB,QAAQ;;EAEzC;EACA;;wBAGc,qBACd;EAAQ;IACP;;;UCnCc;;EAEf;;UAGe;WACN;;EAET,KAAK;IAAS,cAAc;;EAC5B;EACA;;wBAKc,sBACd,QAAQ,QACR,OAAM,yBACL;;;;wBCda,uBAAuB,GAAG,oBAAoB;wBAoB9C,oBACd,QAAQ,QACR,OAAM,yBACL"}
1
+ {"version":3,"file":"dom.d.mts","names":[],"sources":["../src/dom/transform.ts","../src/dom/layout.ts","../src/dom/viewport.ts","../src/dom/viewport-keys.ts","../src/dom/page-renderer.ts","../src/dom/text-layer.ts","../src/dom/selection.ts","../src/dom/overlay.ts","../src/dom/overlay-render.ts","../src/dom/plugins/api/command.ts","../src/dom/plugins/api/links.ts","../src/dom/plugins/api/records.ts","../src/dom/plugins/api/card.ts","../src/dom/plugins/api/marks.ts","../src/dom/plugins/api/api.ts","../src/dom/search/controller.ts","../src/dom/tools/options.ts","../src/dom/tools/controller.ts","../src/dom/plugins/define.ts","../src/dom/plugins/commands.ts","../src/dom/plugins/layer.ts","../src/dom/plugins/host.ts","../src/dom/search/highlights.ts","../src/dom/page-mount.ts","../src/dom/tools/freetext.ts","../src/dom/tools/highlight.ts","../src/dom/tools/note.ts","../src/dom/tools/redact-area.ts","../src/dom/tools/select.ts","../src/dom/tools/select-text.ts","../src/model/annotations/shape-geometry.ts","../src/dom/tools/shape.ts","../src/dom/tools/signature.ts","../src/dom/tools/index.ts","../src/dom/ui.ts","../src/dom/palette.ts","../src/dom/freetext-editor.ts","../src/dom/menu-keys.ts","../src/dom/annotation-element.ts","../src/dom/popover-focus.ts","../src/dom/viewer/popover.ts","../src/dom/viewer-engine.ts","../src/dom/viewer/create-viewer.ts","../src/dom/search/find-bar.ts","../src/dom/search/find-key.ts","../src/dom/search/find-text.ts","../src/dom/viewer/controls.ts","../src/dom/viewer/style-menu.ts","../src/dom/viewer/color-menu.ts","../src/dom/viewer/text-style-menu.ts","../src/dom/viewer/shape-menu.ts","../src/dom/viewer/highlight-menu.ts","../src/dom/shape-icons.ts","../src/dom/markup-icons.ts","../src/dom/viewer/menu.ts","../src/dom/signature-pad.ts","../src/dom/signature-draft.ts","../src/dom/viewer/signature-dialog.ts","../src/dom/viewer/signature-menu.ts"],"mappings":";;;KAWY;;UAGK;EACf;EACA;EACA;EACA;;UAGe;WACN,MAAM;;WAEN;;;;;WAKA;;WAEA,UAAU;;WAEV,eAAe;;WAEf;;WAEA;;WAEA,QAAQ;EACjB,MAAM,GAAG,QAAQ;EACjB,UAAU,GAAG,OAAO;EACpB,UAAU,GAAG,OAAO;;EAEpB,YAAY;EACZ,QAAQ,GAAG,QAAQ;EACnB,YAAY,GAAG,UAAU;;EAEzB,cAAc;;;wBAIA,kBAAkB,cAAc;;;;;wBAWhC,oBACd,MAAM,UACN,cACA,eAAc,eACb;;;KC/DS;;UAGK;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,OAAO;EACP;EACA;;UAGe;EACf,gBAAgB;EAChB;EACA,UAAU;;EAEV;EACA,MAAM;;EAEN;;EAEA;;;wBASc,iBAAiB,OAAO,iBAAiB;;wBAyBzC,WACd,MAAM,UACN,UAAU,cACV;EAAa;EAAe;GAC5B,gCACA;;;;;wBAac,gBACd,QAAQ,WACR,mBACA,wBACA;;wBAec,mBACd,QAAQ,WACR,mBACA;;;KChFU;UAEK;EACf,WAAW;EACX,UAAU;;EAEV,OAAO;;EAEP,OAAO;;EAEP,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;EACA,QAAQ,cAAc,MAAM,aAAa,WAAW;EACpD,SAAS,cAAc,MAAM,aAAa,WAAW;EACrD,UAAU,cAAc,MAAM;;;UAIf;EACf;EACA,MAAM;EACN,WAAW;;UAGI;WACN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