File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments