T21: Remove unused visibleW/visibleH in generatePageSVG
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user