https://bugs.freedesktop.org/show_bug.cgi?id=77820

          Priority: medium
            Bug ID: 77820
          Assignee: [email protected]
           Summary: Draw - Grid Snap mostly broken or missing
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: x86 (IA32)
            Status: UNCONFIRMED
           Version: Inherited From OOo
         Component: Drawing
           Product: LibreOffice

Currently the grid snap is not functional for most basic drawing operations and
it probably never was (tested with 3.6, 4.2 under winXP and Linux, also
OpenOffice, all the same behavior). 

Whenever the grid snap is engaged, at least at the first click the cursor
should always land on the grid, which it doesn't.


For me this is by far the most annoying design flaw of LibO-Draw, because
formal drawings with a high degree of regularity are very time consuming and
difficult to make. The different objects have to be constantly readjusted to
the grid under high zoom for good appearance for such a typical use case.


Background:

A good grid snap is usually most easily implemented by just rounding the cursor
position to the next grid position. In example for a 1mm grid setting the
cursor position would just be rounded to each full mm. In simple
implementations this is unconditionally done always, as long as grid snap is
engaged.


A better implementation should only observe the first click, the following line
or polygon drawing should then be allowed in integer angles for much greater
flexibility (preset angles of 45, 15 or 5deg. are good values for this, to be
set under grid options. The setting is already there, it has just to be
observed.). 

With the smaller angles (i.e. 5 deg.) the last click may not always end on a
grid perfectly. It should then be rounded to the nearest vertical or horizontal
grid line or the nearest object, whichever is closest. With a typical 1mm Grid
setting such behavior would almost always allow a perfect snap and greatly ease
regular drawings. 

In the very rare cases, where the second desired point can not be perfectly
reached, the grid snap can be temporarily disengaged with shift. A 1 mm typical
Grid setting is fine enough for small details and coarse enough to be easily
hit with a mouse or a pen. 


Grid snap implementation, Suggestion:

  - Always unconditionally snap to the nearest Grid point
      on the first mouse click.
  - Restrict the coordinates of the following second operation to integer
      angles, in respect to the first point set (typically 5 or 15deg.)
  - Snap the second click to the nearest horizontal or vertical Grid line
      or the next object, whichever is the closest.


Side issue, Vectorial Coordinates:

During drawing vectorial coordinates (length and angle) are very helpful and
can be used for checking and experimentation. These are already implemented on
the Status Line and shown during Line Drawing. This is already working well,
but visually distracting, because two locations have to be observed at the same
time.

  - enhancement suggestion:
      show vectorial coordinates next to or above the Cursor (pen),
        one over the other (2 lines) for better visual control,
        as a selectable option for better visual control
        (Grid Option, tick box: show vectorial coordinates next to Cursor)

All of the above would work very well together with a good Line Grid:

        resolution:  1mm 
  minor Grid Lines:  2mm
  major Grid Lines: 10mm

See separate report with such example Template, may also be used for
 experimentation here: 
Bug 77818 - Draw - Grid looks dull, lacks visual guidance

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to