mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Regenerate roughjs shape only when the item is updated (#316)
* Regenerate roughjs shape only when the item is updated * Remove shape object during export and history undo/redo * Remove shape element during copying * Fix shape generation during creation
This commit is contained in:
parent
1bf18fe4ed
commit
74764b06eb
7 changed files with 109 additions and 71 deletions
|
@ -27,6 +27,7 @@ export const actionPasteStyles: Action = {
|
|||
if (element.isSelected) {
|
||||
const newElement = {
|
||||
...element,
|
||||
shape: null,
|
||||
backgroundColor: pastedElement?.backgroundColor,
|
||||
strokeWidth: pastedElement?.strokeWidth,
|
||||
strokeColor: pastedElement?.strokeColor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue