@m2c2kit/assessment-color-shapes 0.8.8 → 0.8.9

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.
Files changed (3) hide show
  1. package/README.md +22 -0
  2. package/dist/index.js +10 -10
  3. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @m2c2kit/assessment-color-shapes
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
4
+ [![CI/CD](https://github.com/m2c2-project/m2c2kit/actions/workflows/ci.yml/badge.svg)](https://github.com/m2c2-project/m2c2kit/actions/workflows/ci.yml)
5
+ [![npm version](https://img.shields.io/npm/v/@m2c2kit/assessment-color-shapes.svg)](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 Tutorial](https://m2c2-project.github.io/m2c2kit/docs/tutorial-fundamentals/fundamentals)
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.8",
246
+ version: "0.8.9 (b15b374e)",
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
- svgString: shapePathSvgStrings[0],
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
- svgString: shapePathSvgStrings[1],
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
- svgString: shapePathSvgStrings[2],
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
- svgString: shapePathSvgStrings[3],
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
- svgString: shapePathSvgStrings[4],
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
- svgString: shapePathSvgStrings[5],
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
- svgString: shapePathSvgStrings[6],
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
- svgString: shapePathSvgStrings[7],
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 shapePathSvgStrings = [
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,6 @@
1
1
  {
2
2
  "name": "@m2c2kit/assessment-color-shapes",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "scripts": {
5
5
  "build": "npm run clean && tsc && rollup -c",
6
6
  "clean": "rimraf build build-nobundler dist .rollup.cache tsconfig.tsbuildinfo"
@@ -25,7 +25,7 @@
25
25
  "@rollup/plugin-node-resolve": "15.1.0",
26
26
  "@rollup/plugin-replace": "5.0.2",
27
27
  "rimraf": "5.0.1",
28
- "rollup": "3.21.0",
28
+ "rollup": "3.25.1",
29
29
  "rollup-plugin-copy": "3.4.0",
30
30
  "rollup-plugin-esbuild": "5.0.0",
31
31
  "typescript": "5.1.3"