GNOME Bugzilla – Bug 613388
Second anchor for subshapes
Last modified: 2019-03-20 11:48:44 UTC
Subshapes currently have a fixed size (AFAIK). I would like to introduce a second set of anchors to allow for scaling. dia:v_anchor2 The vertical anchoring of the subshape. Supported values are: "fixed.top" "fixed.bottom" "proportional" dia:h_anchor2 The horizontal anchoring of the subshape. Supported values are: "fixed.left" "fixed.right" "proportional" I'm attaching an image that illustrates the basic problem I would like to solve: A shape that is split into two parts. The height of the upper rectangle should be constrained, while the shape itself can scale freely. I would suggest the following anchors for the upper rectangle: v_anchor="fixed.top" v_anchor2="fixed.top" h_anchor="fixed.left" v_anchor2="fixed.right" For backwards compatibility, the *_anchor2 attributes are optional. When they are omitted, the current fixed-size subshape behaviour is preserved. In short: The second set of anchors defines the subshape bounding box in relation to the main shape. Do you think this is a feasible concept? Did I miss anything?
(In reply to comment #0) > Subshapes currently have a fixed size (AFAIK). Subshapes can be resized by holding shift during the handle movement (at least most of them). Otherwise they should maintain their size. At the moment there is no provision to resize width and height of subshapes independently, but this does not seem to be what you are asking for?
Thanks for the feedback. I wasn't aware of the Shift subshapes resize. However, subshapes seem to have a fixed aspect ratio - is that correct?
Yes, this is what I tried to say with my last sentence.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/280.