Responsive Scaling using Canvas (or SVG) as an experiment container #2589
-
I am very new to jsPsych and I am still in process going through the docs. Anyway, I have a very particular requirment for my experiment, and I wanted to ask you what may be the best approach doing that in jsPsych.
Is there any clever path I should I go? I think it may be best to avoid placement with CSS, but instead define a canvas/svg container and performing the placment in there? Any idea/diretion would be very helpful! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @kalaschnik, I think a custom plugin is probably the way to go here, and I agree that an SVG implementation makes sense. You could add click event handlers to the SVG shapes (relevant MDN docs). I also think there's good potential here for a plugin that lots of people would be interested in. This kind of interaction is something that gets asked about periodically here. If you do develop a plugin please consider sharing it on jspsych-contrib! |
Beta Was this translation helpful? Give feedback.
Hi @kalaschnik,
I think a custom plugin is probably the way to go here, and I agree that an SVG implementation makes sense. You could add click event handlers to the SVG shapes (relevant MDN docs).
I also think there's good potential here for a plugin that lots of people would be interested in. This kind of interaction is something that gets asked about periodically here. If you do develop a plugin please consider sharing it on jspsych-contrib!