/** * Copyright (c) 2019-present Houfeng * @author Houfeng */ /// import { Graph } from "../Graph"; import { IEditable } from "./IEditable"; import { IEditableProps } from "./IEditableProps"; import { ShapeModel } from "../Shape/ShapeModel"; import { TextEditor } from "../TextEditor"; import { ITextStyle } from "../Shape/ITextStyle"; export declare class Editable extends Graph implements IEditable { model: ShapeModel; editor: TextEditor; setEditor: (ref: TextEditor) => TextEditor; /** * 切换样式 */ toggleStyle: (style: ITextStyle) => Promise; /** * 切换样式 */ addStyle: (style: ITextStyle) => Promise; toggleBlock: (blockType: string) => Promise; onEditorChange: (text: any) => void; renderEditor(): JSX.Element; renderContainer(): JSX.Element; focus: () => void; blur: () => void; render(): JSX.Element; }