mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
batch clipping
This commit is contained in:
parent
71ba0a3f26
commit
a30e46b756
2 changed files with 78 additions and 64 deletions
|
@ -593,8 +593,9 @@ export const isElementInFrame = (
|
|||
element: ExcalidrawElement,
|
||||
allElements: ExcalidrawElementsIncludingDeleted,
|
||||
appState: StaticCanvasAppState,
|
||||
targetFrame?: ExcalidrawFrameElement,
|
||||
) => {
|
||||
const frame = getTargetFrame(element, appState);
|
||||
const frame = targetFrame ?? getTargetFrame(element, appState);
|
||||
const _element = isTextElement(element)
|
||||
? getContainerElement(element) || element
|
||||
: element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue