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

260
Views
Fabric.js Cambia el valor de splitByGrapheme cuando el texto es un enlace

Me gustaría implementar en mi aplicación (React), en el objeto TextBox del valor fabric.js que verifica el texto en Testbox. Cuando el texto es un enlace, me gustaría establecer splitByGrapheme en verdadero y, en la otra situación, establecerlo en falso.

 const isLink = options.text !== undefined && options.text.includes('http'); switch (options.type) { case CanvasType.TEXTBOX: return new TextBox(options.text ?? '', { ...options, lockUniScaling: true, objectCaching: false, splitByGrapheme: isLink, });

Este es mi código, pero solo funciona después de actualizar. Gracias de antemano por la respuesta.

about 4 years ago · Juan Pablo Isaza
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!