2D Display-Modus: beim Herauszoomen Linien deutlich duenner (Exp. 0.75, min x0.1)

This commit is contained in:
karim committed 2026-10-22 11:56:34 +02:00
1 parent 6399ac3547
commit 8c5332b0e8
1 file changed
+2 -1
+2 -1
View File
@@ -1002,7 +1002,8 @@ export const PlanView = forwardRef<PlanViewHandle, PlanViewProps>(
const box = canvasRef.current ?? svgRef.current;
if (!hairline) return paperScaleRef.current ?? scaleFromView(v, box) ?? 100;
const live = scaleFromView(v, box) ?? 100;
const grow = Math.min(3, Math.max(0.3, Math.pow(100 / live, 0.4)));
// Hineinzoomen (live < 100) mild wachsen, Herauszoomen (live > 100) deutlich dünner.
const grow = Math.min(3, Math.max(0.1, Math.pow(100 / live, live < 100 ? 0.4 : 0.75)));
return live * grow;
};