Allow copy font style

This commit is contained in:
David Bonan 2020-01-08 23:29:21 +01:00
parent 5a37a8aff4
commit 712c951efa

View file

@ -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();