jsPsych/examples
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
..
css first jest test runs! 2016-12-09 21:25:56 -05:00
demos Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
external_html first jest test runs! 2016-12-09 21:25:56 -05:00
img modifications to virtual chinrest 2021-01-26 10:20:52 -05:00
js move webgazer files 2021-04-09 12:03:02 -04:00
sound add audio demos, fixes #481 2017-12-06 12:57:33 -05:00
video first jest test runs! 2016-12-09 21:25:56 -05:00
add-to-end-of-timeline.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
case-sensitive-responses.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
conditional-and-loop-functions.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
css-classes-parameter.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
data-add-properties.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
data-as-function.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
data-from-timeline.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
data-from-url.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
demo-flanker.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
demo-simple-rt-task.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
display-element-to-embed-experiment.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
end-active-node.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
end-experiment.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
exclusions.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-animation.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-audio-button-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-audio-keyboard-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-audio-slider-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-call-function.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-canvas-button-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-canvas-keyboard-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-canvas-slider-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-categorize-animation.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-categorize-html.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-categorize-image.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-cloze.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-external-html.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-free-sort.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-fullscreen.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-html-button-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-html-keyboard-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-html-slider-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-iat.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-image-button-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-image-keyboard-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-image-slider-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-instructions.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-maxdiff.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-preload.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-RDK.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-reconstruction.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-resize.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-same-different-html.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-same-different-image.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-serial-reaction-time-mouse.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-serial-reaction-time.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-survey-html-form.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-survey-likert.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-survey-multi-choice.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-survey-multi-select.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-survey-text.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-video-button-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-video-keyboard-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-video-slider-response.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-virtual-chinrest.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-visual-search-circle.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-vsl-animate-occlusion.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
jspsych-vsl-grid-scene.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
lexical-decision.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
manual-preloading.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
pause-unpause.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
progress-bar.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
save-trial-parameters.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
timeline-variables-sampling.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
timeline-variables.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
webgazer_audio.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
webgazer_image.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00
webgazer.html Convert plugins to classes and update examples (#2078) 2021-09-08 09:44:53 -04:00