Skip to main content

Variable: DOCUMENT_MODIFIED_EVENT

const DOCUMENT_MODIFIED_EVENT: "modified" = "modified"

Defined in: src/lib/classes/PaintCanvas/index.ts:137

Event dispatched when the drawing is changed: its layers, size or details (and its documentInfo.updatedAt is set). It waits until the drawing has gone unchanged for MODIFIED_DEBOUNCE_MS, so nothing is marked while the user draws. Opening or restoring a drawing doesn't dispatch it.