feat:add maxWidth and maxHeight for text
This commit is contained in:
4
doric-js/index.d.ts
vendored
4
doric-js/index.d.ts
vendored
@@ -472,6 +472,8 @@ declare module 'doric/lib/src/widget/text' {
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
maxWidth?: number;
|
||||
maxHeight?: number;
|
||||
}
|
||||
export class Text extends View implements IText {
|
||||
text?: string;
|
||||
@@ -481,6 +483,8 @@ declare module 'doric/lib/src/widget/text' {
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
maxWidth?: number;
|
||||
maxHeight?: number;
|
||||
}
|
||||
export function text(config: IText): Text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user