SVG with constraints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I miss a lot in this kind of programs connectors
between two objects that represent a restriction. A
restriction can be of type:
A) position. A fixed distance or a percent with respect
the main (grouped objects) object (when size is
modified). Latter means that when the main object is
streched (or shrinked) the distance between the two
connected objects is a percent of the "streched distance"
B) color. When a color of 1 connector-side is modified,
the color of the other connector-side is also modified
(no necesarily 1 to 1, i.e., one color is function of
the other color).
C) Properties in general. As in the case of the color,
the same can be applied to stroke, fill-color etc etc
To show the use of this connectors-
imagine we define a "window" with a title-bar. When
strecthing the window, we desire to have the same
distance between the border of the window and the
title-bar (look whatever window in your desktop).
As another example, we can think about Open File
dialog. When streching the dialog, the frame that shows
the file should be stretched keeping a fix distance
with the dialog borders.
Also should be possible to exclude elements from the
strech.
The idea is to use the .svg file to paint widgets...
;). When I was a younger (16 y.o.) I implemented this
kind of restrictions via formulaes, p.eg., title.X =
window.X + 10. title.text.height << window.height*0.01
where << means that title height is incremented in 1%
respect to the window.height streching.
Changed in inkscape: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: connectors |
What you're actually asking for (hence the name change for
this feature request) is a way of specifying constraints in SVG.
A member of my research group has investigated and proposed www.csse. monash. edu.au/ ~clm/csvg/ index.html
an extension to SVG that allows specifying constraints like
you suggest. His page about it can be found here:
http://
I myself am interested in the use of constraints for www.csse. monash. edu.au/ ~mwybrow/ dunnart/
specifying interactive layout tools for things like
alignment and distribution using constraints. I have
implemented these tools in a prototype diagram editor named
Dunnart:
http://
What's not clear is the interface that should be offered to
the user for creating and interacting with such constraints.
Both Cameron and I are currently carrying out usability
studies looking at this question.
The plan is to add some of this stuff to Inkscape
eventually. It will happen, we just don't have a date yet.