mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: fix various typos (#4857)
Found via `codespell -q 3 -S ./src/locales,./yarn.lock,./src/packages/excalidraw/yarn.lock -L afterall,doubleclick,originaly,reenable,whats,sur`
This commit is contained in:
parent
49172ac2d3
commit
c5a7723185
22 changed files with 39 additions and 39 deletions
|
@ -2245,7 +2245,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
element,
|
||||
]);
|
||||
|
||||
// case: creating new text not centered to parent elemenent → offset Y
|
||||
// case: creating new text not centered to parent element → offset Y
|
||||
// so that the text is centered to cursor position
|
||||
if (!parentCenterPosition) {
|
||||
mutateElement(element, {
|
||||
|
@ -3006,7 +3006,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
/*
|
||||
* Reenable next paste in case of disabled middle click paste for
|
||||
* any reason:
|
||||
* - rigth click paste
|
||||
* - right click paste
|
||||
* - empty clipboard
|
||||
*/
|
||||
const enableNextPaste = () => {
|
||||
|
@ -4742,7 +4742,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const width = height * (image.naturalWidth / image.naturalHeight);
|
||||
|
||||
// add current imageElement width/height to account for previous centering
|
||||
// of the placholder image
|
||||
// of the placeholder image
|
||||
const x = imageElement.x + imageElement.width / 2 - width / 2;
|
||||
const y = imageElement.y + imageElement.height / 2 - height / 2;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue