@vue-pdf-viewer/shared 1.6.0-rc.1 → 1.6.1-rc.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/dist/const.js CHANGED
@@ -128,17 +128,29 @@ export const XFDF_ELEMENT_TO_ANNOTATION_TYPE = {
128
128
  highlight: AnnotationType.Highlight,
129
129
  underline: AnnotationType.Underline,
130
130
  strikeout: AnnotationType.StrikeOut,
131
+ squiggly: AnnotationType.Squiggly,
131
132
  freetext: AnnotationType.FreeText,
132
133
  stamp: AnnotationType.Stamp,
133
134
  ink: AnnotationType.Ink,
134
135
  text: AnnotationType.Popup,
136
+ square: AnnotationType.Square,
137
+ circle: AnnotationType.Circle,
138
+ line: AnnotationType.Line,
139
+ polygon: AnnotationType.Polygon,
140
+ polyline: AnnotationType.Polyline,
135
141
  };
136
142
  export const ANNOTATION_TYPE_TO_XFDF_ELEMENT = {
137
143
  [AnnotationType.Highlight]: "highlight",
138
144
  [AnnotationType.Underline]: "underline",
139
145
  [AnnotationType.StrikeOut]: "strikeout",
146
+ [AnnotationType.Squiggly]: "squiggly",
140
147
  [AnnotationType.FreeText]: "freetext",
141
148
  [AnnotationType.Stamp]: "stamp",
142
149
  [AnnotationType.Ink]: "ink",
143
150
  [AnnotationType.Popup]: "text",
151
+ [AnnotationType.Square]: "square",
152
+ [AnnotationType.Circle]: "circle",
153
+ [AnnotationType.Line]: "line",
154
+ [AnnotationType.Polygon]: "polygon",
155
+ [AnnotationType.Polyline]: "polyline",
144
156
  };
package/dist/types.d.ts CHANGED
@@ -287,6 +287,7 @@ export interface Annotation {
287
287
  fontSize?: number;
288
288
  contents?: string;
289
289
  imageDataUrl?: string;
290
+ vertices?: number[];
290
291
  }
291
292
  export type AnnotationCallback<T = Annotation> = (data: T) => void;
292
293
  export interface AnnotationEventCallback {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "1.6.0-rc.1",
4
+ "version": "1.6.1-rc.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",