UNPKG

gazeplotter

Version:

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

9 lines (8 loc) 358 B
import { AbstractDownloader } from './AbstractDownloader.ts'; export class WorkplaceDownloader extends AbstractDownloader { download(data, fileName) { const json = JSON.stringify(data); const content = URL.createObjectURL(new Blob([json], { type: 'application/json' })); super.triggerDownload(content, fileName, '.json'); } }