@pixldocs/canvas-renderer 0.5.25 → 0.5.26
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.
- package/dist/index.cjs +226 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +226 -197
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ export declare function embedFontsInPdf(pdf: jsPDF, fontFamilies: Set<string>, f
|
|
|
100
100
|
* 1. Walks ALL text nodes (including clones/repeatables) collecting
|
|
101
101
|
* fontFamily + fontWeight + fontStyle.
|
|
102
102
|
* 2. Loads each unique family via Google Fonts CSS v1 (idempotent).
|
|
103
|
-
* 3.
|
|
104
|
-
*
|
|
103
|
+
* 3. Kicks off each weight+style combo via `document.fonts.load()` without
|
|
104
|
+
* blocking render completion; late font load reflow handles final metrics.
|
|
105
105
|
*
|
|
106
106
|
* Idempotent — safe to call multiple times for the same config.
|
|
107
107
|
*/
|
|
@@ -286,6 +286,8 @@ declare interface PixldocsPreviewBaseProps {
|
|
|
286
286
|
onReady?: () => void;
|
|
287
287
|
/** Called when resolution or rendering fails */
|
|
288
288
|
onError?: (error: Error) => void;
|
|
289
|
+
/** Allow package previews to skip the blocking font-ready wait used by app preview */
|
|
290
|
+
skipFontReadyWait?: boolean;
|
|
289
291
|
}
|
|
290
292
|
|
|
291
293
|
/** Mode 1: Pre-resolved config */
|