Reproduce wrapped geometry retained after foreign label preview refusal
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user