[208] Plakat in strengen Zeilen: Situation+Bild | Grundrisse deckungsgleich | Schnitte/Ansichten auf gleicher ±0.00 | Tabellen; Rahmen eng um Bauteile+Bemassung (LayoutViewport.center, Kontext beschnitten), Baurecht-Tabelle mit Luft zwischen Reserve/Erfüllt
This commit is contained in:
14 files changed
+656
-214
No files matched your search
@@ -12,7 +12,7 @@ import { documentFor } from "../core/document";
|
||||
export type { LayoutTable, LayoutTableSource };
|
||||
|
||||
export type TablePrim =
|
||||
| { k: "text"; x: number; y: number; s: string; size: number; bold: boolean; italic: boolean; font: "sans" | "serif" | "mono"; align: "l" | "r" }
|
||||
| { k: "text"; x: number; y: number; s: string; size: number; bold: boolean; italic: boolean; font: "sans" | "serif" | "mono"; align: "l" | "r" | "c" }
|
||||
| { k: "line"; x1: number; y1: number; x2: number; y2: number; w: number };
|
||||
|
||||
export interface TableOut {
|
||||
@@ -91,7 +91,7 @@ export function drawTablesPdf(doc: jsPDF, tables: readonly TableOut[]): void {
|
||||
} else {
|
||||
setPdfFont(doc, PDF_TABLE_FONT[p.font], p.bold, p.italic);
|
||||
doc.setFontSize(p.size * PT_PER_MM);
|
||||
doc.text(p.s, p.x, p.y, { align: p.align === "r" ? "right" : "left" });
|
||||
doc.text(p.s, p.x, p.y, { align: p.align === "r" ? "right" : p.align === "c" ? "center" : "left" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user