Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-lineage-dag

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lineage-dag - npm Package Compare versions

Comparing version 2.1.0-beta.14 to 2.1.0-beta.15

dist/index.css.map

124

example/mock_data/data.jsx

@@ -5,4 +5,124 @@ 'use strict';

export let mockData = {
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}]
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'
}
]
}

6

package.json
{
"name": "react-lineage-dag",
"version": "2.1.0-beta.14",
"version": "2.1.0-beta.15",
"description": "表格/字段血缘React组件",

@@ -29,7 +29,7 @@ "main": "dist/index.js",

"jquery": ">3.5.1",
"butterfly-dag": "5.1.0-beta.19"
"butterfly-dag": "5.1.0-beta.20"
},
"devDependencies": {
"@babel/core": "~7.12.0",
"butterfly-dag": "5.1.0-beta.19",
"butterfly-dag": "5.1.0-beta.20",
"@babel/plugin-proposal-class-properties": "~7.12.1",

@@ -36,0 +36,0 @@ "@babel/plugin-proposal-object-rest-spread": "~7.12.0",

@@ -312,4 +312,2 @@ 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

@@ -320,3 +318,3 @@ if (isInit) {

id: item.id,
orientation: item.type === 'target' ? targetOrientation : sourceOrientation,
orientation: item.type === 'target' ? [-1,0] : [1,0],
dom: item.dom,

@@ -323,0 +321,0 @@ originId: this.id,

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc