Skip to content

Commit

Permalink
release 2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Mar 1, 2022
1 parent 4dfc375 commit a3cb1c6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
20 changes: 12 additions & 8 deletions dist/echarts-gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -26552,11 +26552,13 @@ external_echarts_.registerPostInit(function (chart) {
var oldDispose = zr.painter.dispose;

zr.painter.dispose = function () {
this.eachOtherLayer(function (layer) {
if (layer instanceof core_LayerGL) {
layer.dispose();
}
});
if (typeof this.eachOtherLayer === 'function') {
this.eachOtherLayer(function (layer) {
if (layer instanceof core_LayerGL) {
layer.dispose();
}
});
}
oldDispose.call(this);
}
zr.painter.getRenderedCanvas = function (opts) {
Expand Down Expand Up @@ -51826,7 +51828,7 @@ Geo3DBuilder.prototype = {
itemStyleModel.get('color'),
'#fff'
);
var opacity = util_retrieve.firstNotNull(getItemVisualOpacity(data, dataIndex), 1);
var opacity = util_retrieve.firstNotNull(getItemVisualOpacity(data, dataIndex), itemStyleModel.get('opacity'), 1);

var colorArr = util_graphicGL.parseColor(color);
var borderColorArr = util_graphicGL.parseColor(itemStyleModel.get('borderColor'));
Expand Down Expand Up @@ -52305,12 +52307,14 @@ Geo3DBuilder.prototype = {
return;
}

var itemStyleModel = data.getItemModel(dataIndex);
var color = util_retrieve.firstNotNull(
getItemVisualColor(data, dataIndex),
data.getItemModel(dataIndex).get(['itemStyle', 'color']),
itemStyleModel.get(['itemStyle', 'color']),
'#fff'
);
var opacity = util_retrieve.firstNotNull(getItemVisualOpacity(data, dataIndex), 1);

var opacity = util_retrieve.firstNotNull(getItemVisualOpacity(data, dataIndex), itemStyleModel.get(['itemStyle', 'opacity']), 1);

var colorArr = util_graphicGL.parseColor(color);
colorArr[3] *= opacity;
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts-gl.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "echarts-gl",
"description": "Extension pack of ECharts providing 3D plots and globe visualization",
"version": "2.0.8",
"version": "2.0.9",
"maintainers": [
{
"name": "Yi Shen"
Expand Down

0 comments on commit a3cb1c6

Please sign in to comment.