Skip to main content

Function: strokeLogCsv()

strokeLogCsv(entries, context?): string

Defined in: src/lib/classes/StrokeLog/index.ts:346

Stroke log entries as CSV, oldest first, to paste somewhere for analysis: # lines describing the context first (e.g. device and canvas), then a header row and one row per entry. Times are ISO 8601; measurements are in milliseconds except counts (moves, frames, layers) and zoomPct; empty fields don't apply to that entry.

Parameters​

entries​

readonly StrokeLogEntry[]

context?​

Record<string, string | number> = {}

Returns​

string

Example​

strokeLogCsv(log.entries, { version: "1.13.0" });
// "# version: 1.13.0\ntime,event,detail,gap,…\n2026-10-31T20:37:55.545Z,start,mouse,6.7,0.2,…"