提交 eb95d20f 编写于 作者: S sushuang

release 3.8.5

上级 adad150f
/build
/test
/map/tool
/map/raw
......
......@@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20880,10 +20880,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......@@ -48477,24 +48477,29 @@ function getSvgElement(displayable) {
/**
* @alias module:zrender/svg/Painter
* @constructor
* @param {HTMLElement} root 绘图容器
* @param {module:zrender/Storage} storage
* @param {Object} opts
*/
var SVGPainter = function (root, storage) {
var SVGPainter = function (root, storage, opts) {
this.root = root;
this.storage = storage;
this._opts = opts = extend({}, opts || {});
var svgRoot = createElement('svg');
svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svgRoot.setAttribute('version', '1.1');
svgRoot.setAttribute('baseProfile', 'full');
svgRoot.style['user-select'] = 'none';
svgRoot.style.cssText = 'position:absolute;left:0;top:0;';
this.gradientManager = new GradientManager(svgRoot);
this.clipPathManager = new ClippathManager(svgRoot);
var viewport = document.createElement('div');
viewport.style.cssText = 'overflow: hidden;';
viewport.style.cssText = 'overflow:hidden;position:relative';
this._svgRoot = svgRoot;
this._viewport = viewport;
......@@ -48502,7 +48507,7 @@ var SVGPainter = function (root, storage) {
root.appendChild(viewport);
viewport.appendChild(svgRoot);
this.resize();
this.resize(opts.width, opts.height);
this._visibleList = [];
};
......@@ -48678,15 +48683,26 @@ SVGPainter.prototype = {
}
},
resize: function () {
var width = this._getWidth();
var height = this._getHeight();
resize: function (width, height) {
var viewport = this._viewport;
// FIXME Why ?
viewport.style.display = 'none';
// Save input w/h
var opts = this._opts;
width != null && (opts.width = width);
height != null && (opts.height = height);
width = this._getSize(0);
height = this._getSize(1);
viewport.style.display = '';
if (this._width !== width && this._height !== height) {
this._width = width;
this._height = height;
var viewportStyle = this._viewport.style;
var viewportStyle = viewport.style;
viewportStyle.width = width + 'px';
viewportStyle.height = height + 'px';
......@@ -48697,30 +48713,40 @@ SVGPainter.prototype = {
}
},
/**
* 获取绘图区域宽度
*/
getWidth: function () {
return this._getWidth();
return this._width;
},
/**
* 获取绘图区域高度
*/
getHeight: function () {
return this._getHeight();
return this._height;
},
_getWidth: function () {
var root = this.root;
var stl = document.defaultView.getComputedStyle(root);
_getSize: function (whIdx) {
var opts = this._opts;
var wh = ['width', 'height'][whIdx];
var cwh = ['clientWidth', 'clientHeight'][whIdx];
var plt = ['paddingLeft', 'paddingTop'][whIdx];
var prb = ['paddingRight', 'paddingBottom'][whIdx];
return ((root.clientWidth || parseInt10$2(stl.width))
- parseInt10$2(stl.paddingLeft)
- parseInt10$2(stl.paddingRight)) | 0;
},
if (opts[wh] != null && opts[wh] !== 'auto') {
return parseFloat(opts[wh]);
}
_getHeight: function () {
var root = this.root;
// IE8 does not support getComputedStyle, but it use VML.
var stl = document.defaultView.getComputedStyle(root);
return ((root.clientHeight || parseInt10$2(stl.height))
- parseInt10$2(stl.paddingTop)
- parseInt10$2(stl.paddingBottom)) | 0;
return (
(root[cwh] || parseInt10$2(stl[wh]) || parseInt10$2(root.style[wh]))
- (parseInt10$2(stl[plt]) || 0)
- (parseInt10$2(stl[prb]) || 0)
) | 0;
},
dispose: function () {
此差异已折叠。
......@@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20946,10 +20946,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......@@ -74435,24 +74435,29 @@ function getSvgElement(displayable) {
/**
* @alias module:zrender/svg/Painter
* @constructor
* @param {HTMLElement} root 绘图容器
* @param {module:zrender/Storage} storage
* @param {Object} opts
*/
var SVGPainter = function (root, storage) {
var SVGPainter = function (root, storage, opts) {
this.root = root;
this.storage = storage;
this._opts = opts = extend({}, opts || {});
var svgRoot = createElement('svg');
svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svgRoot.setAttribute('version', '1.1');
svgRoot.setAttribute('baseProfile', 'full');
svgRoot.style['user-select'] = 'none';
svgRoot.style.cssText = 'position:absolute;left:0;top:0;';
this.gradientManager = new GradientManager(svgRoot);
this.clipPathManager = new ClippathManager(svgRoot);
var viewport = document.createElement('div');
viewport.style.cssText = 'overflow: hidden;';
viewport.style.cssText = 'overflow:hidden;position:relative';
this._svgRoot = svgRoot;
this._viewport = viewport;
......@@ -74460,7 +74465,7 @@ var SVGPainter = function (root, storage) {
root.appendChild(viewport);
viewport.appendChild(svgRoot);
this.resize();
this.resize(opts.width, opts.height);
this._visibleList = [];
};
......@@ -74636,15 +74641,26 @@ SVGPainter.prototype = {
}
},
resize: function () {
var width = this._getWidth();
var height = this._getHeight();
resize: function (width, height) {
var viewport = this._viewport;
// FIXME Why ?
viewport.style.display = 'none';
// Save input w/h
var opts = this._opts;
width != null && (opts.width = width);
height != null && (opts.height = height);
width = this._getSize(0);
height = this._getSize(1);
viewport.style.display = '';
if (this._width !== width && this._height !== height) {
this._width = width;
this._height = height;
var viewportStyle = this._viewport.style;
var viewportStyle = viewport.style;
viewportStyle.width = width + 'px';
viewportStyle.height = height + 'px';
......@@ -74655,30 +74671,40 @@ SVGPainter.prototype = {
}
},
/**
* 获取绘图区域宽度
*/
getWidth: function () {
return this._getWidth();
return this._width;
},
/**
* 获取绘图区域高度
*/
getHeight: function () {
return this._getHeight();
return this._height;
},
_getWidth: function () {
var root = this.root;
var stl = document.defaultView.getComputedStyle(root);
_getSize: function (whIdx) {
var opts = this._opts;
var wh = ['width', 'height'][whIdx];
var cwh = ['clientWidth', 'clientHeight'][whIdx];
var plt = ['paddingLeft', 'paddingTop'][whIdx];
var prb = ['paddingRight', 'paddingBottom'][whIdx];
return ((root.clientWidth || parseInt10$2(stl.width))
- parseInt10$2(stl.paddingLeft)
- parseInt10$2(stl.paddingRight)) | 0;
},
if (opts[wh] != null && opts[wh] !== 'auto') {
return parseFloat(opts[wh]);
}
_getHeight: function () {
var root = this.root;
// IE8 does not support getComputedStyle, but it use VML.
var stl = document.defaultView.getComputedStyle(root);
return ((root.clientHeight || parseInt10$2(stl.height))
- parseInt10$2(stl.paddingTop)
- parseInt10$2(stl.paddingBottom)) | 0;
return (
(root[cwh] || parseInt10$2(stl[wh]) || parseInt10$2(root.style[wh]))
- (parseInt10$2(stl[plt]) || 0)
- (parseInt10$2(stl[prb]) || 0)
) | 0;
},
dispose: function () {
此差异已折叠。
此差异已折叠。
......@@ -10160,7 +10160,7 @@ var painterCtors = {
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20320,10 +20320,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20880,10 +20880,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......@@ -48477,24 +48477,29 @@ function getSvgElement(displayable) {
/**
* @alias module:zrender/svg/Painter
* @constructor
* @param {HTMLElement} root 绘图容器
* @param {module:zrender/Storage} storage
* @param {Object} opts
*/
var SVGPainter = function (root, storage) {
var SVGPainter = function (root, storage, opts) {
this.root = root;
this.storage = storage;
this._opts = opts = extend({}, opts || {});
var svgRoot = createElement('svg');
svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svgRoot.setAttribute('version', '1.1');
svgRoot.setAttribute('baseProfile', 'full');
svgRoot.style['user-select'] = 'none';
svgRoot.style.cssText = 'position:absolute;left:0;top:0;';
this.gradientManager = new GradientManager(svgRoot);
this.clipPathManager = new ClippathManager(svgRoot);
var viewport = document.createElement('div');
viewport.style.cssText = 'overflow: hidden;';
viewport.style.cssText = 'overflow:hidden;position:relative';
this._svgRoot = svgRoot;
this._viewport = viewport;
......@@ -48502,7 +48507,7 @@ var SVGPainter = function (root, storage) {
root.appendChild(viewport);
viewport.appendChild(svgRoot);
this.resize();
this.resize(opts.width, opts.height);
this._visibleList = [];
};
......@@ -48678,15 +48683,26 @@ SVGPainter.prototype = {
}
},
resize: function () {
var width = this._getWidth();
var height = this._getHeight();
resize: function (width, height) {
var viewport = this._viewport;
// FIXME Why ?
viewport.style.display = 'none';
// Save input w/h
var opts = this._opts;
width != null && (opts.width = width);
height != null && (opts.height = height);
width = this._getSize(0);
height = this._getSize(1);
viewport.style.display = '';
if (this._width !== width && this._height !== height) {
this._width = width;
this._height = height;
var viewportStyle = this._viewport.style;
var viewportStyle = viewport.style;
viewportStyle.width = width + 'px';
viewportStyle.height = height + 'px';
......@@ -48697,30 +48713,40 @@ SVGPainter.prototype = {
}
},
/**
* 获取绘图区域宽度
*/
getWidth: function () {
return this._getWidth();
return this._width;
},
/**
* 获取绘图区域高度
*/
getHeight: function () {
return this._getHeight();
return this._height;
},
_getWidth: function () {
var root = this.root;
var stl = document.defaultView.getComputedStyle(root);
_getSize: function (whIdx) {
var opts = this._opts;
var wh = ['width', 'height'][whIdx];
var cwh = ['clientWidth', 'clientHeight'][whIdx];
var plt = ['paddingLeft', 'paddingTop'][whIdx];
var prb = ['paddingRight', 'paddingBottom'][whIdx];
return ((root.clientWidth || parseInt10$2(stl.width))
- parseInt10$2(stl.paddingLeft)
- parseInt10$2(stl.paddingRight)) | 0;
},
if (opts[wh] != null && opts[wh] !== 'auto') {
return parseFloat(opts[wh]);
}
_getHeight: function () {
var root = this.root;
// IE8 does not support getComputedStyle, but it use VML.
var stl = document.defaultView.getComputedStyle(root);
return ((root.clientHeight || parseInt10$2(stl.height))
- parseInt10$2(stl.paddingTop)
- parseInt10$2(stl.paddingBottom)) | 0;
return (
(root[cwh] || parseInt10$2(stl[wh]) || parseInt10$2(root.style[wh]))
- (parseInt10$2(stl[plt]) || 0)
- (parseInt10$2(stl[prb]) || 0)
) | 0;
},
dispose: function () {
此差异已折叠。
......@@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20946,10 +20946,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......@@ -74435,24 +74435,29 @@ function getSvgElement(displayable) {
/**
* @alias module:zrender/svg/Painter
* @constructor
* @param {HTMLElement} root 绘图容器
* @param {module:zrender/Storage} storage
* @param {Object} opts
*/
var SVGPainter = function (root, storage) {
var SVGPainter = function (root, storage, opts) {
this.root = root;
this.storage = storage;
this._opts = opts = extend({}, opts || {});
var svgRoot = createElement('svg');
svgRoot.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svgRoot.setAttribute('version', '1.1');
svgRoot.setAttribute('baseProfile', 'full');
svgRoot.style['user-select'] = 'none';
svgRoot.style.cssText = 'position:absolute;left:0;top:0;';
this.gradientManager = new GradientManager(svgRoot);
this.clipPathManager = new ClippathManager(svgRoot);
var viewport = document.createElement('div');
viewport.style.cssText = 'overflow: hidden;';
viewport.style.cssText = 'overflow:hidden;position:relative';
this._svgRoot = svgRoot;
this._viewport = viewport;
......@@ -74460,7 +74465,7 @@ var SVGPainter = function (root, storage) {
root.appendChild(viewport);
viewport.appendChild(svgRoot);
this.resize();
this.resize(opts.width, opts.height);
this._visibleList = [];
};
......@@ -74636,15 +74641,26 @@ SVGPainter.prototype = {
}
},
resize: function () {
var width = this._getWidth();
var height = this._getHeight();
resize: function (width, height) {
var viewport = this._viewport;
// FIXME Why ?
viewport.style.display = 'none';
// Save input w/h
var opts = this._opts;
width != null && (opts.width = width);
height != null && (opts.height = height);
width = this._getSize(0);
height = this._getSize(1);
viewport.style.display = '';
if (this._width !== width && this._height !== height) {
this._width = width;
this._height = height;
var viewportStyle = this._viewport.style;
var viewportStyle = viewport.style;
viewportStyle.width = width + 'px';
viewportStyle.height = height + 'px';
......@@ -74655,30 +74671,40 @@ SVGPainter.prototype = {
}
},
/**
* 获取绘图区域宽度
*/
getWidth: function () {
return this._getWidth();
return this._width;
},
/**
* 获取绘图区域高度
*/
getHeight: function () {
return this._getHeight();
return this._height;
},
_getWidth: function () {
var root = this.root;
var stl = document.defaultView.getComputedStyle(root);
_getSize: function (whIdx) {
var opts = this._opts;
var wh = ['width', 'height'][whIdx];
var cwh = ['clientWidth', 'clientHeight'][whIdx];
var plt = ['paddingLeft', 'paddingTop'][whIdx];
var prb = ['paddingRight', 'paddingBottom'][whIdx];
return ((root.clientWidth || parseInt10$2(stl.width))
- parseInt10$2(stl.paddingLeft)
- parseInt10$2(stl.paddingRight)) | 0;
},
if (opts[wh] != null && opts[wh] !== 'auto') {
return parseFloat(opts[wh]);
}
_getHeight: function () {
var root = this.root;
// IE8 does not support getComputedStyle, but it use VML.
var stl = document.defaultView.getComputedStyle(root);
return ((root.clientHeight || parseInt10$2(stl.height))
- parseInt10$2(stl.paddingTop)
- parseInt10$2(stl.paddingBottom)) | 0;
return (
(root[cwh] || parseInt10$2(stl[wh]) || parseInt10$2(root.style[wh]))
- (parseInt10$2(stl[plt]) || 0)
- (parseInt10$2(stl[prb]) || 0)
) | 0;
},
dispose: function () {
此差异已折叠。
此差异已折叠。
......@@ -10160,7 +10160,7 @@ var painterCtors = {
/**
* @type {string}
*/
var version$1 = '3.7.3';
var version$1 = '3.7.4';
/**
* Initializing a zrender instance
......@@ -20320,10 +20320,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;
var version = '3.8.4';
var version = '3.8.5';
var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
{
"name": "echarts",
"version": "3.8.4",
"version": "3.8.5",
"description": "A powerful charting and visualization library for browser",
"keywords": [
"visualization",
......@@ -35,7 +35,7 @@
"prepublish": "node build/build.js --prepublish"
},
"dependencies": {
"zrender": "3.7.3"
"zrender": "3.7.4"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.31",
......
......@@ -34,10 +34,10 @@ import loadingDefault from './loading/default';
var each = zrUtil.each;
var parseClassType = ComponentModel.parseClassType;
export var version = '3.8.4';
export var version = '3.8.5';
export var dependencies = {
zrender: '3.7.3'
zrender: '3.7.4'
};
var PRIORITY_PROCESSOR_FILTER = 1000;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册