From 8467ffc044acf28e7f49063d6728019b33b6bdf1 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Tue, 20 Jan 2026 01:52:04 -0300 Subject: [PATCH 1/2] feat: duplicate element Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- README.md | 2 +- src/components/DraggableElement.vue | 25 ++++++++++- src/components/PDFElements.vue | 65 +++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ac089b..58d8d76 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ A Vue 2 component for rendering PDFs with draggable and resizable element overla | `showSelectionHandles` | Boolean | `true` | Show resize/move handles on selected elements | | `showElementActions` | Boolean | `true` | Show action buttons on selected elements | | `readOnly` | Boolean | `false` | Disable drag, resize, and actions for elements | +| `ignoreClickOutsideSelectors` | Array | `[]` | CSS selectors that keep the selection active when clicking outside the element | | `pageCountFormat` | String | `'{currentPage} of {totalPages}'` | Format string for page counter | | `autoFitZoom` | Boolean | `false` | Automatically adjust zoom to fit viewport on window resize | @@ -37,4 +38,3 @@ A Vue 2 component for rendering PDFs with draggable and resizable element overla - `element-{type}` - Custom element rendering (e.g., `element-signature`) - `custom` - Fallback for elements without specific type - `actions` - Custom action buttons - diff --git a/src/components/DraggableElement.vue b/src/components/DraggableElement.vue index 55bdeb1..9fb646e 100644 --- a/src/components/DraggableElement.vue +++ b/src/components/DraggableElement.vue @@ -10,7 +10,12 @@ SPDX-License-Identifier: AGPL-3.0-or-later class="actions-toolbar" :style="toolbarStyle" > - + +