Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
How to create a minimap for js canvas that can update content in realtime

I'm trying to create a minimap/preview function for my canvas network graph. The basic idea is like this : https://jsfiddle.net/neo_6053/2378smfg/1/

But the problem is that any updates in the main canvas will not be reflected in the small canvas. Even if I add redrawing on graph change, it cannot handle zoom properly. Example if I zoomed in, when I try to copy/clone the canvas, I can only copy the current visible area and thus I cannot refresh the minimap canvas with the newly drawn main canvas. https://jsfiddle.net/neo_6053/2378smfg/2/

 else {
    drawRadar();
    drawMinimapImage();
 }

Is there a way to copy off-screen area of canvas? Does canvas actually render elements outside of the canvas boundary? I googled abit and I think it doesn't, correct me If I'm wrong. Does HTML5 Canvas render off-screen by default?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda