plainheart edited a comment on issue #15949: URL: https://github.com/apache/echarts/issues/15949#issuecomment-953068619
This is definitely caused by an unexpected `lineWidth` of type `string`. Let's take a look at the `rect` command in SVG path builder. https://github.com/ecomfe/zrender/blob/master/src/svg/graphic.ts#L247-L253 We will find there will be a calculation error when the `width/height` of type `string` plus the numeric `x/y`. I'm not sure if it's necessary to be fixed. But anyway, we should ensure that the `lineWidth` is a number. @pissang Fortunately, this issue doesn't exist in the next version. https://github.com/ecomfe/zrender/blob/next/src/svg/SVGPathRebuilder.ts#L113-L120 The theme builder does need further improvement. @Ovilia -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
