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

225
Views
FabricJs - getting object's distance from the border of canvas

I need to find out the distance of an object from a zoomed and panned canvas. I can get an object's location using clickedObject.getCenterPoint(), however that returns the object's actual location on the canvas.

In attached image, it's a zoomed and panned canvas. And when I click anywhere on the circle, it should return me (20,20) assuming circle's width/height is 40.

enter image description here

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!