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

266
Views
Fabric.js Change value of splitByGrapheme when text is link

I would like implement to my app(React), in object TextBox from fabric.js value which check text in Testbox. When text is link i would like set splitByGrapheme to true and in the other situation set to false.

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,
        }); 

This is my code but It only work after refresh Thank you in advance for answer.

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!