Skip to content

Commit 405386b

Browse files
authored
Merge pull request #34 from LibreSign/dependabot/npm_and_yarn/eslint/js-10.0.1
chore(deps-dev): Bump @eslint/js from 9.39.3 to 10.0.1
2 parents 641414c + af90cf0 commit 405386b

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
},
5252
"devDependencies": {
5353
"@nextcloud/browserslist-config": "^3.1.2",
54-
"@eslint/js": "^9.39.3",
55-
"@typescript-eslint/eslint-plugin": "^8.58.0",
56-
"@typescript-eslint/parser": "^8.58.0",
54+
"@eslint/js": "^10.0.1",
55+
"@typescript-eslint/eslint-plugin": "^8.58.0",
56+
"@typescript-eslint/parser": "^8.58.0",
5757
"@vitejs/plugin-vue": "^6.0.4",
5858
"eslint": "^10.1.0",
5959
"eslint-plugin-vue": "^10.8.0",

src/components/DraggableElement.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,13 @@ export default defineComponent({
371371
}
372372
373373
const minSize = 16 / (this.pagesScale || 1)
374-
let newWidth = this.startWidth
375-
let newHeight = this.startHeight
376374
let newLeft = this.startLeft
377375
let newTop = this.startTop
378376
379377
const widthChange = this.direction.includes('right') ? deltaX : this.direction.includes('left') ? -deltaX : 0
380-
newWidth = this.startWidth + widthChange
378+
let newWidth = this.startWidth + widthChange
381379
if (newWidth < minSize) newWidth = minSize
382-
newHeight = newWidth / this.aspectRatio
380+
let newHeight = newWidth / this.aspectRatio
383381
384382
if (this.direction.includes('left')) {
385383
newLeft = this.startLeft + (this.startWidth - newWidth)

src/components/PDFElements.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ export default defineComponent({
12591259
.flatMap(doc => doc.pageWidths || [])
12601260
.filter(width => width > 0)
12611261
1262-
let maxCanvasWidth = 0
1262+
let maxCanvasWidth
12631263
if (widths.length) {
12641264
maxCanvasWidth = Math.max(...widths)
12651265
} else {

0 commit comments

Comments
 (0)