@vue-pdf-viewer/shared 1.2.0-rc.7 → 1.2.0-rc.9
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/types.d.ts +6 -7
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -163,26 +163,25 @@ export interface LabelValuePair {
|
|
|
163
163
|
}
|
|
164
164
|
export type AnnotationColors = LabelValuePair[] | string[];
|
|
165
165
|
export type AnnotationColorsLength = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
166
|
-
export type
|
|
166
|
+
export type AnnotationTextSelectionColors = (AnnotationColors & {
|
|
167
167
|
length: AnnotationColorsLength;
|
|
168
168
|
}) | null;
|
|
169
|
-
export type
|
|
170
|
-
export type
|
|
171
|
-
export type
|
|
169
|
+
export type AnnotationHighlightColors = AnnotationTextSelectionColors;
|
|
170
|
+
export type AnnotationStrikethroughColors = AnnotationTextSelectionColors;
|
|
171
|
+
export type AnnotationUnderlineColors = AnnotationTextSelectionColors;
|
|
172
|
+
export type AnnotationFreeTextFontColors = AnnotationTextSelectionColors;
|
|
172
173
|
export interface AnnotationToolOption {
|
|
173
174
|
icon?: Component | VNode | string;
|
|
174
175
|
component?: Component;
|
|
175
176
|
}
|
|
176
177
|
export interface HighlightToolOption extends AnnotationToolOption {
|
|
177
|
-
colors?: AnnotationHighlightColors;
|
|
178
178
|
}
|
|
179
179
|
export interface StrikethroughToolOption extends AnnotationToolOption {
|
|
180
|
-
colors?: AnnotationStrikethroughColors;
|
|
181
180
|
}
|
|
182
181
|
export interface UnderlineToolOption extends AnnotationToolOption {
|
|
183
|
-
colors?: AnnotationUnderlineColors;
|
|
184
182
|
}
|
|
185
183
|
export interface TextSelectionOption extends AnnotationToolOption {
|
|
184
|
+
colors?: AnnotationTextSelectionColors;
|
|
186
185
|
highlight?: HighlightToolOption | boolean;
|
|
187
186
|
strikethrough?: StrikethroughToolOption | boolean;
|
|
188
187
|
underline?: UnderlineToolOption | boolean;
|