add clippings bounds tolerance, improve group related checks

This commit is contained in:
Ryan Di
2023-11-17 17:23:30 +08:00
parent 683b80ad2b
commit 3c34b3f48a
4 changed files with 130 additions and 75 deletions
+4 -1
View File
@@ -6868,10 +6868,13 @@ class App extends React.Component<AppProps, AppState> {
topLayerFrame &&
!this.state.selectedElementIds[topLayerFrame.id]
) {
const processedGroupIds = new Map<string, boolean>();
const elementsToAdd = selectedElements.filter(
(element) =>
element.frameId !== topLayerFrame.id &&
isElementInFrame(element, nextElements, this.state),
isElementInFrame(element, nextElements, this.state, {
processedGroupIds,
}),
);
if (this.state.editingGroupId) {