iVis-at-Bilkent / sbgnviz.js

A web based visualization tool for process description maps in SBGN
http://www.cs.bilkent.edu.tr/~ivis/SBGNViz_sample_app/
GNU Lesser General Public License v3.0
35 stars 14 forks source link

Snapping to grid and alignment cues #143

Closed ugurdogrusoz closed 8 years ago

ugurdogrusoz commented 8 years ago

We would like to implement a grid and functionality to snap to grid along with drawing vertical and/or horizontal lines as alignment cues. We need to discuss and design this first.

ugurdogrusoz commented 8 years ago

What we need can be summarized as follows:

ugurdogrusoz commented 8 years ago

The new extension should support alignment operations as well. If snap to grid is not enabled, it should work as it does now in SBGNViz editor. Otherwise, we should also adjust the coordinates w.r.t. the grid.

ugurdogrusoz commented 8 years ago

Alignment operations should be triggered with the current "Align" menu. For the new grid functionality, we should add a new menu item right under Align named "Grid...". This should pop up a dialog (similar to File > Properties... dialog) with title "Grid Properties" and with the following content (default values in parentheses):

In addition, the guideline line style should be dashed.

Buttons "Save" and "Default" should work as expected.

selimfirat commented 8 years ago

Snap-to-grid and its options Implemented through the commits below: 3e79cb94b0ce53482414c726d37eb50d1546509e 5305b567590ed7d4d98f412686ff0363c99ad12f a05c7de0b05a2d775d7d5fbbfb2ee6085b2b358e

Guideline style & alignment operations in progress.

ugurdogrusoz commented 8 years ago

Can we also change the grid color to be a little "lighter gray" please.