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
@@ -12,9 +12,8 @@ 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", invalidStroke: "#dc2626", selectedStroke: "#674ea7", allGreenStroke: "#86efac", borderStroke: "#674ea7" },
16
- ui: { light: "#60a5fa", dark: "#1d4ed8" },
17
- blueprint: { fill: "#374151", selectedStroke: "#111827", badgeFill: "#000000", labelFill: "#ffffff" },
15
+ piece: { draggingFill: "#8e7cc3ff", validFill: "#8e7cc3ff", invalidFill: "#ef4444", allGreenStroke: "#86efac"},
16
+ blueprint: { fill: "#374151", badgeFill: "#000000", labelFill: "#ffffff" },
18
17
  tangramDecomposition: { stroke: "#fef2cc" }
19
18
  },
20
19
  opacity: {
@@ -25,7 +24,7 @@ const CONFIG = {
25
24
  piece: { invalid: 0.35, dragging: 0.75, locked: 1, normal: 1 }
26
25
  },
27
26
  size: {
28
- stroke: { bandPx: 5, pieceSelectedPx: 3, allGreenStrokePx: 10, pieceBorderPx: 2, tangramDecompositionPx: 1 },
27
+ stroke: { bandPx: 5, allGreenStrokePx: 10, tangramDecompositionPx: 1 },
29
28
  anchorRadiusPx: { valid: 1, invalid: 1 },
30
29
  badgeFontPx: 16,
31
30
  centerBadge: { fractionOfOuterR: 0.15, minPx: 20, marginPx: 4 }
@@ -40,14 +39,10 @@ const CONFIG = {
40
39
  quickstashDiamAnchors: 7,
41
40
  // num anchors req'd to be in single quickstash slot
42
41
  primitiveDiamAnchors: 5
43
- },
44
- defaults: { maxQuickstashSlots: 1 }
45
- },
42
+ }},
46
43
  game: {
47
44
  snapRadiusPx: 15,
48
- showBorders: false,
49
- hideTouchingBorders: true
50
- }
45
+ showBorders: false}
51
46
  };
52
47
 
53
48
  function isComposite(bp) {