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

@ -16,7 +16,7 @@ export function newElement(
roughness: number,
opacity: number,
width = 0,
height = 0
height = 0,
) {
const element = {
id: nanoid(),
@ -33,7 +33,7 @@ export function newElement(
opacity,
isSelected: false,
seed: randomSeed(),
shape: null as Drawable | Drawable[] | null
shape: null as Drawable | Drawable[] | null,
};
return element;
}
@ -41,7 +41,7 @@ export function newElement(
export function newTextElement(
element: ExcalidrawElement,
text: string,
font: string
font: string,
) {
const metrics = measureText(text, font);
const textElement: ExcalidrawTextElement = {
@ -54,7 +54,7 @@ export function newTextElement(
y: element.y - metrics.height / 2,
width: metrics.width,
height: metrics.height,
baseline: metrics.baseline
baseline: metrics.baseline,
};
return textElement;