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

e-charts-builder-pro

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e-charts-builder-pro - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

axisPointer.js

@@ -7,3 +7,5 @@ 'use strict';

return clone(axisPointer, {
link: { xAxisIndex: 'all' },
link: {
xAxisIndex: 'all'
},
lineStyle: {

@@ -10,0 +12,0 @@ width: 1,

'use strict';
var clone = require('lodash/defaultsDeep');
var handleIcon = 'image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAASCAYAAABfJS4tAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFENDE0RkRGQTZCMDExRTlCMkM5RTNGNTJEQ0MzNEFDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFENDE0RkUwQTZCMDExRTlCMkM5RTNGNTJEQ0MzNEFDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUQ0MTRGRERBNkIwMTFFOUIyQzlFM0Y1MkRDQzM0QUMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUQ0MTRGREVBNkIwMTFFOUIyQzlFM0Y1MkRDQzM0QUMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz48DKcTAAAAZElEQVR42mL8//8/Ay0AEwONwKjBcMAompfg9e//v5kM/xlkqGMiwxMmRqZ0FqoaCgJAs/4x/JvJRIyhb+qzsLLxGT6aKhBxKJwb95iqkQdLGaCkAWJQ1VCgmYyjhdDQNRggwAAVGSHsZoYG5gAAAABJRU5ErkJggg==';

@@ -35,5 +36,7 @@

} else {
return clone(dz, { type: 'inside' });
return clone(dz, {
type: 'inside'
});
}
});
};
'use strict';
var echarts = require('echarts');
var dataZoom = require('./dataZoom');
var grid = require('./grid');
var legend = require('./legend');
var series = require('./series');
var tooltip = require('./tooltip');
var title = require('./title');
var xAxis = require('./xAxis');
var yAxis = require('./yAxis');
var axisPointer = require('./axisPointer');
var loading = require('./loading');

@@ -17,3 +27,2 @@

var container = _ref.container;
this.container = container;

@@ -28,9 +37,14 @@ this.charts = null;

}
Builder.prototype.title = function (t) {
if (typeof t === 'string' || typeof t === 'number') {
t = { text: t };
t = {
text: t
};
}
this.option.title = title(t);
return this;
};
Builder.prototype.color = function (colors) {

@@ -40,5 +54,7 @@ if (!colors instanceof Array) {

}
this.option.color = colors;
return this;
};
Builder.prototype.dataZoom = function (dz) {

@@ -48,2 +64,3 @@ this.option.dataZoom = dataZoom(dz);

};
Builder.prototype.grid = function (gr) {

@@ -57,4 +74,6 @@ if (gr instanceof Array) {

}
return this;
};
Builder.prototype.legend = function (le) {

@@ -64,2 +83,3 @@ this.option.legend = legend(le);

};
Builder.prototype.axisPointer = function (ap) {

@@ -69,2 +89,3 @@ this.option.axisPointer = axisPointer(ap);

};
Builder.prototype.series = function (se) {

@@ -76,2 +97,3 @@ if (se instanceof Array) {

}
return s;

@@ -86,4 +108,6 @@ });

}
return this;
};
Builder.prototype.tooltip = function (tt) {

@@ -93,2 +117,3 @@ this.option.tooltip = tooltip(tt);

};
Builder.prototype.xAxis = function (xa) {

@@ -102,4 +127,6 @@ if (xa instanceof Array) {

}
return this;
};
Builder.prototype.yAxis = function (ya) {

@@ -113,4 +140,6 @@ if (ya instanceof Array) {

}
return this;
};
Builder.prototype.resize = function () {

@@ -121,2 +150,3 @@ if (this.charts) {

};
Builder.prototype.dispose = function () {

@@ -127,4 +157,6 @@ if (this.container && this.charts) {

};
Builder.prototype.animation = function (animation) {
animation = animation || {};
for (var key in animation) {

@@ -135,6 +167,9 @@ if (Object.prototype.hasOwnProperty.call(animation, key)) {

}
return this;
};
Builder.prototype.setOption = function (option) {
option = option || {};
for (var key in option) {

@@ -145,7 +180,10 @@ if (Object.prototype.hasOwnProperty.call(option, key)) {

}
return this;
};
Builder.prototype.instance = function () {
return this.charts;
};
Builder.prototype.render = function (options) {

@@ -155,4 +193,7 @@ var merge = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

if (!this.charts) {
this.charts = echarts.init(this.container, null, { render: this.svg ? 'svg' : 'canvas' });
this.charts = echarts.init(this.container, null, {
render: this.svg ? 'svg' : 'canvas'
});
}
options = options || this.option;

@@ -162,16 +203,19 @@ this.charts.setOption(options, merge);

};
Builder.prototype.dispatchAction = function () {
if (this.charts) {
var _charts;
var _this$charts;
(_charts = this.charts).dispatchAction.apply(_charts, arguments);
(_this$charts = this.charts).dispatchAction.apply(_this$charts, arguments);
}
};
Builder.prototype.on = function () {
if (this.charts) {
var _charts2;
var _this$charts2;
(_charts2 = this.charts).on.apply(_charts2, arguments);
(_this$charts2 = this.charts).on.apply(_this$charts2, arguments);
}
};
Builder.prototype.showLoading = function (opt) {

@@ -182,2 +226,3 @@ if (this.charts) {

};
Builder.prototype.hideLoading = function () {

@@ -188,2 +233,3 @@ if (this.charts) {

};
Builder.prototype.useSvg = function () {

@@ -193,3 +239,4 @@ this.svg = true;

};
exports.Builder = Builder;
module.exports = Builder;
{
"name": "e-charts-builder-pro",
"version": "1.0.0",
"version": "1.1.0",
"description": "echarts builder",
"main": "index.js",
"main": "./dist/index.js",
"keywords": [

@@ -10,8 +10,12 @@ "echarts"

"author": "Sumscope",
"license": "MIT",
"devDependencies": {
"lodash": "^4.17.11"
"@babel/plugin-proposal-decorators": "^7.17.2",
"@babel/plugin-transform-runtime": "^7.17.0",
"core-js": "^3.21.1",
"lodash": "^4.17.21"
},
"engines": {
"node": ">=8"
"node": ">=12"
}
}

@@ -8,4 +8,3 @@ 'use strict';

type: 'line',
itemStyle: {
// width: 1
itemStyle: {// width: 1
},

@@ -12,0 +11,0 @@ lineStyle: {

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