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

148
Visualizações
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 à 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