/* @author yanjun.zsj * @date 2018.11 */ import React from 'react'; import { LineProps } from './types'; const iconSize = [12, 12]; class Line extends React.Component { constructor(props) { super(props); } removeHandle = (edit): void => { if (edit) { this.props.removeRelation(this.props.data); } } mouseOver = (edit): void => { if (edit) { this.props.toTop(this.props.data); } } render(): React.ReactElement { const { startX = 0, startY = 0, endX = 0, endY = 0, currentRelation, data, edit, closeIcon } = this.props; return