Skip to content

Commit 34889d9

Browse files
committed
build release
1 parent efa3e5a commit 34889d9

15 files changed

+62
-13
lines changed

dist/echarts.common.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14837,6 +14837,7 @@
1483714837
name: itemName,
1483814838
option: defaults({
1483914839
content: itemName,
14840+
encodeHTMLContent: true,
1484014841
formatterParams: formatterParams
1484114842
}, itemTooltipOptionObj)
1484214843
};
@@ -51155,16 +51156,27 @@
5115551156
});
5115651157
};
5115751158
TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
51159+
var isHTMLRenderMode = this._renderMode === 'html';
5115851160
var ecData = getECData(el);
5115951161
var tooltipConfig = ecData.tooltipConfig;
5116051162
var tooltipOpt = tooltipConfig.option || {};
51163+
var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
5116151164
if (isString(tooltipOpt)) {
5116251165
var content = tooltipOpt;
5116351166
tooltipOpt = {
5116451167
content: content,
5116551168
// Fixed formatter
5116651169
formatter: content
5116751170
};
51171+
// when `tooltipConfig.option` is a string rather than an object,
51172+
// we can't know if the content needs to be encoded
51173+
// for the sake of security, encode it by default.
51174+
encodeHTMLContent = true;
51175+
}
51176+
if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
51177+
// clone might be unnecessary?
51178+
tooltipOpt = clone(tooltipOpt);
51179+
tooltipOpt.content = encodeHTML(tooltipOpt.content);
5116851180
}
5116951181
var tooltipModelCascade = [tooltipOpt];
5117051182
var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);

dist/echarts.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.common.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.esm.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14957,6 +14957,7 @@ function setTooltipConfig(opt) {
1495714957
name: itemName,
1495814958
option: defaults({
1495914959
content: itemName,
14960+
encodeHTMLContent: true,
1496014961
formatterParams: formatterParams
1496114962
}, itemTooltipOptionObj)
1496214963
};
@@ -26248,7 +26249,7 @@ function getImpl(name) {
2624826249
return implsStore[name];
2624926250
}
2625026251

26251-
var version$1 = '5.6.0';
26252+
var version$1 = '5.5.1';
2625226253
var dependencies = {
2625326254
zrender: '5.6.0'
2625426255
};
@@ -74816,16 +74817,27 @@ var TooltipView = /** @class */function (_super) {
7481674817
});
7481774818
};
7481874819
TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
74820+
var isHTMLRenderMode = this._renderMode === 'html';
7481974821
var ecData = getECData(el);
7482074822
var tooltipConfig = ecData.tooltipConfig;
7482174823
var tooltipOpt = tooltipConfig.option || {};
74824+
var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
7482274825
if (isString(tooltipOpt)) {
7482374826
var content = tooltipOpt;
7482474827
tooltipOpt = {
7482574828
content: content,
7482674829
// Fixed formatter
7482774830
formatter: content
7482874831
};
74832+
// when `tooltipConfig.option` is a string rather than an object,
74833+
// we can't know if the content needs to be encoded
74834+
// for the sake of security, encode it by default.
74835+
encodeHTMLContent = true;
74836+
}
74837+
if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
74838+
// clone might be unnecessary?
74839+
tooltipOpt = clone(tooltipOpt);
74840+
tooltipOpt.content = encodeHTML(tooltipOpt.content);
7482974841
}
7483074842
var tooltipModelCascade = [tooltipOpt];
7483174843
var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);

dist/echarts.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.esm.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/echarts.esm.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14957,6 +14957,7 @@ function setTooltipConfig(opt) {
1495714957
name: itemName,
1495814958
option: defaults({
1495914959
content: itemName,
14960+
encodeHTMLContent: true,
1496014961
formatterParams: formatterParams
1496114962
}, itemTooltipOptionObj)
1496214963
};
@@ -26248,7 +26249,7 @@ function getImpl(name) {
2624826249
return implsStore[name];
2624926250
}
2625026251

26251-
var version$1 = '5.6.0';
26252+
var version$1 = '5.5.1';
2625226253
var dependencies = {
2625326254
zrender: '5.6.0'
2625426255
};
@@ -74816,16 +74817,27 @@ var TooltipView = /** @class */function (_super) {
7481674817
});
7481774818
};
7481874819
TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
74820+
var isHTMLRenderMode = this._renderMode === 'html';
7481974821
var ecData = getECData(el);
7482074822
var tooltipConfig = ecData.tooltipConfig;
7482174823
var tooltipOpt = tooltipConfig.option || {};
74824+
var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
7482274825
if (isString(tooltipOpt)) {
7482374826
var content = tooltipOpt;
7482474827
tooltipOpt = {
7482574828
content: content,
7482674829
// Fixed formatter
7482774830
formatter: content
7482874831
};
74832+
// when `tooltipConfig.option` is a string rather than an object,
74833+
// we can't know if the content needs to be encoded
74834+
// for the sake of security, encode it by default.
74835+
encodeHTMLContent = true;
74836+
}
74837+
if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
74838+
// clone might be unnecessary?
74839+
tooltipOpt = clone(tooltipOpt);
74840+
tooltipOpt.content = encodeHTML(tooltipOpt.content);
7482974841
}
7483074842
var tooltipModelCascade = [tooltipOpt];
7483174843
var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);

dist/echarts.esm.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/echarts.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14963,6 +14963,7 @@
1496314963
name: itemName,
1496414964
option: defaults({
1496514965
content: itemName,
14966+
encodeHTMLContent: true,
1496614967
formatterParams: formatterParams
1496714968
}, itemTooltipOptionObj)
1496814969
};
@@ -74822,16 +74823,27 @@
7482274823
});
7482374824
};
7482474825
TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {
74826+
var isHTMLRenderMode = this._renderMode === 'html';
7482574827
var ecData = getECData(el);
7482674828
var tooltipConfig = ecData.tooltipConfig;
7482774829
var tooltipOpt = tooltipConfig.option || {};
74830+
var encodeHTMLContent = tooltipOpt.encodeHTMLContent;
7482874831
if (isString(tooltipOpt)) {
7482974832
var content = tooltipOpt;
7483074833
tooltipOpt = {
7483174834
content: content,
7483274835
// Fixed formatter
7483374836
formatter: content
7483474837
};
74838+
// when `tooltipConfig.option` is a string rather than an object,
74839+
// we can't know if the content needs to be encoded
74840+
// for the sake of security, encode it by default.
74841+
encodeHTMLContent = true;
74842+
}
74843+
if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) {
74844+
// clone might be unnecessary?
74845+
tooltipOpt = clone(tooltipOpt);
74846+
tooltipOpt.content = encodeHTML(tooltipOpt.content);
7483574847
}
7483674848
var tooltipModelCascade = [tooltipOpt];
7483774849
var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);

0 commit comments

Comments
 (0)