mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
Attempt at moving the initial point when inside shape
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@ -8772,6 +8772,25 @@ class App extends React.Component<AppProps, AppState> {
|
||||
false,
|
||||
{ isDragging: true },
|
||||
);
|
||||
LinearElementEditor.movePoints(newElement, [
|
||||
{
|
||||
index: 0,
|
||||
isDragging: false,
|
||||
point: toLocalPoint(
|
||||
getOutlineAvoidingPoint(
|
||||
newElement,
|
||||
pointFrom<GlobalPoint>(
|
||||
pointerDownState.origin.x,
|
||||
pointerDownState.origin.y,
|
||||
),
|
||||
0,
|
||||
this.scene,
|
||||
this.state.zoom,
|
||||
),
|
||||
newElement,
|
||||
),
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
this.setState({
|
||||
|
Reference in New Issue
Block a user