chenbo007 / svg-edit

Automatically exported from code.google.com/p/svg-edit
0 stars 0 forks source link

Add context tools for Rect, Circle, Ellipse, Line #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Should add context controls for rect, circle, ellipse, line:
  a) rect.x, rect.y, rect.width, rect.height
  b) circle.cx, circle.cy, circle.r
  c) ellipse.cx, ellipse.cy, ellipse.rx, ellipse.ry
  d) line.x1, line.y1, line.x2, line.y2

2) these controls would have to be text boxes (not pull-down like rect's
radius)

3) the input must be validated as a number (we should limit to positive
non-zero integer for now)

4) suggest that the value only change once enter is pressed (it would be
distracting to see the rect's width change from 1 to 10 to 100 when typing
"100")

5) If an invalid string is entered and then enter is pressed, can simply
reset the value to the selected element's current value

6) Note that the values in these controls should be set to the selected
element's value, they are not used as values the next rect's dimensions,
for instance.

Original issue reported on code.google.com by codedr...@gmail.com on 17 Jun 2009 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 18 Jun 2009 at 5:05

GoogleCodeExporter commented 9 years ago
I've just begun code changes for this (with rect's x,y,w,h controls).  I'm 
going to take some time and make sure 
the event/message flow makes sense.

Original comment by codedr...@gmail.com on 23 Jun 2009 at 8:50

GoogleCodeExporter commented 9 years ago
Fixed in r188

Original comment by codedr...@gmail.com on 24 Jun 2009 at 4:33