Profile Picture

Allow resizing of a Rectange without maintaining aspect ratio.

Posted By Andrew Cash 12 Years Ago

Allow resizing of a Rectange without maintaining aspect ratio.

Author
Message
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hello Andrew,

Most diagrams are using the same functionality – this is the default behavior in the true diagramming packages like Visio and others.
Nevron Diagram is not a tool for drawing rectangles but a complex diagramming framework for schematics and various types of diagrams. Maintaining the aspect ratio when using the diagonal handles is natural for diagram shapes (imagine resizing a monitor shape which has 16:9 aspect). However, if you would like to have this behavior and change the aspect ratio, you could simply use the Create Rectangle tool or to use the Shift key with the Rectangle handlers.

For the current version, we can override the default behavior for you as part of the Nevron Custom Development services.
We can also consider adding this as an option in future releases of the Diagram.



Best Regards,
Nevron Support Team



Andrew Cash
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1

This is unfortunate as it makes the library unusable for the app that I purchased the library for in the first place. I use rectangles to highlight words and areas on a document and having to hold the shift key is not going to be easy for customers to get used to. I have worked with similar graphics libraries to Nevron Diagram for many years now and have never see the default behaviour for resizing rectangles to maintain aspect ratio.

Andrew.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

Currently, what Eric has proposed is the only viable solution - if you do not want to maintain the aspect ration when using the corner trackers of a rectangle shape you should hold the Shift keyboard button while dragging them with the left mouse button.



Best Regards,
Nevron Support Team



Andrew Cash
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1

It works. Thanks for that.

Is there any way I can make that the default behaviour without having to press the Shift key ? It doesn't make sense for my app to maintain aspect ratio when resizing rectangles.

Andrew.

Eric Taymans
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 0, Visits: 1

Use the Shift key when left clicking.



Andrew Cash
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1

When I resize a NRectangleShape using the any of the 4 corner handles then the Rectangle maintains a constant aspect ratio when I am resizing. I would like to allow the dragging to change the aspect ratio. I am sure this is easy to override this behaviour but I haven't found a solution yet.

Andrew.



Similar Topics


Reading This Topic