You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am missing a more direct way to tweak the standalone minimap returned from minimapAPI.standAloneMinimapForEditor(textEditor). This could include line height and char width for scaling the minimap view. Currently I am just scaling the whole canvas of the minimap element.
Hi @mrodalgaard, sorry for the late reply, I had my hands full these past days. I took some time to write a quick proof of concept of a potential solution (see #398). Basically a Minimap instance now have three methods setCharWidth, setCharHeight and setInterline than will set these values for the current instance only, overriding the config values for this instance.
If you could give it a try and let me know if this fill your needs?
#398 seems to work very well. Much better quality than scaling the whole canvas. Combined with knowing the width of the users non-standalone minimap I would believe this was sufficient in my case.
I am missing a more direct way to tweak the standalone minimap returned from
minimapAPI.standAloneMinimapForEditor(textEditor)
. This could include line height and char width for scaling the minimap view. Currently I am just scaling the whole canvas of the minimap element.See discussion for all details.
The text was updated successfully, but these errors were encountered: