diff --git a/src/chart/sankey/SankeyView.js b/src/chart/sankey/SankeyView.js index a4454a93cdeb5be81768d22f9dc979ca99d162d1..4af153c8d72b1cccc12602c6d85363dc5a6346fa 100644 --- a/src/chart/sankey/SankeyView.js +++ b/src/chart/sankey/SankeyView.js @@ -458,8 +458,7 @@ function createGridClipShape(rect, seriesModel, cb) { }); graphic.initProps(rectEl, { shape: { - width: rect.width + 20, - height: rect.height + 20 + width: rect.width + 20 } }, seriesModel, cb); diff --git a/src/util/graphic.js b/src/util/graphic.js index 1ad72961c9941eb6c40e302351164316f213dc60..2720dac2a2149229c2c5e189381d1675a2df4276 100644 --- a/src/util/graphic.js +++ b/src/util/graphic.js @@ -1124,7 +1124,7 @@ function animateOrSetProps(isUpdate, el, props, animatableModel, dataIndex, cb) * configuration in series. * * Caution: this method will stop previous animation. - * So if do not use this method to one element twice before + * So do not use this method to one element twice before * animation starts, unless you know what you are doing. * * @param {module:zrender/Element} el @@ -1150,7 +1150,7 @@ export function updateProps(el, props, animatableModel, dataIndex, cb) { * configuration in series. * * Caution: this method will stop previous animation. - * So if do not use this method to one element twice before + * So do not use this method to one element twice before * animation starts, unless you know what you are doing. * * @param {module:zrender/Element} el