UNPKG

@visactor/react-vrender

Version:
8 lines (7 loc) 718 B
import type { IStage, IGraphic, IGroup, ILayer, IGlyph } from '@visactor/vrender'; import React from 'react'; import ReactReconciler from 'react-reconciler'; import type { Container, Instance, Props, TextInstance, Type } from './types'; export declare const createInstance: (type: Type, props: Props, rootContainerInstance?: Container) => ILayer | IGroup | IGraphic<Partial<import("@visactor/vrender").IGraphicAttribute>> | IGlyph<Partial<import("@visactor/vrender").IGraphicAttribute>>; export declare const reconcilor: ReactReconciler.Reconciler<Container, Instance, TextInstance, any, any>; export declare const render: (component: React.ReactNode, target: IStage | IGroup, callback?: (() => void) | null) => void;