Add font size and font familly option for selection (#278)

* Add font size and font familly option for selection

* Allow copy font style

* More clearner method name

* Update options size and font-familly
This commit is contained in:
davidbonan 2020-01-09 02:29:41 +01:00 committed by Christopher Chedeau
parent 299e7e9099
commit a16cd3a34f
3 changed files with 67 additions and 2 deletions

View file

@ -21,6 +21,11 @@ export const hasStroke = (elements: ExcalidrawElement[]) =>
element.type === "arrow")
);
export const hasText = (elements: ExcalidrawElement[]) =>
elements.some(
element => element.isSelected && element.type === "text"
);
export function getElementAtPosition(
elements: ExcalidrawElement[],
x: number,

View file

@ -18,6 +18,7 @@ export {
hasBackground,
hasStroke,
getElementAtPosition,
getElementContainingPosition
getElementContainingPosition,
hasText
} from "./comparisons";
export { createScene } from "./createScene";