New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-lineage-dag

Package Overview
Dependencies
Maintainers
2
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.0.11 to 2.0.12

src/canvas/empty.js

2

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -10,3 +10,3 @@ 'use strict';

tables, relations, columns, emptyContent, operator,
_titleRender, _enableHoverChain
_titleRender, _enableHoverChain, _emptyContent, _emptyWidth
} = data;

@@ -22,3 +22,5 @@

_titleRender,
_enableHoverChain
_enableHoverChain,
_emptyContent,
_emptyWidth
}, item);

@@ -25,0 +27,0 @@ }),

@@ -5,2 +5,3 @@ import {Node} from 'butterfly-dag';

import * as _ from 'lodash';
import emptyDom from './empty';

@@ -248,8 +249,10 @@ export default class TableNode extends Node {

const _emptyContent = _.get(this.options, '_emptyContent');
const noDataTree = emptyDom({
content: _emptyContent,
width: this.options._emptyWidth
});
container.append(noDataTree);
this.height = $(container).outerHeight();
if (_emptyContent) {
const noDataTree = emptyDom({
content: _emptyContent,
width: this.options._emptyWidth
});
container.append(noDataTree);
this.height = $(container).outerHeight();
}
}

@@ -256,0 +259,0 @@

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

Sorry, the diff of this file is not supported yet

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