diff --git a/buildoz.js b/buildoz.js index 6107f78..5718f0d 100644 --- a/buildoz.js +++ b/buildoz.js @@ -1,4 +1,15 @@ - +/** + * _ ___ Another + * / |/ (_)______ __ _____ + * / / / __(_-maxWidth) maxWidth = totWidth layerWidths.push(totWidth) } - - // Temporary "virtual" links used only during autoPlace() to let reorderLayers() - // reason about placeholder nodes as if they were part of the original long-link. - // This prevents bogus swaps caused by missing port info on placeholders. - this._virtualLinks = new Map() + // If any long-links, create placeholders for skipped layers + this._virtualLinks = new Map() this.flow.longLinks = this.findLongLinks(this.flow.links) for(const llink of this.flow.longLinks){ let fakeParent = llink.link.from[0]