1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00
Commit Graph

369 Commits

Author SHA1 Message Date
Alain Pitiot
a2229ea483
Merge pull request #285 from thewhodidthis/bf#283--image-textures
visual/ImageStim: tweak texture related PIXI calls
2021-02-25 16:47:30 +01:00
Sotiri Bakagiannis
88531a2cb8 visual/ImageStim: tweak texture related PIXI calls 2021-02-25 15:40:19 +00:00
Sotiri Bakagiannis
225030cd16 visual/Form: support the radio type, same as choice 2021-02-24 12:00:10 +00:00
Alain Pitiot
58d412f10c
Merge pull request #278 from apitiot/master
updated the documentation
2021-02-20 13:03:34 +01:00
Alain Pitiot
867add56a4 updated the documentation 2021-02-20 13:02:55 +01:00
Alain Pitiot
54bed68e64
Merge pull request #277 from apitiot/master
changed version number to 2021.1.0
2021-02-20 12:20:34 +01:00
Alain Pitiot
92c4d1d0b9 changed version number to 2020.1.0 2021-02-20 12:18:07 +01:00
Alain Pitiot
6c293c1cbd
Merge pull request #252 from thewhodidthis/bf#215--css-escape
core/GUI: refactor CSS naming of dialog box input elements
2021-02-20 08:53:24 +01:00
Alain Pitiot
5374d199e3
Merge pull request #251 from thewhodidthis/bf#246--line-breaks
data/TrialHandler: allow for doubly escaped LFs in xlsx cells
2021-02-20 08:50:38 +01:00
Sotiri Bakagiannis
79461914bc core/GUI: save whole element ids in required keys 2021-02-19 14:27:21 +00:00
Sotiri Bakagiannis
a2db2f2851 data/TrialHandler: tweak numerical string typecasting 2021-02-19 14:11:08 +00:00
Sotiri Bakagiannis
a603a58521 data/TrialHandler: reorder assignments in importConditions() 2021-02-18 16:46:49 +00:00
Alain Pitiot
bed6ff240e
Merge pull request #262 from thewhodidthis/bf#205--util
Allow for parsing of array-like strings when setting visual stimulus position or size
2021-02-18 15:32:34 +01:00
Alain Pitiot
3ed9dc1153
Update Util.js 2021-02-18 15:31:41 +01:00
Alain Pitiot
ab2e1608a5
Merge pull request #247 from thewhodidthis/bf#134--fullrandom
data/TrialHandler: add FULLRANDOM alias to mirror PP output
2021-02-18 14:17:19 +01:00
Alain Pitiot
aa5a47a7d7
Merge pull request #261 from thewhodidthis/bf#114--pixi
Clean up PIXI.Texture and Sprite creation & removal for movies and images
2021-02-18 13:23:18 +01:00
Alain Pitiot
7020ee1752
Merge branch 'master' into bf#114--pixi 2021-02-18 13:23:12 +01:00
Alain Pitiot
38ab3444aa
Merge pull request #260 from thewhodidthis/bf#196--video
visual/MovieStim: do tell PIXI base texture to respect autoplay
2021-02-18 13:22:11 +01:00
Alain Pitiot
f4c9d6ce33
Merge pull request #267 from thewhodidthis/nf#230--remotes
core/PsychoJS: enable whitelisting of config.json hosts
2021-02-18 13:21:40 +01:00
Alain Pitiot
365ebbe86d
Merge pull request #268 from thewhodidthis/bf#257--frame-rate
Implement Window.getActualFrameRate() to dynamically update monitorFramePeriod
2021-02-18 13:19:50 +01:00
Sotiri Bakagiannis
50547455bf util/Util: roll back to parseFloat when converting to number 2021-02-15 23:43:27 +00:00
Sotiri Bakagiannis
5eeda1aed4 visual/Movie/ImageStim: avoid blanket texture cache reset 2021-02-15 21:07:41 +00:00
Sotiri Bakagiannis
c679174923 util/Scheduler: clean up rAF last timestamp assignment 2021-02-15 18:36:18 +00:00
Sotiri Bakagiannis
0d56e598d3 core/Window: simplify fps calc 2021-02-15 18:33:07 +00:00
Sotiri Bakagiannis
414f9324e0 data/TrialHandler: use a separate key instead of a getter 2021-02-15 18:10:21 +00:00
Sotiri Bakagiannis
2d20c9303b data/TriaHandler: merge string type checking when parsing data rows 2021-02-15 14:43:37 +00:00
Sotiri Bakagiannis
98169cc6bf core/PsychoJS: tweak variable naming 2021-02-15 13:36:38 +00:00
Alain Pitiot
c5dee121c9
Merge pull request #125 from thewhodidthis/bf#124--duplicates
data/ExperimentHandler: remove duplicate isEntryEmpty method
2021-02-15 10:47:53 +01:00
Alain Pitiot
2e856a5851
Merge pull request #250 from thewhodidthis/bf#233--shape
visual/ShapeStim: take contrast into account when calling beginFill
2021-02-15 10:46:46 +01:00
Alain Pitiot
68c85f8460
Merge pull request #255 from thewhodidthis/bf#224--add-attributes
core/data/sound/util: drop PsychObject._addAttributes() and refs thereof
2021-02-15 10:13:51 +01:00
Alain Pitiot
eb35796416
Merge pull request #254 from thewhodidthis/bf#253--text-input
visual/TextInput: replace for...in with a forEach loop
2021-02-15 09:52:06 +01:00
Alain Pitiot
bfa460e419
Merge pull request #245 from thewhodidthis/bf#244--close-shape
visual/ShapeStim: set closeStroke on PIXI polygon creation
2021-02-15 09:50:51 +01:00
Alain Pitiot
ef98dc617f
Merge pull request #243 from nabaruns/master
Update README.md
2021-02-15 09:48:18 +01:00
Alain Pitiot
938832efcd
Merge pull request #264 from thewhodidthis/bf#69--slider
visual/Slider: drop unused labelHeight attribute
2021-02-15 09:34:56 +01:00
Alain Pitiot
8d8d38016b
Merge pull request #265 from thewhodidthis/bf#74--text-align
visual/TextStim: fix jsdoc for alignHoriz
2021-02-15 09:26:03 +01:00
Alain Pitiot
94bd840431
Merge pull request #266 from thewhodidthis/bf#167--beeping
core/Keyboard: prevent default on keydown
2021-02-15 09:24:53 +01:00
Alain Pitiot
8525eec3dc
Merge pull request #271 from thewhodidthis/bf#270--textbox
visual/TextBox: implement autofocus
2021-02-15 09:02:24 +01:00
Sijia Zhao
66a3dbdd41 BF: When closing DlgFromDict, call eventmanager.clearEvents to clear events accumulated during dialog to prevent subsequent routines picking up keypresses belonging to DlgFromDict
Since DlgFromDict does not consume any events or keypresses, PsychoJS._keybuffer will be full of keypresses which may cause undesired outcomes when the experiment starts and the keypresses are processed.

Example bug-causing sequence:
- User presses ESC during DlgFromDict
- Nothing appears to happen (correct expected result)
- User completes the fields on DlgFromDict and presses Ok
- Next routine starts and then...

Bug behavior:
- User is unexpectedly presented with a "The [Escape] key was pressed. Goodbye!" dialog.

Correct behavior:
- Nothing should happen. ESC was pressed during the DIgFromDict, not this routine.

Reason the bug happens:
The ESC keypress during DlgFromDict was not consumed, so it is picked up by a [routine_name]RoutineEachFrame() in the scheduler, which checks for ESC keypresses, finds a ESC in the keybuffer, and unexpectedly stops the experiment.
2021-02-12 03:17:36 +00:00
Sijia Zhao
575c54bfc0 Revert "BF: When closing DlgFromDict, call eventmanager.clearEvents to clear events accumulated during dialog"
This reverts commit 42ebec383e.
2021-02-12 03:13:25 +00:00
Sijia Zhao
42ebec383e BF: When closing DlgFromDict, call eventmanager.clearEvents to clear events accumulated during dialog
Since DlgFromDict does not consume any events or keypresses, PsychoJS._keybuffer will be full of keypresses which may cause undesired outcomes when the experiment starts and the keypresses are processed.

Example bug-causing sequence:
- User presses ESC during DlgFromDict
- Nothing appears to happen (correct expected result)
- User completes the fields on DlgFromDict and presses Ok
- Next routine starts and then...

Bug behavior:
- User is unexpectedly presented with a "The [Escape] key was pressed. Goodbye!" dialog.

Correct behavior:
- Nothing should happen. ESC was pressed during the DIgFromDict, not this routine.

Reason the bug happens:
The ESC keypress during DlgFromDict was not consumed, so it is picked up by a [routine_name]RoutineEachFrame() in the scheduler, which checks for ESC keypresses, finds a ESC in the keybuffer, and unexpectedly stops the experiment.
2021-02-12 03:09:50 +00:00
Sotiri Bakagiannis
3b92b1c962 visual/TextBox: implement autofocus 2021-02-04 17:16:41 +00:00
Sotiri Bakagiannis
f95e2ad9f3 visual/TextInput: prevent scroll by default if available when calling focus 2021-02-04 17:10:35 +00:00
Sotiri Bakagiannis
5408f4c2dd core/Window: implement getActualFrameRate, update monitorFramePeriod accordingly 2021-01-29 12:07:27 +00:00
Sotiri Bakagiannis
523dc2d006 util/Scheduler: store time delta for each rAF call 2021-01-29 12:06:18 +00:00
Sotiri Bakagiannis
69cfa73547 core/PsychoJS: enable whitelisting of config.json hosts other than pavlovia.org 2021-01-28 19:13:38 +00:00
Sotiri Bakagiannis
db637406f9 core/Keyboard: prevent default on keydown 2021-01-26 01:01:33 +00:00
Sotiri Bakagiannis
0434955623 visual/TextStim: fix jsdoc for alignHoriz 2021-01-25 23:48:25 +00:00
Sotiri Bakagiannis
1cc16f9381 visual/Slider: drop unused labelHeight attribute 2021-01-22 20:35:36 +00:00
Sotiri Bakagiannis
9b5938098f data/TrialHandler: clean up 2021-01-21 20:55:58 +00:00
Sotiri Bakagiannis
8ad1387084 util/Util: make turnSquareBracketsIntoArrays() easier to consume 2021-01-21 20:55:44 +00:00