/** * @embedpdf/svelte/annotation — the Svelte view of `@embedpdf/plugin-annotation`. * * `` draws a page's annotations, the selection's handles, the tool's preview and * the text boxes being typed in, with `renderers` for your own looks and `handle` / * `rotationHandle` snippets for your own handles. ``, `` and * `` float your UI over the selection, a shape being drawn and a turn in * progress. * * The readers follow every plugin's four: `useAnnotation()` (the API), `useAnnotationState()` * (status, selected, hovered, editing), `useAnnotationEvent()` and `useAnnotationSettings()`; the * reads a component follows on their own are `{ current }`: `useAnnotationList()`, * `useAnnotationDefaults()`, `useAnnotationProperties()`, `useAnnotationAnchor()`, and the * comments' `useCommentThreads()` and `useCommentThread()`. `useRichTextEditor()` makes your * element a text box's editor (an attachment), and `useFilePickerProvider()` installs the file * dialog behind click-then-pick tools. * * What isn't Svelte lives in `@embedpdf/web`, the same for every framework: the scene as SVG * elements, the chrome's paint and pixels, the text box editor, which drawing each annotation gets * and the behaviors renderers register, and the object URLs of baked appearances and the stamp * ghost. */ // Registration travels with the UI. export * from '@embedpdf/plugin-annotation'; // The annotation plugin's commands, ready to spread. export { annotationCommands } from './command-lists'; export type { CreationDraftAnchor, RenderItem, LineEnding, LineEndings, Style, AnnotationFlags, FieldValues, TextAlign, TextStyle, } from '@embedpdf/core-annotation'; export { default as AnnotationLayer } from './annotation/AnnotationLayer.svelte'; export { default as AnnotationMenu } from './annotation/AnnotationMenu.svelte'; export { default as AnnotationDraftMenu } from './annotation/AnnotationDraftMenu.svelte'; export { default as AnnotationRotationBadge } from './annotation/AnnotationRotationBadge.svelte'; export type { AnnotationDraftMenuProps, AnnotationFrame, AnnotationInteractiveContext, AnnotationLayerProps, AnnotationMenuProps, AnnotationRenderer, AnnotationRendererProps, AnnotationRotationBadgeProps, BehaviorRendererProps, CommentThreadView, HandleProps, RichTextEditor, RotationHandleProps, } from './annotation/props'; export { useAnnotationSettings, useAnnotationState } from './annotation/state'; export { filePickerProvider, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useCommentThread, useCommentThreads, useComments, useFilePickerProvider, } from './annotation/readers.svelte'; export { useRichTextEditor } from './annotation/text-box.svelte';