@up-group/react-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
36 lines (35 loc) • 1.16 kB
TypeScript
/// <reference types="react" />
import * as React from "react";
import { UpDrawingProps } from "./";
import CanvasState from "./CanvasState";
export interface UpDrawingState {
activationShape: boolean;
src: string;
zones?: Array<any>;
selection?: any;
scale: number;
}
export default class UpDrawing extends React.Component<UpDrawingProps, UpDrawingState> {
canvas: any;
canvasState: CanvasState;
contextKey: string;
static defaultProps: UpDrawingProps;
constructor(p: any, c: any);
setCanvas: (canvas: any) => void;
componentWillReceiveProps(nextProps: UpDrawingProps): void;
zoomIn: (event: any) => void;
zoomOut: (event: any) => void;
zoomNormal: (event: any) => void;
rotate: (event: any) => void;
open: () => void;
crop: (event: any) => void;
cropAll: (event: any) => void;
del: (event: any) => void;
delAll: () => void;
toggleActivationShape: (value: any) => void;
componentDidUpdate(): void;
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
onChange: (event: any) => void;
}