Commit Graph

2462 Commits

Author SHA1 Message Date
Becky Gilbert
c3adf103a4 add console logs for debugging extra frame 2021-05-04 16:56:30 -07:00
Becky Gilbert
a744756037 switch from visibility:hidden to opacity:0 2021-05-04 16:48:49 -07:00
Becky Gilbert
773347a386 update rAF handle in timeout_handlers so that it is cleared with clearAllTimeouts 2021-04-27 15:40:29 -07:00
Becky Gilbert
af67a898df hide stim with CSS visibility at start of end_trial 2021-04-27 15:26:44 -07:00
Becky Gilbert
2214115e44 remove double rAF from setTimeout, because rAF is being called continuously 2021-04-27 14:26:31 -07:00
Becky Gilbert
564c843566 fix rAF function name (no need to use window prefix) 2021-04-27 14:23:53 -07:00
Becky Gilbert
2a032a8d1a move rAF start timestamp from rAF callback to setTimeout 2021-04-27 14:23:24 -07:00
Becky Gilbert
c782de4348 add displayData to end (commented-out for hardware timing tests) 2021-04-23 15:40:21 -07:00
Becky Gilbert
f39211726f in pluginAPI.setTimeout, use performance.now instead of timestamps passed into rAF (unreliable) 2021-04-23 15:39:01 -07:00
Becky Gilbert
01eae11e1b in doTrial, put plugin.trial and subsequent functions in rAF callback 2021-04-23 15:37:02 -07:00
Becky Gilbert
cf7517f75e switch ITIs from setTimeout to rAF 2021-04-23 15:04:16 -07:00
Becky Gilbert
390f8b687c revert change to example file (testing now done via tests/timing-tests files) 2021-04-23 14:58:41 -07:00
Josh de Leeuw
dc6998b0e8 Merge branch 'master' into feature-settimeout-to-raf 2021-04-21 10:24:53 -04:00
Josh de Leeuw
ab7ea845df add timing tests to test folder 2021-04-21 10:24:08 -04:00
Becky Gilbert
77e5c8ce12 add rAF-recorded duration to trial data (passed from pluginAPI setTimeout to callback fn, for timing testing) 2021-04-20 15:24:52 -07:00
Becky Gilbert
4c336e54dc remove default_ITI from example file (for timing testing) 2021-04-20 15:19:52 -07:00
Becky Gilbert
eb96f58ebc fix checkForTimeouts function definition and name error, pass the rAF-recorded duration to callback function 2021-04-20 15:18:40 -07:00
Becky Gilbert
a6f39f9f4f Merge branch 'master' of https://github.com/jspsych/jsPsych into feature-settimeout-to-raf 2021-04-19 18:03:36 -07:00
Becky Gilbert
fb2ad41224 move WebAudio keyboard RT seconds-to-ms conversion from audio-keyboard-response plugin to getKeyboardResponse 2021-04-09 13:41:31 -07:00
Becky Gilbert
94a094f628 fix minimum_valid_rt when the web audio timing method is used in getKeyboardResponse - fixes #1675 2021-04-09 11:25:05 -07:00
Josh de Leeuw
f0cd0aae9c fix missing link 2021-04-09 12:45:55 -04:00
Josh de Leeuw
739b86efb5
Merge pull request #1586 from jspsych/feature-eye-tracking-improvements
Improvements to eye tracking features
2021-04-09 12:44:58 -04:00
Josh de Leeuw
cec803c7fa
Merge branch 'master' into feature-eye-tracking-improvements 2021-04-09 12:16:23 -04:00
Josh de Leeuw
8aaceab759 update docs 2021-04-09 12:04:05 -04:00
Josh de Leeuw
4bcde4a504 fix real-time display during validation 2021-04-09 12:03:56 -04:00
Josh de Leeuw
008897d415 revert back to ridge + kalman 2021-04-09 12:03:23 -04:00
Josh de Leeuw
a991b7b997 move webgazer files 2021-04-09 12:03:02 -04:00
Josh de Leeuw
3ce8aea220 improve timing in webgazer and utilize in jspsych 2021-04-09 10:52:09 -04:00
Josh de Leeuw
346726ec44 save x,y coords, not just dx/dy 2021-04-09 09:22:19 -04:00
Josh de Leeuw
63e30ae43e save validation point locations by default 2021-04-09 09:21:29 -04:00
Josh de Leeuw
b4433eae31 update init plugin to center camera 2021-04-09 09:19:56 -04:00
Josh de Leeuw
221b7df052 get threaded ridge regression working, update docs, example, improve extension code 2021-04-08 15:22:58 -04:00
Josh de Leeuw
3de308ec42 update DOM tracking for webgazer, shift to setInterval method for sampling data 2021-04-07 18:15:51 -04:00
Josh de Leeuw
9744547853 fix function name 2021-04-01 16:12:17 -04:00
Josh de Leeuw
595626debe fix typo and set default regression type 2021-04-01 15:47:47 -04:00
Becky Gilbert
deb3dd6287 allow jsPsych.pluginAPI.compareKeys to handle null arguments, add tests - fixes #1577 2021-03-25 09:23:44 -07:00
Josh de Leeuw
e672943e63 improve error messages when extension not loaded 2021-03-25 10:59:08 -04:00
Becky Gilbert
b21ff083f8 add note to image-* plugin docs about animated gifs and render_on_canvas - fixes #1594 2021-03-24 15:38:12 -07:00
Becky Gilbert
163f3479b0 fix docs formatting issues, edit code blocks for consistency 2021-03-24 15:07:28 -07:00
Josh de Leeuw
646873880f add docs about onGazeUpdate 2021-03-15 10:40:59 -04:00
Josh de Leeuw
45872110c6 create subscribe mechanism for gaze updates 2021-03-15 10:35:06 -04:00
Josh de Leeuw
c6797fe027 cache the prediction to avoid repetitive calls to expensive webgazer getPrediction function 2021-03-15 09:58:12 -04:00
Josh de Leeuw
3689f6d563 init camera plugin should work even if used twice in experiment 2021-03-05 17:17:22 -05:00
Josh de Leeuw
98eed2110c only round if not null 2021-03-05 15:18:45 -05:00
Josh de Leeuw
74da751126 repair state.round_predictions 2021-03-05 10:53:58 -05:00
Josh de Leeuw
d5213ad5ba fix typo () 2021-03-05 10:45:01 -05:00
Josh de Leeuw
a5b9a915f9 add option to resetCalibration 2021-03-05 09:54:15 -05:00
Josh de Leeuw
bf9dec250b Merge branch 'master' of https://github.com/jspsych/jsPsych 2021-03-01 13:25:57 -05:00
Josh de Leeuw
2a4a1fafa0 fix docs formatting for callbacks page 2021-03-01 13:25:54 -05:00
Josh de Leeuw
bbd50935d3 add note about permission to overview 2021-03-01 10:24:09 -05:00