Commit Graph

310 Commits

Author SHA1 Message Date
Josh de Leeuw
2922bc5dad
Merge pull request #2209 from jspsych/plugin-exclusions
New Plugin: Browser Check
2021-11-05 18:28:14 -04:00
Josh de Leeuw
c91cc4fd32 Merge branch 'main' into plugin-sketchpad 2021-11-05 18:08:27 -04:00
Josh de Leeuw
f87526bfdd add demo files 2021-10-27 09:47:08 -04:00
Josh de Leeuw
7f49a104ee make example face images smaller 2021-10-27 09:46:26 -04:00
Josh de Leeuw
ed9833a045 continue dev work on sketchpad 2021-10-26 12:22:24 -04:00
Josh de Leeuw
08427f3e22 add option for key to control ink flow 2021-10-22 14:52:14 -04:00
Josh de Leeuw
77fe82cacb fix css problems with controls 2021-10-22 14:01:09 -04:00
Josh de Leeuw
9605c431c6 implementing many features of sketchpad plugin, add example file 2021-10-22 12:49:26 -04:00
Josh de Leeuw
910d49cbb4 create template for sketchpad plugin 2021-10-21 15:46:36 -04:00
Josh de Leeuw
8eaabdd0e5 add webcam and microphone detection 2021-10-21 09:57:58 -04:00
Josh de Leeuw
8fb99cc220 add example file 2021-10-20 09:51:25 -04:00
Josh de Leeuw
01b07fac41 removes exclusion example (deprecated) 2021-10-19 21:28:32 -04:00
Josh de Leeuw
2f84f5b04d add example 2021-10-14 13:59:01 -04:00
Josh de Leeuw
dcf46ee21a
Merge branch 'modularization' into modularization-new-docs 2021-10-01 13:12:48 -04:00
Becky Gilbert
0c5f398cdc remove rdk files (moved to jspsych-contrib and changes will be copied there) 2021-09-30 01:42:01 +02:00
Becky Gilbert
e46ca21bf7 update comments in rt-task HTML file for consistency with tutorial 2021-09-27 13:56:53 -07:00
Becky Gilbert
77b80ce01d fix "class" => "style" error in rt-task HTML file (#2165) 2021-09-23 11:27:09 -07:00
Becky Gilbert
0d6e7074f2 add stimuli parameter option, foil parameter must be string (not array), foil is now always repeated up to set_size or set_size - 1 (depending on target_present value) 2021-09-17 22:39:09 +02:00
Becky Gilbert
4a171c7acd change visual-search-circle foil parameter to only allow an array of image path strings (not a single string) 2021-09-17 22:33:08 +02:00
Becky Gilbert
d731518112 change RDK correct_choice parameter to only allow array of strings (not a single string) 2021-09-17 22:32:41 +02:00
Becky Gilbert
37d8f9f4ad replace all instances of jsPsych.init with initJsPsych/jsPsych.run in HTML files 2021-09-16 10:15:12 -07:00
bjoluc
6a8596fb76 Merge branch 'main' into modularization 2021-09-14 20:36:05 +02:00
Becky Gilbert
db754538b7
Convert plugins to classes and update examples (#2078)
* modularize plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins and example files, make info static in plugin classes

* add preload flag to plugin info, fix a few parameterType values

* change preload flags in plugin info from audio/image/video strings to boolean

* convert more plugins and example files

* convert more plugins/examples, sync with webgazer branch plugins/examples (not working on this branch)

* remove preload flag from info, change to ParameterType, change to "ALL_KEYS"/"NO_KEYS", change KEY type to KEYS for array params

* remove descriptions from plugin info, fix some ALL_KEYS/NO_KEYS errors

* remove descriptions and add pretty names to plugin info

* remove/edit comments re ALL_KEYS/NO_KEYS and TS errors

* fix some preload plugin errors and convert example file (plugin still not working due to getAutoPreloadList)

* convert RDK plugin and example file

* convert preload plugin and example, add JsPsych getTimelineDescription method for auto-preloading (still not working for audio due to getAudioBuffer

* fix jsPsych getTimelineDescription method so that it does recursive search

* add image and video preloading to plugin examples

* Merge branch 'modularization' into modularization-plugins

* add tests for reconstruction

* fix timeline array getter method: add private timelineDescription var, set to timeline array in run(), rename getTimelineDescription to getTimeline

* changes in response to PR review: fix JsDoc comments, fix array: true in param info, change HTML string param types, add JsDoc author/file/see docs for all plugin classes, switch to @ts-expect-error. Thanks @bjoluc!

* fix JsDoc comments for plugin classes and preload trials parameter

* change preload type to boolean in ParameterInfo interface, and add `preload: false` to virtual-chinrest item_path image parameter

* All my tests except for preload plugin (will do that tomorrow)

* minor fixes to reconstruction tests

* Update preload plugin tests

* Finish test conversion

* switch to arrow functions to fix this keyword errors in plugins, add audio preloading into plugin example files, fix typos

* convert non-plugin example files (WIP, not tested)

* Fix allow_held_keys -> allow_held_key parameter in virtual-chinrest plugin

* Fix `keyboardListener` type in serial-reaction-time plugin

* type fixes for RDK, simplifying `correctOrNot()` function

* fixed ["ALL_KEYS"] => "ALL_KEYS" for iat plugins and tests

* Build jspsych packages before everything else

Dependent builds were previously failing due to missing type definitions

* Remove console.log from html-keyboard-response tests

I think I accidentially committed it.

* fix the delayed start to animation bug (#1885)

* round all RTs to nearest int (#2108)

* fixes and tests #1900 - IAT parameter problems

* finish converting/testing example files, add init settings, add audio preloading, fix errors

* fix progress-bar timeline to demo an example where auto-updating the progress bar works well

* Revert "round all RTs to nearest int (#2108)"

This reverts commit f53145d2e3.

* change how delayed timeline variables are implemented

* use static for generate_stimulus method so that it can be called on the vsl-grid-scene class

* fix external-html plugin and example (switch to arrow function for proper this context, fix incorrect parameter name)

* remove outdated TO DO comments

Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Josh de Leeuw <josh.deleeuw@gmail.com>
2021-09-08 09:44:53 -04:00
Josh de Leeuw
5e6c5d2352 expand reconstruction demo, make rdk demo only open in new tab 2021-08-30 13:04:14 -04:00
Josh de Leeuw
b3b9f5fd5e
Create modular versions of extensions (#2053)
Extensions are now passed to the `JsPsych` constructor via an `extensions` option.
Along the way, the webgazer plugins and plugin-html-button-response have been modularized as well.

Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Becky Gilbert <beckyannegilbert@gmail.com>
2021-08-20 11:15:33 +02:00
Becky Gilbert
e917fabb55 fix typo 2021-05-20 10:41:59 -07: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
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
d330c4ad7d separate camera init from experiment init; dot size options 2021-03-01 10:16:42 -05:00
Becky Gilbert
4b5c90fdf1 tweak example and comments 2021-02-20 15:10:04 -08:00
Becky Gilbert
96bdaceefc add save-trial-parameters example #823 2021-02-20 14:57:29 -08:00
Becky Gilbert
c803baec86 remove unused blindspot_start_prompt param, minor edits to text for clarity 2021-02-20 11:53:59 -08:00
Becky Gilbert
4c9bd25f5c remove unused CSS 2021-02-19 18:22:36 -08:00
Becky Gilbert
0675af8fff remove unused CSS 2021-02-19 18:22:12 -08:00
Becky Gilbert
91fc6205fc switch to css_classes parameter for stim font sizes 2021-02-19 18:21:40 -08:00
Becky Gilbert
0820abd2c0 remove unused plugin file 2021-02-19 18:20:58 -08:00
Becky Gilbert
c033d31643 add/fix preload trials in examples 2021-02-19 18:20:26 -08:00
Josh de Leeuw
2e50b1319e
Merge pull request #1442 from GEJ1/master
virtual-chinrest plugin, with resizing ability
2021-02-19 17:26:33 -05:00
Josh de Leeuw
0ed04b412a break when incompatible parameters 2021-02-19 17:17:52 -05:00
Josh de Leeuw
25ee508ea1 add test stimulus at the end of the trial 2021-02-19 16:53:42 -05:00
Becky Gilbert
2f3e6170f7 add freesort column_spread_factor parameter to control compression/expansion of image columns along x-axis 2021-02-19 12:07:44 -08:00
Becky Gilbert
42e4908dd1 Merge branch 'master' into freesort 2021-02-19 10:39:36 -08:00
Becky Gilbert
82cbd46a44 fix image position in example 2021-02-18 16:45:11 -08:00
Becky Gilbert
bb7b3f0570
Merge pull request #1228 from kurokida/freesort
for using the free-sort plugin with a touch device.
2021-02-18 16:40:28 -08:00
Becky Gilbert
51017c50d9 Merge branch 'master' into feature-key-code-update 2021-02-18 15:16:34 -08:00
Josh de Leeuw
4b1e05f448 fix example #1538 2021-02-18 17:37:28 -05:00
Josh de Leeuw
3152d16468 Merge branch 'master' into pr/pjkohler/1442 2021-02-18 16:58:00 -05:00
Becky Gilbert
2c28278ad5 change direct key comparisons to use jsPsych.pluginAPI.compareKeys to allow for case sensitive or insensitive comparison #396 2021-02-18 12:52:10 -08:00