Git Product home page Git Product logo

minimap-plus's Introduction

Good News ๐ŸŽ‰

We have gained access to the original minimap. ๐ŸŽ‰

"minimap-plus" forwards to the original "minimap" that now includes all the improvements from "minimap-plus"

minimap-plus's People

Contributors

abaracedo avatar abe33 avatar aminya avatar arcanemagus avatar as-cii avatar chaoticmind avatar federeghe avatar fnkr avatar fscherwi avatar fundon avatar gustavopaes avatar hultberg avatar jacekkopecky avatar jonidelv avatar jrouviere avatar lgeiger avatar mark-hahn avatar mehcode avatar mjohnsonengr avatar mrodalgaard avatar orangetronic avatar philraj avatar robertrossmann avatar semantic-release-bot avatar sporsh avatar timostaudinger avatar tofu-rocketry avatar tohruniverse avatar vrinek avatar yajo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

minimap-plus's Issues

Uncaught InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The imag...

  1. Launch Atom
  2. Have file tree or similar open
  3. Resize Atom window such that there is no room for the minimap to render.

Atom: 1.53.0-nightly17 x64
Electron: 6.1.12
OS: Mac OS X 10.15.7
Thrown From: minimap-plus package 4.32.0

Stack Trace

Uncaught InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

At /Users/boptilop/.atom/packages/minimap-plus/lib/canvas-layer.js:64

Error: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at CanvasLayer.copyToOffscreen (/packages/minimap-plus/lib/canvas-layer.js:64:27)
    at HTMLElement.redrawRangesOnLayer (/packages/minimap-plus/lib/mixins/canvas-drawer.js:300:11)
    at HTMLElement.updateTokensLayer (/packages/minimap-plus/lib/mixins/canvas-drawer.js:145:10)
    at HTMLElement.updateCanvas (/packages/minimap-plus/lib/mixins/canvas-drawer.js:109:10)
    at HTMLElement.update (/packages/minimap-plus/lib/minimap-element.js:892:10)
    at /packages/minimap-plus/lib/minimap-element.js:780:12

Commands

     -0:21.9.0 datatip:toggle (input.hidden-input)

Non-Core Packages

atom-ide-base 1.4.1 
atom-ide-datatip 0.15.0 
atom-ide-definitions 0.4.0 
atom-ide-hyperclick 1.0.4 
atom-ide-javascript 1.2.1 
atom-ide-markdown-service 1.3.3 
atom-ide-outline 1.11.0 
atom-ide-signature-help 0.9.0 
atom-typescript 14.0.2 
autocomplete-paths 2.12.2 
busy-signal 2.0.1 
ide-css 0.3.5 
ide-html 0.6.2 
ide-python 1.5.0 
intentions 1.1.5 
javascript-drag-import 0.1.13 
linter 3.1.1 
linter-eslint 8.5.5 
linter-ui-default 2.1.2 
minimap 4.29.9 
minimap-linter 2.2.1 
minimap-plus 4.32.0 
teletype 0.13.4 

Scroll bar position when toggling minimap off

First of all, thank you for reviving the minimap project โค๏ธ

This is an issue I posted in the original repo here: atom-minimap#708


When Minimap is toggled on (absolute mode disabled, right-hand side), the scroll bar of the text below it is placed to its left:

Screenshot from 2020-10-07 16-20-02

Toggling Minimap off with minimap:toggle will simply remove Minimap, but leave the space behind it:

Screenshot from 2020-10-07 16-20-12

Disabling the package altogether will move the scroll bar to where it would be normally placed:

Screenshot from 2020-10-07 16-20-33

My suggestion on how to tackle this: either move the scroll bar to the right hand side of minimap (regardless of absolute mode), or alternatively move it there at least when minimap is toggled off.

When minimap is taller the the screen, it becomes distorted when scrolling.

As the title says.

When I'm in a file too big to be shown completely in the minimap, the minimap scroll when I scroll, and when scrolling, the minimap becomes distorted progressively, you can see the result in the screenshot below.

Starting atom with --disbale-gpu fix the issue, but this is not ideal.

I tried with the original minimap package and this fork.

I also tried to turn off all my packages expect this one without any success.

I'm not sure this is fixable in this project, but at least there is is a topic for others to find this workaround.

image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.