exodeui 6.0.38 → 6.1.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.js +27 -20
- package/dist/index.mjs +3061 -2877
- package/dist/src/engine.d.ts +1 -0
- package/dist/src/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/src/engine.d.ts
CHANGED
|
@@ -125,6 +125,7 @@ export declare class ExodeUIEngine {
|
|
|
125
125
|
render(ctx: CanvasRenderingContext2D, width: number, height: number): void;
|
|
126
126
|
private calculateTransform;
|
|
127
127
|
private mapFontWeight;
|
|
128
|
+
private drawTextDecoration;
|
|
128
129
|
private getFontLeadingFactor;
|
|
129
130
|
private renderObject;
|
|
130
131
|
private _renderText;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -214,6 +214,7 @@ export type Geometry = {
|
|
|
214
214
|
height?: number;
|
|
215
215
|
lineHeight?: number;
|
|
216
216
|
letterSpacing?: number;
|
|
217
|
+
textDecoration?: 'none' | 'underline' | 'line-through';
|
|
217
218
|
textCase?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
218
219
|
paragraphSpacing?: number;
|
|
219
220
|
textInputId?: string;
|
|
@@ -223,6 +224,8 @@ export type Geometry = {
|
|
|
223
224
|
fontSize?: number;
|
|
224
225
|
fontFamily?: string;
|
|
225
226
|
fontWeight?: string | number;
|
|
227
|
+
fontStyle?: 'normal' | 'italic';
|
|
228
|
+
textDecoration?: 'none' | 'underline' | 'line-through';
|
|
226
229
|
}[];
|
|
227
230
|
enableSegments?: boolean;
|
|
228
231
|
isMask?: boolean;
|
|
@@ -241,6 +244,7 @@ export type Geometry = {
|
|
|
241
244
|
};
|
|
242
245
|
isEnabled: boolean;
|
|
243
246
|
};
|
|
247
|
+
fontStyle?: 'normal' | 'italic';
|
|
244
248
|
} | {
|
|
245
249
|
type: 'Triangle';
|
|
246
250
|
width: number;
|