plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
43 lines (42 loc) • 1.43 kB
TypeScript
export default WorkflowItems;
declare class WorkflowItems 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[];
};
componentDidMount(): void;
UNSAFE_componentWillReceiveProps(nextProps: any): void;
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
componentWillUnmount(): void;
handlers: {
onAddItem: (item: any, centered: any) => void;
onChangeActiveKey: (activeKey: any) => void;
onCollapse: () => void;
onSearchNode: (e: any) => 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;
waitForCanvasRender: (canvas: any) => void;
attachEventListener: (canvasRef: any) => void;
detachEventListener: (canvasRef: any) => void;
renderItems: (items: any) => JSX.Element;
render(): JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';