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

206
Visualizações
fabric.js: Get canvas coverage

I am currently working with fabric.js 4.6.0 and place different fabric types on a canvas (Rect, Polygon, Polyline, ...).

Now, I want to get the percentage of the coverage of the underlying HTMLCanvasElement. Areas of fabric.js objects which are outside of the HTMLCanvasElement should be ignored.

I know, that I can use fabric.js' Canvas.toJSON() to get the data of the objects placed on the canvas, but I have no idea how to use that to calculate the coverage.

Could someone direct me to an algorithm to do that?

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