T21: Remove unused visibleW/visibleH in generatePageSVG

This commit is contained in:
2026-06-22 23:23:52 +00:00
parent f6a18c366d
commit 7df5186549
-4
View File
@@ -1,7 +1,5 @@
import type { YjsDocument } from '../crdt/YjsDocument'; import type { YjsDocument } from '../crdt/YjsDocument';
// ─── Types ───────────────────────────────────────────────────────────────────
export type PageSize = 'a4' | 'a3' | 'a2' | 'a1'; export type PageSize = 'a4' | 'a3' | 'a2' | 'a1';
export type Orientation = 'portrait' | 'landscape'; export type Orientation = 'portrait' | 'landscape';
export type ScalePreset = '1:50' | '1:100' | '1:200' | 'custom'; export type ScalePreset = '1:50' | '1:100' | '1:200' | 'custom';
@@ -176,8 +174,6 @@ function generatePageSVG(
const offsetX = bbox.minX + col * cadUnitsPerPageW; const offsetX = bbox.minX + col * cadUnitsPerPageW;
const offsetY = bbox.minY + row * cadUnitsPerPageH; const offsetY = bbox.minY + row * cadUnitsPerPageH;
const visibleW = Math.min(cadUnitsPerPageW, bbox.minX + bbox.width - offsetX);
const visibleH = Math.min(cadUnitsPerPageH, bbox.minY + bbox.height - offsetY);
const vbW = layout.drawableWidth; const vbW = layout.drawableWidth;
const vbH = layout.drawableHeight; const vbH = layout.drawableHeight;