react-lineage-dag
Advanced tools
Comparing version 2.1.0-beta.13 to 2.1.0-beta.14
@@ -5,124 +5,4 @@ 'use strict'; | ||
export let mockData = { | ||
tables: [ | ||
{ | ||
id: '1', | ||
name: 'table-1', | ||
// isCollapse: true, | ||
fields: [ | ||
{ | ||
name: 'id', | ||
title: 'id', | ||
}, | ||
{ | ||
name: 'age', | ||
title: 'age' | ||
} | ||
] | ||
}, | ||
{ | ||
id: '2', | ||
name: 'table-2', | ||
// isCollapse: true, | ||
fields: [ | ||
{ | ||
name: 'id', | ||
title: 'id', | ||
}, | ||
{ | ||
name: 'age', | ||
title: 'age' | ||
}, | ||
{ | ||
name: 'id2', | ||
title: 'id2', | ||
}, | ||
{ | ||
name: 'age2', | ||
title: 'age2' | ||
}, | ||
{ | ||
name: 'id3', | ||
title: 'id3', | ||
}, | ||
{ | ||
name: 'age3', | ||
title: 'age3' | ||
}, | ||
{ | ||
name: 'id4', | ||
title: 'id4', | ||
}, | ||
{ | ||
name: 'age4', | ||
title: 'age4' | ||
} | ||
] | ||
}, | ||
{ | ||
id: '3', | ||
name: 'table-3', | ||
isCollapse: true, | ||
fields: [ | ||
{ | ||
name: 'id', | ||
title: 'id', | ||
}, | ||
{ | ||
name: 'age', | ||
title: 'age' | ||
} | ||
] | ||
}, | ||
{ | ||
id: '4', | ||
name: 'table-4', | ||
isCollapse: true, | ||
fields: [ | ||
{ | ||
name: 'id', | ||
title: 'id', | ||
}, | ||
{ | ||
name: 'age', | ||
title: 'age' | ||
} | ||
] | ||
} | ||
], | ||
relations: [ | ||
{ | ||
srcTableId: '1', | ||
tgtTableId: '2', | ||
srcTableColName: 'id', | ||
tgtTableColName: 'age' | ||
}, | ||
{ | ||
srcTableId: '1', | ||
tgtTableId: '2', | ||
srcTableColName: 'id', | ||
tgtTableColName: 'id' | ||
}, | ||
{ | ||
srcTableId: '1', | ||
tgtTableId: '3', | ||
srcTableColName: 'id', | ||
tgtTableColName: 'age' | ||
}, | ||
{ | ||
srcTableId: '2', | ||
tgtTableId: '4', | ||
srcTableColName: 'id', | ||
tgtTableColName: 'age' | ||
}, | ||
{ | ||
srcTableId: '2', | ||
tgtTableId: '4', | ||
srcTableColName: 'id', | ||
tgtTableColName: 'id' | ||
}, | ||
{ | ||
srcTableId: '2', | ||
tgtTableId: '4' | ||
} | ||
] | ||
tables: [{"id":"75154","name":"dwd_tfc_bas_rdnet_rid_info","isCollapse":true,"nodeType":"PHYSICAL_TABLE","driverType":"odps"}] , | ||
relations: [{"srcTableId":"75154","tgtTableId":"75154","srcTableColName":null,"tgtTableColName":null}] | ||
} |
{ | ||
"name": "react-lineage-dag", | ||
"version": "2.1.0-beta.13", | ||
"version": "2.1.0-beta.14", | ||
"description": "表格/字段血缘React组件", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -312,2 +312,4 @@ import {Node} from 'butterfly-dag'; | ||
let rightType = this._rankdir === 'RL' ? 'target' : 'source'; | ||
let targetOrientation = this._rankdir === 'RL' ? [1,0] : [-1,0]; | ||
let sourceOrientation = this._rankdir === 'RL' ? [-1,0] : [1,0]; | ||
// 给节点add endpoint | ||
@@ -318,3 +320,3 @@ if (isInit) { | ||
id: item.id, | ||
orientation: item.type === 'target' ? [-1,0] : [1,0], | ||
orientation: item.type === 'target' ? targetOrientation : sourceOrientation, | ||
dom: item.dom, | ||
@@ -321,0 +323,0 @@ originId: this.id, |
Sorry, the diff of this file is too big to display
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
0
100
0
235290
33
4137