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
Drafting release notes here as work on 6.1 progresses
New Features
Added an option to specify an event handler for on_close in jsPsych.init(). This event is triggered when the user leaves the page. It can be used to save the data and/or state of the experiment just before the window is closed and the data is lost (add event handler for unload #324).
The various image- plugins now allow for setting the height and width of the image by the parameters stimulus_height and stimulus_width. The parameter maintain_aspect_ratio can be used to automatically resize one dimension when specifying the other (Add options for controlling image dimensions to image-* plugins #560).
The slider plugins now support a parameter called require_movement. When set to true, the continue button is disabled until the slider has been moved (html-slider-response forced slider click #573).
Added jsPsych.randomization.shuffleAlternateGroups() which allows for shuffling based on a group membership, ensuring that items from each group are spaced evenly and in a consistent group order (Provide way to alternate random samples in timeline vars #528).
All the survey plugins now support a name parameter in the questions array. This parameter controls the name of the response in the data, replacing the default of Q0, Q1, etc. (allow custom names for survey data key IDs #608).
Changes
Dropped support for Date.now() as a method for measuring RT. Browser support for performance.now() is now widespread (exclusively use performance.now() #492).
In nested timeline structures, data properties that do not conflict between a nested node and their parent node will now both be added to the data structure. Previously, only the nested node's data was added, even if the data properties were not in conflict (trial level data overwrites timeline data even when props aren't shared #391).
The survey-multi-select plugin required parameter is now specified at the question level to be consistent with other survey plugins. Proper HTML5 form validation is used to display the error message (survey-multi-select plugin not obeying required parameter #629).
Default values were not properly used when the plugin had a nested parameter (e.g., the questions parameter in the various survey-* plugins). Defaults are now used as expected (Default parameters not working for complex parameters #628).
Drafting release notes here as work on 6.1 progresses
New Features
on_close
injsPsych.init()
. This event is triggered when the user leaves the page. It can be used to save the data and/or state of the experiment just before the window is closed and the data is lost (add event handler for unload #324).jsPsych.getProgressBarCompleted()
, which returns the current value of the progress bar. Works for automated and manual control mode of the progress bar (Add a method to get the current value of progress bar #538).required
parameter. (required parameter for survey-text plugin (feature request) #460).data
parameter can now be functions that are evaluated at the start of the trial (Allow functions for individual elements in data parameter #562).video-keyboard-response
,video-button-response
, andvideo-slider-response
. Thanks @designatednerd ! (Create video-* plugins #636; Add video trial requiring a keyboard response #622).randomize_question_order
parameter, which randomly reorders all questions (Option to randomize question order in survey plugins #305).image-
plugins now allow for setting the height and width of the image by the parametersstimulus_height
andstimulus_width
. The parametermaintain_aspect_ratio
can be used to automatically resize one dimension when specifying the other (Add options for controlling image dimensions to image-* plugins #560).require_movement
. When set to true, the continue button is disabled until the slider has been moved (html-slider-response forced slider click #573).slider_width
which can be used to set the width of the slider in pixels (Allow specifying slider width in *-slider plugins #631).jsPsych.randomization.shuffleAlternateGroups()
which allows for shuffling based on a group membership, ensuring that items from each group are spaced evenly and in a consistent group order (Provide way to alternate random samples in timeline vars #528).alternate-groups
option to sampling methods for timeline variables (Provide way to alternate random samples in timeline vars #528).experiment_width
(Provide a parameter to specify the maximum width of the experiment display #635).scale_width
to specify the width of the likert scales in pixels (add parameter to control scale width for likert plugin #633).name
parameter in thequestions
array. This parameter controls the name of the response in the data, replacing the default ofQ0
,Q1
, etc. (allow custom names for survey data key IDs #608).Changes
Date.now()
as a method for measuring RT. Browser support forperformance.now()
is now widespread (exclusively use performance.now() #492)..variance()
and.sd()
now calculate sample variance and standard deviation instead of population variance and standard deviation (.variance() [and therefore .sd()] calculated using N instead of N-1 [Bessel's correction] #601).data
properties that do not conflict between a nested node and their parent node will now both be added to the data structure. Previously, only the nested node's data was added, even if the data properties were not in conflict (trial level data overwrites timeline data even when props aren't shared #391).value
parameter for the survey-text plugin has been replaced withplaceholder
and the text is now used as a proper placeholder attribute (Create proper placeholder text for text fields #627).required
parameter is now specified at the question level to be consistent with other survey plugins. Proper HTML5 form validation is used to display the error message (survey-multi-select plugin not obeying required parameter #629).Bug Fixes
questions
parameter in the varioussurvey-*
plugins). Defaults are now used as expected (Default parameters not working for complex parameters #628).The text was updated successfully, but these errors were encountered: