Reproduce wrapped geometry retained after foreign label preview refusal

This commit is contained in:
2026-10-01 19:24:39 -07:00
parent d8ccd6ed49
commit ebb6a9980b
2 changed files with 107 additions and 1 deletions
+17 -1
View File
@@ -642,7 +642,23 @@ impl DiagramCanvas<'_> {
scene
}
fn begin_route(&self, state: &mut State, world: Point, handle: Handle, route: EdgeRoute) {
let baseline = self.scene(state).routed.clone();
self.begin_route_with_profile(
state,
world,
handle,
route,
label_layout_experiment::profile(),
);
}
fn begin_route_with_profile(
&self,
state: &mut State,
world: Point,
handle: Handle,
route: EdgeRoute,
profile: label_layout_experiment::Profile,
) {
let baseline = self.scene_with_profile(state, profile).routed.clone();
state.route_drag = Some(Gesture {
context: self.context,
start: world,