@embedpdf/plugin-annotation 2.4.1 → 2.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.
- package/dist/preact/index.cjs +1 -1
- package/dist/preact/index.cjs.map +1 -1
- package/dist/preact/index.js +5 -3
- package/dist/preact/index.js.map +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +5 -3
- package/dist/react/index.js.map +1 -1
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.cjs.map +1 -1
- package/dist/svelte/index.js +6 -3
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +5 -3
- package/dist/vue/index.js.map +1 -1
- package/package.json +10 -10
package/dist/vue/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export * from "@embedpdf/plugin-annotation";
|
|
|
4
4
|
import { ref, toValue, watch, computed, defineComponent, shallowRef, toRaw, useSlots, watchEffect, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, mergeProps, unref, renderSlot, Fragment, renderList, withCtx, resolveDynamicComponent, normalizeStyle, onMounted, toDisplayString, onUnmounted, createVNode, createSlots, normalizeProps, guardReactiveProps, provide, inject, markRaw } from "vue";
|
|
5
5
|
import { useInteractionHandles, useDoublePressProps, CounterRotate, deepToRaw } from "@embedpdf/utils/vue";
|
|
6
6
|
import { usePlugin, useCapability, useDocumentPermissions, useDocumentState } from "@embedpdf/core/vue";
|
|
7
|
-
import { boundingRectOrEmpty, PdfAnnotationBorderStyle, textAlignmentToCss, standardFontCss, PdfVerticalAlignment, ignore, PdfErrorCode, blendModeToCss, PdfBlendMode, PdfAnnotationSubtype
|
|
7
|
+
import { boundingRectOrEmpty, PdfAnnotationBorderStyle, textAlignmentToCss, standardFontCss, PdfVerticalAlignment, ignore, PdfErrorCode, blendModeToCss, PdfBlendMode, PdfAnnotationSubtype } from "@embedpdf/models";
|
|
8
8
|
import { usePointerHandlers } from "@embedpdf/plugin-interaction-manager/vue";
|
|
9
9
|
import { useSelectionCapability } from "@embedpdf/plugin-selection/vue";
|
|
10
10
|
const useAnnotationPlugin = () => usePlugin(AnnotationPlugin.id);
|
|
@@ -2644,9 +2644,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2644
2644
|
return ((_a = documentState.value) == null ? void 0 : _a.scale) ?? 1;
|
|
2645
2645
|
});
|
|
2646
2646
|
const actualRotation = computed(() => {
|
|
2647
|
-
var _a;
|
|
2647
|
+
var _a, _b;
|
|
2648
2648
|
if (props.rotation !== void 0) return props.rotation;
|
|
2649
|
-
|
|
2649
|
+
const pageRotation = ((_a = page.value) == null ? void 0 : _a.rotation) ?? 0;
|
|
2650
|
+
const docRotation = ((_b = documentState.value) == null ? void 0 : _b.rotation) ?? 0;
|
|
2651
|
+
return (pageRotation + docRotation) % 4;
|
|
2650
2652
|
});
|
|
2651
2653
|
return (_ctx, _cache) => {
|
|
2652
2654
|
return openBlock(), createElementBlock("div", null, [
|