jspsych-tangram 0.0.4 → 0.0.5
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 +8 -47
- package/dist/construct/index.browser.js.map +1 -1
- package/dist/construct/index.browser.min.js +11 -15
- package/dist/construct/index.browser.min.js.map +1 -1
- package/dist/construct/index.cjs +8 -47
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.js +8 -47
- package/dist/construct/index.js.map +1 -1
- package/dist/index.cjs +9 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -48
- package/dist/index.js.map +1 -1
- package/dist/prep/index.browser.js +4 -3
- package/dist/prep/index.browser.js.map +1 -1
- package/dist/prep/index.browser.min.js +1 -1
- package/dist/prep/index.browser.min.js.map +1 -1
- package/dist/prep/index.cjs +4 -3
- package/dist/prep/index.cjs.map +1 -1
- package/dist/prep/index.js +4 -3
- package/dist/prep/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/board/GameBoard.tsx +4 -1
- package/src/core/engine/state/BaseGameController.ts +0 -1
- package/src/plugins/tangram-construct/ConstructionApp.tsx +7 -51
- package/src/plugins/tangram-construct/index.ts +1 -1
- package/src/plugins/tangram-prep/index.ts +1 -1
- package/tangram-construct.min.js +11 -15
- package/tangram-prep.min.js +1 -1
|
@@ -16840,7 +16840,6 @@ var TangramPrepPlugin = (function (jspsych) {
|
|
|
16840
16840
|
const allDone = Object.values(this.state.sectors).every((s) => !!s.completedAt);
|
|
16841
16841
|
if (allDone && !this.state.endedAt) {
|
|
16842
16842
|
this.state.endedAt = NOW();
|
|
16843
|
-
console.log("[BaseGameController] all sectors complete");
|
|
16844
16843
|
}
|
|
16845
16844
|
}
|
|
16846
16845
|
// ===== Piece Operations =====
|
|
@@ -19864,7 +19863,9 @@ var TangramPrepPlugin = (function (jspsych) {
|
|
|
19864
19863
|
if (allSectorsComplete && !gameCompleted) {
|
|
19865
19864
|
setGameCompleted(true);
|
|
19866
19865
|
if (tracker) {
|
|
19867
|
-
|
|
19866
|
+
setTimeout(() => {
|
|
19867
|
+
tracker.finalizeTrial("auto_complete");
|
|
19868
|
+
}, 0);
|
|
19868
19869
|
}
|
|
19869
19870
|
}
|
|
19870
19871
|
};
|
|
@@ -20435,7 +20436,7 @@ var TangramPrepPlugin = (function (jspsych) {
|
|
|
20435
20436
|
this.jsPsych.finishTrial(data);
|
|
20436
20437
|
};
|
|
20437
20438
|
const params = {
|
|
20438
|
-
numQuickstashSlots: trial.num_quickstash_slots
|
|
20439
|
+
numQuickstashSlots: trial.num_quickstash_slots,
|
|
20439
20440
|
maxPiecesPerMacro: trial.max_pieces_per_macro,
|
|
20440
20441
|
minPiecesPerMacro: trial.min_pieces_per_macro,
|
|
20441
20442
|
inputMode: trial.input,
|