Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better way to tweak/scale standalone minimap #396

Closed
mrodalgaard opened this issue Oct 24, 2015 · 2 comments
Closed

Better way to tweak/scale standalone minimap #396

mrodalgaard opened this issue Oct 24, 2015 · 2 comments

Comments

@mrodalgaard
Copy link
Contributor

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.

@abe33
Copy link
Contributor

abe33 commented Oct 30, 2015

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?

@mrodalgaard
Copy link
Contributor Author

#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.

@abe33 abe33 closed this as completed Nov 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants