UNPKG

gazeplotter

Version:

Gazeplotter is a Svelte application for visualizing eye-tracking data.

23 lines (22 loc) 1.08 kB
import type { EyeFileType } from '../../../type/EyeFile/EyeFileType.js'; import type { EyeSettingsType } from '../../../type/Settings/EyeSettings/EyeSettingsType.js'; export declare class EyeClassifier { classify(slice: string): EyeSettingsType; getTypeFromSlice(slice: string): EyeFileType; getColumnDelimiter(type: EyeFileType, slice: string): string; isTobii(slice: string): boolean; isGazePoint(slice: string): boolean; isBeGaze(slice: string): boolean; isOgama(slice: string): boolean; isVarjo(slice: string): boolean; isCsv(slice: string): boolean; isCsvSegmented(slice: string): boolean; /** * To determine the delimiter used in a CSV file, we count the number of occurrences of the two most common delimiters * (',' and ';') in the header row. The delimiter with the higher count is used. * * @param slice - Text content of the first slice of the file, containing the header row * @returns delimiter used in the CSV file (either ',' or ';') */ determineCsvDelimiter(slice: string): string; }