nicsys license
This commit is contained in:
13
buildoz.js
13
buildoz.js
@@ -1,4 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* _ ___ Another
|
||||||
|
* / |/ (_)______ __ _____
|
||||||
|
* / / / __(_-</ // (_-<
|
||||||
|
* /_/|_/_/\__/___/\_, /___/
|
||||||
|
* /___/
|
||||||
|
* production !
|
||||||
|
*
|
||||||
|
* Licensed under the MIT License:
|
||||||
|
* This code is free to use and modify,
|
||||||
|
* as long as the copyright notice and license are kept.
|
||||||
|
*/
|
||||||
|
|
||||||
class Buildoz extends HTMLElement {
|
class Buildoz extends HTMLElement {
|
||||||
constructor(){
|
constructor(){
|
||||||
|
|||||||
20
bzGraflow.js
20
bzGraflow.js
@@ -1,3 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* _ ___ Another
|
||||||
|
* / |/ (_)______ __ _____
|
||||||
|
* / / / __(_-</ // (_-<
|
||||||
|
* /_/|_/_/\__/___/\_, /___/
|
||||||
|
* /___/
|
||||||
|
* production !
|
||||||
|
*
|
||||||
|
* Licensed under the MIT License:
|
||||||
|
* This code is free to use and modify,
|
||||||
|
* as long as the copyright notice and license are kept.
|
||||||
|
*/
|
||||||
|
|
||||||
class BZgraflow extends Buildoz{
|
class BZgraflow extends Buildoz{
|
||||||
dirVect = {
|
dirVect = {
|
||||||
n: { x: 0, y: -1 },
|
n: { x: 0, y: -1 },
|
||||||
@@ -414,13 +427,10 @@ class BZgraflow extends Buildoz{
|
|||||||
if(totWidth>maxWidth) maxWidth = totWidth
|
if(totWidth>maxWidth) maxWidth = totWidth
|
||||||
layerWidths.push(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
|
// If any long-links, create placeholders for skipped layers
|
||||||
|
this._virtualLinks = new Map()
|
||||||
this.flow.longLinks = this.findLongLinks(this.flow.links)
|
this.flow.longLinks = this.findLongLinks(this.flow.links)
|
||||||
for(const llink of this.flow.longLinks){
|
for(const llink of this.flow.longLinks){
|
||||||
let fakeParent = llink.link.from[0]
|
let fakeParent = llink.link.from[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user