-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
component: backendRust/Tauri backendRust/Tauri backendcomponent: uiUI frontendUI frontendtype: enhancementNew feature or requestNew feature or request
Description
The keep-in rectangle constraint is represented by a keep-in polygon, so we can do whatever transformation we want before then.
ConstraintData::KeepInRectangle { x, y, w, h } => {
let xs = vec![x, x + w, x + w, x];
let ys = vec![y, y, y + h, y + h];
match to_opt {
None => generator.wpt_keep_in_polygon(from, xs, ys),
Some(to) => generator.sgmt_keep_in_polygon(from, to, xs, ys),
}
},
Metadata
Metadata
Assignees
Labels
component: backendRust/Tauri backendRust/Tauri backendcomponent: uiUI frontendUI frontendtype: enhancementNew feature or requestNew feature or request