VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into pr-4299-ff
Dylan M. Taylor484d25582c24
diff --cc crates/engine/src/cmd/object/compound.rsindex fcff1d56a,66206ef55..1dabc76db--- a/crates/engine/src/cmd/object/compound.rs+++ b/crates/engine/src/cmd/object/compound.rs@@@ -1,7 -1,9 +1,11 @@@-use super::*;+use super::{+ Appearance, Arc, Document, EngineError, FillRule, Node, NodeId, NodeKind, Paint, PathData, Result, Session, Value, json, ok, selected_roots,+};+ /// A closed contour smaller than this (in square document units) has no usable winding direction,+ /// so Make Compound Path leaves its orientation alone rather than flipping it on noise.+ const MIN_WINDING_AREA: f64 = 1e-6;+pub(super) fn compound_make(s: &mut Session, _: &Value) -> Result<Value> {let ids = selected_roots(s)?;let Some(backmost) = ids.first().copied() else { return Err(EngineError::Other("nothing selected".into())) };