5

For example, if I've got a path with a 3px border, I'd like it to snap to the edge of the border and not to the path its self?

Here's a square which has the path snap to the guides instead of the square's border:

sad snapping

1
  • 1
    It seems not possible (see here), but it seems to depend to SVG standard adherence (for another case see here). Perhaps you can achieve this result using a closed path with a 3 px width and without border. Jan 28, 2014 at 8:33

2 Answers 2

7

The nodes of a path will always be centered with respect to the stroke (unless when dealing with live path effects or the powerstroke, but that's a different subject)

You might still be able to achieve what you want, but only when dealing with bounding boxes. For this, go to Preferences -> Tools and set the bounding box to visual (as opposed to geometric). You can now transform the object or selection such that "true" corner will snap to the grid.

Should you be trying to make crisp bitmaps, then you might want to have a look at the pixelsnap extension, see here.

1
  • Nice answer! Welcome to GD.SE Diederik :)
    – Yisela
    Feb 10, 2014 at 21:51
3

You can make a copy of the path, then convert the copy's border to a path by using the "Sroke to Path" command.

The edge of the border has now its own node that you can snap to.

Finally you can delete the copy and are left with the original path and the objects snapped to its outline. This way you can still use the geometric bounding box.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.