jspsych-tangram 0.0.13 → 0.0.15
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/afc/index.browser.js +17751 -0
- package/dist/afc/index.browser.js.map +1 -0
- package/dist/afc/index.browser.min.js +42 -0
- package/dist/afc/index.browser.min.js.map +1 -0
- package/dist/afc/index.cjs +443 -0
- package/dist/afc/index.cjs.map +1 -0
- package/dist/afc/index.d.ts +169 -0
- package/dist/afc/index.js +441 -0
- package/dist/afc/index.js.map +1 -0
- package/dist/construct/index.browser.js +8 -2
- package/dist/construct/index.browser.js.map +1 -1
- package/dist/construct/index.browser.min.js +10 -10
- package/dist/construct/index.browser.min.js.map +1 -1
- package/dist/construct/index.cjs +8 -2
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.js +8 -2
- package/dist/construct/index.js.map +1 -1
- package/dist/index.cjs +379 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +178 -12
- package/dist/index.js +379 -12
- package/dist/index.js.map +1 -1
- package/dist/nback/index.browser.js +6 -4
- package/dist/nback/index.browser.js.map +1 -1
- package/dist/nback/index.browser.min.js +8 -8
- package/dist/nback/index.browser.min.js.map +1 -1
- package/dist/nback/index.cjs +6 -4
- package/dist/nback/index.cjs.map +1 -1
- package/dist/nback/index.js +6 -4
- package/dist/nback/index.js.map +1 -1
- package/dist/prep/index.browser.js +8 -2
- package/dist/prep/index.browser.js.map +1 -1
- package/dist/prep/index.browser.min.js +10 -10
- package/dist/prep/index.browser.min.js.map +1 -1
- package/dist/prep/index.cjs +8 -2
- package/dist/prep/index.cjs.map +1 -1
- package/dist/prep/index.js +8 -2
- package/dist/prep/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/board/GameBoard.tsx +13 -42
- package/src/core/components/board/useGameBoard.ts +52 -0
- package/src/core/components/index.ts +4 -2
- package/src/core/components/pieces/BlueprintRing.tsx +0 -25
- package/src/core/components/pieces/useBlueprintRing.ts +39 -0
- package/src/index.ts +2 -1
- package/src/plugins/tangram-afc/AFCApp.tsx +341 -0
- package/src/plugins/tangram-afc/index.ts +140 -0
- package/src/plugins/tangram-nback/NBackApp.tsx +3 -3
- package/tangram-construct.min.js +10 -10
- package/tangram-nback.min.js +8 -8
- package/tangram-prep.min.js +10 -10
|
@@ -17341,7 +17341,9 @@ var TangramNBackPlugin = (function (jspsych) {
|
|
|
17341
17341
|
]
|
|
17342
17342
|
},
|
|
17343
17343
|
opacity: {
|
|
17344
|
-
silhouetteMask: 0.25
|
|
17344
|
+
silhouetteMask: 0.25,
|
|
17345
|
+
piece: { normal: 1 }
|
|
17346
|
+
},
|
|
17345
17347
|
size: {
|
|
17346
17348
|
stroke: { bandPx: 5, tangramDecompositionPx: 1 }},
|
|
17347
17349
|
layout: {
|
|
@@ -17536,7 +17538,7 @@ var TangramNBackPlugin = (function (jspsych) {
|
|
|
17536
17538
|
{
|
|
17537
17539
|
d: pathD(scaledPoly),
|
|
17538
17540
|
fill: fillColor,
|
|
17539
|
-
opacity: CONFIG.opacity.silhouetteMask,
|
|
17541
|
+
opacity: usePrimitiveColors ? CONFIG.opacity.piece.normal : CONFIG.opacity.silhouetteMask,
|
|
17540
17542
|
stroke: "none"
|
|
17541
17543
|
}
|
|
17542
17544
|
), /* @__PURE__ */ React.createElement(
|
|
@@ -17577,7 +17579,7 @@ var TangramNBackPlugin = (function (jspsych) {
|
|
|
17577
17579
|
key: `sil-${i}`,
|
|
17578
17580
|
d: pathD(scaledPoly),
|
|
17579
17581
|
fill: fillColor,
|
|
17580
|
-
opacity: CONFIG.opacity.silhouetteMask,
|
|
17582
|
+
opacity: usePrimitiveColors ? CONFIG.opacity.piece.normal : CONFIG.opacity.silhouetteMask,
|
|
17581
17583
|
stroke: "none"
|
|
17582
17584
|
}
|
|
17583
17585
|
);
|
|
@@ -17590,7 +17592,7 @@ var TangramNBackPlugin = (function (jspsych) {
|
|
|
17590
17592
|
alignItems: "center",
|
|
17591
17593
|
justifyContent: "center",
|
|
17592
17594
|
padding: "20px",
|
|
17593
|
-
background: "#
|
|
17595
|
+
background: "#fff7e0ff"
|
|
17594
17596
|
} }, instructions && /* @__PURE__ */ React.createElement(
|
|
17595
17597
|
"div",
|
|
17596
17598
|
{
|