@shotstack/shotstack-studio 2.0.0-beta.12 → 2.0.0-beta.13
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.d.ts +11 -0
- package/dist/internal.es.js +236 -208
- package/dist/internal.umd.js +14 -14
- package/dist/schema/index.d.ts +11 -0
- package/dist/shotstack-studio.es.js +359 -331
- package/dist/shotstack-studio.umd.js +19 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -533,6 +533,7 @@ export declare class Edit extends Entity {
|
|
|
533
533
|
private canvas;
|
|
534
534
|
private lumaMaskController;
|
|
535
535
|
private clipErrors;
|
|
536
|
+
private fontMetadata;
|
|
536
537
|
/**
|
|
537
538
|
* Create an Edit instance from a template configuration.
|
|
538
539
|
*
|
|
@@ -797,6 +798,16 @@ export declare class Edit extends Entity {
|
|
|
797
798
|
getTimelineFonts(): Array<{
|
|
798
799
|
src: string;
|
|
799
800
|
}>;
|
|
801
|
+
/**
|
|
802
|
+
* Look up a font URL by family name and weight.
|
|
803
|
+
* Uses normalized metadata extracted from TTF files during font loading.
|
|
804
|
+
* This enables rich-text font resolution for template fonts with UUID-based URLs.
|
|
805
|
+
*
|
|
806
|
+
* @param familyName - The font family name (e.g., "Lato", "Lato Light")
|
|
807
|
+
* @param weight - The font weight (e.g., 300 for Light, 900 for Black)
|
|
808
|
+
* @returns The font URL if found, null otherwise
|
|
809
|
+
*/
|
|
810
|
+
getFontUrlByFamilyAndWeight(familyName: string, weight: number): string | null;
|
|
800
811
|
/**
|
|
801
812
|
* Remove any fonts from timeline.fonts that are no longer used by clips.
|
|
802
813
|
* Call this after changing a clip's font to clean up the old font.
|