@embedpdf/plugin-annotation 2.0.0-next.2 → 2.0.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
|
@@ -36,12 +36,15 @@ const useAnnotation = (documentId) => {
|
|
|
36
36
|
})
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
const _hoisted_1$8 = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
39
|
+
const _hoisted_1$8 = {
|
|
40
|
+
"data-no-interaction": "",
|
|
41
|
+
style: { display: "contents" }
|
|
42
|
+
};
|
|
43
|
+
const __default__ = {
|
|
44
|
+
inheritAttrs: false
|
|
45
|
+
};
|
|
44
46
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
47
|
+
...__default__,
|
|
45
48
|
__name: "annotation-container",
|
|
46
49
|
props: {
|
|
47
50
|
scale: {},
|
|
@@ -61,10 +64,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
61
64
|
onDoubleClick: {},
|
|
62
65
|
onSelect: {},
|
|
63
66
|
zIndex: { default: 1 },
|
|
64
|
-
selectionOutlineColor: { default: "#007ACC" }
|
|
67
|
+
selectionOutlineColor: { default: "#007ACC" },
|
|
68
|
+
style: {}
|
|
65
69
|
},
|
|
66
70
|
setup(__props) {
|
|
67
71
|
const props = __props;
|
|
72
|
+
const HANDLE_COLOR = "#007ACC";
|
|
73
|
+
const VERTEX_COLOR = "#007ACC";
|
|
74
|
+
const HANDLE_SIZE = 12;
|
|
75
|
+
const VERTEX_SIZE = 12;
|
|
68
76
|
const preview = shallowRef(toRaw(props.trackedAnnotation.object));
|
|
69
77
|
const { provides: annotationCapability } = useAnnotationCapability();
|
|
70
78
|
const gestureBaseRef = ref(null);
|
|
@@ -194,10 +202,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
194
202
|
cursor: props.isSelected && props.isDraggable ? "move" : "default",
|
|
195
203
|
zIndex: props.zIndex
|
|
196
204
|
}));
|
|
205
|
+
const mergedContainerStyle = computed(() => ({
|
|
206
|
+
...containerStyle.value,
|
|
207
|
+
...props.style ?? {}
|
|
208
|
+
}));
|
|
197
209
|
const slots = useSlots();
|
|
198
210
|
return (_ctx, _cache) => {
|
|
199
211
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
200
|
-
createElementVNode("div", mergeProps({ ...unref(dragProps), ...unref(doubleProps) }, { style:
|
|
212
|
+
createElementVNode("div", mergeProps({ ...unref(dragProps), ...unref(doubleProps) }, { style: mergedContainerStyle.value }), [
|
|
201
213
|
renderSlot(_ctx.$slots, "default", { annotation: currentObject.value }),
|
|
202
214
|
__props.isSelected && __props.isResizable ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(resize), ({ key, style, ...handle }) => {
|
|
203
215
|
return openBlock(), createElementBlock(Fragment, { key }, [
|