jspsych-tangram 0.0.11 → 0.0.13

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 (46) hide show
  1. package/dist/construct/index.browser.js +4805 -3935
  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 +289 -71
  6. package/dist/construct/index.cjs.map +1 -1
  7. package/dist/construct/index.d.ts +36 -0
  8. package/dist/construct/index.js +289 -71
  9. package/dist/construct/index.js.map +1 -1
  10. package/dist/index.cjs +399 -100
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +84 -0
  13. package/dist/index.js +399 -100
  14. package/dist/index.js.map +1 -1
  15. package/dist/nback/index.browser.js +4629 -3939
  16. package/dist/nback/index.browser.js.map +1 -1
  17. package/dist/nback/index.browser.min.js +12 -12
  18. package/dist/nback/index.browser.min.js.map +1 -1
  19. package/dist/nback/index.cjs +102 -64
  20. package/dist/nback/index.cjs.map +1 -1
  21. package/dist/nback/index.d.ts +24 -0
  22. package/dist/nback/index.js +102 -64
  23. package/dist/nback/index.js.map +1 -1
  24. package/dist/prep/index.browser.js +4803 -3941
  25. package/dist/prep/index.browser.js.map +1 -1
  26. package/dist/prep/index.browser.min.js +13 -13
  27. package/dist/prep/index.browser.min.js.map +1 -1
  28. package/dist/prep/index.cjs +285 -75
  29. package/dist/prep/index.cjs.map +1 -1
  30. package/dist/prep/index.d.ts +24 -0
  31. package/dist/prep/index.js +285 -75
  32. package/dist/prep/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/core/components/board/BoardView.tsx +372 -124
  35. package/src/core/components/board/GameBoard.tsx +128 -91
  36. package/src/core/components/pieces/BlueprintRing.tsx +105 -47
  37. package/src/core/config/config.ts +25 -10
  38. package/src/plugins/tangram-construct/ConstructionApp.tsx +7 -1
  39. package/src/plugins/tangram-construct/index.ts +22 -1
  40. package/src/plugins/tangram-nback/NBackApp.tsx +87 -28
  41. package/src/plugins/tangram-nback/index.ts +14 -0
  42. package/src/plugins/tangram-prep/PrepApp.tsx +7 -1
  43. package/src/plugins/tangram-prep/index.ts +14 -0
  44. package/tangram-construct.min.js +13 -13
  45. package/tangram-nback.min.js +12 -12
  46. package/tangram-prep.min.js +13 -13
package/dist/index.d.ts CHANGED
@@ -79,6 +79,24 @@ declare const info$2: {
79
79
  default: undefined;
80
80
  description: string;
81
81
  };
82
+ /** Whether to use distinct colors for each primitive shape type in blueprints */
83
+ use_primitive_colors_blueprints: {
84
+ type: ParameterType;
85
+ default: boolean;
86
+ description: string;
87
+ };
88
+ /** Whether to use distinct colors for each primitive shape type in target tangrams */
89
+ use_primitive_colors_targets: {
90
+ type: ParameterType;
91
+ default: boolean;
92
+ description: string;
93
+ };
94
+ /** Indices mapping primitives to colors from the color palette */
95
+ primitive_color_indices: {
96
+ type: ParameterType;
97
+ default: number[];
98
+ description: string;
99
+ };
82
100
  };
83
101
  data: {
84
102
  /** Array of all interaction events during trial */
@@ -199,6 +217,24 @@ declare class TangramConstructPlugin implements JsPsychPlugin<Info$2> {
199
217
  default: undefined;
200
218
  description: string;
201
219
  };
220
+ /** Whether to use distinct colors for each primitive shape type in blueprints */
221
+ use_primitive_colors_blueprints: {
222
+ type: ParameterType;
223
+ default: boolean;
224
+ description: string;
225
+ };
226
+ /** Whether to use distinct colors for each primitive shape type in target tangrams */
227
+ use_primitive_colors_targets: {
228
+ type: ParameterType;
229
+ default: boolean;
230
+ description: string;
231
+ };
232
+ /** Indices mapping primitives to colors from the color palette */
233
+ primitive_color_indices: {
234
+ type: ParameterType;
235
+ default: number[];
236
+ description: string;
237
+ };
202
238
  };
203
239
  data: {
204
240
  /** Array of all interaction events during trial */
@@ -299,6 +335,18 @@ declare const info$1: {
299
335
  type: ParameterType;
300
336
  default: undefined;
301
337
  };
338
+ /** Whether to use distinct colors for each primitive shape type in blueprints */
339
+ use_primitive_colors_blueprints: {
340
+ type: ParameterType;
341
+ default: boolean;
342
+ description: string;
343
+ };
344
+ /** Indices mapping primitives to colors from the color palette */
345
+ primitive_color_indices: {
346
+ type: ParameterType;
347
+ default: number[];
348
+ description: string;
349
+ };
302
350
  };
303
351
  data: {
304
352
  /** Completion status */
@@ -380,6 +428,18 @@ declare class TangramPrepPlugin implements JsPsychPlugin<Info$1> {
380
428
  type: ParameterType;
381
429
  default: undefined;
382
430
  };
431
+ /** Whether to use distinct colors for each primitive shape type in blueprints */
432
+ use_primitive_colors_blueprints: {
433
+ type: ParameterType;
434
+ default: boolean;
435
+ description: string;
436
+ };
437
+ /** Indices mapping primitives to colors from the color palette */
438
+ primitive_color_indices: {
439
+ type: ParameterType;
440
+ default: number[];
441
+ description: string;
442
+ };
383
443
  };
384
444
  data: {
385
445
  /** Completion status */
@@ -437,6 +497,18 @@ declare const info: {
437
497
  default: number;
438
498
  description: string;
439
499
  };
500
+ /** Whether to use distinct colors for each primitive shape type */
501
+ use_primitive_colors: {
502
+ type: ParameterType;
503
+ default: boolean;
504
+ description: string;
505
+ };
506
+ /** Indices mapping primitives to colors from the color palette */
507
+ primitive_color_indices: {
508
+ type: ParameterType;
509
+ default: number[];
510
+ description: string;
511
+ };
440
512
  /** Callback fired when trial ends */
441
513
  onTrialEnd: {
442
514
  type: ParameterType;
@@ -525,6 +597,18 @@ declare class TangramNBackPlugin implements JsPsychPlugin<Info> {
525
597
  default: number;
526
598
  description: string;
527
599
  };
600
+ /** Whether to use distinct colors for each primitive shape type */
601
+ use_primitive_colors: {
602
+ type: ParameterType;
603
+ default: boolean;
604
+ description: string;
605
+ };
606
+ /** Indices mapping primitives to colors from the color palette */
607
+ primitive_color_indices: {
608
+ type: ParameterType;
609
+ default: number[];
610
+ description: string;
611
+ };
528
612
  /** Callback fired when trial ends */
529
613
  onTrialEnd: {
530
614
  type: ParameterType;