mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Attempt at moving the initial point when inside shape
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
6b9fa5bcc5
commit
cc01e16e52
1 changed files with 19 additions and 0 deletions
|
@ -8772,6 +8772,25 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
false,
|
false,
|
||||||
{ isDragging: true },
|
{ 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({
|
this.setState({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue