How to calculate the y coordinate of a rectangle without transforms in Inkscape?

General discussions about Inkscape.
dp118m
Posts: 1
Joined: Tue Jun 28, 2016 9:27 pm

How to calculate the y coordinate of a rectangle without transforms in Inkscape?

Postby dp118m » Tue Jun 28, 2016 9:30 pm

Hi!

Imagine I have an Inkscape file (https://www.evernote.com/shard/s35/sh/13548dcc-2b50-4b9c-b383-e8c22536b397/2e51c7acc1d33630008dc28504232761) with the following rectangle:

Image

I want to calculate the Y coordinate reported by Inkscape (596.654).

How can I do it?

I tried this:

1. The top of the page seems to have a Y coordinate of 744.
1. I subtract from that number the y coordinate of the rectangle in the XML editor (417) and its height (37) and get 744 - 417 - 37 = 290.

Note that the rectangle doesn't have any transforms and doesn't belong to a group.

Thanks in advance

Dmitri Pisarenko

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to calculate the y coordinate of a rectangle without transforms in Inkscape?

Postby Moini » Tue Jun 28, 2016 11:27 pm

As you can see in the XML editor, the rectangle *is* inside a group. Only in Inkscape, that group works as a layer. That layer has been moved at some time, it has a transform. Remove that transform, and you get your 291 ;-)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “General Discussions”