mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: remove bound-arrows from frames (#7157)
This commit is contained in:
parent
5b94cffc74
commit
dde3dac931
7 changed files with 81 additions and 16 deletions
|
@ -155,7 +155,12 @@ const duplicateElements = (
|
|||
groupId,
|
||||
).flatMap((element) =>
|
||||
isFrameElement(element)
|
||||
? [...getFrameElements(elements, element.id), element]
|
||||
? [
|
||||
...getFrameElements(elements, element.id, {
|
||||
includeBoundArrows: true,
|
||||
}),
|
||||
element,
|
||||
]
|
||||
: [element],
|
||||
);
|
||||
|
||||
|
@ -181,7 +186,9 @@ const duplicateElements = (
|
|||
continue;
|
||||
}
|
||||
if (isElementAFrame) {
|
||||
const elementsInFrame = getFrameElements(sortedElements, element.id);
|
||||
const elementsInFrame = getFrameElements(sortedElements, element.id, {
|
||||
includeBoundArrows: true,
|
||||
});
|
||||
|
||||
elementsWithClones.push(
|
||||
...markAsProcessed([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue