UNPKG

gazeplotter

Version:

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

26 lines (25 loc) 848 B
import { AbstractDownloader } from './AbstractDownloader.ts'; export declare class ScarfDownloader extends AbstractDownloader { #private; minimalWidth: number; width: number; height: number; fileType: '.jpg' | '.png' | '.svg' | '.webp'; fileName: string; staticSvg: SVGElement; constructor(fileName: string, fileType: string, width: number, el: HTMLElement); download(): Promise<void>; buildContent(): Promise<string>; /** * Returns the id of the chartwrap element. * * This is needed for correct styling of the svg, * because colors are applied to rect elements which are children of the given id. * * Example: #id-of-chartwrap rect { fill: red; } * * @param el Whole scarf plot element * @returns id of the chartwrap element */ private getSvgId; }