Variable ZMeasureInputConst
ZMeasureInput: ObjectSchema<{
charSize: NumberSchema<number>;
content: ArraySchema<UnionSchema<(ObjectSchema<{
char: StringSchema<string>;
charWidth: NumberSchema<number>;
count: NumberSchema<number>;
font: OptionalSchema<UnionSchema<(...)[], (...) | (...) | (...)>, undefined, undefined | "defont" | "gulim" | "simsun">;
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, undefined | boolean>;
type: LiteralSchema<"spacer", "spacer">;
}, undefined, {
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
}> | ObjectSchema<{
content: StringSchema<string>;
font: OptionalSchema<UnionSchema<(...)[], (...) | (...) | (...)>, undefined, undefined | "defont" | "gulim" | "simsun">;
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, undefined | boolean>;
slicedContent: ArraySchema<StringSchema<string>, string[]>;
type: LiteralSchema<"text", "text">;
width: OptionalSchema<ArraySchema<NumberSchema<(...)>, (...)[]>, undefined, undefined | (...)[]>;
}, undefined, {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
}>)[], {
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
}>, ({
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
})[]>;
font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
lineCount: NumberSchema<number>;
lineHeight: NumberSchema<number>;
}, undefined, {
charSize: number;
content: ({
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
})[];
font: "defont" | "mincho" | "gothic" | "gulim" | "simsun";
lineCount: number;
lineHeight: number;
}> = ...
Type declaration
charSize: NumberSchema<number>
content: ArraySchema<UnionSchema<(ObjectSchema<{
char: StringSchema<string>;
charWidth: NumberSchema<number>;
count: NumberSchema<number>;
font: OptionalSchema<UnionSchema<(...)[], (...) | (...) | (...)>, undefined, undefined | "defont" | "gulim" | "simsun">;
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, undefined | boolean>;
type: LiteralSchema<"spacer", "spacer">;
}, undefined, {
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
}> | ObjectSchema<{
content: StringSchema<string>;
font: OptionalSchema<UnionSchema<(...)[], (...) | (...) | (...)>, undefined, undefined | "defont" | "gulim" | "simsun">;
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, undefined | boolean>;
slicedContent: ArraySchema<StringSchema<string>, string[]>;
type: LiteralSchema<"text", "text">;
width: OptionalSchema<ArraySchema<NumberSchema<(...)>, (...)[]>, undefined, undefined | (...)[]>;
}, undefined, {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
}>)[], {
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
}>, ({
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
})[]>
font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">
lineCount: NumberSchema<number>
lineHeight: NumberSchema<number>
Type declaration
charSize: number
content: ({
char: string;
charWidth: number;
count: number;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
type: "spacer";
} | {
content: string;
font?: "defont" | "gulim" | "simsun";
isButton?: boolean;
slicedContent: string[];
type: "text";
width?: number[];
})[]
font: "defont" | "mincho" | "gothic" | "gulim" | "simsun"
lineCount: number
lineHeight: number