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.
- package/dist/construct/index.browser.js +4805 -3935
- 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 +289 -71
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.d.ts +36 -0
- package/dist/construct/index.js +289 -71
- package/dist/construct/index.js.map +1 -1
- package/dist/index.cjs +399 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +84 -0
- package/dist/index.js +399 -100
- package/dist/index.js.map +1 -1
- package/dist/nback/index.browser.js +4629 -3939
- 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 +102 -64
- package/dist/nback/index.cjs.map +1 -1
- package/dist/nback/index.d.ts +24 -0
- package/dist/nback/index.js +102 -64
- package/dist/nback/index.js.map +1 -1
- package/dist/prep/index.browser.js +4803 -3941
- 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 +285 -75
- package/dist/prep/index.cjs.map +1 -1
- package/dist/prep/index.d.ts +24 -0
- package/dist/prep/index.js +285 -75
- package/dist/prep/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/board/BoardView.tsx +372 -124
- package/src/core/components/board/GameBoard.tsx +128 -91
- package/src/core/components/pieces/BlueprintRing.tsx +105 -47
- package/src/core/config/config.ts +25 -10
- package/src/plugins/tangram-construct/ConstructionApp.tsx +7 -1
- package/src/plugins/tangram-construct/index.ts +22 -1
- package/src/plugins/tangram-nback/NBackApp.tsx +87 -28
- package/src/plugins/tangram-nback/index.ts +14 -0
- package/src/plugins/tangram-prep/PrepApp.tsx +7 -1
- package/src/plugins/tangram-prep/index.ts +14 -0
- package/tangram-construct.min.js +13 -13
- package/tangram-nback.min.js +12 -12
- 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;
|