exodeui 6.2.3 → 6.2.5

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.
@@ -126,7 +126,6 @@ export declare class ExodeUIEngine {
126
126
  private calculateTransform;
127
127
  private mapFontWeight;
128
128
  private drawTextDecoration;
129
- private getFontLeadingFactor;
130
129
  private renderObject;
131
130
  private _renderText;
132
131
  private applyStrokeAlignment;
@@ -0,0 +1,24 @@
1
+ export interface TextMeasurementOptions {
2
+ text: string;
3
+ fontFamily: string;
4
+ fontSize: number;
5
+ fontWeight?: string | number;
6
+ fontStyle?: string;
7
+ lineHeight?: number;
8
+ width?: number;
9
+ letterSpacing?: number;
10
+ paragraphSpacing?: number;
11
+ paragraphIndent?: number;
12
+ textCase?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
13
+ segments?: any[];
14
+ enableSegments?: boolean;
15
+ }
16
+ export declare function measureText(options: TextMeasurementOptions): {
17
+ width: number;
18
+ height: number;
19
+ lineCount: number;
20
+ lines: {
21
+ text: string;
22
+ width: number;
23
+ }[];
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodeui",
3
- "version": "6.2.3",
3
+ "version": "6.2.5",
4
4
  "description": "React Runtime for ExodeUI Animation Engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",