Fixed relation line
Former-commit-id: 82543a898b570ac648d5ec4a3d71e830b8ac5597
This commit is contained in:
parent
9be6029e1a
commit
0e9be86388
|
@ -504,12 +504,12 @@ export default class VisualConsole {
|
|||
const startX = parent.props.x + parent.elementRef.clientWidth / 2;
|
||||
const startY =
|
||||
parent.props.y +
|
||||
(parent.elementRef.clientHeight + parent.labelElementRef.clientHeight) /
|
||||
(parent.elementRef.clientHeight - parent.labelElementRef.clientHeight) /
|
||||
2;
|
||||
const endX = child.props.x + child.elementRef.clientWidth / 2;
|
||||
const endY =
|
||||
child.props.y +
|
||||
(child.elementRef.clientHeight + child.labelElementRef.clientHeight) / 2;
|
||||
(child.elementRef.clientHeight - child.labelElementRef.clientHeight) / 2;
|
||||
|
||||
const line = new Line(
|
||||
linePropsDecoder({
|
||||
|
|
Loading…
Reference in New Issue