Creates a new StrokeGrouping instance with the given spatial/temporal config.
Overlap padding, gap threshold, and max strokes per group.
Forces all currently open groups to finalise immediately. Call this at session end to flush any in-progress glyphs.
Registers a callback invoked each time a group is finalised.
Receives the completed StrokeGroup.
Resets the grouper, discarding all open and finalised groups.
Clusters strokes into per-glyph groups using proximity and timing.