JEFworks-Lab / MERmaid

WebGL-based viewer for spatially-resolved transcriptomics data
http://jef.works/MERmaid/
26 stars 5 forks source link

The uploaded bg.png lost the original ratio in the viewer #14

Open zhiiiyang opened 3 years ago

zhiiiyang commented 3 years ago

Hello, I was trying to replace the bg.png with my own data and found out it lost the original ratio and became 1:1 (width:length). Is it possible that the ratio can be maintained after uploading? Sorry, my JAVASCRIPT knowledge is very limited. But I guess that we will change around IMAGES.BG. Thank you so much for spending time to look into it.

https://github.com/JEFworks-Lab/MERmaid/blob/763e276bc638352f89c83c69122a0d49ada24cd4/src/index.js#L303-L316