plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
49 lines (48 loc) • 1.69 kB
TypeScript
export default ImageMapItems;
declare class ImageMapItems extends React.Component<any, any, any> {
static propTypes: {
canvasRef: PropTypes.Requireable<any>;
descriptors: PropTypes.Requireable<object>;
};
constructor(props: any);
constructor(props: any, context: any);
state: {
activeKey: any[];
collapse: boolean;
textSearch: string;
descriptors: {};
filteredDescriptors: any[];
svgModalVisible: boolean;
};
componentDidMount(): void;
UNSAFE_componentWillReceiveProps(nextProps: any): void;
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
componentWillUnmount(): void;
waitForCanvasRender: (canvas: any) => void;
attachEventListener: (canvas: any) => void;
detachEventListener: (canvas: any) => void;
handlers: {
onAddItem: (item: any, centered: any) => void;
onAddSVG: (option: any, centered: any) => void;
onDrawingItem: (item: any) => void;
onChangeActiveKey: (activeKey: any) => void;
onCollapse: () => void;
onSearchNode: (e: any) => void;
transformList: () => any;
onSVGModalVisible: () => void;
};
events: {
onDragStart: (e: any, item: any) => void;
onDragOver: (e: any) => boolean;
onDragEnter: (e: any) => void;
onDragLeave: (e: any) => void;
onDrop: (e: any) => boolean;
onDragEnd: (e: any) => void;
};
item: any;
renderItems: (items: any) => JSX.Element;
renderItem: (item: any, centered: any) => JSX.Element;
render(): JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';