@jspsych/plugin-tobii-calibration 0.1.1

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/src/types.ts ADDED
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Type definitions for calibration plugin
3
+ */
4
+
5
+ export interface CalibrationPoint {
6
+ x: number;
7
+ y: number;
8
+ }
9
+
10
+ export interface CalibrationParameters {
11
+ /** Number of calibration points */
12
+ calibration_points?: 5 | 9 | 13 | 15 | 19 | 25;
13
+ /** Calibration mode: click to advance or view for fixed duration */
14
+ calibration_mode?: 'click' | 'view';
15
+ /** Size of calibration point in pixels */
16
+ point_size?: number;
17
+ /** Color of calibration point */
18
+ point_color?: string;
19
+ /** Duration to show each point before data collection (ms) - allows user to fixate */
20
+ point_duration?: number;
21
+ /** Show progress indicator */
22
+ show_progress?: boolean;
23
+ /** Custom calibration points (overrides calibration_points) */
24
+ custom_points?: CalibrationPoint[];
25
+ /** Instructions text */
26
+ instructions?: string;
27
+ /** Button text for click mode */
28
+ button_text?: string;
29
+ /** Background color of the calibration container */
30
+ background_color?: string;
31
+ /** Primary button color */
32
+ button_color?: string;
33
+ /** Primary button hover color */
34
+ button_hover_color?: string;
35
+ /** Retry button color */
36
+ retry_button_color?: string;
37
+ /** Retry button hover color */
38
+ retry_button_hover_color?: string;
39
+ /** Success message color */
40
+ success_color?: string;
41
+ /** Error message color */
42
+ error_color?: string;
43
+ /** Maximum number of retry attempts allowed on calibration failure */
44
+ max_retries?: number;
45
+ /** Duration of zoom in/out animations in ms */
46
+ zoom_duration?: number;
47
+ /** Duration of explosion animation in ms */
48
+ explosion_duration?: number;
49
+ /** Duration to show success result before auto-advancing in ms */
50
+ success_display_duration?: number;
51
+ /** Duration to show instructions before auto-advancing in view mode in ms */
52
+ instruction_display_duration?: number;
53
+ }