@vue-pdf-viewer/shared 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +8 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type { Component, ComponentInternalInstance, ComputedRef } from "vue";
|
|
1
|
+
import type { Component, ComponentInternalInstance, ComputedRef, Reactive, Ref } from "vue";
|
|
2
|
+
export interface ViewerCoreState {
|
|
3
|
+
currentPageIndex: Ref<number>;
|
|
4
|
+
scale: Ref<number>;
|
|
5
|
+
isEditing: Ref<boolean>;
|
|
6
|
+
rotation: Ref<number>;
|
|
7
|
+
}
|
|
2
8
|
export type LocaleKey = "en_US" | "zh_CN" | "it_IT" | "pt_PT" | "th_TH" | string;
|
|
3
9
|
export type Localization = {
|
|
4
10
|
searchButtonTooltip: string;
|
|
@@ -115,6 +121,7 @@ export interface PluginContext {
|
|
|
115
121
|
};
|
|
116
122
|
shared: {
|
|
117
123
|
localization: ComputedRef<Localization>;
|
|
124
|
+
viewerCoreState: Reactive<ViewerCoreState>;
|
|
118
125
|
ui: {
|
|
119
126
|
AppButton?: Component;
|
|
120
127
|
AppTooltip?: Component;
|