@vue-pdf-viewer/shared 1.5.0-rc.0 → 1.5.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +21 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -347,3 +347,24 @@ export interface AnnotationTextSelectionControl {
347
347
  /** Set the strikethrough color palette shown in the popover. Accepts LabelValuePair[] or string[] (1–12 colors). */
348
348
  setStrikethroughColorPalette(colors: AnnotationStrikethroughColors): void;
349
349
  }
350
+ /**
351
+ * Programmatic API for the free text annotation tool.
352
+ * Exposed on the VPdfViewer instance as `freeTextControl`.
353
+ * Undefined when the annotation plugin is not loaded.
354
+ */
355
+ export interface AnnotationFreeTextControl {
356
+ /** Whether the free text annotation tool is currently active */
357
+ readonly isActive: boolean;
358
+ /** Current default font color for new free text annotations (CSS hex string, e.g. '#000000'), or null if not set */
359
+ readonly fontColor: string | null;
360
+ /** Current default font size for new free text annotations (in points), or null if not set */
361
+ readonly fontSize: number | null;
362
+ /** Activate the free text tool. Deactivates all text-selection annotation tools. */
363
+ activate(): void;
364
+ /** Deactivate the free text tool. No-op if already inactive. */
365
+ deactivate(): void;
366
+ /** Set the default font color for new annotations (CSS hex string). Takes effect on the next annotation created. */
367
+ setFontColor(color: string): void;
368
+ /** Set the default font size for new annotations (in points). Takes effect on the next annotation created. */
369
+ setFontSize(size: number): void;
370
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "1.5.0-rc.0",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",