🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@jspsych/plugin-image-keyboard-response

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspsych/plugin-image-keyboard-response - npm Package Compare versions

Comparing version

to
2.1.0

87

dist/index.browser.js
var jsPsychImageKeyboardResponse = (function (jspsych) {
'use strict';
var _package = {
name: "@jspsych/plugin-image-keyboard-response",
version: "2.0.0",
description: "jsPsych plugin for displaying a stimulus and getting a keyboard response",
type: "module",
main: "dist/index.cjs",
exports: {
import: "./dist/index.js",
require: "./dist/index.cjs"
},
typings: "dist/index.d.ts",
unpkg: "dist/index.browser.min.js",
files: [
"src",
"dist"
],
source: "src/index.ts",
scripts: {
test: "jest",
"test:watch": "npm test -- --watch",
tsc: "tsc",
build: "rollup --config",
"build:watch": "npm run build -- --watch"
},
repository: {
type: "git",
url: "git+https://github.com/jspsych/jsPsych.git",
directory: "packages/plugin-image-keyboard-response"
},
author: "Josh de Leeuw",
license: "MIT",
bugs: {
url: "https://github.com/jspsych/jsPsych/issues"
},
homepage: "https://www.jspsych.org/latest/plugins/image-keyboard-response",
peerDependencies: {
jspsych: ">=7.1.0"
},
devDependencies: {
"@jspsych/config": "^3.0.0",
"@jspsych/test-utils": "^1.2.0"
}
};
var version = "2.1.0";
const info = {
name: "image-keyboard-response",
version: _package.version,
version,
parameters: {
/** The path of the image file to be displayed. */
stimulus: {

@@ -56,2 +15,3 @@ type: jspsych.ParameterType.IMAGE,

},
/** Set the height of the image in pixels. If left null (no value specified), then the image will display at its natural height. */
stimulus_height: {

@@ -61,2 +21,3 @@ type: jspsych.ParameterType.INT,

},
/** Set the width of the image in pixels. If left null (no value specified), then the image will display at its natural width. */
stimulus_width: {

@@ -66,2 +27,4 @@ type: jspsych.ParameterType.INT,

},
/** If setting *only* the width or *only* the height and this parameter is true, then the other dimension will be scaled
* to maintain the image's aspect ratio. */
maintain_aspect_ratio: {

@@ -71,2 +34,8 @@ type: jspsych.ParameterType.BOOL,

},
/**his array contains the key(s) that the participant is allowed to press in order to respond to the stimulus. Keys should
* be specified as characters (e.g., `'a'`, `'q'`, `' '`, `'Enter'`, `'ArrowDown'`) - see
* [this page](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values) and
* [this page (event.key column)](https://www.freecodecamp.org/news/javascript-keycode-list-keypress-event-key-codes/)
* for more examples. Any key presses that are not listed in the array will be ignored. The default value of `"ALL_KEYS"`
* means that all keys will be accepted as valid responses. Specifying `"NO_KEYS"` will mean that no responses are allowed. */
choices: {

@@ -76,2 +45,4 @@ type: jspsych.ParameterType.KEYS,

},
/**This string can contain HTML markup. Any content here will be displayed below the stimulus. The intention is that it can
* be used to provide a reminder about the action the participant is supposed to take (e.g., which key to press). */
prompt: {

@@ -81,2 +52,4 @@ type: jspsych.ParameterType.HTML_STRING,

},
/** How long to show the stimulus for in milliseconds. If the value is `null`, then the stimulus will be shown until the
* participant makes a response. */
stimulus_duration: {

@@ -86,2 +59,5 @@ type: jspsych.ParameterType.INT,

},
/** How long to wait for the participant to make a response before ending the trial in milliseconds. If the participant
* fails to make a response before this timer is reached, the participant's response will be recorded as null for the
* trial and the trial will end. If the value of this parameter is `null`, then the trial will wait for a response indefinitely. */
trial_duration: {

@@ -91,2 +67,6 @@ type: jspsych.ParameterType.INT,

},
/** If true, then the trial will end whenever the participant makes a response (assuming they make their response before
* the cutoff specified by the `trial_duration` parameter). If false, then the trial will continue until the value for
* `trial_duration` is reached. You can set this parameter to `false` to force the participant to view a stimulus for a
* fixed amount of time, even if they respond before the time is complete. */
response_ends_trial: {

@@ -96,2 +76,6 @@ type: jspsych.ParameterType.BOOL,

},
/**
* If `true`, the image will be drawn onto a canvas element. This prevents a blank screen (white flash) between consecutive image trials in some browsers, like Firefox and Edge.
* If `false`, the image will be shown via an img element, as in previous versions of jsPsych. If the stimulus is an **animated gif**, you must set this parameter to false, because the canvas rendering method will only present static images.
*/
render_on_canvas: {

@@ -103,11 +87,20 @@ type: jspsych.ParameterType.BOOL,

data: {
/** The path of the image that was displayed. */
stimulus: {
type: jspsych.ParameterType.STRING
},
/** Indicates which key the participant pressed. */
response: {
type: jspsych.ParameterType.STRING
},
/** The response time in milliseconds for the participant to make a response. The time is measured from when the stimulus
* first appears on the screen until the participant's response. */
rt: {
type: jspsych.ParameterType.INT
}
},
// prettier-ignore
citations: {
"apa": "de Leeuw, J. R., Gilbert, R. A., & Luchterhandt, B. (2023). jsPsych: Enabling an Open-Source Collaborative Ecosystem of Behavioral Experiments. Journal of Open Source Software, 8(85), 5351. https://doi.org/10.21105/joss.05351 ",
"bibtex": '@article{Leeuw2023jsPsych, author = {de Leeuw, Joshua R. and Gilbert, Rebecca A. and Luchterhandt, Bj{\\" o}rn}, journal = {Journal of Open Source Software}, doi = {10.21105/joss.05351}, issn = {2475-9066}, number = {85}, year = {2023}, month = {may 11}, pages = {5351}, publisher = {Open Journals}, title = {jsPsych: Enabling an {Open}-{Source} {Collaborative} {Ecosystem} of {Behavioral} {Experiments}}, url = {https://joss.theoj.org/papers/10.21105/joss.05351}, volume = {8}, } '
}

@@ -119,3 +112,5 @@ };

}
static info = info;
static {
this.info = info;
}
trial(display_element, trial) {

@@ -287,2 +282,2 @@ var height, width;

})(jsPsychModule);
//# sourceMappingURL=https://unpkg.com/@jspsych/plugin-image-keyboard-response@2.0.0/dist/index.browser.js.map
//# sourceMappingURL=https://unpkg.com/@jspsych/plugin-image-keyboard-response@2.1.0/dist/index.browser.js.map

@@ -1,2 +0,2 @@

var jsPsychImageKeyboardResponse=function(r){"use strict";var y={name:"@jspsych/plugin-image-keyboard-response",version:"2.0.0",description:"jsPsych plugin for displaying a stimulus and getting a keyboard response",type:"module",main:"dist/index.cjs",exports:{import:"./dist/index.js",require:"./dist/index.cjs"},typings:"dist/index.d.ts",unpkg:"dist/index.browser.min.js",files:["src","dist"],source:"src/index.ts",scripts:{test:"jest","test:watch":"npm test -- --watch",tsc:"tsc",build:"rollup --config","build:watch":"npm run build -- --watch"},repository:{type:"git",url:"git+https://github.com/jspsych/jsPsych.git",directory:"packages/plugin-image-keyboard-response"},author:"Josh de Leeuw",license:"MIT",bugs:{url:"https://github.com/jspsych/jsPsych/issues"},homepage:"https://www.jspsych.org/latest/plugins/image-keyboard-response",peerDependencies:{jspsych:">=7.1.0"},devDependencies:{"@jspsych/config":"^3.0.0","@jspsych/test-utils":"^1.2.0"}};const _={name:"image-keyboard-response",version:y.version,parameters:{stimulus:{type:r.ParameterType.IMAGE,default:void 0},stimulus_height:{type:r.ParameterType.INT,default:null},stimulus_width:{type:r.ParameterType.INT,default:null},maintain_aspect_ratio:{type:r.ParameterType.BOOL,default:!0},choices:{type:r.ParameterType.KEYS,default:"ALL_KEYS"},prompt:{type:r.ParameterType.HTML_STRING,default:null},stimulus_duration:{type:r.ParameterType.INT,default:null},trial_duration:{type:r.ParameterType.INT,default:null},response_ends_trial:{type:r.ParameterType.BOOL,default:!0},render_on_canvas:{type:r.ParameterType.BOOL,default:!0}},data:{stimulus:{type:r.ParameterType.STRING},response:{type:r.ParameterType.STRING},rt:{type:r.ParameterType.INT}}};class m{constructor(e){this.jsPsych=e}trial(e,t){var s,i;if(t.render_on_canvas){var u=!1;if(e.hasChildNodes())for(;e.firstChild;)e.removeChild(e.firstChild);var l=document.createElement("canvas");l.id="jspsych-image-keyboard-response-stimulus",l.style.margin="0",l.style.padding="0";var d=l.getContext("2d"),a=new Image;a.onload=()=>{u||(n(),d.drawImage(a,0,0,i,s))},a.src=t.stimulus;const n=()=>{t.stimulus_height!==null?(s=t.stimulus_height,t.stimulus_width==null&&t.maintain_aspect_ratio&&(i=a.naturalWidth*(t.stimulus_height/a.naturalHeight))):s=a.naturalHeight,t.stimulus_width!==null?(i=t.stimulus_width,t.stimulus_height==null&&t.maintain_aspect_ratio&&(s=a.naturalHeight*(t.stimulus_width/a.naturalWidth))):t.stimulus_height!==null&&t.maintain_aspect_ratio||(i=a.naturalWidth),l.height=s,l.width=i};n(),e.insertBefore(l,null),a.complete&&Number.isFinite(i)&&Number.isFinite(s)&&(d.drawImage(a,0,0,i,s),u=!0),t.prompt!==null&&e.insertAdjacentHTML("beforeend",t.prompt)}else{var p='<img src="'+t.stimulus+'" id="jspsych-image-keyboard-response-stimulus">';t.prompt!==null&&(p+=t.prompt),e.innerHTML=p;var a=e.querySelector("#jspsych-image-keyboard-response-stimulus");t.stimulus_height!==null?(s=t.stimulus_height,t.stimulus_width==null&&t.maintain_aspect_ratio&&(i=a.naturalWidth*(t.stimulus_height/a.naturalHeight))):s=a.naturalHeight,t.stimulus_width!==null?(i=t.stimulus_width,t.stimulus_height==null&&t.maintain_aspect_ratio&&(s=a.naturalHeight*(t.stimulus_width/a.naturalWidth))):t.stimulus_height!==null&&t.maintain_aspect_ratio||(i=a.naturalWidth),a.style.height=s.toString()+"px",a.style.width=i.toString()+"px"}var o={rt:null,key:null};const h=()=>{typeof c!="undefined"&&this.jsPsych.pluginAPI.cancelKeyboardResponse(c);var n={rt:o.rt,stimulus:t.stimulus,response:o.key};this.jsPsych.finishTrial(n)};var g=n=>{e.querySelector("#jspsych-image-keyboard-response-stimulus").className+=" responded",o.key==null&&(o=n),t.response_ends_trial&&h()};if(t.choices!="NO_KEYS")var c=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:g,valid_responses:t.choices,rt_method:"performance",persist:!1,allow_held_key:!1});t.stimulus_duration!==null&&this.jsPsych.pluginAPI.setTimeout(()=>{e.querySelector("#jspsych-image-keyboard-response-stimulus").style.visibility="hidden"},t.stimulus_duration),t.trial_duration!==null?this.jsPsych.pluginAPI.setTimeout(()=>{h()},t.trial_duration):t.response_ends_trial===!1&&console.warn("The experiment may be deadlocked. Try setting a trial duration or set response_ends_trial to true.")}simulate(e,t,s,i){t=="data-only"&&(i(),this.simulate_data_only(e,s)),t=="visual"&&this.simulate_visual(e,s,i)}simulate_data_only(e,t){const s=this.create_simulation_data(e,t);this.jsPsych.finishTrial(s)}simulate_visual(e,t,s){const i=this.create_simulation_data(e,t),u=this.jsPsych.getDisplayElement();this.trial(u,e),s(),i.rt!==null&&this.jsPsych.pluginAPI.pressKey(i.response,i.rt)}create_simulation_data(e,t){const s={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,.006666666666666667,!0),response:this.jsPsych.pluginAPI.getValidKey(e.choices)},i=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}}return m.info=_,m}(jsPsychModule);
//# sourceMappingURL=https://unpkg.com/@jspsych/plugin-image-keyboard-response@2.0.0/dist/index.browser.min.js.map
var jsPsychImageKeyboardResponse=function(r){"use strict";var y="2.1.0";const _={name:"image-keyboard-response",version:y,parameters:{stimulus:{type:r.ParameterType.IMAGE,default:void 0},stimulus_height:{type:r.ParameterType.INT,default:null},stimulus_width:{type:r.ParameterType.INT,default:null},maintain_aspect_ratio:{type:r.ParameterType.BOOL,default:!0},choices:{type:r.ParameterType.KEYS,default:"ALL_KEYS"},prompt:{type:r.ParameterType.HTML_STRING,default:null},stimulus_duration:{type:r.ParameterType.INT,default:null},trial_duration:{type:r.ParameterType.INT,default:null},response_ends_trial:{type:r.ParameterType.BOOL,default:!0},render_on_canvas:{type:r.ParameterType.BOOL,default:!0}},data:{stimulus:{type:r.ParameterType.STRING},response:{type:r.ParameterType.STRING},rt:{type:r.ParameterType.INT}},citations:{apa:"de Leeuw, J. R., Gilbert, R. A., & Luchterhandt, B. (2023). jsPsych: Enabling an Open-Source Collaborative Ecosystem of Behavioral Experiments. Journal of Open Source Software, 8(85), 5351. https://doi.org/10.21105/joss.05351 ",bibtex:'@article{Leeuw2023jsPsych, author = {de Leeuw, Joshua R. and Gilbert, Rebecca A. and Luchterhandt, Bj{\\" o}rn}, journal = {Journal of Open Source Software}, doi = {10.21105/joss.05351}, issn = {2475-9066}, number = {85}, year = {2023}, month = {may 11}, pages = {5351}, publisher = {Open Journals}, title = {jsPsych: Enabling an {Open}-{Source} {Collaborative} {Ecosystem} of {Behavioral} {Experiments}}, url = {https://joss.theoj.org/papers/10.21105/joss.05351}, volume = {8}, } '}};class m{constructor(e){this.jsPsych=e}trial(e,t){var s,i;if(t.render_on_canvas){var u=!1;if(e.hasChildNodes())for(;e.firstChild;)e.removeChild(e.firstChild);var l=document.createElement("canvas");l.id="jspsych-image-keyboard-response-stimulus",l.style.margin="0",l.style.padding="0";var h=l.getContext("2d"),a=new Image;a.onload=()=>{u||(n(),h.drawImage(a,0,0,i,s))},a.src=t.stimulus;const n=()=>{t.stimulus_height!==null?(s=t.stimulus_height,t.stimulus_width==null&&t.maintain_aspect_ratio&&(i=a.naturalWidth*(t.stimulus_height/a.naturalHeight))):s=a.naturalHeight,t.stimulus_width!==null?(i=t.stimulus_width,t.stimulus_height==null&&t.maintain_aspect_ratio&&(s=a.naturalHeight*(t.stimulus_width/a.naturalWidth))):t.stimulus_height!==null&&t.maintain_aspect_ratio||(i=a.naturalWidth),l.height=s,l.width=i};n(),e.insertBefore(l,null),a.complete&&Number.isFinite(i)&&Number.isFinite(s)&&(h.drawImage(a,0,0,i,s),u=!0),t.prompt!==null&&e.insertAdjacentHTML("beforeend",t.prompt)}else{var d='<img src="'+t.stimulus+'" id="jspsych-image-keyboard-response-stimulus">';t.prompt!==null&&(d+=t.prompt),e.innerHTML=d;var a=e.querySelector("#jspsych-image-keyboard-response-stimulus");t.stimulus_height!==null?(s=t.stimulus_height,t.stimulus_width==null&&t.maintain_aspect_ratio&&(i=a.naturalWidth*(t.stimulus_height/a.naturalHeight))):s=a.naturalHeight,t.stimulus_width!==null?(i=t.stimulus_width,t.stimulus_height==null&&t.maintain_aspect_ratio&&(s=a.naturalHeight*(t.stimulus_width/a.naturalWidth))):t.stimulus_height!==null&&t.maintain_aspect_ratio||(i=a.naturalWidth),a.style.height=s.toString()+"px",a.style.width=i.toString()+"px"}var o={rt:null,key:null};const p=()=>{typeof c!="undefined"&&this.jsPsych.pluginAPI.cancelKeyboardResponse(c);var n={rt:o.rt,stimulus:t.stimulus,response:o.key};this.jsPsych.finishTrial(n)};var g=n=>{e.querySelector("#jspsych-image-keyboard-response-stimulus").className+=" responded",o.key==null&&(o=n),t.response_ends_trial&&p()};if(t.choices!="NO_KEYS")var c=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:g,valid_responses:t.choices,rt_method:"performance",persist:!1,allow_held_key:!1});t.stimulus_duration!==null&&this.jsPsych.pluginAPI.setTimeout(()=>{e.querySelector("#jspsych-image-keyboard-response-stimulus").style.visibility="hidden"},t.stimulus_duration),t.trial_duration!==null?this.jsPsych.pluginAPI.setTimeout(()=>{p()},t.trial_duration):t.response_ends_trial===!1&&console.warn("The experiment may be deadlocked. Try setting a trial duration or set response_ends_trial to true.")}simulate(e,t,s,i){t=="data-only"&&(i(),this.simulate_data_only(e,s)),t=="visual"&&this.simulate_visual(e,s,i)}simulate_data_only(e,t){const s=this.create_simulation_data(e,t);this.jsPsych.finishTrial(s)}simulate_visual(e,t,s){const i=this.create_simulation_data(e,t),u=this.jsPsych.getDisplayElement();this.trial(u,e),s(),i.rt!==null&&this.jsPsych.pluginAPI.pressKey(i.response,i.rt)}create_simulation_data(e,t){const s={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,.006666666666666667,!0),response:this.jsPsych.pluginAPI.getValidKey(e.choices)},i=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}}return m.info=_,m}(jsPsychModule);
//# sourceMappingURL=https://unpkg.com/@jspsych/plugin-image-keyboard-response@2.1.0/dist/index.browser.min.js.map

@@ -89,2 +89,3 @@ import { JsPsychPlugin, ParameterType, JsPsych, TrialType } from 'jspsych';

};
readonly citations: "__CITATIONS__";
};

@@ -192,2 +193,3 @@ type Info = typeof info;

};
readonly citations: "__CITATIONS__";
};

@@ -194,0 +196,0 @@ constructor(jsPsych: JsPsych);

import { ParameterType } from 'jspsych';
var _package = {
name: "@jspsych/plugin-image-keyboard-response",
version: "2.0.0",
description: "jsPsych plugin for displaying a stimulus and getting a keyboard response",
type: "module",
main: "dist/index.cjs",
exports: {
import: "./dist/index.js",
require: "./dist/index.cjs"
},
typings: "dist/index.d.ts",
unpkg: "dist/index.browser.min.js",
files: [
"src",
"dist"
],
source: "src/index.ts",
scripts: {
test: "jest",
"test:watch": "npm test -- --watch",
tsc: "tsc",
build: "rollup --config",
"build:watch": "npm run build -- --watch"
},
repository: {
type: "git",
url: "git+https://github.com/jspsych/jsPsych.git",
directory: "packages/plugin-image-keyboard-response"
},
author: "Josh de Leeuw",
license: "MIT",
bugs: {
url: "https://github.com/jspsych/jsPsych/issues"
},
homepage: "https://www.jspsych.org/latest/plugins/image-keyboard-response",
peerDependencies: {
jspsych: ">=7.1.0"
},
devDependencies: {
"@jspsych/config": "^3.0.0",
"@jspsych/test-utils": "^1.2.0"
}
};
var version = "2.1.0";
const info = {
name: "image-keyboard-response",
version: _package.version,
version,
parameters: {
/** The path of the image file to be displayed. */
stimulus: {

@@ -55,2 +14,3 @@ type: ParameterType.IMAGE,

},
/** Set the height of the image in pixels. If left null (no value specified), then the image will display at its natural height. */
stimulus_height: {

@@ -60,2 +20,3 @@ type: ParameterType.INT,

},
/** Set the width of the image in pixels. If left null (no value specified), then the image will display at its natural width. */
stimulus_width: {

@@ -65,2 +26,4 @@ type: ParameterType.INT,

},
/** If setting *only* the width or *only* the height and this parameter is true, then the other dimension will be scaled
* to maintain the image's aspect ratio. */
maintain_aspect_ratio: {

@@ -70,2 +33,8 @@ type: ParameterType.BOOL,

},
/**his array contains the key(s) that the participant is allowed to press in order to respond to the stimulus. Keys should
* be specified as characters (e.g., `'a'`, `'q'`, `' '`, `'Enter'`, `'ArrowDown'`) - see
* [this page](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values) and
* [this page (event.key column)](https://www.freecodecamp.org/news/javascript-keycode-list-keypress-event-key-codes/)
* for more examples. Any key presses that are not listed in the array will be ignored. The default value of `"ALL_KEYS"`
* means that all keys will be accepted as valid responses. Specifying `"NO_KEYS"` will mean that no responses are allowed. */
choices: {

@@ -75,2 +44,4 @@ type: ParameterType.KEYS,

},
/**This string can contain HTML markup. Any content here will be displayed below the stimulus. The intention is that it can
* be used to provide a reminder about the action the participant is supposed to take (e.g., which key to press). */
prompt: {

@@ -80,2 +51,4 @@ type: ParameterType.HTML_STRING,

},
/** How long to show the stimulus for in milliseconds. If the value is `null`, then the stimulus will be shown until the
* participant makes a response. */
stimulus_duration: {

@@ -85,2 +58,5 @@ type: ParameterType.INT,

},
/** How long to wait for the participant to make a response before ending the trial in milliseconds. If the participant
* fails to make a response before this timer is reached, the participant's response will be recorded as null for the
* trial and the trial will end. If the value of this parameter is `null`, then the trial will wait for a response indefinitely. */
trial_duration: {

@@ -90,2 +66,6 @@ type: ParameterType.INT,

},
/** If true, then the trial will end whenever the participant makes a response (assuming they make their response before
* the cutoff specified by the `trial_duration` parameter). If false, then the trial will continue until the value for
* `trial_duration` is reached. You can set this parameter to `false` to force the participant to view a stimulus for a
* fixed amount of time, even if they respond before the time is complete. */
response_ends_trial: {

@@ -95,2 +75,6 @@ type: ParameterType.BOOL,

},
/**
* If `true`, the image will be drawn onto a canvas element. This prevents a blank screen (white flash) between consecutive image trials in some browsers, like Firefox and Edge.
* If `false`, the image will be shown via an img element, as in previous versions of jsPsych. If the stimulus is an **animated gif**, you must set this parameter to false, because the canvas rendering method will only present static images.
*/
render_on_canvas: {

@@ -102,11 +86,20 @@ type: ParameterType.BOOL,

data: {
/** The path of the image that was displayed. */
stimulus: {
type: ParameterType.STRING
},
/** Indicates which key the participant pressed. */
response: {
type: ParameterType.STRING
},
/** The response time in milliseconds for the participant to make a response. The time is measured from when the stimulus
* first appears on the screen until the participant's response. */
rt: {
type: ParameterType.INT
}
},
// prettier-ignore
citations: {
"apa": "de Leeuw, J. R., Gilbert, R. A., & Luchterhandt, B. (2023). jsPsych: Enabling an Open-Source Collaborative Ecosystem of Behavioral Experiments. Journal of Open Source Software, 8(85), 5351. https://doi.org/10.21105/joss.05351 ",
"bibtex": '@article{Leeuw2023jsPsych, author = {de Leeuw, Joshua R. and Gilbert, Rebecca A. and Luchterhandt, Bj{\\" o}rn}, journal = {Journal of Open Source Software}, doi = {10.21105/joss.05351}, issn = {2475-9066}, number = {85}, year = {2023}, month = {may 11}, pages = {5351}, publisher = {Open Journals}, title = {jsPsych: Enabling an {Open}-{Source} {Collaborative} {Ecosystem} of {Behavioral} {Experiments}}, url = {https://joss.theoj.org/papers/10.21105/joss.05351}, volume = {8}, } '
}

@@ -118,2 +111,5 @@ };

}
static {
this.info = info;
}
trial(display_element, trial) {

@@ -281,5 +277,4 @@ var height, width;

}
ImageKeyboardResponsePlugin.info = info;
export { ImageKeyboardResponsePlugin as default };
//# sourceMappingURL=index.js.map
{
"name": "@jspsych/plugin-image-keyboard-response",
"version": "2.0.0",
"version": "2.1.0",
"description": "jsPsych plugin for displaying a stimulus and getting a keyboard response",

@@ -40,5 +40,5 @@ "type": "module",

"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.2.0",
"@jspsych/test-utils": "^1.2.0"
}
}

@@ -91,2 +91,4 @@ import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

},
// prettier-ignore
citations: '__CITATIONS__',
};

@@ -93,0 +95,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet