@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/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, Rotation } from "@embedpdf/models";
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
- return ((_a = documentState.value) == null ? void 0 : _a.rotation) ?? Rotation.Degree0;
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, [