mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
299e7e9099
commit
a16cd3a34f
3 changed files with 67 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -18,6 +18,7 @@ export {
|
|||
hasBackground,
|
||||
hasStroke,
|
||||
getElementAtPosition,
|
||||
getElementContainingPosition
|
||||
getElementContainingPosition,
|
||||
hasText
|
||||
} from "./comparisons";
|
||||
export { createScene } from "./createScene";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue