Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Document > Clear Artboards should not delete its children

Open Keavon opened this issue 2 years ago • 2 comments

Instead of deleting its children, it should ungroup those children from the artboard and then delete just the artboard, leaving the artwork behind. The code for ungrouping with Ctrl+Shift+G can probably be referenced to achieve a similar outcome here.

We also want the same for deleting an artboard from the Artboard tool, where the artwork remains behind. (However, when deleting from the Layers panel, we do want the current behavior of deleting its children since that's also how deleting folders in the Layers panel works.)

A continuation of #1502

Keavon avatar Dec 11 '23 21:12 Keavon

Do you want an artboard deleted normally to avoid deleting nested layers? Do you want a deleted group to delete nested layers?

0HyperCube avatar Dec 11 '23 21:12 0HyperCube

Normally, if the user selects an artboard in the Layers panel, it's expected that its contents also get deleted. But specifically the Document > Clear Artboards menu (which should maybe be renamed to something like "Use Infinite Canvas" although I don't love that name either) would have the purpose of dumping all the artwork into the infinite canvas if the user didn't want artboards (like, perhaps, they started with an artboard by default and at some point decided they want a more freeform unbounded experience for collaging or whiteboarding).

Keavon avatar Dec 11 '23 21:12 Keavon

Hi, I was thinking of tackling this issue. To confirm, this is how the node graph should look like before and after clicking Document > Clear Artboards right?

Before: image

After: image

skoriop avatar Mar 05 '24 18:03 skoriop

Without that layer on the right, either. @skoriop

Keavon avatar Mar 05 '24 19:03 Keavon