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

87
Views
¿Cómo puedo determinar la posición de mi mouse mientras uso la biblioteca de bocetos de lienzo?

Estoy usando el marco canvas-sketch y no tiene una función integrada para recuperar la posición del mouse dentro del lienzo. ¿Cómo podría establecer el valor del mouse en la x de la y del mouse dentro del lienzo?

 const canvasSketch = require('canvas-sketch'); const Victor = require('victor'); const settings = { dimensions: [1080, 1080] }; let pos; let mouse; const sketch = () => { return ({ context, width, height }) => { context.fillStyle = 'white'; context.fillRect(0, 0, width, height); pos = new Victor(width / 2, height / 2); }; }; canvasSketch(sketch, settings);
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!