perf(storage): kompaktes JSON, Stroke-Treue und Snapshot-Optimierung

This commit is contained in:
harald committed 2026-10-06 19:14:52 +02:00
1 parent 1afe4a0f9d
commit 510035e807
7 files changed
+425 -98

No files matched your search

+3
View File
@@ -1411,6 +1411,9 @@ pub fn shape_to_stroke(
let (samples, vertices) = shape_to_mesh(&shape, width_units, color);
let mut stroke = Stroke::new(stroke_id, samples, vertices, color);
stroke.shape = Some(shape);
stroke.width = width_units;
stroke.tool = crate::document::StrokeTool::Shape;
stroke.finalized = true;
stroke
}