Nigecat / obsidian-desmos

Embed graphs directly into your obsidian notes
GNU General Public License v3.0
110 stars 6 forks source link

Graph Aspect Ratio Tuning Config option. #114

Open Imoriarty opened 2 months ago

Imoriarty commented 2 months ago

Is your feature request related to a problem? Please describe. My graphs are very not square, and some ability to tune them so that they are without having to fiddle with CSS would be nice.

Describe the solution you'd like An option in the config to apply across all graphs to re-render existing graphs, and ideally, at initial setup. Present a circle or some test image that would allow the user to check the aspect ratio for their use case(s), so that graphs look right, before they get too far along.

Describe alternatives you've considered Fixing this directly in (my) CSS, or altering in each graph as I go along. Learning how to code in whatever language this project is in and submitting a PR myself to fix the issue (I don't particularly have the time to do so). Hiring someone else to do so (I'm unemployed and a student on loans, so finances are tight). Begging someone else to do it (Here we are.)

Additional context This poor thing is supposed to be a circle:

Screenshot 2024-06-10 093544

Won't you think of the poor circles?!

Nigecat commented 2 months ago

Couldn't you also set the width and height of the graph - image

(though this would have to be done manually for every applicable graph)

Imoriarty commented 1 month ago

Oh, sorry, the graph is set to square - it's set to 10, 10, -10, -10, the actual rendering of the image aspect ratio is wrong.

Oh, i see what you mean, yeah, it just seems like there should be a way to set a default so that I don't have to fix all... 172 of my existing graphs. :/