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/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
- blueprint: { fill: "#374151", badgeFill: "#000000", labelFill: "#ffffff" },
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: "flex-start",
4089
- minHeight: "100vh",
4090
- padding: "40px 20px",
4091
+ justifyContent: "center",
4092
+ padding: "20px",
4091
4093
  background: "#f5f5f5"
4092
4094
  } }, instructions && /* @__PURE__ */ React.createElement(
4093
4095
  "div",