mtrl 0.6.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,6 +239,14 @@ export interface ProgressComponent {
239
239
  * @returns Current size in pixels, or undefined for linear variant
240
240
  */
241
241
  getSize: () => number | undefined;
242
+ /**
243
+ * Returns a Promise that resolves after the current canvas state
244
+ * has been painted to screen. Useful when you need to ensure a
245
+ * value change (e.g. 100%) is visually rendered before proceeding.
246
+ *
247
+ * @returns Promise that resolves after the next paint
248
+ */
249
+ painted: () => Promise<void>;
242
250
  /**
243
251
  * Adds an event listener to the progress
244
252
  * @param event - Event name ('change', 'complete')