@m2c2kit/assessment-color-shapes 0.8.5 → 0.8.7
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.d.ts +1 -1
- package/dist/index.js +5 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -238,7 +238,7 @@ class ColorShapes extends Game {
|
|
|
238
238
|
const options = {
|
|
239
239
|
name: "Color Shapes",
|
|
240
240
|
id: "color-shapes",
|
|
241
|
-
version: "0.8.
|
|
241
|
+
version: "0.8.7",
|
|
242
242
|
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
243
|
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
244
|
showFps: defaultParameters.show_fps.default,
|
|
@@ -283,9 +283,9 @@ class ColorShapes extends Game {
|
|
|
283
283
|
};
|
|
284
284
|
super(options);
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
initialize() {
|
|
287
287
|
return __async(this, null, function* () {
|
|
288
|
-
yield __superGet(ColorShapes.prototype, this, "
|
|
288
|
+
yield __superGet(ColorShapes.prototype, this, "initialize").call(this);
|
|
289
289
|
const game = this;
|
|
290
290
|
const SHAPE_SVG_HEIGHT = 96;
|
|
291
291
|
const SQUARE_SIDE_LENGTH = 350;
|
|
@@ -572,6 +572,7 @@ class ColorShapes extends Game {
|
|
|
572
572
|
for (let i = 0; i < trialConfiguration.presentShapes.length; i++) {
|
|
573
573
|
const presentShape = trialConfiguration.presentShapes[i].shape;
|
|
574
574
|
presentShape.fillColor = trialConfiguration.presentShapes[i].color;
|
|
575
|
+
presentShape.position = { x: 0, y: 0 };
|
|
575
576
|
presentationGrid.addAtCell(
|
|
576
577
|
presentShape,
|
|
577
578
|
trialConfiguration.presentShapes[i].location.row,
|
|
@@ -624,6 +625,7 @@ class ColorShapes extends Game {
|
|
|
624
625
|
for (let i = 0; i < trialConfiguration.responseShapes.length; i++) {
|
|
625
626
|
const responseShape = trialConfiguration.responseShapes[i].shape;
|
|
626
627
|
responseShape.fillColor = trialConfiguration.responseShapes[i].color;
|
|
628
|
+
responseShape.position = { x: 0, y: 0 };
|
|
627
629
|
responseGrid.addAtCell(
|
|
628
630
|
responseShape,
|
|
629
631
|
trialConfiguration.responseShapes[i].location.row,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m2c2kit/assessment-color-shapes",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run clean && tsc && rollup -c",
|
|
6
6
|
"clean": "rimraf build build-nobundler dist .rollup.cache tsconfig.tsbuildinfo"
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@m2c2kit/core": "^0.3.6"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@rollup/plugin-node-resolve": "15.0
|
|
25
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
26
26
|
"@rollup/plugin-replace": "5.0.2",
|
|
27
|
-
"rimraf": "5.0.
|
|
28
|
-
"rollup": "3.
|
|
27
|
+
"rimraf": "5.0.1",
|
|
28
|
+
"rollup": "3.21.0",
|
|
29
29
|
"rollup-plugin-copy": "3.4.0",
|
|
30
30
|
"rollup-plugin-esbuild": "5.0.0",
|
|
31
|
-
"typescript": "5.
|
|
31
|
+
"typescript": "5.1.3"
|
|
32
32
|
}
|
|
33
33
|
}
|