Bump prettier from 2.0.3 to 2.0.4 (#1412)

* Bump prettier from 2.0.3 to 2.0.4

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.3...2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* format

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
This commit is contained in:
dependabot-preview[bot] 2020-04-14 12:30:58 +03:00 committed by GitHub
parent e77e2255bd
commit 7df16c1b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 125 additions and 140 deletions

View file

@ -193,48 +193,38 @@ export function handlerRectangles(
const [, p1] = element.points;
if (p1[0] === 0 || p1[1] === 0) {
return (
{
nw: handlers.nw,
se: handlers.se,
} as typeof handlers
);
return {
nw: handlers.nw,
se: handlers.se,
} as typeof handlers;
}
if (p1[0] > 0 && p1[1] < 0) {
return (
{
ne: handlers.ne,
sw: handlers.sw,
} as typeof handlers
);
return {
ne: handlers.ne,
sw: handlers.sw,
} as typeof handlers;
}
if (p1[0] > 0 && p1[1] > 0) {
return (
{
nw: handlers.nw,
se: handlers.se,
} as typeof handlers
);
return {
nw: handlers.nw,
se: handlers.se,
} as typeof handlers;
}
if (p1[0] < 0 && p1[1] > 0) {
return (
{
ne: handlers.ne,
sw: handlers.sw,
} as typeof handlers
);
return {
ne: handlers.ne,
sw: handlers.sw,
} as typeof handlers;
}
if (p1[0] < 0 && p1[1] < 0) {
return (
{
nw: handlers.nw,
se: handlers.se,
} as typeof handlers
);
return {
nw: handlers.nw,
se: handlers.se,
} as typeof handlers;
}
}
}

View file

@ -67,10 +67,9 @@ export function getDrawingVersion(elements: readonly ExcalidrawElement[]) {
}
export function getNonDeletedElements(elements: readonly ExcalidrawElement[]) {
return (
elements.filter((element) => !element.isDeleted) as
readonly NonDeletedExcalidrawElement[]
);
return elements.filter(
(element) => !element.isDeleted,
) as readonly NonDeletedExcalidrawElement[];
}
export function isNonDeletedElement<T extends ExcalidrawElement>(