@m2c2kit/assessment-color-shapes 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,6 +133,11 @@ class ColorShapes extends Game {
|
|
|
133
133
|
format: "date-time",
|
|
134
134
|
description: "ISO 8601 timestamp at the beginning of the trial. Null if trial was skipped."
|
|
135
135
|
},
|
|
136
|
+
trial_end_iso8601_timestamp: {
|
|
137
|
+
type: ["string", "null"],
|
|
138
|
+
format: "date-time",
|
|
139
|
+
description: "ISO 8601 timestamp at the end of the trial (when user presses 'Same' or 'Different'). Null if trial was skipped."
|
|
140
|
+
},
|
|
136
141
|
trial_index: {
|
|
137
142
|
type: ["integer", "null"],
|
|
138
143
|
description: "Index of the trial within this assessment, 0-based."
|
|
@@ -238,7 +243,7 @@ class ColorShapes extends Game {
|
|
|
238
243
|
const options = {
|
|
239
244
|
name: "Color Shapes",
|
|
240
245
|
id: "color-shapes",
|
|
241
|
-
version: "0.8.
|
|
246
|
+
version: "0.8.8",
|
|
242
247
|
shortDescription: "Color Shapes is a visual array change detection task, measuring intra-item feature binding, where participants determine if shapes change color across two sequential presentations of shape stimuli.",
|
|
243
248
|
longDescription: `Color Shapes is a change detection paradigm used to measure visual short-term memory binding (Parra et al., 2009). Participants are asked to memorize the shapes and colors of three different polygons for 3 seconds. The three polygons are then removed from the screen and re-displayed at different locations, either having the same or different colors. Participants are then asked to decide whether the combination of colors and shapes are the "Same" or "Different" between the study and test phases.`,
|
|
244
249
|
showFps: defaultParameters.show_fps.default,
|
|
@@ -660,6 +665,10 @@ class ColorShapes extends Game {
|
|
|
660
665
|
const rt = Timer.elapsed("rt");
|
|
661
666
|
Timer.remove("rt");
|
|
662
667
|
responseGrid.removeAllChildren();
|
|
668
|
+
game.addTrialData(
|
|
669
|
+
"trial_end_iso8601_timestamp",
|
|
670
|
+
(/* @__PURE__ */ new Date()).toISOString()
|
|
671
|
+
);
|
|
663
672
|
const trialConfiguration = trialConfigurations[game.trialIndex];
|
|
664
673
|
game.addTrialData("response_time_duration_ms", rt);
|
|
665
674
|
game.addTrialData(
|