Request Features : use X, Y positions and W, H as attributes for a selected object

Asked by Fred

Hello,

I got to your website via the request features of the inkscape website.

So here is my suggestion :
For instance let's say that I select a rectangle that I just draw. I can see on the interface his X and Y positions and also his width (W) and his height (H).
It would be good to have a feature that allows you to automatically create 4 attributes : x="", y="", w="", h="". The values of theses attributes would be equal to X, Y, W and H.
Indeed these attributes are very useful when you interact with your SVG graph using javascript. Especially when you want create a new object and positioning it beside an existing object that you created with inkscape.
For the moment I have to do it manually.
But if somebody I have a workaround tips I would be delighted to hear it.

Fred

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fred (frederic-fleche) said :
#1

It is a question because it is a Requested feature.

Fred

Revision history for this message
prkos (prkos) said :
#2

There is a way to grip it with JS but Im not sure if SVG specification defines it so simply (x,y,w,h). You have to learn how SVG works and also how Inkscape treats objects (Inkscape doesn't yet support full SVG specification) in order to know what and how to change with JS. Maybe someone with more SVG knowledge can give more details.

Can you help with this problem?

Provide an answer of your own, or ask Fred for more information if necessary.

To post a message you must log in.