UNPKG

@gorpacrate/core-graphics

Version:

A core library for creating shape-based graphic editors

14 lines (13 loc) 552 B
import * as React from 'react'; import { ISceneMode, IShapeData, ShapeRenderingComponent } from '../declarations'; import { IEditorEvent } from '../editor-state/editor-events'; export interface IShapeRendererPropTypes { mode: ISceneMode; shapeData: IShapeData; RenderComponent: ShapeRenderingComponent; onEditorEvent(ev: IEditorEvent): void; } export default class ShapeRenderer extends React.Component<IShapeRendererPropTypes, any> { shouldComponentUpdate(nextProps: IShapeRendererPropTypes): boolean; render(): JSX.Element; }