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

147
Vistas
Fabric.js object:modified with several selected object behavior

I'm writing a kind of vector editor using fabric.js. I need to implement a history with undo (and probably redo) option for a small subset of modifications. So I'm using the 'object:modified' event for that purpose. It works perfect when I do something with a single object, but when it comes to a selection I have a problem.

I have an array of user actions. If the user moved the figure, I write the object to that array with figure Id, and previous position to restore it on clicking undo. But if the user moved several selected objects it happens with activeSelection. And if I want to keep my scheme, I have to split the selection to several figures and store position for each of them.

Are there any other options? How do you usually deal with multiple objects?

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