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

vap

Package Overview
Dependencies
Maintainers
3
Versions
568
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vap - npm Package Compare versions

Comparing version 1.7.6 to 1.7.7

layouts/charts/RadarChart/Common.d.ts

1

layouts/charts/index.d.ts

@@ -36,2 +36,3 @@ /**

export { default as PieChart } from './PieChart';
export { default as RadarChart } from './RadarChart';
export { default as WordCloud } from './WordCloud';

@@ -44,3 +44,5 @@ "use strict";

exports.PieChart = PieChart_1.default;
var RadarChart_1 = require("./RadarChart");
exports.RadarChart = RadarChart_1.default;
var WordCloud_1 = require("./WordCloud");
exports.WordCloud = WordCloud_1.default;

2

layouts/charts/interface.d.ts

@@ -30,3 +30,3 @@ export interface Item {

*/
tip?: (d: any) => string;
tip?: (d: any, i?: number) => string;
/**

@@ -33,0 +33,0 @@ * 点击事件

@@ -55,3 +55,3 @@ "use strict";

var _this = this;
var group = enter.append('g').attr('class', function (d, i) { return "_item _item_" + i + " " + (i == 0 ? 'active' : ''); })
var group = enter.append('g').attr('class', function (d, i) { return _this.itemClass(d, i); })
.attr('transform', function (d, i) { return "translate(" + _this.WIDTH / 2 + "," + _this.HEIGHT / 2 + ")"; });

@@ -71,4 +71,5 @@ var path = group.append('path');

});
group.on('mouseover', function (d, i) {
path.on('mouseover', function (d, i) {
var data = d.data;
console.log(data);
d3.selectAll('g._item').classed('active', false);

@@ -81,3 +82,3 @@ d3.select('#' + _this.id + 'title').text(d.data[_this.props.labelField]);

if (this.props.onClick) {
group.on('click', function (d) { return _this.props.onClick(d.data); });
path.on('click', function (d) { return _this.props.onClick(d.data); });
}

@@ -90,2 +91,3 @@ };

var txtGroup = this.SVG.append('g').attr('class', '_text');
group.select('g._item_0').classed('active', true);
txtGroup.append('text')

@@ -92,0 +94,0 @@ .attr('class', '_title')

@@ -119,3 +119,10 @@ "use strict";

}
return React.createElement(Table_1.default, __assign({}, this.props, param, { loading: this.state.loading }));
var columns = _.concat([], this.props.columns);
columns.unshift({
title: '序号',
render: function (d, j, i) {
return i + (_this.state.current - 1) * pageSize + 1;
}
});
return React.createElement(Table_1.default, __assign({}, this.props, param, { columns: columns, loading: this.state.loading }));
};

@@ -122,0 +129,0 @@ return default_1;

{
"name": "vap",
"version": "1.7.6",
"version": "1.7.7",
"description": "vap",

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

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