mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Allow copy font style
This commit is contained in:
parent
5a37a8aff4
commit
712c951efa
1 changed files with 4 additions and 0 deletions
|
@ -253,6 +253,10 @@ export class App extends React.Component<{}, AppState> {
|
|||
element.fillStyle = pastedElement?.fillStyle;
|
||||
element.opacity = pastedElement?.opacity;
|
||||
element.roughness = pastedElement?.roughness;
|
||||
if(isTextElement(element)) {
|
||||
element.font = pastedElement?.font;
|
||||
this.redrawBoundingBox(element);
|
||||
}
|
||||
}
|
||||
});
|
||||
this.forceUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue