@textbus/adapter-viewfly
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
18 lines (17 loc) • 740 B
TypeScript
import { Component, ViewMount } from '@textbus/core';
import { ComponentSetup, DynamicRef, Injector, ViewFlyNode } from '@viewfly/core';
import { DomAdapter } from '@textbus/platform-browser';
export interface ViewComponentProps<T extends Component> {
component: T;
rootRef: DynamicRef<Element>;
}
export interface ViewflyAdapterComponents {
[key: string]: ComponentSetup<ViewComponentProps<any>>;
}
export declare class ViewflyAdapter extends DomAdapter<ViewFlyNode, ViewFlyNode> {
private components;
private componentRefs;
constructor(components: ViewflyAdapterComponents, mount: ViewMount<ViewFlyNode, Element>);
render(rootComponent: Component, injector: Injector): void | (() => void);
copy(): void;
}