Skip to content

Commit

Permalink
release 3.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Nov 13, 2017
1 parent cc334de commit 1282043
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 67 deletions.
33 changes: 21 additions & 12 deletions dist/echarts-en.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20880,10 +20880,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down Expand Up @@ -47452,10 +47452,13 @@ var svgTextDrawRectText = function (el, rect, textRect) {

var text = style.text;
// Convert to string
text != null && (text += '');
if (!text) {
if (text == null) {
// Draw no text only when text is set to null, but not ''
return;
}
else {
text += '';
}

var textSvgEl = el.__textSvgEl;
if (! textSvgEl) {
Expand Down Expand Up @@ -48275,10 +48278,12 @@ inherits(ClippathManager, Definable);
* Update clipPath.
*
* @param {Displayable} displayable displayable element
* @param {SVGElement} svgElement SVG element of displayable
*/
ClippathManager.prototype.update = function (displayable, svgElement) {
this.updateDom(svgElement, displayable.__clipPaths, false);
ClippathManager.prototype.update = function (displayable) {
var svgEl = this.getSvgElement(displayable);
if (svgEl) {
this.updateDom(svgEl, displayable.__clipPaths, false);
}

var textEl = this.getTextSvgElement(displayable);
if (textEl) {
Expand Down Expand Up @@ -48370,7 +48375,13 @@ ClippathManager.prototype.updateDom = function (
}

var pathEl = this.getSvgElement(clipPath);
clipPathEl.appendChild(pathEl);
/**
* Use `cloneNode()` here to appendChild to multiple parents,
* which may happend when Text and other shapes are using the same
* clipPath. Since Text will create an extra clipPath DOM due to
* different transform rules.
*/
clipPathEl.appendChild(pathEl.cloneNode());

parentEl.setAttribute('clip-path', 'url(#' + id + ')');

Expand Down Expand Up @@ -48541,11 +48552,9 @@ SVGPainter.prototype = {
if (!displayable.invisible) {
if (displayable.__dirty) {
svgProxy && svgProxy.brush(displayable);
var el = getSvgElement(displayable)
|| getTextSvgElement(displayable);

// Update clipPath
this.clipPathManager.update(displayable, el);
this.clipPathManager.update(displayable);

// Update gradient
if (displayable.style) {
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts-en.common.min.js

Large diffs are not rendered by default.

33 changes: 21 additions & 12 deletions dist/echarts-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20946,10 +20946,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down Expand Up @@ -73410,10 +73410,13 @@ var svgTextDrawRectText = function (el, rect, textRect) {

var text = style.text;
// Convert to string
text != null && (text += '');
if (!text) {
if (text == null) {
// Draw no text only when text is set to null, but not ''
return;
}
else {
text += '';
}

var textSvgEl = el.__textSvgEl;
if (! textSvgEl) {
Expand Down Expand Up @@ -74233,10 +74236,12 @@ inherits(ClippathManager, Definable);
* Update clipPath.
*
* @param {Displayable} displayable displayable element
* @param {SVGElement} svgElement SVG element of displayable
*/
ClippathManager.prototype.update = function (displayable, svgElement) {
this.updateDom(svgElement, displayable.__clipPaths, false);
ClippathManager.prototype.update = function (displayable) {
var svgEl = this.getSvgElement(displayable);
if (svgEl) {
this.updateDom(svgEl, displayable.__clipPaths, false);
}

var textEl = this.getTextSvgElement(displayable);
if (textEl) {
Expand Down Expand Up @@ -74328,7 +74333,13 @@ ClippathManager.prototype.updateDom = function (
}

var pathEl = this.getSvgElement(clipPath);
clipPathEl.appendChild(pathEl);
/**
* Use `cloneNode()` here to appendChild to multiple parents,
* which may happend when Text and other shapes are using the same
* clipPath. Since Text will create an extra clipPath DOM due to
* different transform rules.
*/
clipPathEl.appendChild(pathEl.cloneNode());

parentEl.setAttribute('clip-path', 'url(#' + id + ')');

Expand Down Expand Up @@ -74499,11 +74510,9 @@ SVGPainter.prototype = {
if (!displayable.invisible) {
if (displayable.__dirty) {
svgProxy && svgProxy.brush(displayable);
var el = getSvgElement(displayable)
|| getTextSvgElement(displayable);

// Update clipPath
this.clipPathManager.update(displayable, el);
this.clipPathManager.update(displayable);

// Update gradient
if (displayable.style) {
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts-en.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts-en.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/echarts-en.simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -10160,7 +10160,7 @@ var painterCtors = {
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20320,10 +20320,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts-en.simple.min.js

Large diffs are not rendered by default.

33 changes: 21 additions & 12 deletions dist/echarts.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20880,10 +20880,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down Expand Up @@ -47452,10 +47452,13 @@ var svgTextDrawRectText = function (el, rect, textRect) {

var text = style.text;
// Convert to string
text != null && (text += '');
if (!text) {
if (text == null) {
// Draw no text only when text is set to null, but not ''
return;
}
else {
text += '';
}

var textSvgEl = el.__textSvgEl;
if (! textSvgEl) {
Expand Down Expand Up @@ -48275,10 +48278,12 @@ inherits(ClippathManager, Definable);
* Update clipPath.
*
* @param {Displayable} displayable displayable element
* @param {SVGElement} svgElement SVG element of displayable
*/
ClippathManager.prototype.update = function (displayable, svgElement) {
this.updateDom(svgElement, displayable.__clipPaths, false);
ClippathManager.prototype.update = function (displayable) {
var svgEl = this.getSvgElement(displayable);
if (svgEl) {
this.updateDom(svgEl, displayable.__clipPaths, false);
}

var textEl = this.getTextSvgElement(displayable);
if (textEl) {
Expand Down Expand Up @@ -48370,7 +48375,13 @@ ClippathManager.prototype.updateDom = function (
}

var pathEl = this.getSvgElement(clipPath);
clipPathEl.appendChild(pathEl);
/**
* Use `cloneNode()` here to appendChild to multiple parents,
* which may happend when Text and other shapes are using the same
* clipPath. Since Text will create an extra clipPath DOM due to
* different transform rules.
*/
clipPathEl.appendChild(pathEl.cloneNode());

parentEl.setAttribute('clip-path', 'url(#' + id + ')');

Expand Down Expand Up @@ -48541,11 +48552,9 @@ SVGPainter.prototype = {
if (!displayable.invisible) {
if (displayable.__dirty) {
svgProxy && svgProxy.brush(displayable);
var el = getSvgElement(displayable)
|| getTextSvgElement(displayable);

// Update clipPath
this.clipPathManager.update(displayable, el);
this.clipPathManager.update(displayable);

// Update gradient
if (displayable.style) {
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts.common.min.js

Large diffs are not rendered by default.

33 changes: 21 additions & 12 deletions dist/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10456,7 +10456,7 @@ var instances$1 = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20946,10 +20946,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down Expand Up @@ -73410,10 +73410,13 @@ var svgTextDrawRectText = function (el, rect, textRect) {

var text = style.text;
// Convert to string
text != null && (text += '');
if (!text) {
if (text == null) {
// Draw no text only when text is set to null, but not ''
return;
}
else {
text += '';
}

var textSvgEl = el.__textSvgEl;
if (! textSvgEl) {
Expand Down Expand Up @@ -74233,10 +74236,12 @@ inherits(ClippathManager, Definable);
* Update clipPath.
*
* @param {Displayable} displayable displayable element
* @param {SVGElement} svgElement SVG element of displayable
*/
ClippathManager.prototype.update = function (displayable, svgElement) {
this.updateDom(svgElement, displayable.__clipPaths, false);
ClippathManager.prototype.update = function (displayable) {
var svgEl = this.getSvgElement(displayable);
if (svgEl) {
this.updateDom(svgEl, displayable.__clipPaths, false);
}

var textEl = this.getTextSvgElement(displayable);
if (textEl) {
Expand Down Expand Up @@ -74328,7 +74333,13 @@ ClippathManager.prototype.updateDom = function (
}

var pathEl = this.getSvgElement(clipPath);
clipPathEl.appendChild(pathEl);
/**
* Use `cloneNode()` here to appendChild to multiple parents,
* which may happend when Text and other shapes are using the same
* clipPath. Since Text will create an extra clipPath DOM due to
* different transform rules.
*/
clipPathEl.appendChild(pathEl.cloneNode());

parentEl.setAttribute('clip-path', 'url(#' + id + ')');

Expand Down Expand Up @@ -74499,11 +74510,9 @@ SVGPainter.prototype = {
if (!displayable.invisible) {
if (displayable.__dirty) {
svgProxy && svgProxy.brush(displayable);
var el = getSvgElement(displayable)
|| getTextSvgElement(displayable);

// Update clipPath
this.clipPathManager.update(displayable, el);
this.clipPathManager.update(displayable);

// Update gradient
if (displayable.style) {
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/echarts.simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -10160,7 +10160,7 @@ var painterCtors = {
/**
* @type {string}
*/
var version$1 = '3.7.2';
var version$1 = '3.7.3';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -20320,10 +20320,10 @@ var loadingDefault = function (api, opts) {
var each = each$1;
var parseClassType = ComponentModel.parseClassType;

var version = '3.8.3';
var version = '3.8.4';

var dependencies = {
zrender: '3.7.2'
zrender: '3.7.3'
};

var PRIORITY_PROCESSOR_FILTER = 1000;
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts.simple.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echarts",
"version": "3.8.3",
"version": "3.8.4",
"description": "A powerful charting and visualization library for browser",
"keywords": [
"visualization",
Expand Down Expand Up @@ -35,7 +35,7 @@
"prepublish": "node build/build.js --prepublish"
},
"dependencies": {
"zrender": "3.7.2"
"zrender": "3.7.3"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.31",
Expand All @@ -54,6 +54,6 @@
"rollup": "0.50.0",
"rollup-plugin-node-resolve": "3.0.0",
"rollup-plugin-uglify": "2.0.1",
"zrender": "3.7.2"
"zrender": "3.7.3"
}
}
Loading

0 comments on commit 1282043

Please sign in to comment.