Ask Your Question

libredraw: can you snap the centre of a shape to the grid rather than an edge

asked 2020-05-03 04:25:28 +0200

w2class gravatar image

I am creating a diagram in libredraw that contains a number of disparate shapes, and want them to be aligned vertically and horizontally. Using align is cumbersome because there are so many and I want them aligned in both dimensions. If I could have the centre of each object (instead of the edge) snap to the grid, they would be automatically aligned both vertically and horizontally.

Is this possible and, if so, how?

edit retag flag offensive close merge delete


Alas, as far as I have found, snap to grid only works on object contour features, not on more abstract properties such as center point or anchor point, nor on added glue points.


Conceivably, you could draw a helper "center point object", and make copies to group with each shape. I believe that would work, but posting from my phone now so I can't test it at this time. Moving the helper object to the back or setting transparency to 99% will hide it from view.

If you move your shapes around a lot, this may help (assuming that it actually works). If you just need it for the initial placement, it will be more cumbersome than just using align.

keme gravatar imagekeme ( 2020-05-03 10:18:59 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2020-05-04 04:20:28 +0200

w2class gravatar image

Thanks everyone for your help. It doesn't look like Draw can do what I need (at least not easily). I explored alternatives and Inkscape is more appropriate for my needs at this point. If any developers are reading this, an option to have objects snap to the grid on their centre point would be useful.

edit flag offensive delete link more

answered 2020-05-03 16:39:04 +0200

Regina gravatar image

With snap, you would need to drag each shape separately. That is cumbersome.

In case you have a row of shapes, mark them together and align them "vertically centered" with the tool "Align objects".

To distribute such row of shapes so, that the shapes centers are equal distributed, first position the first and last shape correctly. Then mark all shapes of that row together and then use "Horizontal Distribute Center" from the "Distribution" tool.

Analogous for a column of shapes.

To position a single shapes relative to its center, use the "Position and Size" dialog and set the reference point to center before entering the x- and y-coordinates.

edit flag offensive delete link more


Thanks for your help but the whole point of wanting to use snap is so I can add and change shapes at random in the grid and they automatically remain aligned in both dimensions. Having to realign and redistribute in both directions every time I change a shape would be very cumbersome.

w2class gravatar imagew2class ( 2020-05-04 04:17:39 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-05-03 04:25:28 +0200

Seen: 89 times

Last updated: May 04