Optional
Called when the pen is stationary (or the user otherwise activates autocomplete). This might attempt to fit the user's drawing to a particular shape.
The shape returned by this function may be ignored if it has an empty bounding box.
Although this returns a Promise, it should return as fast as possible.
(Optional) If provided, allows js-draw to efficiently render an ink trail with the given style on some devices.
Called when the pen is stationary (or the user otherwise activates autocomplete). This might attempt to fit the user's drawing to a particular shape.
The shape returned by this function may be ignored if it has an empty bounding box.
Although this returns a Promise, it should return as fast as possible.