Fix looping edges
Some edges are self looping because of incorrect `horizontalPos`. This is occuring because of an unexpected scenario caused due to incorrect calculation of `inputApproch` and `outputApproach`. And all of this is occuring because of insufficient distance between two nodes. An example of the problem is shown in the image: https://imgur.com/aAmnzaK. Change-Id: I056e1fbcc420ce65a3ae9201e187b22ad3fbaaba Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3535791 Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Commit-Queue: Tobias Tebbi <tebbi@chromium.org> Cr-Commit-Position: refs/heads/main@{#79570}
This commit is contained in:
parent
e4273782e9
commit
767eef930b
1
AUTHORS
1
AUTHORS
@ -116,6 +116,7 @@ Gus Caplan <me@gus.host>
|
||||
Gwang Yoon Hwang <ryumiel@company100.net>
|
||||
Haichuan Wang <hc.opensource@gmail.com>
|
||||
Hannu Trey <hannu.trey@gmail.com>
|
||||
Harshal Nandigramwar <pro.bbcom18@gmail.com>
|
||||
Harshil Jain <twitharshil@gmail.com>
|
||||
Henrique Ferreiro <henrique.ferreiro@gmail.com>
|
||||
Hirofumi Mako <mkhrfm@gmail.com>
|
||||
|
@ -7,7 +7,7 @@ import { MINIMUM_EDGE_SEPARATION, Edge } from "../src/edge";
|
||||
import { NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH, DEFAULT_NODE_BUBBLE_RADIUS, GNode } from "../src/node";
|
||||
import { Graph } from "./graph";
|
||||
|
||||
const DEFAULT_NODE_ROW_SEPARATION = 130;
|
||||
const DEFAULT_NODE_ROW_SEPARATION = 150;
|
||||
const traceLayout = false;
|
||||
|
||||
function newGraphOccupation(graph: Graph) {
|
||||
|
Loading…
Reference in New Issue
Block a user