Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda