Re: [Inkscape-devel] [Inkscape-user] Snap to grid when pasting
Vincent Hennebert wrote:
When I recently switched to Inkscape 0.46, I discovered that objects are no longer snapped to the grid when pasted from the clipboard. [...] Did that behaviour get lost during the refactoring?
Yes, it did get lost. I removed it because it was no longer functioning properly. I might just as well create something similar again, but I'm not sure how it should work. Given an object with lots of nodes, which node should snap to the grid? If all nodes were already aligned to the grid when copying, then while pasting snapping any node to the grid will do. But this will not be true in general and there will be nodes both on- and off-grid. Besides, we can now have multiple grids simultaneously, which one should we use?
If we know where the clipboard data was originally located (I don't know if that information is stored), then we might paste at a multiple of the grid pitch (strictly spoken: that is not snapping, but it will achieve what you're looking for).
Comments anyone?
Diederik
On Thu, Jul 31, 2008 at 12:49 PM, Diederik van Lierop <mail@...1689...> wrote:
If we know where the clipboard data was originally located (I don't know if that information is stored)
Of course it is stored - the objecty is copied with its own transform and other attributes, and that determines its position. When we "paste in place", we simply paste and nothing else; on regular paste, we paste and then move the pasted stuff to the point under cursor. This also answers your other question on snapping: paste should snap exactly the same as if the original object, without any copy/paste, was just dragged by mouse to the current location in Selector.
On Thu, Jul 31, 2008 at 3:04 PM, Diederik van Lierop <mail@...1689...> wrote:
But if we only snap to grids, then it would make more sense to me if we'd use a multiple of the grid-pitch, instead of really snapping to the grid.
You mean, move the paste objects by a multiple of the grid-pitch? That would make sense I think - so it will not really snap, but just keep it being snapped if it already was.
Just a short comment on
Given an object with lots of nodes, which
node should snap to the grid?
The one which is the closest to the mouse pointer. At least this is what I would expect. Or that this can be turned ON/OFF somewhere. Because right now it is really hard to use snapping with the paths that have many nodes close to each other.
Regards, Rok
On Thu, Jul 31, 2008 at 5:49 PM, Diederik van Lierop <mail@...1689...>wrote:
Vincent Hennebert wrote:
When I recently switched to Inkscape 0.46, I discovered that objects are no longer snapped to the grid when pasted from the clipboard. [...] Did that behaviour get lost during the refactoring?
Yes, it did get lost. I removed it because it was no longer functioning properly. I might just as well create something similar again, but I'm not sure how it should work. Given an object with lots of nodes, which node should snap to the grid? If all nodes were already aligned to the grid when copying, then while pasting snapping any node to the grid will do. But this will not be true in general and there will be nodes both on- and off-grid. Besides, we can now have multiple grids simultaneously, which one should we use?
If we know where the clipboard data was originally located (I don't know if that information is stored), then we might paste at a multiple of the grid pitch (strictly spoken: that is not snapping, but it will achieve what you're looking for).
Comments anyone?
Diederik
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Rock Star wrote:
Given an object with lots of nodes, which node should snap to the grid?
The one which is the closest to the mouse pointer. At least this is what I would expect. Or that this can be turned ON/OFF somewhere. Because right now it is really hard to use snapping with the paths that have many nodes close to each other.
True, and that's why this is also on my TODO list. But I don't think this will be very useful specifically when pasting, or is it?
Diederik
No, my comment was addressed only to the "normal" snapping behavior.
Rok
On Sat, Aug 2, 2008 at 9:08 AM, Diederik van Lierop <mail@...1689...>wrote:
Rock Star wrote:
Given an object with lots of nodes, which node should snap to the grid?
The one which is the closest to the mouse pointer. At least this is what I would expect. Or that this can be turned ON/OFF somewhere. Because right now it is really hard to use snapping with the paths that have many nodes close to each other.
True, and that's why this is also on my TODO list. But I don't think this will be very useful specifically when pasting, or is it?
Diederik
participants (3)
-
bulia byak
-
Diederik van Lierop
-
Rock Star