perf(storage): kompaktes JSON, Stroke-Treue und Snapshot-Optimierung
This commit is contained in:
1 parent
1afe4a0f9d
commit
510035e807
7 files changed
+425
-98
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user