* Resize a path to fit the rect * @param {module:zrender/graphic/Path} path * @param {Object} rect
(path, rect)
| 17025 | * @param {Object} rect |
| 17026 | */ |
| 17027 | function resizePath(path, rect) { |
| 17028 | if (!path.applyTransform) { |
| 17029 | return; |
| 17030 | } |
| 17031 | |
| 17032 | var pathRect = path.getBoundingRect(); |
| 17033 | |
| 17034 | var m = pathRect.calculateTransform(rect); |
| 17035 | |
| 17036 | path.applyTransform(m); |
| 17037 | } |
| 17038 | |
| 17039 | /** |
| 17040 | * Sub pixel optimize line for canvas |
no test coverage detected