jspsych-tangram 0.0.9 → 0.0.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.
Files changed (37) hide show
  1. package/dist/construct/index.browser.js +4538 -3889
  2. package/dist/construct/index.browser.js.map +1 -1
  3. package/dist/construct/index.browser.min.js +13 -13
  4. package/dist/construct/index.browser.min.js.map +1 -1
  5. package/dist/construct/index.cjs +4 -7
  6. package/dist/construct/index.cjs.map +1 -1
  7. package/dist/construct/index.js +4 -7
  8. package/dist/construct/index.js.map +1 -1
  9. package/dist/index.cjs +332 -11
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.ts +180 -8
  12. package/dist/index.js +333 -13
  13. package/dist/index.js.map +1 -1
  14. package/dist/nback/index.browser.js +17703 -0
  15. package/dist/nback/index.browser.js.map +1 -0
  16. package/dist/nback/index.browser.min.js +42 -0
  17. package/dist/nback/index.browser.min.js.map +1 -0
  18. package/dist/nback/index.cjs +395 -0
  19. package/dist/nback/index.cjs.map +1 -0
  20. package/dist/nback/index.d.ts +175 -0
  21. package/dist/nback/index.js +393 -0
  22. package/dist/nback/index.js.map +1 -0
  23. package/dist/prep/index.browser.js +4538 -3891
  24. package/dist/prep/index.browser.js.map +1 -1
  25. package/dist/prep/index.browser.min.js +13 -13
  26. package/dist/prep/index.browser.min.js.map +1 -1
  27. package/dist/prep/index.cjs +5 -10
  28. package/dist/prep/index.cjs.map +1 -1
  29. package/dist/prep/index.js +5 -10
  30. package/dist/prep/index.js.map +1 -1
  31. package/package.json +9 -3
  32. package/src/index.ts +2 -1
  33. package/src/plugins/tangram-nback/NBackApp.tsx +316 -0
  34. package/src/plugins/tangram-nback/index.ts +141 -0
  35. package/tangram-construct.min.js +13 -13
  36. package/tangram-nback.min.js +42 -0
  37. package/tangram-prep.min.js +13 -13
@@ -14,9 +14,8 @@ const CONFIG = {
14
14
  completion: { fill: "#ccfff2", stroke: "#13da57" },
15
15
  silhouetteMask: "#374151",
16
16
  anchors: { invalid: "#7dd3fc", valid: "#475569" },
17
- piece: { draggingFill: "#8e7cc3ff", validFill: "#8e7cc3ff", invalidFill: "#ef4444", invalidStroke: "#dc2626", selectedStroke: "#674ea7", allGreenStroke: "#86efac", borderStroke: "#674ea7" },
18
- ui: { light: "#60a5fa", dark: "#1d4ed8" },
19
- blueprint: { fill: "#374151", selectedStroke: "#111827", badgeFill: "#000000", labelFill: "#ffffff" },
17
+ piece: { draggingFill: "#8e7cc3ff", validFill: "#8e7cc3ff", invalidFill: "#ef4444", allGreenStroke: "#86efac"},
18
+ blueprint: { fill: "#374151", badgeFill: "#000000", labelFill: "#ffffff" },
20
19
  tangramDecomposition: { stroke: "#fef2cc" }
21
20
  },
22
21
  opacity: {
@@ -27,7 +26,7 @@ const CONFIG = {
27
26
  piece: { invalid: 0.35, dragging: 0.75, locked: 1, normal: 1 }
28
27
  },
29
28
  size: {
30
- stroke: { bandPx: 5, pieceSelectedPx: 3, allGreenStrokePx: 10, pieceBorderPx: 2, tangramDecompositionPx: 1 },
29
+ stroke: { bandPx: 5, allGreenStrokePx: 10, tangramDecompositionPx: 1 },
31
30
  anchorRadiusPx: { valid: 1, invalid: 1 },
32
31
  badgeFontPx: 16,
33
32
  centerBadge: { fractionOfOuterR: 0.15, minPx: 20, marginPx: 4 }
@@ -42,14 +41,10 @@ const CONFIG = {
42
41
  quickstashDiamAnchors: 7,
43
42
  // num anchors req'd to be in single quickstash slot
44
43
  primitiveDiamAnchors: 5
45
- },
46
- defaults: { maxQuickstashSlots: 1 }
47
- },
44
+ }},
48
45
  game: {
49
46
  snapRadiusPx: 15,
50
- showBorders: false,
51
- hideTouchingBorders: true
52
- }
47
+ showBorders: false}
53
48
  };
54
49
 
55
50
  function isComposite(bp) {