UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

17 lines (16 loc) 815 B
import type { IComposedTextMarkSpec } from '../typings/visual'; import { BaseMark } from './base/base-mark'; import type { IMarkOption, IMarkStyle } from './interface'; import { MarkTypeEnum } from './interface'; import type { ITextMark, ITextSpec } from './interface/mark'; export declare class TextMark extends BaseMark<IComposedTextMarkSpec> implements ITextMark { static readonly type = MarkTypeEnum.text; readonly type = MarkTypeEnum.text; protected _textType: 'text' | 'rich'; getTextType(): "text" | "rich"; constructor(name: string, option: IMarkOption); protected _getDefaultStyle(): IMarkStyle<IComposedTextMarkSpec>; initStyleWithSpec(spec: ITextSpec<IComposedTextMarkSpec>, key?: string): void; compileEncode(): void; } export declare const registerTextMark: () => void;