You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note from @jodeleeuw: 6.2 is our first release that is made possible by support from a grant by Mozilla Open Source Support (MOSS). This award has allowed @becky-gilbert to join the team, and she has been essential to all of the work reflected here. So: thanks Mozilla, and thanks @becky-gilbert!
New canvas-* plugins allow you to use a function to draw the stimulus on a HTML canvas element, and collect a keyboard, button, or slider response. A canvas stimulus can be useful for displaying dynamic, parametrically-defined graphics, and for controlling the positioning of multiple graphical elements (shapes, text, images). Thanks @cjungerius! (Canvas integration plugins #700)
New maxdiff plugin displays a set of options to be selected as one of two mutually-exclusive categories, typically 'most' or 'least' on some criteria, e.g. importance, preference, similarity. The same option cannot be selected for both categories simultaneously. Thanks @awhug! (Maxdiff Plugin #1136)
The free-sort plugin now has new parameters to control: sort area shape (square or circle), initial item positioning (inside or outside the sort area), border/background colors indicating when items are in/out of the area, magnification of items while dragging, and text indicating whether and how many items are left to be placed inside. Thanks @pjkohler! (updates to free-sort plugin, new functionality #1018, Updates to free-sort plugin #1203)
New 'safe mode' feature automatically prevents CORS errors when running experiments offline (e.g. by double-clicking the HTML file). This can be overridden with the new override_safe_mode parameter in jsPsych.init. For more info about CORS errors and safe mode, see https://www.jspsych.org/overview/running-experiments/#offline.
When require_movement is true in the *-slider-response plugins, the user will be allowed to continue after clicking on the cursor (rather than having to move the cursor and release it). This makes the sliders more user-friendly, especially when using a discrete/sparse scale, and when the participant wants to respond with the slider's starting position. Thanks @kupiqu! (Allow for less intrusive slider "require movement" behavior? #696)
In the same-different-html and same-different-image plugins, the default values for first_stim_duration and second_stim_duration were changed from 1000 ms to null. This fixes a bug that prevented these parameters from being set to null. Thanks @dschreij! (Documentation of (at least) same-different-html appears out of date. #755)
jsPsych.randomization.repeat() now fails gracefully when the items and repetitions parameters are ambiguous. Thanks @Hrcn ! (Variable name error? #667)
The website's tutorials and the library's example HTML files no longer include the unnecessary closing link tag (</link>) after loading the default CSS file. Thanks @vijaymarupudi! (Removed closing </link> tag #721)
The audio-button-response plugin now calculates RTs based on the WebAudio clock when WebAudio is used, which is consistent with the other audio-* plugins.
The text was updated successfully, but these errors were encountered:
Note from @jodeleeuw: 6.2 is our first release that is made possible by support from a grant by Mozilla Open Source Support (MOSS). This award has allowed @becky-gilbert to join the team, and she has been essential to all of the work reflected here. So: thanks Mozilla, and thanks @becky-gilbert!
New Features
page_label
parameter that allows you to change the default "Page" text when showing the page number/total. This provides better support for non-English languages. Thanks @GEJ1! (Instructions plugin changes #1081, instructions plugin can't display 'Page' in another language / show_page_number' does not appear in the documentation #1082)autocomplete
parameter. Thanks @chrisbrickhouse! (Default to autocomplete=off on form plugins, with parameter to turn on #1064, survey-*: stop autocomplete add param to enable #1073)autofocus
parameter that allows you to specify the ID of the form field that you want the page to focus on when the trial loads. Thanks @chrisbrickhouse and @grocio! (survey-html-form: add autofocus parameter #1072, Can't set focus on input for survey-html-form #1062, Disable autocompletion of text forms #669, Disabled autocompletion of text form (issue #669) #671)minimum_valid_rt
parameter injsPsych.init
. This is useful for automatically ignoring key presses that are unreasonably fast. Thanks @andytwoods! (Merges minimum valid RT changes into master #1139, minimum_valid_rt #546, In rare cases, extremely fast RTs in RT task #542)response_allowed_while_playing
parameter. If false, the participant will not be able to respond until the media has finished playing. Before then, keyboard responses will be ignored, and buttons/sliders will be visible but disabled. (Add option to prevent response before media ends in audio-*/video-* plugins #1137, Add response_allowed_while_playing parameter to audio/video plugins - fixes #1137 #1145)render_on_canvas
parameter to fix the problem with brief blank screens (white flashes) between consecutive images/trials in Firefox and Edge. Settingrender_on_canvas
to true fixes this problem, and setting it to false presents the image(s) in an img element, as before. (Images don't present consecutively in jspsych-animation (for firefox only) #891 Present images conseuctively (no white flash) #969, add render_on_canvas option, fix maintain_aspect_ratio - #891 #969 #1172 #1174)override_safe_mode
parameter injsPsych.init
. For more info about CORS errors and safe mode, see https://www.jspsych.org/overview/running-experiments/#offline.Changes
slider_start
(for consistency with video-slider-response plugin, wherestart
refers to the video start time). The slider's starting value is now stored in the trial data, which is useful if the researcher is randomizing the slider's starting value. (Inconsistency in *-slider-response parameter names #1060, systematically saving stimulus and slider start position in all slider plugins #736)require_movement
istrue
in the *-slider-response plugins, the user will be allowed to continue after clicking on the cursor (rather than having to move the cursor and release it). This makes the sliders more user-friendly, especially when using a discrete/sparse scale, and when the participant wants to respond with the slider's starting position. Thanks @kupiqu! (Allow for less intrusive slider "require movement" behavior? #696)first_stim_duration
andsecond_stim_duration
were changed from 1000 ms tonull
. This fixes a bug that prevented these parameters from being set tonull
. Thanks @dschreij! (Documentation of (at least) same-different-html appears out of date. #755)render_on_canvas
to false will present the image(s) in an img element, as in previous versions of these plugins. (Images don't present consecutively in jspsych-animation (for firefox only) #891 Present images conseuctively (no white flash) #969, add render_on_canvas option, fix maintain_aspect_ratio - #891 #969 #1172 #1174)stimulus
rather thansources
, for consistency with other plugins. (video-* plugins: stim parameter name change and tests #1261, Fix stimulus parameter naming in video response plugins #1171)Bug Fixes
fixation_cross_color
parameter. Thanks @cthorey and @lukasshannon! ([FIX] fixation_cross_color in the rdk plugin #643 jspsych-rdk fixation_cross_color not functional #1217)jsPsych.randomization.shuffleNoRepeats()
(Incorrect warning message in jsPsych.randomization.shuffleNoRepeats #659)jsPsych.randomization.repeat()
now fails gracefully when theitems
andrepetitions
parameters are ambiguous. Thanks @Hrcn ! (Variable name error? #667)start
andslider_start
parameters now work as expected in the video-slider-response plugin. Thanks @vijaymarupudi! (video-slider-response plugin: start and slider_start parameters not working #713, slider_start and video duplicate id fixes. #714)</link>
) after loading the default CSS file. Thanks @vijaymarupudi! (Removed closing </link> tag #721)jsPsych.addNodeToEndOfTimeline
no longer produces an error when the optional callback function is omitted. Thanks @oliveralonzo, @bjmeagher, and @vijaymarupudi! (callback not optional on jsPsych.addNodeToEndOfTimeline function #688, jsPsych.addNodeToEndOfTimeline() bug #918, Fixed undefined type check with typo #690).first
and.last
functions now handle the case where then
argument is greater than the total number of trials in the collection, and they throw a descriptive error whenn
is zero or negative. Thanks @aridyckovsky! (Graceful failure on DataCollection.first and .last #976, data.last(n) should gracefully fail is n > total data size #751)response_ends_trial: false
) and no trial duration is set (trial_duration: null
). Thanks @chrisbrickhouse and @celstark! (Deadlock possible in image-keyboard-response or image-button-response #1014, Warn about possible deadlock per #1014 #1028)npm install
compatibility. Thanks @aridyckovsky! (Update package.json to reflect organization #971)timeline
parameter is empty injsPsych.init()
(throw a useful error message when the timeline is empty #853)jsPsych.init()
will now delay execution until the document is fully loaded (Delayinit()
execution until the document is ready #948). This fixes an issue where jsPsych would create two sets of<body>
tags on the document if none existed in the markup (fix duplicate body tags #316). Thanks @bjoluc!experiment_width
property is set injsPsych.init()
. (Preloading progress bar not centered when experiment_width property is set in jsPsych.init #1160)start
time is specified, then the first frame of the video is no longer briefly visible when the trial first loads. (non-zero video start time causes video to jump in Firefox #712, Fix FF video issue with non-zero start time - fixes #712 #1162)maintain_aspect_ratio
parameter now works as intended: when only one image dimension is specified andmaintain_aspect_ratio
is false, the unspecified dimension will be the image's original dimension, and the image will stretch or compress accordingly. (add render_on_canvas option, fix maintain_aspect_ratio - #891 #969 #1172 #1174, maintain_aspect_ratio parameter not working in image-* plugins #1172)The text was updated successfully, but these errors were encountered: