PMKS-Web / PMKSWeb

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

SVG Images (Ground, Input) become hidden when they become too small (by pressing 'Update Object Scale') #203

Open AlexG1031 opened 1 year ago

AlexG1031 commented 1 year ago

A mechanism's grounded joints gets deleted when you change from one unit to another. This can be seen with this URL: https://app.pmksplus.com/?0O.35.K,0.000.MA,A,8d,2-,0.GB,B,AA,69,0.GC,C,1T,6N,0.KD,D,1m,M,0.GE,E,18,Fe,0..YRAB,AB,Fe,Fe,9P,4a,c5cae9,A,B,,.YRBC,BC,Fe,Fe,5q,6G,303e9f,B,C,,.YRCDE,CDE,Fe,Fe,1S,7S,0d125a,C,D,E,,...JE0

Image

KohmeiK commented 1 year ago

Yeah, I've seen this before. I think when the absolute size of the SVG image becomes too small, the browser tries to optimize but not showing it. I think the solution is to scale everything up by 100 or 1000 so that we have to zoom a significantly for this to happen again. This should be a purely visual bug though so not critical.