
Hi all,
Today I removed all 'old' grid code, and fully enabled the new grid stuff. >From a user perspective this means: ** a new tab in the document properties dialog, solely meant for grids; the former grid/guide tab is now solely for guides. I envision a list of guides there in the future, for easier deletion of guides etc. ** more than one grid can be active at the same time, although i am having trouble in finding a usefull case for this ** multiple views on the same document share the same grids, but the grid can be turned off for each view separately. For example: one could have an overview view without grid enabled. Duplicate that window and zoom in on some detail; then grids can be shown only for that view, and snapping will only happen in those views for which grids are enabled. (sorry i am not able to explain more clearly) ** grid information is now stored in SVG as a child of sodipodi:namedview. Can someone please make an extension that converts an old grid definition to the new format?
From developer perspective:
** implementation of new grids is much easier now; subclassing CanvasGrid and adding an entry in the is enough. Have a peek at how the rectangular grid is implemented (CanvasXYGrid). ** note that there is no longer "the grid", there might be several grids active now!
Future plans (i will not be working on this soon, due to GSoC Live effects!): ** possibility of enabling not all but a selection of grids for a view. Eg. when there are 4 grids defined in the document, only enable grid2 for a certain view. ** new grids! ** better snapping mechanism to enable snapping to intersections of guides&grids and grids&grids.
A side effect of removal of old gridcode: apparantly the origin of the desktop rules used to be set to the origin of the grid. I find this strange: specifying a grid origin of (2,2) would have me think the origin would be at ruler location (2,2) instead of (0,0) as it is in 0.45.1. I have commented the grid-origin correction to the ruler range, because now there is not a single grid anymore to correct it for. Isn't there a control somewhere to define the documents origin? Now the ruler origin is set to (0,0)
Cheers, Johan

Thanks! Please always fill in the detailed release notes on all features you add or change. It's better to do this without a delay while you still remember all the details. For now I copied your message to wiki, please edit it in "Snapping and grid" section:
http://wiki.inkscape.org/wiki/index.php/ReleaseNotes046#Snapping_and_grids
participants (2)
-
unknown@example.com
-
bulia byak