@m2c2kit/assessment-color-shapes 0.8.8 → 0.8.10
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/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/index.js +10 -10
- package/package.json +18 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Scott T. Yabiku
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @m2c2kit/assessment-color-shapes
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
[](https://github.com/m2c2-project/m2c2kit/actions/workflows/ci.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/@m2c2kit/assessment-color-shapes)
|
|
6
|
+
|
|
7
|
+
This package contains the m2c2kit Color Shapes assessment, which is a visual array change detection task, measuring intra-item feature binding. [Live Demo](https://m2c2-project.github.io/m2c2kit/docs/examples/color-shapes/)
|
|
8
|
+
|
|
9
|
+
**m2c2kit** is a library for cross-platform cognitive assessments. Features:
|
|
10
|
+
|
|
11
|
+
- **Mobile first**. Optimized for touch and mobile devices while also usable on desktops.
|
|
12
|
+
- **Portable**. Use on browsers, compile within native apps using web views, or embed in products like Qualtrics. A shared assessment codebase reduces development time and promotes experiment standardization across devices and services.
|
|
13
|
+
- **Rapid iteration**. Quickly develop and test new assessments with the JavaScript-based library and deploy them in studies.
|
|
14
|
+
|
|
15
|
+
## Resources
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
- [Website](https://m2c2-project.github.io/m2c2kit/)
|
|
20
|
+
- [Live Examples](https://m2c2-project.github.io/m2c2kit/docs/category/examples)
|
|
21
|
+
- [Getting Started](https://m2c2-project.github.io/m2c2kit/docs/getting-started)
|
|
22
|
+
- [Interactive Tutorials](https://m2c2-project.github.io/m2c2kit/docs/category/tutorials)
|
package/dist/index.js
CHANGED
|
@@ -243,7 +243,7 @@ class ColorShapes extends Game {
|
|
|
243
243
|
const options = {
|
|
244
244
|
name: "Color Shapes",
|
|
245
245
|
id: "color-shapes",
|
|
246
|
-
version: "0.8.
|
|
246
|
+
version: "0.8.10 (25099410)",
|
|
247
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.",
|
|
248
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.`,
|
|
249
249
|
showFps: defaultParameters.show_fps.default,
|
|
@@ -741,7 +741,7 @@ class ColorShapes extends Game {
|
|
|
741
741
|
makeShapes(svgHeight, size) {
|
|
742
742
|
const shape01 = new Shape({
|
|
743
743
|
path: {
|
|
744
|
-
|
|
744
|
+
svgPathString: shapeSvgPathStrings[0],
|
|
745
745
|
height: svgHeight
|
|
746
746
|
},
|
|
747
747
|
size,
|
|
@@ -749,7 +749,7 @@ class ColorShapes extends Game {
|
|
|
749
749
|
});
|
|
750
750
|
const shape02 = new Shape({
|
|
751
751
|
path: {
|
|
752
|
-
|
|
752
|
+
svgPathString: shapeSvgPathStrings[1],
|
|
753
753
|
height: svgHeight
|
|
754
754
|
},
|
|
755
755
|
size,
|
|
@@ -757,7 +757,7 @@ class ColorShapes extends Game {
|
|
|
757
757
|
});
|
|
758
758
|
const shape03 = new Shape({
|
|
759
759
|
path: {
|
|
760
|
-
|
|
760
|
+
svgPathString: shapeSvgPathStrings[2],
|
|
761
761
|
height: svgHeight * 0.8
|
|
762
762
|
},
|
|
763
763
|
size,
|
|
@@ -765,7 +765,7 @@ class ColorShapes extends Game {
|
|
|
765
765
|
});
|
|
766
766
|
const shape04 = new Shape({
|
|
767
767
|
path: {
|
|
768
|
-
|
|
768
|
+
svgPathString: shapeSvgPathStrings[3],
|
|
769
769
|
height: svgHeight
|
|
770
770
|
},
|
|
771
771
|
size,
|
|
@@ -773,7 +773,7 @@ class ColorShapes extends Game {
|
|
|
773
773
|
});
|
|
774
774
|
const shape05 = new Shape({
|
|
775
775
|
path: {
|
|
776
|
-
|
|
776
|
+
svgPathString: shapeSvgPathStrings[4],
|
|
777
777
|
height: svgHeight * 0.8
|
|
778
778
|
},
|
|
779
779
|
size,
|
|
@@ -781,7 +781,7 @@ class ColorShapes extends Game {
|
|
|
781
781
|
});
|
|
782
782
|
const shape06 = new Shape({
|
|
783
783
|
path: {
|
|
784
|
-
|
|
784
|
+
svgPathString: shapeSvgPathStrings[5],
|
|
785
785
|
height: svgHeight
|
|
786
786
|
},
|
|
787
787
|
size,
|
|
@@ -789,7 +789,7 @@ class ColorShapes extends Game {
|
|
|
789
789
|
});
|
|
790
790
|
const shape07 = new Shape({
|
|
791
791
|
path: {
|
|
792
|
-
|
|
792
|
+
svgPathString: shapeSvgPathStrings[6],
|
|
793
793
|
height: svgHeight
|
|
794
794
|
},
|
|
795
795
|
size,
|
|
@@ -797,7 +797,7 @@ class ColorShapes extends Game {
|
|
|
797
797
|
});
|
|
798
798
|
const shape08 = new Shape({
|
|
799
799
|
path: {
|
|
800
|
-
|
|
800
|
+
svgPathString: shapeSvgPathStrings[7],
|
|
801
801
|
height: svgHeight
|
|
802
802
|
},
|
|
803
803
|
size,
|
|
@@ -816,7 +816,7 @@ class ColorShapes extends Game {
|
|
|
816
816
|
return shapes;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
const
|
|
819
|
+
const shapeSvgPathStrings = [
|
|
820
820
|
"M0 89.94v-2L131.95 0h2v88.7c2.34 1.6 4.47 3.11 6.65 4.55 42.77 28.22 85.54 56.42 128.3 84.63v2c-44.65 29.65-89.3 59.29-133.95 88.94h-1v-90.84C89.44 148.72 44.72 119.33 0 89.94Z",
|
|
821
821
|
"M162 188c-.33 27-.67 54-1 81-26.87-26.18-53.74-52.35-80-77.94V269H0C0 180.83 0 92.67.04 4.5.04 3 .67 1.5 1 0c24.64 29.1 49.15 58.31 73.96 87.26 28.88 33.7 58.01 67.17 87.04 100.74Z",
|
|
822
822
|
"M3 148.86V61.12C41.76 40.75 80.52 20.37 119.28 0h2.91c21.32 20.7 42.64 41.4 63.96 62.11v89.71c-38.44 20.04-76.88 40.09-115.31 60.13h-2.91L3.01 148.86Z",
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m2c2kit/assessment-color-shapes",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
|
+
"description": "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",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"build": "npm run clean && tsc && rollup -c",
|
|
6
7
|
"clean": "rimraf build build-nobundler dist .rollup.cache tsconfig.tsbuildinfo"
|
|
@@ -17,6 +18,17 @@
|
|
|
17
18
|
"dist/index.d.ts",
|
|
18
19
|
"assets/**"
|
|
19
20
|
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "Scott T. Yabiku",
|
|
24
|
+
"email": "syabiku@gmail.com"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/m2c2-project/m2c2kit.git",
|
|
29
|
+
"directory": "packages/assessment-color-shapes"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://m2c2-project.github.io/m2c2kit",
|
|
20
32
|
"dependencies": {
|
|
21
33
|
"@m2c2kit/addons": "^0.3.3",
|
|
22
34
|
"@m2c2kit/core": "^0.3.6"
|
|
@@ -25,9 +37,12 @@
|
|
|
25
37
|
"@rollup/plugin-node-resolve": "15.1.0",
|
|
26
38
|
"@rollup/plugin-replace": "5.0.2",
|
|
27
39
|
"rimraf": "5.0.1",
|
|
28
|
-
"rollup": "3.
|
|
40
|
+
"rollup": "3.25.3",
|
|
29
41
|
"rollup-plugin-copy": "3.4.0",
|
|
30
42
|
"rollup-plugin-esbuild": "5.0.0",
|
|
31
|
-
"typescript": "5.1.
|
|
43
|
+
"typescript": "5.1.6"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18"
|
|
32
47
|
}
|
|
33
48
|
}
|