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

82
Vistas
Remove fabric object after json stringify without rerendering the canvas

I'm building a collaborative whiteboard app and I want to remove a fabric object from another user's canvas. I am using socket.io to send changes to other users and adding objects works fine, but there is a problem with removing. How can I do this without re-rendering the canvas, because I've set the background image to canvas and when i re-render the canvas the background image is not visible for some time.

Working code for adding object to canvas:

socket.current.on("object:added", (object) => {
  isRendering.current = true;
  fabric.util.enlivenObjects([JSON.parse(object)], (objects) => {
    objects.forEach((o) => {
      editor.canvas.add(o);
    });
    isRendering.current = false;
  });
});

I want to make something like this, but to remove object from canvas.

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