PsyTask | API Docs
    Preparing search index...

    Function createApp

    • Create app

      Parameters

      • __namedParameters: Partial<
            {
                alert_on_leave: boolean;
                frame_ms: number;
                frames_count: number;
                i18n: {
                    beforeunload_alert: string;
                    leave_alert_on_fps: string;
                    leave_alert_on_task: string;
                };
                root: HTMLElement;
            },
        > = {}

      Returns Promise<any>

      Basic usage

      using app = await createApp();
      using dc = app.collector();
      using fixation = app.scene(
      (props: {}, ctx) => {
      const node = document.createElement('div');
      node.textContent = '+';
      return node;
      },
      {
      defaultProps: {},
      duration: 500,
      },
      );