@visactor/vtable
Version:
canvas table width high performance
96 lines (95 loc) • 4.91 kB
TypeScript
import type { ColorPropertyDefine, ColorsPropertyDefine, ColumnStyle, IStyleOption, TextOverflow, UnderlinePropertyDefine, LineThroughPropertyDefine, LineDashPropertyDefine, PaddingsPropertyDefine, CursorPropertyDefine, LineWidthsPropertyDefine, LineDashsPropertyDefine, MarkedPropertyDefine, FontSizePropertyDefine, FontFamilyPropertyDefine, FontWeightPropertyDefine, FontVariantPropertyDefine, FontStylePropertyDefine, TextAlignType, TextBaselineType } from '../../ts-types';
import { EventTarget } from '../../event/EventTarget';
export declare class Style extends EventTarget implements ColumnStyle {
private _color?;
private _strokeColor?;
private _fontSize?;
private _fontFamily?;
private _fontWeight?;
private _fontVariant?;
private _fontStyle?;
private _textOverflow;
private _padding;
private _defaultPadding;
private _textStick;
private _textStickBaseOnAlign;
private _marked;
private _textAlign;
private _textBaseline;
private _bgColor?;
private _borderColor?;
private _lineHeight?;
private _underline?;
private _underlineColor?;
private _underlineDash?;
private _underlineOffset?;
private _lineThrough?;
private _lineThroughColor?;
private _lineThroughDash?;
private _linkColor?;
private _cursor?;
private _borderLineWidth?;
private _borderLineDash?;
static get EVENT_TYPE(): {
CHANGE_STYLE: string;
};
static get DEFAULT(): Style;
constructor(style?: IStyleOption, headerStyle?: IStyleOption);
get bgColor(): ColorPropertyDefine | undefined;
set bgColor(bgColor: ColorPropertyDefine | undefined);
get color(): ColorPropertyDefine | undefined;
set color(color: ColorPropertyDefine | undefined);
get strokeColor(): ColorPropertyDefine | undefined;
set strokeColor(strokeColor: ColorPropertyDefine | undefined);
get fontSize(): FontSizePropertyDefine | undefined;
set fontSize(fontSize: FontSizePropertyDefine | undefined);
get fontFamily(): FontFamilyPropertyDefine | undefined;
set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined);
get fontWeight(): FontWeightPropertyDefine | undefined;
set fontWeight(fontWeight: FontWeightPropertyDefine | undefined);
get fontVariant(): FontVariantPropertyDefine | undefined;
set fontVariant(fontVariant: FontVariantPropertyDefine | undefined);
get fontStyle(): FontStylePropertyDefine | undefined;
set fontStyle(fontStyle: FontStylePropertyDefine | undefined);
get textOverflow(): TextOverflow;
set textOverflow(textOverflow: TextOverflow);
get padding(): PaddingsPropertyDefine | undefined;
set padding(padding: PaddingsPropertyDefine | undefined);
get borderColor(): ColorsPropertyDefine | undefined;
set borderColor(borderColor: ColorsPropertyDefine | undefined);
get textStick(): boolean | 'vertical' | 'horizontal';
set textStick(textStick: boolean | 'vertical' | 'horizontal');
get textStickBaseOnAlign(): boolean;
set textStickBaseOnAlign(textStickBaseOnAlign: boolean);
get marked(): MarkedPropertyDefine | undefined;
set marked(marked: MarkedPropertyDefine | undefined);
get textAlign(): TextAlignType;
set textAlign(textAlign: TextAlignType);
get textBaseline(): TextBaselineType;
set textBaseline(textBaseline: TextBaselineType);
get lineHeight(): number | undefined;
set lineHeight(lineHeight: number | undefined);
get underline(): UnderlinePropertyDefine | undefined;
set underline(underline: UnderlinePropertyDefine | undefined);
get underlineColor(): ColorPropertyDefine | undefined;
set underlineColor(underlineColor: ColorPropertyDefine | undefined);
get underlineDash(): LineDashPropertyDefine | undefined;
set underlineDash(underlineDash: LineDashPropertyDefine | undefined);
get underlineOffset(): number | undefined;
set underlineOffset(underlineOffset: number | undefined);
get lineThrough(): LineThroughPropertyDefine | undefined;
set lineThrough(lineThrough: LineThroughPropertyDefine | undefined);
get lineThroughColor(): ColorPropertyDefine | undefined;
set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined);
get lineThroughDash(): LineDashPropertyDefine | undefined;
set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined);
get linkColor(): ColorPropertyDefine | undefined;
set linkColor(linkColor: ColorPropertyDefine | undefined);
get cursor(): CursorPropertyDefine | undefined;
set cursor(cursor: CursorPropertyDefine | undefined);
get borderLineWidth(): LineWidthsPropertyDefine | undefined;
set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined);
get borderLineDash(): LineDashsPropertyDefine | undefined;
set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined);
clone(): Style;
}