@embedpdf/plugin-annotation 3.2.0 → 3.4.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.
@@ -0,0 +1,25 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_contract = require("./contract-X3gZNpwu.cjs");
3
+ //#region src/commands.ts
4
+ /** The annotation plugin's commands: `annotation:delete`. */
5
+ function createAnnotationCommands() {
6
+ return [{
7
+ id: "annotation:delete",
8
+ labelKey: "commands.annotation.delete",
9
+ label: "Delete",
10
+ icon: "delete",
11
+ shortcut: ["Delete", "Backspace"],
12
+ categories: ["annotation"],
13
+ run: (context) => context.get(require_contract.AnnotationToken).selection.delete({ signal: context.signal }),
14
+ enabled: (context) => {
15
+ const annotation = context.tryGet(require_contract.AnnotationToken);
16
+ if (!annotation) return false;
17
+ const selected = annotation.selection.getSelected();
18
+ return selected.length > 0 && selected.every(({ ref }) => annotation.canDelete(ref) && annotation.isEditable(ref));
19
+ }
20
+ }];
21
+ }
22
+ //#endregion
23
+ exports.createAnnotationCommands = createAnnotationCommands;
24
+
25
+ //# sourceMappingURL=commands.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.cjs","names":["AnnotationToken"],"sources":["../src/commands.ts"],"sourcesContent":["/**\n * @embedpdf/plugin-annotation/commands — the annotation plugin's command:\n * delete the selected annotations. The tools have their commands from the\n * interaction plugin (`tool:<id>`). Each framework's `/annotation` has the\n * list ready as `annotationCommands`. The i18n plugin has its label.\n */\nimport type { CommandDefinition } from '@embedpdf/core';\n\nimport { AnnotationToken } from './contract';\n\n/** The annotation plugin's commands: `annotation:delete`. */\nexport function createAnnotationCommands(): readonly CommandDefinition[] {\n return [\n {\n id: 'annotation:delete',\n labelKey: 'commands.annotation.delete',\n label: 'Delete',\n icon: 'delete',\n shortcut: ['Delete', 'Backspace'],\n categories: ['annotation'],\n run: (context) => context.get(AnnotationToken).selection.delete({ signal: context.signal }),\n enabled: (context) => {\n const annotation = context.tryGet(AnnotationToken);\n if (!annotation) return false;\n const selected = annotation.selection.getSelected();\n // `isEditable`: the annotation plugin's `editable` setting lets people change it by hand.\n return (\n selected.length > 0 &&\n selected.every(({ ref }) => annotation.canDelete(ref) && annotation.isEditable(ref))\n );\n },\n },\n ];\n}\n"],"mappings":";;;;AAWA,SAAgB,2BAAyD;CACvE,OAAO,CACL;EACE,IAAI;EACJ,UAAU;EACV,OAAO;EACP,MAAM;EACN,UAAU,CAAC,UAAU,WAAW;EAChC,YAAY,CAAC,YAAY;EACzB,MAAM,YAAY,QAAQ,IAAIA,iBAAAA,eAAe,CAAC,CAAC,UAAU,OAAO,EAAE,QAAQ,QAAQ,OAAO,CAAC;EAC1F,UAAU,YAAY;GACpB,MAAM,aAAa,QAAQ,OAAOA,iBAAAA,eAAe;GACjD,IAAI,CAAC,YAAY,OAAO;GACxB,MAAM,WAAW,WAAW,UAAU,YAAY;GAElD,OACE,SAAS,SAAS,KAClB,SAAS,OAAO,EAAE,UAAU,WAAW,UAAU,GAAG,KAAK,WAAW,WAAW,GAAG,CAAC;EAEvF;CACF,CACF;AACF"}
@@ -0,0 +1,7 @@
1
+ import { CommandDefinition } from "@embedpdf/core";
2
+ //#region src/commands.d.ts
3
+ /** The annotation plugin's commands: `annotation:delete`. */
4
+ declare function createAnnotationCommands(): readonly CommandDefinition[];
5
+ //#endregion
6
+ export { createAnnotationCommands };
7
+ //# sourceMappingURL=commands.d.cts.map
@@ -0,0 +1,7 @@
1
+ import { CommandDefinition } from "@embedpdf/core";
2
+ //#region src/commands.d.ts
3
+ /** The annotation plugin's commands: `annotation:delete`. */
4
+ declare function createAnnotationCommands(): readonly CommandDefinition[];
5
+ //#endregion
6
+ export { createAnnotationCommands };
7
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { l as AnnotationToken } from "./contract-BrvLUGi2.js";
2
+ //#region src/commands.ts
3
+ /** The annotation plugin's commands: `annotation:delete`. */
4
+ function createAnnotationCommands() {
5
+ return [{
6
+ id: "annotation:delete",
7
+ labelKey: "commands.annotation.delete",
8
+ label: "Delete",
9
+ icon: "delete",
10
+ shortcut: ["Delete", "Backspace"],
11
+ categories: ["annotation"],
12
+ run: (context) => context.get(AnnotationToken).selection.delete({ signal: context.signal }),
13
+ enabled: (context) => {
14
+ const annotation = context.tryGet(AnnotationToken);
15
+ if (!annotation) return false;
16
+ const selected = annotation.selection.getSelected();
17
+ return selected.length > 0 && selected.every(({ ref }) => annotation.canDelete(ref) && annotation.isEditable(ref));
18
+ }
19
+ }];
20
+ }
21
+ //#endregion
22
+ export { createAnnotationCommands };
23
+
24
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","names":[],"sources":["../src/commands.ts"],"sourcesContent":["/**\n * @embedpdf/plugin-annotation/commands — the annotation plugin's command:\n * delete the selected annotations. The tools have their commands from the\n * interaction plugin (`tool:<id>`). Each framework's `/annotation` has the\n * list ready as `annotationCommands`. The i18n plugin has its label.\n */\nimport type { CommandDefinition } from '@embedpdf/core';\n\nimport { AnnotationToken } from './contract';\n\n/** The annotation plugin's commands: `annotation:delete`. */\nexport function createAnnotationCommands(): readonly CommandDefinition[] {\n return [\n {\n id: 'annotation:delete',\n labelKey: 'commands.annotation.delete',\n label: 'Delete',\n icon: 'delete',\n shortcut: ['Delete', 'Backspace'],\n categories: ['annotation'],\n run: (context) => context.get(AnnotationToken).selection.delete({ signal: context.signal }),\n enabled: (context) => {\n const annotation = context.tryGet(AnnotationToken);\n if (!annotation) return false;\n const selected = annotation.selection.getSelected();\n // `isEditable`: the annotation plugin's `editable` setting lets people change it by hand.\n return (\n selected.length > 0 &&\n selected.every(({ ref }) => annotation.canDelete(ref) && annotation.isEditable(ref))\n );\n },\n },\n ];\n}\n"],"mappings":";;;AAWA,SAAgB,2BAAyD;CACvE,OAAO,CACL;EACE,IAAI;EACJ,UAAU;EACV,OAAO;EACP,MAAM;EACN,UAAU,CAAC,UAAU,WAAW;EAChC,YAAY,CAAC,YAAY;EACzB,MAAM,YAAY,QAAQ,IAAI,eAAe,CAAC,CAAC,UAAU,OAAO,EAAE,QAAQ,QAAQ,OAAO,CAAC;EAC1F,UAAU,YAAY;GACpB,MAAM,aAAa,QAAQ,OAAO,eAAe;GACjD,IAAI,CAAC,YAAY,OAAO;GACxB,MAAM,WAAW,WAAW,UAAU,YAAY;GAElD,OACE,SAAS,SAAS,KAClB,SAAS,OAAO,EAAE,UAAU,WAAW,UAAU,GAAG,KAAK,WAAW,WAAW,GAAG,CAAC;EAEvF;CACF,CACF;AACF"}
@@ -1,3 +1,3 @@
1
- import { $ as ChromeSettings, A as AnnotationReorderedEvent, At as ToolDefaults, B as AnnotationSubtype, C as AnnotationLinksCapability, Ct as SnapSettings, D as AnnotationProperties, Dt as TextAlign, E as AnnotationPosition, Et as StampPreviewProvider, F as AnnotationSelectionAnchor, Ft as ARMED_STAMP_TOOL_ID, G as AnnotationUpdatedEvent, H as AnnotationTool, I as AnnotationSelectionCapability, J as ArmedStampPreview, K as AnnotationWriteFailedEvent, L as AnnotationSelectionChangedEvent, M as AnnotationResources, Mt as AnnotationState, N as AnnotationResyncedEvent, Nt as annotationState, O as AnnotationProperty, Ot as TextItem, P as AnnotationRotationAnchor, Q as BlendMode, R as AnnotationSettings, S as AnnotationImportResult, St as ReviewStatus, T as AnnotationPatch, Tt as StampPlacement, U as AnnotationToolsCapability, V as AnnotationTextCapability, W as AnnotationTransfer, X as AttachmentFileSource, Xt as TextFormat, Y as AttachmentContent, Yt as Face, Z as Behavior, Zt as TextSelection, _ as AnnotationFilter, _t as LineStyle, a as AnnotationBundle, at as CommentsCapability, b as AnnotationImportDrop, bt as MeasurementIntent, c as AnnotationCreatedEvent, ct as EditableKinds, d as AnnotationDraftCapability, dt as FilePromptRequest, et as ClickCreate, f as AnnotationDraftChangedEvent, ft as FlagKey, g as AnnotationExportSelection, gt as LineEndings, h as AnnotationEditingChangedEvent, ht as LineEnding, i as AnnotationAnchor, it as CommentThreadReview, j as AnnotationResourceRole, jt as ToolDefaultsChangedEvent, k as AnnotationRef, kt as ThreadDeleteResult, l as AnnotationDeletedEvent, lt as FieldValues, m as AnnotationDuplicateResult, mt as ImageGhost, n as AfterCreateSettings, nt as CommentThread, o as AnnotationCapability, ot as CreationDraft, p as AnnotationDuplicateOptions, pt as HandleRole, q as ArmedStampInfo, r as Annotation, rt as CommentThreadChangedEvent, s as AnnotationConfig, st as EditableKind, t as ANNOTATION_DEFAULTS, tt as Color, u as AnnotationDraft, ut as FilePickerProvider, v as AnnotationFlags, vt as LinkNavItem, w as AnnotationOption, wt as StampInput, x as AnnotationImportOptions, xt as PdfLinkTarget, y as AnnotationHoverChangedEvent, yt as MarkupSubtype, z as AnnotationStampsCapability } from "../contract-DkxvCGXL.cjs";
2
- import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-BSH_muud.cjs";
1
+ import { $ as ChromeSettings, A as AnnotationReorderedEvent, At as ToolDefaults, B as AnnotationSubtype, C as AnnotationLinksCapability, Ct as SnapSettings, D as AnnotationProperties, Dt as TextAlign, E as AnnotationPosition, Et as StampPreviewProvider, F as AnnotationSelectionAnchor, Ft as ARMED_STAMP_TOOL_ID, G as AnnotationUpdatedEvent, H as AnnotationTool, I as AnnotationSelectionCapability, J as ArmedStampPreview, K as AnnotationWriteFailedEvent, L as AnnotationSelectionChangedEvent, M as AnnotationResources, Mt as AnnotationState, N as AnnotationResyncedEvent, Nt as annotationState, O as AnnotationProperty, Ot as TextItem, P as AnnotationRotationAnchor, Q as BlendMode, R as AnnotationSettings, S as AnnotationImportResult, St as ReviewStatus, T as AnnotationPatch, Tt as StampPlacement, U as AnnotationToolsCapability, V as AnnotationTextCapability, W as AnnotationTransfer, X as AttachmentFileSource, Xt as TextFormat, Y as AttachmentContent, Yt as Face, Z as Behavior, Zt as TextSelection, _ as AnnotationFilter, _t as LineStyle, a as AnnotationBundle, at as CommentsCapability, b as AnnotationImportDrop, bt as MeasurementIntent, c as AnnotationCreatedEvent, ct as EditableKinds, d as AnnotationDraftCapability, dt as FilePromptRequest, et as ClickCreate, f as AnnotationDraftChangedEvent, ft as FlagKey, g as AnnotationExportSelection, gt as LineEndings, h as AnnotationEditingChangedEvent, ht as LineEnding, i as AnnotationAnchor, it as CommentThreadReview, j as AnnotationResourceRole, jt as ToolDefaultsChangedEvent, k as AnnotationRef, kt as ThreadDeleteResult, l as AnnotationDeletedEvent, lt as FieldValues, m as AnnotationDuplicateResult, mt as ImageGhost, n as AfterCreateSettings, nt as CommentThread, o as AnnotationCapability, ot as CreationDraft, p as AnnotationDuplicateOptions, pt as HandleRole, q as ArmedStampInfo, r as Annotation, rt as CommentThreadChangedEvent, s as AnnotationConfig, st as EditableKind, t as ANNOTATION_DEFAULTS, tt as Color, u as AnnotationDraft, ut as FilePickerProvider, v as AnnotationFlags, vt as LinkNavItem, w as AnnotationOption, wt as StampInput, x as AnnotationImportOptions, xt as PdfLinkTarget, y as AnnotationHoverChangedEvent, yt as MarkupSubtype, z as AnnotationStampsCapability } from "../contract-BfZ-mTF7.cjs";
2
+ import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-CjPbxfhS.cjs";
3
3
  export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftCapability, AnnotationDraftChangedEvent, AnnotationDuplicateOptions, AnnotationDuplicateResult, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksCapability, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionCapability, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsCapability, type AnnotationState, type AnnotationSubtype, AnnotationTextCapability, AnnotationToken, AnnotationTool, AnnotationToolsCapability, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsCapability, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
@@ -1,3 +1,3 @@
1
- import { $ as ChromeSettings, A as AnnotationReorderedEvent, At as ToolDefaults, B as AnnotationSubtype, C as AnnotationLinksCapability, Ct as SnapSettings, D as AnnotationProperties, Dt as TextAlign, E as AnnotationPosition, Et as StampPreviewProvider, F as AnnotationSelectionAnchor, Ft as ARMED_STAMP_TOOL_ID, G as AnnotationUpdatedEvent, H as AnnotationTool, I as AnnotationSelectionCapability, J as ArmedStampPreview, K as AnnotationWriteFailedEvent, L as AnnotationSelectionChangedEvent, M as AnnotationResources, Mt as AnnotationState, N as AnnotationResyncedEvent, Nt as annotationState, O as AnnotationProperty, Ot as TextItem, P as AnnotationRotationAnchor, Q as BlendMode, R as AnnotationSettings, S as AnnotationImportResult, St as ReviewStatus, T as AnnotationPatch, Tt as StampPlacement, U as AnnotationToolsCapability, V as AnnotationTextCapability, W as AnnotationTransfer, X as AttachmentFileSource, Xt as TextFormat, Y as AttachmentContent, Yt as Face, Z as Behavior, Zt as TextSelection, _ as AnnotationFilter, _t as LineStyle, a as AnnotationBundle, at as CommentsCapability, b as AnnotationImportDrop, bt as MeasurementIntent, c as AnnotationCreatedEvent, ct as EditableKinds, d as AnnotationDraftCapability, dt as FilePromptRequest, et as ClickCreate, f as AnnotationDraftChangedEvent, ft as FlagKey, g as AnnotationExportSelection, gt as LineEndings, h as AnnotationEditingChangedEvent, ht as LineEnding, i as AnnotationAnchor, it as CommentThreadReview, j as AnnotationResourceRole, jt as ToolDefaultsChangedEvent, k as AnnotationRef, kt as ThreadDeleteResult, l as AnnotationDeletedEvent, lt as FieldValues, m as AnnotationDuplicateResult, mt as ImageGhost, n as AfterCreateSettings, nt as CommentThread, o as AnnotationCapability, ot as CreationDraft, p as AnnotationDuplicateOptions, pt as HandleRole, q as ArmedStampInfo, r as Annotation, rt as CommentThreadChangedEvent, s as AnnotationConfig, st as EditableKind, t as ANNOTATION_DEFAULTS, tt as Color, u as AnnotationDraft, ut as FilePickerProvider, v as AnnotationFlags, vt as LinkNavItem, w as AnnotationOption, wt as StampInput, x as AnnotationImportOptions, xt as PdfLinkTarget, y as AnnotationHoverChangedEvent, yt as MarkupSubtype, z as AnnotationStampsCapability } from "../contract-CQfRsCVj.js";
2
- import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-DU3CxFE1.js";
1
+ import { $ as ChromeSettings, A as AnnotationReorderedEvent, At as ToolDefaults, B as AnnotationSubtype, C as AnnotationLinksCapability, Ct as SnapSettings, D as AnnotationProperties, Dt as TextAlign, E as AnnotationPosition, Et as StampPreviewProvider, F as AnnotationSelectionAnchor, Ft as ARMED_STAMP_TOOL_ID, G as AnnotationUpdatedEvent, H as AnnotationTool, I as AnnotationSelectionCapability, J as ArmedStampPreview, K as AnnotationWriteFailedEvent, L as AnnotationSelectionChangedEvent, M as AnnotationResources, Mt as AnnotationState, N as AnnotationResyncedEvent, Nt as annotationState, O as AnnotationProperty, Ot as TextItem, P as AnnotationRotationAnchor, Q as BlendMode, R as AnnotationSettings, S as AnnotationImportResult, St as ReviewStatus, T as AnnotationPatch, Tt as StampPlacement, U as AnnotationToolsCapability, V as AnnotationTextCapability, W as AnnotationTransfer, X as AttachmentFileSource, Xt as TextFormat, Y as AttachmentContent, Yt as Face, Z as Behavior, Zt as TextSelection, _ as AnnotationFilter, _t as LineStyle, a as AnnotationBundle, at as CommentsCapability, b as AnnotationImportDrop, bt as MeasurementIntent, c as AnnotationCreatedEvent, ct as EditableKinds, d as AnnotationDraftCapability, dt as FilePromptRequest, et as ClickCreate, f as AnnotationDraftChangedEvent, ft as FlagKey, g as AnnotationExportSelection, gt as LineEndings, h as AnnotationEditingChangedEvent, ht as LineEnding, i as AnnotationAnchor, it as CommentThreadReview, j as AnnotationResourceRole, jt as ToolDefaultsChangedEvent, k as AnnotationRef, kt as ThreadDeleteResult, l as AnnotationDeletedEvent, lt as FieldValues, m as AnnotationDuplicateResult, mt as ImageGhost, n as AfterCreateSettings, nt as CommentThread, o as AnnotationCapability, ot as CreationDraft, p as AnnotationDuplicateOptions, pt as HandleRole, q as ArmedStampInfo, r as Annotation, rt as CommentThreadChangedEvent, s as AnnotationConfig, st as EditableKind, t as ANNOTATION_DEFAULTS, tt as Color, u as AnnotationDraft, ut as FilePickerProvider, v as AnnotationFlags, vt as LinkNavItem, w as AnnotationOption, wt as StampInput, x as AnnotationImportOptions, xt as PdfLinkTarget, y as AnnotationHoverChangedEvent, yt as MarkupSubtype, z as AnnotationStampsCapability } from "../contract-DRUUSPzY.js";
2
+ import { a as CapturedAnnotationDraft, c as ANNOTATION_DRAW_PRIORITY, d as ANNOTATION_PLACE_PRIORITY, f as AnnotationModel, i as AnnotationToken, l as ANNOTATION_EDIT_PRIORITY, n as AnnotationHostCapability, o as RecalibrationReport, r as AnnotationLender, s as previewBucket, t as AnnotationAppearancePicture, u as ANNOTATION_MARQUEE_PRIORITY } from "../host-contract-BrC7hZw_.js";
3
3
  export { ANNOTATION_DEFAULTS, ANNOTATION_DRAW_PRIORITY, ANNOTATION_EDIT_PRIORITY, ANNOTATION_MARQUEE_PRIORITY, ANNOTATION_PLACE_PRIORITY, ARMED_STAMP_TOOL_ID, AfterCreateSettings, type Annotation, AnnotationAnchor, AnnotationAppearancePicture, type AnnotationBundle, AnnotationCapability, AnnotationConfig, AnnotationCreatedEvent, AnnotationDeletedEvent, type AnnotationDraft, AnnotationDraftCapability, AnnotationDraftChangedEvent, AnnotationDuplicateOptions, AnnotationDuplicateResult, AnnotationEditingChangedEvent, AnnotationExportSelection, AnnotationFilter, type AnnotationFlags, AnnotationHostCapability, AnnotationHoverChangedEvent, type AnnotationImportDrop, type AnnotationImportOptions, AnnotationImportResult, AnnotationLender, AnnotationLinksCapability, type AnnotationModel, type AnnotationOption, type AnnotationPatch, type AnnotationPosition, AnnotationProperties, type AnnotationProperty, type AnnotationRef, AnnotationReorderedEvent, type AnnotationResourceRole, type AnnotationResources, AnnotationResyncedEvent, AnnotationRotationAnchor, AnnotationSelectionAnchor, AnnotationSelectionCapability, AnnotationSelectionChangedEvent, AnnotationSettings, AnnotationStampsCapability, type AnnotationState, type AnnotationSubtype, AnnotationTextCapability, AnnotationToken, AnnotationTool, AnnotationToolsCapability, AnnotationTransfer, AnnotationUpdatedEvent, AnnotationWriteFailedEvent, ArmedStampInfo, ArmedStampPreview, type AttachmentContent, type AttachmentFileSource, Behavior, type BlendMode, CapturedAnnotationDraft, ChromeSettings, type ClickCreate, type Color, type CommentThread, CommentThreadChangedEvent, type CommentThreadReview, CommentsCapability, CreationDraft, type EditableKind, type EditableKinds, type Face, type FieldValues, FilePickerProvider, FilePromptRequest, type FlagKey, type HandleRole, ImageGhost, type LineEnding, type LineEndings, LineStyle, LinkNavItem, MarkupSubtype, type MeasurementIntent, type PdfLinkTarget, RecalibrationReport, type ReviewStatus, type SnapSettings, StampInput, StampPlacement, StampPreviewProvider, type TextAlign, type TextFormat, TextItem, type TextSelection, ThreadDeleteResult, ToolDefaults, ToolDefaultsChangedEvent, annotationState, previewBucket };
@@ -546,7 +546,9 @@ interface Behavior {
546
546
  * a tool, they are its kind's, with its defaults over the engine's. The
547
547
  * border's value is three keys (`borderStyle`, `dashArray`,
548
548
  * `cloudyIntensity`); a text's font, size, colour and alignment read as the
549
- * text shows (a free text's `fontColor` follows its `color` when it has none).
549
+ * text shows (a free text's `fontColor` follows its `color` when it has none);
550
+ * a selection of form widgets has `orientation`, their `rotation` as the
551
+ * choice's value (`'0'` upright), written with `orientationPatch`.
550
552
  */
551
553
  interface AnnotationProperties {
552
554
  readonly properties: readonly AnnotationProperty[];
@@ -791,9 +793,13 @@ interface AnnotationSelectionCapability {
791
793
  getProperties(): AnnotationProperties;
792
794
  /** Delete every selected annotation. */
793
795
  delete(options?: OperationOptions): Promise<BatchResult<AnnotationRef, AnnotationRef>>;
794
- /** Turn the selection a quarter turn: `90` clockwise, `-90` the other way. */
796
+ /**
797
+ * Turn the selection a quarter turn: `90` clockwise, `-90` the other way.
798
+ * What turned stays on its page: where the turn would carry it past the
799
+ * page's edge, it moves the least that keeps it on the page.
800
+ */
795
801
  rotateBy(degrees: 90 | -90, options?: OperationOptions): Promise<void>;
796
- /** Turn the selection upright again. */
802
+ /** Turn the selection upright again, kept on its page as `rotateBy()` keeps it. */
797
803
  resetRotation(options?: OperationOptions): Promise<void>;
798
804
  /** Make the selected annotations one group, saved the way Acrobat saves it. */
799
805
  group(options?: OperationOptions): Promise<void>;
@@ -1238,4 +1244,4 @@ interface FilePromptRequest {
1238
1244
  type FilePickerProvider = (request: FilePromptRequest) => Promise<AttachmentFileSource | null>;
1239
1245
  //#endregion
1240
1246
  export { ChromeSettings as $, AnnotationReorderedEvent as A, ToolDefaults as At, AnnotationSubtype$1 as B, InkAuthoringOptions as Bt, AnnotationLinksCapability as C, SnapSettings$1 as Ct, AnnotationProperties as D, TextAlign as Dt, AnnotationPosition$1 as E, StampPreviewProvider as Et, AnnotationSelectionAnchor as F, ARMED_STAMP_TOOL_ID as Ft, AnnotationUpdatedEvent as G, StampSourceSpec as Gt, AnnotationTool as H, ResolvedGhost as Ht, AnnotationSelectionCapability as I, AnnotationToolDefinition as It, ArmedStampPreview as J, EditorSelection as Jt, AnnotationWriteFailedEvent as K, ToolAuthoringKind as Kt, AnnotationSelectionChangedEvent as L, AnnotationToolInput as Lt, AnnotationResources$1 as M, AnnotationState as Mt, AnnotationResyncedEvent as N, annotationState as Nt, AnnotationProperty$1 as O, TextItem as Ot, AnnotationRotationAnchor as P, AnnotationToken as Pt, BlendMode as Q, AnnotationSettings as R, DEFAULT_TOOLS as Rt, AnnotationImportResult as S, ReviewStatus as St, AnnotationPatch$1 as T, StampPlacement as Tt, AnnotationToolsCapability as U, ResolvedTool as Ut, AnnotationTextCapability as V, PromptSourceSpec as Vt, AnnotationTransfer as W, SelectionAuthoring as Wt, AttachmentFileSource$1 as X, TextFormat as Xt, AttachmentContent as Y, Face as Yt, Behavior as Z, TextSelection as Zt, AnnotationFilter as _, LineStyle as _t, AnnotationBundle$1 as a, CommentsCapability as at, AnnotationImportDrop$1 as b, MeasurementIntent as bt, AnnotationCreatedEvent as c, EditableKinds$1 as ct, AnnotationDraftCapability as d, FilePromptRequest as dt, ClickCreate$1 as et, AnnotationDraftChangedEvent as f, FlagKey as ft, AnnotationExportSelection as g, LineEndings as gt, AnnotationEditingChangedEvent as h, LineEnding as ht, AnnotationAnchor as i, CommentThreadReview as it, AnnotationResourceRole$1 as j, ToolDefaultsChangedEvent as jt, AnnotationRef$1 as k, ThreadDeleteResult as kt, AnnotationDeletedEvent as l, FieldValues$1 as lt, AnnotationDuplicateResult as m, ImageGhost as mt, AfterCreateSettings as n, CommentThread$1 as nt, AnnotationCapability as o, CreationDraft as ot, AnnotationDuplicateOptions as p, HandleRole as pt, ArmedStampInfo as q, ToolDefaultsFor as qt, Annotation$1 as r, CommentThreadChangedEvent as rt, AnnotationConfig as s, EditableKind as st, ANNOTATION_DEFAULTS as t, Color as tt, AnnotationDraft$1 as u, FilePickerProvider as ut, AnnotationFlags$1 as v, LinkNavItem as vt, AnnotationOption as w, StampInput as wt, AnnotationImportOptions$1 as x, PdfLinkTarget$1 as xt, AnnotationHoverChangedEvent as y, MarkupSubtype as yt, AnnotationStampsCapability as z, GhostPolicy as zt };
1241
- //# sourceMappingURL=contract-DkxvCGXL.d.cts.map
1247
+ //# sourceMappingURL=contract-BfZ-mTF7.d.cts.map