Skip to content

Commit

Permalink
Fix axisPointer on stacked bar3D
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jun 20, 2017
1 parent e745f07 commit 66d3887
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/chart/bar3D/Bar3DView.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ module.exports = echarts.extendChartView({
if (isCartesian3D) {
api.dispatchAction({
type: 'grid3DShowAxisPointer',
value: [data.get('x', dataIndex), data.get('y', dataIndex), data.get('z', dataIndex)]
value: [data.get('x', dataIndex), data.get('y', dataIndex), data.get('z', dataIndex, true)]
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/chart/lines3D/TrailMesh2.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = graphicGL.Mesh.extend(function () {
vertexOffset += vertexCount;
});

this.material.set('spotSize', maxDistance * 0.01);
this.material.set('spotSize', maxDistance * 0.1 * trailLength);

geometry.dirty();
},
Expand Down
3 changes: 2 additions & 1 deletion src/core/LayerGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ var LayerGL = function (id, zr) {
this.renderer = new Renderer({
clearBit: 0,
devicePixelRatio: zr.painter.dpr,
preserveDrawingBuffer: true
preserveDrawingBuffer: true,
premultipliedAlpha: true
});
this.renderer.resize(zr.painter.getWidth(), zr.painter.getHeight());
}
Expand Down
5 changes: 3 additions & 2 deletions src/effect/composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,9 @@ module.exports = {
'bloom' : 'bloom_composite'
},
'defines': {
// PENDING
'PREMULTIPLY_ALPHA': null
// Images are all premultiplied alpha before composite because of blending.
// 'PREMULTIPLY_ALPHA': null,
// 'DEBUG': 2
}
},
{
Expand Down

0 comments on commit 66d3887

Please sign in to comment.