-----Original Message----- From: Maximilian Albert [mailto:Anhalter42@...173...] Sent: donderdag 6 maart 2008 0:33 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] NEW: flasher when hovering over a path
J.B.C.Engelen@...1578... schrieb:
==> When you hover over a path in nodetool, it highlights itself briefly like a helperpath. <==
Cool, good work! Indeed, as Aubanel wrote, this is especially great with clipped paths.
However, I just tried it and thought the new feature was extremely buggy until I discovered that I had drawn a path whose fill color was set to white (so it wasn't apparent that its interior was filled). Then when I moved the mouse on canvas, the flashing seemed to randomly appear and disappear. Of course, it always appeared when I was over the filled part and disappeared when I left the filled area but that was not immediately clear to me because I expected it to appear only when I was near the actual path.
So my question is: Would it be possible to let the flashing occur only when the mouse pointer is near the path's stroke? Otherwise it can even happen that you move the pointer near the path but the flashing _doesn't_ appear (for example, when you have a nearly circular filled path; when you enter the filled area, it flashes, but when you afterwards approach the path from the inside, it doesn't).
Actually, this is a lot more complicated I am afraid. Basically there is this function that is called every time you mouseover an item (including fill), so right now I put my code there. I am not sure how much CPU it would add to check whether I am close to its stroke or not. It is definitely worth looking into though.
I encourage others to try and improve the flashing. Don't be afraid of disrupting some development I might be doing. (I almost always commit code right away, almost never that I stop and continue the next day, so you can always modify code I might be working on.)
Cheers, Johan