(no subject) [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Tue 2004-05-11 20:57
LinkReply
[identity profile] bjh21.livejournal.comWed 2004-05-12 03:33
Surely the Right Thing is for the sensitive area for each edge to be a square at 45˚ centred on the middle of the edge?
Link Reply to this | Parent | Thread
[personal profile] simontWed 2004-05-12 03:51
Unfortunately I also want to be able to drag out an entire rectangle, and also importantly I want to be able to drag out a line (for when you know almost exactly where a rectangle goes and want to mark in as much of its edge as is common to all its possible positions, and don't want to do that by clicking ten edge pieces individually). For these purposes, you don't always want to start your drag at an edge; starting at centres or corners is useful as well.

Therefore, I've been subdividing each square into a 3x3 grid, with four "corner" sections, one "centre" section, and four "edge" sections. I've been indecisively fiddling with the parameter that states how close to the edges the dividing lines are, but the problem is that as you increase that parameter then the edge region gets shorter as it gets fatter, and vice versa.

I've now decided it might be better to be able to independently vary the sizes of the sensitive square around each corner and centre. So now the diagram looks more like a square with a small square at each corner, a larger square in the middle, and diagonal lines in between; so the edge region is octagonal, and its width and height can be varied independently.

Preliminary alpha testing suggests that this is much better all round; once I've tinkered a bit more I'll check it in and see what other people think.
Link Reply to this | Parent
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]