[208] Plakat: Situation 1:500, Kennzahlen- und Baurecht-Tabelle, 3D-Bild-Rahmen auf dem Spaltenraster, weitere Plakate statt kleinerem Massstab, kein Schriftfeld bei Plakat-Vorlage
This commit is contained in:
14 files changed
+806
-33
No files matched your search
@@ -715,7 +715,8 @@ export function LayoutSheetPane({
|
||||
)}
|
||||
</g>
|
||||
)}
|
||||
{master && (
|
||||
{/* [208] Plakat-Vorlage: die Kopfzeile trägt Kennwort und „Plan x/n“, ein zusätzliches Schriftfeld entfällt. */}
|
||||
{master && !master.posterHeader && (
|
||||
<g pointerEvents="none">
|
||||
<TitleBlockSvg sheet={sheet} tb={titleBlock} paper={layout.paper} orientation={layout.orientation} />
|
||||
{titleBlockSelected && (
|
||||
@@ -1028,7 +1029,7 @@ export function LayoutSheetPane({
|
||||
setSelectedLegendId(lg ? lg.id : null);
|
||||
// Schriftfeld (liegt über den Viewports, nur mit Master gezeichnet).
|
||||
const tbb = titleBlockBox(sheet);
|
||||
const onTitle = !tableHit && !lg && !!master && !!handlers.onPatchTitleBlock &&
|
||||
const onTitle = !tableHit && !lg && !!master && !master.posterHeader && !!handlers.onPatchTitleBlock &&
|
||||
mm.xMm >= tbb.xMm && mm.xMm <= tbb.xMm + tbb.widthMm && mm.yMm >= tbb.yMm && mm.yMm <= tbb.yMm + tbb.heightMm;
|
||||
setTitleBlockSelected(onTitle);
|
||||
const imgHit = tableHit || lg || onTitle
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import { memo, useCallback, useEffect, useState } from "react";
|
||||
import { t } from "../i18n";
|
||||
import { enterConfirmsDialog, useModalFocus } from "./modalFocus";
|
||||
import { PRESENTATION_SCALES, levelHasContent, presentationDefaults, type PresentationOptions } from "../core";
|
||||
import { POSTER_EXTRAS_DEFAULT, PRESENTATION_SCALES, levelHasContent, presentationDefaults, type PosterTableKind, type PresentationOptions } from "../core";
|
||||
import type { LayoutOrientation, LayoutPaperFormat } from "../model/types";
|
||||
import { PAPER_FORMAT_GROUPS } from "../model/layoutModel";
|
||||
import { POSTER_TEMPLATES, posterTemplateLabel } from "../model/posterTemplates";
|
||||
@@ -60,6 +60,8 @@ export const PresentationDialogHost = memo(function PresentationDialogHost({
|
||||
set({ floors: floors.map((f) => f.id).filter((f) => (f === id ? on : opts.floors.includes(f))) });
|
||||
const toggleElevation = (id: string, on: boolean) =>
|
||||
set({ elevationIds: elevations.map((e) => e.id).filter((e) => (e === id ? on : opts.elevationIds.includes(e))) });
|
||||
const toggleTable = (kind: PosterTableKind, on: boolean): PosterTableKind[] =>
|
||||
(["areas", "siteProof"] as const).filter((k) => (k === kind ? on : (opts.extras?.tables ?? []).includes(k)));
|
||||
const empty = opts.floors.length === 0 && opts.elevationIds.length === 0 && !opts.sectionId;
|
||||
// [224] Massstab je Viewport: "" = gemeinsamer Massstab.
|
||||
const scaleOf = (id: string) => String(opts.scales?.[id] ?? "");
|
||||
@@ -154,7 +156,7 @@ export const PresentationDialogHost = memo(function PresentationDialogHost({
|
||||
data-testid="presentation-target"
|
||||
aria-label={t("presentation.sheet")}
|
||||
value={opts.poster ?? ""}
|
||||
onChange={(e) => set({ poster: e.target.value || undefined })}
|
||||
onChange={(e) => set({ poster: e.target.value || undefined, extras: e.target.value ? (opts.extras ?? POSTER_EXTRAS_DEFAULT) : undefined })}
|
||||
>
|
||||
<option value="">{t("presentation.target.sheet")}</option>
|
||||
{POSTER_TEMPLATES.map((tpl) => (
|
||||
@@ -206,6 +208,29 @@ export const PresentationDialogHost = memo(function PresentationDialogHost({
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{poster && opts.extras && (
|
||||
<section className="imp-section" data-testid="presentation-extras">
|
||||
<div className="imp-section-title">{t("presentation.extras")}</div>
|
||||
{(
|
||||
[
|
||||
["situation", t("presentation.extras.situation"), opts.extras.situation, (on: boolean) => ({ situation: on })],
|
||||
["areas", t("presentation.extras.areas"), opts.extras.tables.includes("areas"), (on: boolean) => ({ tables: toggleTable("areas", on) })],
|
||||
["siteProof", t("presentation.extras.siteProof"), opts.extras.tables.includes("siteProof"), (on: boolean) => ({ tables: toggleTable("siteProof", on) })],
|
||||
["image", t("presentation.extras.image"), opts.extras.image, (on: boolean) => ({ image: on })],
|
||||
] as const
|
||||
).map(([key, label, on, patch]) => (
|
||||
<label key={key} className="imp-check" style={{ display: "flex", gap: 6, alignItems: "center" }}>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-testid={`presentation-extra-${key}`}
|
||||
checked={on}
|
||||
onChange={(e) => set({ extras: { ...opts.extras!, ...patch(e.target.checked) } })}
|
||||
/>
|
||||
{label}
|
||||
</label>
|
||||
))}
|
||||
</section>
|
||||
)}
|
||||
<section className="imp-section">
|
||||
<label className="imp-check" style={{ display: "flex", gap: 6, alignItems: "center" }}>
|
||||
<input
|
||||
|
||||
Reference in new issue
Block a user