Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Clear artboard

Open moosama76 opened this issue 1 year ago • 7 comments

moosama76 avatar Sep 30 '24 20:09 moosama76

Note that merge nodes are named "Artboard" as I reserve the name

moosama76 avatar Sep 30 '24 20:09 moosama76

!build

Keavon avatar Oct 14 '24 06:10 Keavon

📦 Build Complete for ac49479745cde3c23289a54118075b5ccab06b6e
https://5993b57e.graphite.pages.dev

github-actions[bot] avatar Oct 14 '24 06:10 github-actions[bot]

I would like to see the artboards name/position/downstream connnector/upstream connectors being saved, then the artboard is deleted, a layer node is created, its name/position are set, then it is reconnecting. All using the same messages as if the user was to do it.

Also, make sure to start and end a transaction at the start and end of the message. Its also important that no mutable network interface functions are called in a message that has a start/end transaction.

Optionally, it would also be nice if the artboards position is then used to set the transform of the new layer, so that the contents stay at the same place. This would require using a monitor node to access the artboard data, where the translation is stored. This could also be used to improve #2028. This would probably be outside the scope of the PR, so you could leave a TODO.

adamgerhant avatar Oct 14 '24 17:10 adamgerhant

I'll mark this as a draft until those comments are addressed. Thanks for taking the time to review this, @adamgerhant.

Keavon avatar Oct 15 '24 05:10 Keavon

I would like to see the artboards name/position/downstream connnector/upstream connectors being saved, then the artboard is deleted, a layer node is created, its name/position are set, then it is reconnecting. All using the same messages as if the user was to do it.

You want to reduce loops by this right?

moosama76 avatar Oct 15 '24 19:10 moosama76

You can use however many loops are necessary to achieve the correct behavior

adamgerhant avatar Oct 15 '24 20:10 adamgerhant

Just checking in on the status of this @moOsama76.

Keavon avatar Nov 12 '24 22:11 Keavon

Just checking in on the status of this @moOsama76.

I was taking a break, will do it this week

moosama76 avatar Nov 12 '24 22:11 moosama76

I'll close this PR for now, but please feel free to reopen it once you've addressed the code review feedback from Adam.

Keavon avatar Dec 23 '24 22:12 Keavon

I'll close this PR for now, but please feel free to reopen it once you've addressed the code review feedback from Adam.

No problem I am getting back soon I promise :)

moosama76 avatar Dec 24 '24 00:12 moosama76