jspsych-tangram 0.0.18 → 0.0.20
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.map +1 -1
- package/dist/construct/index.browser.min.js.map +1 -1
- package/dist/construct/index.cjs.map +1 -1
- package/dist/construct/index.js.map +1 -1
- package/dist/grid/index.browser.js +5 -6
- package/dist/grid/index.browser.js.map +1 -1
- package/dist/grid/index.browser.min.js +11 -11
- package/dist/grid/index.browser.min.js.map +1 -1
- package/dist/grid/index.cjs +5 -6
- package/dist/grid/index.cjs.map +1 -1
- package/dist/grid/index.js +5 -6
- package/dist/grid/index.js.map +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +9 -3
- package/src/plugins/tangram-construct/index.ts +3 -3
- package/src/plugins/tangram-grid/GridApp.tsx +7 -6
- package/tangram-grid.min.js +47 -0
package/dist/index.js
CHANGED
|
@@ -4966,6 +4966,7 @@ function GridView({ params }) {
|
|
|
4966
4966
|
primitiveColorIndices = [0, 1, 2, 3, 4],
|
|
4967
4967
|
onTrialEnd
|
|
4968
4968
|
} = params;
|
|
4969
|
+
const { onTrialEnd: _, ...trialParams } = params;
|
|
4969
4970
|
const trialStartTime = useRef(Date.now());
|
|
4970
4971
|
const [response, setResponse] = useState("");
|
|
4971
4972
|
const [cellSize, setCellSize] = useState(100);
|
|
@@ -5078,12 +5079,10 @@ function GridView({ params }) {
|
|
|
5078
5079
|
const trialData = {
|
|
5079
5080
|
response,
|
|
5080
5081
|
rt,
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
use_primitive_colors: usePrimitiveColors,
|
|
5086
|
-
primitive_color_indices: primitiveColorIndices
|
|
5082
|
+
trialParams: {
|
|
5083
|
+
...trialParams,
|
|
5084
|
+
tangramIDs: processedTangrams.map((t) => t.tangramId)
|
|
5085
|
+
}
|
|
5087
5086
|
};
|
|
5088
5087
|
if (onTrialEnd) {
|
|
5089
5088
|
onTrialEnd(trialData);
|