@antv/g6-core
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -50,3 +50,3 @@ var subjectColor = 'rgb(95, 149, 255)'; | ||
export default { | ||
version: '0.6.2', | ||
version: '0.6.3', | ||
rootContainerClassName: 'root-container', | ||
@@ -53,0 +53,0 @@ nodeContainerClassName: 'node-container', |
@@ -14,5 +14,3 @@ import { __spreadArray } from "tslib"; | ||
export var dataValidation = function dataValidation(data) { | ||
var _a; // 1. 必须传入数据 | ||
// 1. 必须传入数据 | ||
if (!data) { | ||
@@ -26,4 +24,4 @@ console.error('G6 Error Tips: the data must be defined'); | ||
edges = data.edges, | ||
_b = data.combos, | ||
combos = _b === void 0 ? [] : _b; | ||
_a = data.combos, | ||
combos = _a === void 0 ? [] : _a; | ||
@@ -57,3 +55,3 @@ if (!nodes && !edges) { | ||
}); | ||
var comboIds = (_a = combos) === null || _a === void 0 ? void 0 : _a.map(function (combo) { | ||
var comboIds = combos === null || combos === void 0 ? void 0 : combos.map(function (combo) { | ||
return combo.id; | ||
@@ -60,0 +58,0 @@ }); |
@@ -56,3 +56,3 @@ "use strict"; | ||
var _default = { | ||
version: '0.6.2', | ||
version: '0.6.3', | ||
rootContainerClassName: 'root-container', | ||
@@ -59,0 +59,0 @@ nodeContainerClassName: 'node-container', |
@@ -23,5 +23,3 @@ "use strict"; | ||
var dataValidation = function dataValidation(data) { | ||
var _a; // 1. 必须传入数据 | ||
// 1. 必须传入数据 | ||
if (!data) { | ||
@@ -35,4 +33,4 @@ console.error('G6 Error Tips: the data must be defined'); | ||
edges = data.edges, | ||
_b = data.combos, | ||
combos = _b === void 0 ? [] : _b; | ||
_a = data.combos, | ||
combos = _a === void 0 ? [] : _a; | ||
@@ -66,3 +64,3 @@ if (!nodes && !edges) { | ||
}); | ||
var comboIds = (_a = combos) === null || _a === void 0 ? void 0 : _a.map(function (combo) { | ||
var comboIds = combos === null || combos === void 0 ? void 0 : combos.map(function (combo) { | ||
return combo.id; | ||
@@ -69,0 +67,0 @@ }); |
{ | ||
"name": "@antv/g6-core", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "A Graph Visualization Framework in JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
1152975