Inkscape Forum Inkscape > Node Tool/Settings in current svn

Posted by Alexander Roalter (Guest)
on 02.03.2010 09:35
(Received via mailing list)
I'm not sure when this change appeared, but lastly I read something
about preserving the shape when deleting a node and how this was used in
old versions, but disabled for a moment for the new node tool, and then
inserted back.

Now I'm wondering why this isn't working as expected anymore:

when deleting a node between two cusp nodes, currently it is also trying
to maintain shape: if I have a square, convert it to a path and then
delete one corner, I don't get a triangle anymore, but a triangle with a
rounded hypotenuse.


Another is more of a question: I have a tablet (Graphire4), and
previously was able to insert a node in a path by simply double-clicking
on it. This is still possible with the mouse, but not with the tablet,
and I suspect that's because I'm not able to push on exactly the same
spot and therefore it is not recognized as a double click... Is there
any possibility to set the threshold for the clicking radius in order to
have a click recognized as double click?

--
cheers,
Alex
Posted by bulia byak (Guest)
on 02.03.2010 13:55
(Received via mailing list)
On Tue, Mar 2, 2010 at 4:21 AM, Alexander Roalter <alexander@roalter.it> 
wrote:
> when deleting a node between two cusp nodes, currently it is also trying
> to maintain shape: if I have a square, convert it to a path and then
> delete one corner, I don't get a triangle anymore, but a triangle with a
> rounded hypotenuse.

This is the intended default behavior. You can turn a switch in the
prefs to make it always create non-approximating path.

Krzysztof: I think we have consensus for adding this Del/Ctrl+Del
prefs switch if you didn't yet do it.


> Another is more of a question: I have a tablet (Graphire4), and
> previously was able to insert a node in a path by simply double-clicking
> on it. This is still possible with the mouse, but not with the tablet,
> and I suspect that's because I'm not able to push on exactly the same
> spot and therefore it is not recognized as a double click... Is there
> any possibility to set the threshold for the clicking radius in order to
> have a click recognized as double click?

Actually double clicks are recognized by GTK, we only respond to the
events it sends us. However we have our own preferences-settable
threshold for distinguishing clicks from drags, i.e. ignoring dragging
if it is less than this threshold. it may be that the new node code
fails to make use of this. Krzysztof, can you comment?


--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
Posted by Alexander Roalter (Guest)
on 02.03.2010 14:11
(Received via mailing list)
On 02.03.2010 13:48, bulia byak wrote:
> On Tue, Mar 2, 2010 at 4:21 AM, Alexander Roalter <alexander@roalter.it> wrote:
>> when deleting a node between two cusp nodes, currently it is also trying
>> to maintain shape: if I have a square, convert it to a path and then
>> delete one corner, I don't get a triangle anymore, but a triangle with a
>> rounded hypotenuse.
> 
> This is the intended default behavior. You can turn a switch in the
> prefs to make it always create non-approximating path.

Is it also possible to have it depending on the node type? I understand
that if I have a smooth path and delete a node, the path should stay
smooth. But if I have a set of straight lines and delete one node, then
with the current default settings there will be smooth nodes added where
previously were only cusp nodes.

>> any possibility to set the threshold for the clicking radius in order to
>> have a click recognized as double click?
> 
> Actually double clicks are recognized by GTK, we only respond to the
> events it sends us. However we have our own preferences-settable
> threshold for distinguishing clicks from drags, i.e. ignoring dragging
> if it is less than this threshold. it may be that the new node code
> fails to make use of this. Krzysztof, can you comment?
> 

Here I have one other suggestion: if double clicking to insert a new
node works as expected (with the mouse it already does), is it possible
to specify what kind of node is created? currently it is a smooth node,
but sometimes I'd rather have a cusp node. I reckon this could very well
be controlled by a switch in a toolbar, à la 'inserted nodes are cusp',
'inserted nodes are smooth' or it can also be dynamic, so if I insert a
node between two cusp nodes, then a cusp node should be added, and if
there's at least a smooth nodes on one of the sides, a smooth node
should be inserted. ... if you get my meaning.


--
cheers,
Alex