Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
},
"devDependencies": {
"@nextcloud/browserslist-config": "^3.1.2",
"@eslint/js": "^9.39.3",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"@eslint/js": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"@vitejs/plugin-vue": "^6.0.4",
"eslint": "^10.1.0",
"eslint-plugin-vue": "^10.8.0",
Expand Down
6 changes: 2 additions & 4 deletions src/components/DraggableElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,13 @@ export default defineComponent({
}

const minSize = 16 / (this.pagesScale || 1)
let newWidth = this.startWidth
let newHeight = this.startHeight
let newLeft = this.startLeft
let newTop = this.startTop

const widthChange = this.direction.includes('right') ? deltaX : this.direction.includes('left') ? -deltaX : 0
newWidth = this.startWidth + widthChange
let newWidth = this.startWidth + widthChange
if (newWidth < minSize) newWidth = minSize
newHeight = newWidth / this.aspectRatio
let newHeight = newWidth / this.aspectRatio

if (this.direction.includes('left')) {
newLeft = this.startLeft + (this.startWidth - newWidth)
Expand Down
2 changes: 1 addition & 1 deletion src/components/PDFElements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ export default defineComponent({
.flatMap(doc => doc.pageWidths || [])
.filter(width => width > 0)

let maxCanvasWidth = 0
let maxCanvasWidth
if (widths.length) {
maxCanvasWidth = Math.max(...widths)
} else {
Expand Down
Loading