jspsych-tangram 0.0.10 → 0.0.11
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/construct/index.browser.js +3864 -4513
- package/dist/construct/index.browser.js.map +1 -1
- package/dist/construct/index.browser.min.js +13 -13
- package/dist/construct/index.browser.min.js.map +1 -1
- package/dist/construct/index.cjs +7 -4
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.js +7 -4
- package/dist/construct/index.js.map +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/nback/index.browser.js +3897 -4517
- package/dist/nback/index.browser.js.map +1 -1
- package/dist/nback/index.browser.min.js +12 -12
- package/dist/nback/index.browser.min.js.map +1 -1
- package/dist/nback/index.cjs +39 -7
- package/dist/nback/index.cjs.map +1 -1
- package/dist/nback/index.js +39 -7
- package/dist/nback/index.js.map +1 -1
- package/dist/prep/index.browser.js +3866 -4513
- package/dist/prep/index.browser.js.map +1 -1
- package/dist/prep/index.browser.min.js +13 -13
- package/dist/prep/index.browser.min.js.map +1 -1
- package/dist/prep/index.cjs +10 -5
- package/dist/prep/index.cjs.map +1 -1
- package/dist/prep/index.js +10 -5
- package/dist/prep/index.js.map +1 -1
- package/package.json +1 -1
- package/src/plugins/tangram-nback/NBackApp.tsx +2 -3
- package/tangram-construct.min.js +13 -13
- package/tangram-nback.min.js +12 -12
- package/tangram-prep.min.js +13 -13
package/dist/index.js
CHANGED
|
@@ -12,8 +12,9 @@ const CONFIG = {
|
|
|
12
12
|
completion: { fill: "#ccfff2", stroke: "#13da57" },
|
|
13
13
|
silhouetteMask: "#374151",
|
|
14
14
|
anchors: { invalid: "#7dd3fc", valid: "#475569" },
|
|
15
|
-
piece: { draggingFill: "#8e7cc3ff", validFill: "#8e7cc3ff", invalidFill: "#ef4444", allGreenStroke: "#86efac"},
|
|
16
|
-
|
|
15
|
+
piece: { draggingFill: "#8e7cc3ff", validFill: "#8e7cc3ff", invalidFill: "#ef4444", invalidStroke: "#dc2626", selectedStroke: "#674ea7", allGreenStroke: "#86efac", borderStroke: "#674ea7" },
|
|
16
|
+
ui: { light: "#60a5fa", dark: "#1d4ed8" },
|
|
17
|
+
blueprint: { fill: "#374151", selectedStroke: "#111827", badgeFill: "#000000", labelFill: "#ffffff" },
|
|
17
18
|
tangramDecomposition: { stroke: "#fef2cc" }
|
|
18
19
|
},
|
|
19
20
|
opacity: {
|
|
@@ -24,7 +25,7 @@ const CONFIG = {
|
|
|
24
25
|
piece: { invalid: 0.35, dragging: 0.75, locked: 1, normal: 1 }
|
|
25
26
|
},
|
|
26
27
|
size: {
|
|
27
|
-
stroke: { bandPx: 5, allGreenStrokePx: 10, tangramDecompositionPx: 1 },
|
|
28
|
+
stroke: { bandPx: 5, pieceSelectedPx: 3, allGreenStrokePx: 10, pieceBorderPx: 2, tangramDecompositionPx: 1 },
|
|
28
29
|
anchorRadiusPx: { valid: 1, invalid: 1 },
|
|
29
30
|
badgeFontPx: 16,
|
|
30
31
|
centerBadge: { fractionOfOuterR: 0.15, minPx: 20, marginPx: 4 }
|
|
@@ -44,7 +45,9 @@ const CONFIG = {
|
|
|
44
45
|
},
|
|
45
46
|
game: {
|
|
46
47
|
snapRadiusPx: 15,
|
|
47
|
-
showBorders: false
|
|
48
|
+
showBorders: false,
|
|
49
|
+
hideTouchingBorders: true
|
|
50
|
+
}
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
function isComposite(bp) {
|
|
@@ -4085,9 +4088,8 @@ function NBackView({ params }) {
|
|
|
4085
4088
|
display: "flex",
|
|
4086
4089
|
flexDirection: "column",
|
|
4087
4090
|
alignItems: "center",
|
|
4088
|
-
justifyContent: "
|
|
4089
|
-
|
|
4090
|
-
padding: "40px 20px",
|
|
4091
|
+
justifyContent: "center",
|
|
4092
|
+
padding: "20px",
|
|
4091
4093
|
background: "#f5f5f5"
|
|
4092
4094
|
} }, instructions && /* @__PURE__ */ React.createElement(
|
|
4093
4095
|
"div",
|