Find PsychoJS equivalent of Psychopy API functions

URL of experiment:
I’m still trying to run the experiment locally
Description of the problem:
Can you teach me how to implement the following PsychoPy functions on PsychoJS? The auto-complier doesn’t seem to work properly.


rock_width,rock_height = rock_clicked.aspectRatio


By design, web browsers don’t allow you to change the mouse position. You can ask the participant to click on a fixation cross to start this trial.