PMKS-Web / PMKSWeb

An educational web-based tool designed for comprehensive 2D linkage analysis developed at WPI (Worcester Polytechnic Institute)
https://pmksplus.com
4 stars 3 forks source link

Unit change should more smoothly change (only change grid and not mechanism) #84

Closed KohmeiK closed 1 year ago

KohmeiK commented 1 year ago

Image

Alex siad: One more thing. I like the clarification within cm and m for metric and SI. However, when you pick the desired unit, it changes the grid and the mechanism. In my mind, it should update the grid and mechanism but shouldn't appear strange. The following images of the slider crank are what I mean.

To make this happen, we need to avoid using auto-resize of the grid. Every time we change the unit, we need to change the object scale and zoom the SVG the exact right amount depnenging on the scaleing. It's good to note that this is not a super crutial feature since user's shouldn't chage units that often.