|
@@ -38,10 +38,14 @@ export const Shape = observer(function Shape({
|
|
|
} = shape
|
|
|
const app = useApp<Shape>()
|
|
|
const events = useShapeEvents(shape)
|
|
|
+ const parentGroup = app.getParentGroup(shape)
|
|
|
+ const isParentGrpupSelected = app.selectedIds.has(parentGroup?.id)
|
|
|
+ const ignoreExport = !isSelected && !isParentGrpupSelected && app.selectedShapes.size !== 0 || null
|
|
|
+
|
|
|
return (
|
|
|
<Container
|
|
|
data-shape-id={shape.id}
|
|
|
- data-html2canvas-ignore={(!isSelected && app.selectedShapes.size !== 0) || null}
|
|
|
+ data-html2canvas-ignore={ignoreExport}
|
|
|
zIndex={zIndex}
|
|
|
data-type="Shape"
|
|
|
bounds={bounds}
|