mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-26 17:52:59 +02:00
linter
This commit is contained in:
parent
6c18c46681
commit
30004b656b
@ -187,7 +187,6 @@ export default function StampPreview({ parameters, onParameterChange, file, show
|
|||||||
|
|
||||||
if (drag.type === 'resize') {
|
if (drag.type === 'resize') {
|
||||||
// Height is our canonical size (fontSize)
|
// Height is our canonical size (fontSize)
|
||||||
const widthPts = pageSize?.widthPts ?? 595.28;
|
|
||||||
const heightPts = pageSize?.heightPts ?? 841.89;
|
const heightPts = pageSize?.heightPts ?? 841.89;
|
||||||
const scaleY = containerSize.height / heightPts;
|
const scaleY = containerSize.height / heightPts;
|
||||||
const newHeightPx = Math.max(1, drag.initHeight + (y - drag.startY));
|
const newHeightPx = Math.max(1, drag.initHeight + (y - drag.startY));
|
||||||
|
@ -56,7 +56,7 @@ export function computeStampPreviewStyle(
|
|||||||
pageSize: PageSizePts,
|
pageSize: PageSizePts,
|
||||||
containerSize: ContainerSize,
|
containerSize: ContainerSize,
|
||||||
showQuickGrid: boolean | undefined,
|
showQuickGrid: boolean | undefined,
|
||||||
hoverTile: number | null,
|
_hoverTile: number | null,
|
||||||
hasPageThumbnail: boolean
|
hasPageThumbnail: boolean
|
||||||
): StampPreviewStyle {
|
): StampPreviewStyle {
|
||||||
const pageWidthPx = containerSize.width;
|
const pageWidthPx = containerSize.width;
|
||||||
|
Loading…
Reference in New Issue
Block a user