Set Trailing Cmma to (#525)

This commit is contained in:
Lipis 2020-01-24 12:04:54 +02:00 committed by GitHub
parent 25202aec11
commit ee68af0fd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 352 additions and 350 deletions

View file

@ -5,7 +5,7 @@ import {
getArrowPoints,
getDiamondPoints,
getElementAbsoluteCoords,
getLinePoints
getLinePoints,
} from "./bounds";
function isElementDraggableFromInside(element: ExcalidrawElement): boolean {
@ -15,7 +15,7 @@ function isElementDraggableFromInside(element: ExcalidrawElement): boolean {
export function hitTest(
element: ExcalidrawElement,
x: number,
y: number
y: number,
): boolean {
// For shapes that are composed of lines, we only enable point-selection when the distance
// of the click is less than x pixels of any of the lines that the shape is composed of
@ -95,7 +95,7 @@ export function hitTest(
bottomX,
bottomY,
leftX,
leftY
leftY,
] = getDiamondPoints(element);
if (isElementDraggableFromInside(element)) {