[110] Linientyp ohne Strichstärke: Stärke an Schraffur, Schichtfuge, Element; Migration Format 4

This commit is contained in:
Claude committed 2026-10-30 01:27:35 +00:00
1 parent ae52efae58
commit 765a93e562
27 files changed
+350 -153

No files matched your search

+10 -2
View File
@@ -212,6 +212,14 @@ function HatchDetail({
options={lineOptions}
/>
</FieldRow>
<FieldRow label={t("resources.col.hatchLineWeight")} hint={t("resources.col.hatchLineWeight.hint")}>
<NumberField
value={hatch.lineWeight ?? 0.13}
onChange={(w) => onPatch({ lineWeight: Math.max(0.01, w) })}
step={0.01}
min={0.01}
/>
</FieldRow>
{lines === "random" && (
<>
<FieldRow label={t("resources.field.density")}>
@@ -327,8 +335,8 @@ function patToHatches(text: string): Omit<HatchStyle, "id">[] {
scale: 1,
angle: p.families[0]?.angle ?? 45,
color: "#1a1a1a",
// Kanonische Volllinie 0.13 (früher "hatch-line", zusammengeführt auf "thin").
lineStyleId: "thin",
// Volllinie (Muster); die Stärke trägt die Schraffur ([110]).
lineWeight: 0.13,
}));
}
@@ -166,6 +166,16 @@ function LayeredStyleDetail({
/>
)}
</FieldRow>
{!isInner && (
<FieldRow label={t("resources.col.jointWeight")}>
<NumberField
value={layer.jointWeightMm ?? 0}
onChange={(w) => patchLayer(i, { jointWeightMm: w > 0 ? w : undefined })}
step={0.01}
min={0}
/>
</FieldRow>
)}
</div>
<DeleteButton
onClick={() => removeLayer(i)}
+1 -9
View File
@@ -4,7 +4,6 @@
import { useState } from "react";
import type { LineStyle, Project } from "../../model/types";
import { PEN_WEIGHTS } from "../../model/types";
import { parseLin } from "../../io/linParser";
import { LineSwatch } from "../hatchPreview";
import { segmentsToDash, dashToSegments, presetOfDash, LINE_PRESETS, type LineSegment, type LineSegmentType, type LinePresetKey } from "../../core";
@@ -249,11 +248,10 @@ function LineStyleDetail({
);
}
/** .lin-Text → id-lose Linienstile (schwarze Haarlinie 0.18 als Default). */
/** .lin-Text → id-lose Linienstile (nur Muster; die Stärke trägt das Element, [110]). */
function linToStyles(text: string): Omit<LineStyle, "id">[] {
return parseLin(text).map((p) => ({
name: p.name,
weight: 0.18,
color: "#1a1a1a",
dash: p.dash,
}));
@@ -278,12 +276,6 @@ export function LinesTab({
return (
<div className="res-tab">
{/* Vorschlagswerte für die Strichstärke (Standard-Stiftbreiten in mm). */}
<datalist id="pen-weights">
{PEN_WEIGHTS.map((w) => (
<option key={w} value={w} />
))}
</datalist>
<div className="res-hint">{t("resources.lines.hint")}</div>
<div className="res-md">
<div className="res-md-list">