jspsych 7.0.0 → 7.1.0

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/JsPsych.d.ts CHANGED
@@ -43,6 +43,14 @@ export declare class JsPsych {
43
43
  */
44
44
  private finished;
45
45
  private resolveFinishedPromise;
46
+ /**
47
+ * is the experiment running in `simulate()` mode
48
+ */
49
+ private simulation_mode;
50
+ /**
51
+ * simulation options passed in via `simulate()`
52
+ */
53
+ private simulation_options;
46
54
  webaudio_context: AudioContext;
47
55
  internal: {
48
56
  /**
@@ -61,6 +69,7 @@ export declare class JsPsych {
61
69
  * @param timeline The timeline to be run
62
70
  */
63
71
  run(timeline: any[]): Promise<void>;
72
+ simulate(timeline: any[], simulation_mode: "data-only" | "visual", simulation_options?: {}): Promise<void>;
64
73
  getProgress(): {
65
74
  total_trials: number;
66
75
  current_trial_global: number;
@@ -71,7 +80,7 @@ export declare class JsPsych {
71
80
  getDisplayElement(): HTMLElement;
72
81
  getDisplayContainerElement(): HTMLElement;
73
82
  finishTrial(data?: {}): void;
74
- endExperiment(end_message: string): void;
83
+ endExperiment(end_message?: string, data?: {}): void;
75
84
  endCurrentTimeline(): void;
76
85
  getCurrentTrial(): any;
77
86
  getInitSettings(): any;