-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ User's choice for Tobii parsing (#15)
* 🐛 Interval parsing fixed * ♻️ Preparation for user prompting after file classification * ✨ Tobii Modal for User parsing choice - users can now choose form of data parsing - new modal content - new promise system - pausing parsing process and sending request from worker to the main thread - needs polishing and testing!!! this is to save progress * 🐛 Bugfix of user input - added onDestroy import - there was a `data.value` instead of `data` in worker message receiver, thus causing undefined Error later on * 💄 Improved Modal UI - new margin bottom - better labels and information - removed redundant file * 📝 Added JSDocs to Tobii deserializer - commented methods and members - methods grouped to 2 main groups - initialization and deserialization * ♻️ Refactor of TobiiDeserializer - simplification of methods (use of map and filter instead of for loops) - spreading logic of deserializer method between other, new methods * 💄 ScarfPlot participant overflow improvement - ellipsis instead of overflow * 💄 Prevent Modal accidental closing when dragging out of body area * 📈 Changed Tobii data rendering - revisits of stimuli are no longer rendered as independent stimuli; instead, they are added behind already rendered segments in one stimulus * 💄 Animation in AOI modification fix
- Loading branch information
Showing
9 changed files
with
409 additions
and
115 deletions.
There are no files selected for viewing
351 changes: 265 additions & 86 deletions
351
src/lib/class/Eye/EyeDeserializer/TobiiEyeDeserializer.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/lib/components/Modal/ModalContent/ModalContentTobiiParsingInput.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts"> | ||
import GeneralRadio from '$lib/components/General/GeneralRadio/GeneralRadio.svelte' | ||
import GeneralButtonMajor from '$lib/components/General/GeneralButton/GeneralButtonMajor.svelte' | ||
import { onDestroy } from 'svelte' | ||
export let valuePromiseResolve: (value: string) => void | ||
export let valuePromiseReject: (reason?: any) => void | ||
let value: string | ||
onDestroy(() => { | ||
valuePromiseReject(new Error('Modal closed without value')) | ||
}) | ||
</script> | ||
|
||
<div class="content"> | ||
<p> | ||
GazePlotter detected Tobii Pro Lab data with the Event column. How should | ||
the stimulus be determined? | ||
</p> | ||
<GeneralRadio | ||
options={[ | ||
{ value: '', label: 'Media record column' }, | ||
{ | ||
value: 'IntervalStart;IntervalEnd', | ||
label: `Event's '%NAME% IntervalStart' and '%NAME% IntervalEnd'`, | ||
}, | ||
{ | ||
value: '_start;_end', | ||
label: `Event's '%NAME%_start' and '%NAME%_end'`, | ||
}, | ||
]} | ||
legend="Stimulus will be determined by" | ||
bind:userSelected={value} | ||
/> | ||
</div> | ||
<GeneralButtonMajor on:click={() => valuePromiseResolve(value)}> | ||
Apply | ||
</GeneralButtonMajor> | ||
|
||
<style> | ||
.content { | ||
margin-bottom: 2rem; | ||
} | ||
</style> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters