jspsych-tangram 0.0.7 → 0.0.9
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 +187 -214
- package/dist/construct/index.browser.js.map +1 -1
- package/dist/construct/index.browser.min.js +13 -10
- package/dist/construct/index.browser.min.js.map +1 -1
- package/dist/construct/index.cjs +187 -214
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.d.ts +24 -0
- package/dist/construct/index.js +187 -214
- package/dist/construct/index.js.map +1 -1
- package/dist/index.cjs +198 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/index.js +198 -215
- package/dist/index.js.map +1 -1
- package/dist/prep/index.browser.js +173 -213
- package/dist/prep/index.browser.js.map +1 -1
- package/dist/prep/index.browser.min.js +14 -11
- package/dist/prep/index.browser.min.js.map +1 -1
- package/dist/prep/index.cjs +173 -213
- package/dist/prep/index.cjs.map +1 -1
- package/dist/prep/index.d.ts +12 -0
- package/dist/prep/index.js +173 -213
- package/dist/prep/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/README.md +6 -0
- package/src/assets/images.d.ts +19 -0
- package/src/assets/locked.png +0 -0
- package/src/assets/unlocked.png +0 -0
- package/src/core/components/board/BoardView.tsx +121 -39
- package/src/core/components/board/GameBoard.tsx +123 -7
- package/src/core/config/config.ts +8 -4
- package/src/core/domain/types.ts +1 -0
- package/src/core/io/InteractionTracker.ts +23 -24
- package/src/core/io/data-tracking.ts +6 -7
- package/src/plugins/tangram-construct/ConstructionApp.tsx +16 -1
- package/src/plugins/tangram-construct/index.ts +14 -0
- package/src/plugins/tangram-prep/PrepApp.tsx +6 -0
- package/src/plugins/tangram-prep/index.ts +7 -0
- package/tangram-construct.min.js +13 -10
- package/tangram-prep.min.js +14 -11
|
@@ -55,6 +55,18 @@ declare const info: {
|
|
|
55
55
|
default: number;
|
|
56
56
|
description: string;
|
|
57
57
|
};
|
|
58
|
+
/** Whether to show tangram target shapes decomposed into individual primitives with borders */
|
|
59
|
+
show_tangram_decomposition: {
|
|
60
|
+
type: ParameterType;
|
|
61
|
+
default: boolean;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
/** HTML content to display above the gameboard as instructions */
|
|
65
|
+
instructions: {
|
|
66
|
+
type: ParameterType;
|
|
67
|
+
default: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
58
70
|
/** Callback fired after each interaction (piece pickup + placedown) */
|
|
59
71
|
onInteraction: {
|
|
60
72
|
type: ParameterType;
|
|
@@ -163,6 +175,18 @@ declare class TangramConstructPlugin implements JsPsychPlugin<Info> {
|
|
|
163
175
|
default: number;
|
|
164
176
|
description: string;
|
|
165
177
|
};
|
|
178
|
+
/** Whether to show tangram target shapes decomposed into individual primitives with borders */
|
|
179
|
+
show_tangram_decomposition: {
|
|
180
|
+
type: ParameterType;
|
|
181
|
+
default: boolean;
|
|
182
|
+
description: string;
|
|
183
|
+
};
|
|
184
|
+
/** HTML content to display above the gameboard as instructions */
|
|
185
|
+
instructions: {
|
|
186
|
+
type: ParameterType;
|
|
187
|
+
default: string;
|
|
188
|
+
description: string;
|
|
189
|
+
};
|
|
166
190
|
/** Callback fired after each interaction (piece pickup + placedown) */
|
|
167
191
|
onInteraction: {
|
|
168
192
|
type: ParameterType;
|