@gorpacrate/core-graphics
Version:
A core library for creating shape-based graphic editors
14 lines (13 loc) • 570 B
TypeScript
import * as React from 'react';
import { IShapeData, ShapeRenderingComponent } from '../declarations';
export interface IWrappedComponentPropTypes {
selected: boolean;
beingSelectedWithRubberBand: boolean;
subSelected: boolean;
beingDrawn: boolean;
transformed: boolean;
shapeData: IShapeData;
onMouseDown(e: React.MouseEvent<SVGGElement>): void;
onMouseUp(e: React.MouseEvent<SVGGElement>): void;
}
export declare function wrapInShapeHelpers<T extends React.ComponentClass<IWrappedComponentPropTypes>>(comp: T): ShapeRenderingComponent;