Allow resizing of a Rectange without maintaining aspect ratio.


Author
Message
Andrew Cash
Andrew Cash
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
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.
Eric Taymans
Eric Taymans
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
Posts: 4, Visits: 1

Use the Shift key when left clicking.


Andrew Cash
Andrew Cash
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
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.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Andrew Cash
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search