Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
la clase no existe en el tipo 'ILineOptions' en fabricjs

Estoy tratando de implementar esta respuesta en mecanografiado, https://stackoverflow.com/a/47570603/8503317 en crear línea, hay estas opciones

 var line = new fabric.Line(points, { strokeWidth: 2, fill: '#999999', stroke: '#999999', originX: 'center', originY: 'center', selectable: false, hasBorders: false, hasControls: false, evented: false, class:'line', //THIS DOESN'T EXIST ON FABRIC.LINE OPTIONS

aquí está el códec

Pero en ese codepen, está funcionando y no tiene ningún error. ¿Alguien sabe por qué?

EDITAR

Aquí está mi reproducción https://stackblitz.com/edit/angular-ivy-bkaelf?file=src%2Fapp%2Fapp.component.ts

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Como no tengo ninguna solución, lo arreglo agregando manualmente la propiedad de class a ILineOptions a @types/fabric . está funcionando ahora, pero no es la mejor solución. Si ha encontrado la mejor respuesta, publique una nueva respuesta.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!