|
@@ -202,6 +202,7 @@ export const useSelectionShowIcons = installGlobalVar(() => {
|
|
|
};
|
|
|
const invConfig = useViewerInvertTransformConfig()
|
|
|
const status = useMouseShapesStatus();
|
|
|
+ const getChildren = useGetFormalChildren()
|
|
|
|
|
|
const store = useStore();
|
|
|
const invMat = useViewerInvertTransform();
|
|
@@ -213,9 +214,10 @@ export const useSelectionShowIcons = installGlobalVar(() => {
|
|
|
});
|
|
|
return [1, 0, 0, 1, center.x, center.y];
|
|
|
};
|
|
|
- const shapes = computed(() =>
|
|
|
- status.selects.filter((shape) => store.getType(shape.id()) !== "group")
|
|
|
- );
|
|
|
+ const shapes = computed(() => {
|
|
|
+ const child = getChildren()
|
|
|
+ return status.selects.filter((shape) => store.getType(shape.id()) !== "group" && child.includes(shape))
|
|
|
+ });
|
|
|
const unMountMap = new WeakMap<EntityShape, () => void>();
|
|
|
watch(shapes, (shapes, oldShapes) => {
|
|
|
const { added, deleted } = diffArrayChange(shapes, oldShapes);
|