nodelayout
Advanced tools
Comparing version 1.3.6 to 1.3.8
{ | ||
"name": "nodelayout", | ||
"version": "1.3.6", | ||
"version": "1.3.8", | ||
"description": "For node Layout.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -68,3 +68,5 @@ # nodeLayout | ||
source: "0", | ||
target: "1" | ||
target: "1", | ||
startIndex: 0, //0, 1, 2, 3 | ||
endIndex: 3 | ||
}] | ||
@@ -71,0 +73,0 @@ }) |
@@ -343,4 +343,4 @@ import * as d3 from "d3"; | ||
params.lines.forEach((item, index) => { | ||
const startIndex = item.startIndex || 3 | ||
const endIndex = item.endIndex || 1 | ||
const startIndex = item.startIndex !== undefined ? item.startIndex : 3 | ||
const endIndex = item.endIndex !== undefined ? item.startIndex : 1 | ||
connectData.push({ | ||
@@ -347,0 +347,0 @@ id: uuid(), |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137305
80