* Add a path of a rectangle to the current sub-path * @param {CanvasRenderingContext2D} ctx Context * @param {*} rect Bounding rect
(ctx, rect)
| 121 | * @param {*} rect Bounding rect |
| 122 | */ |
| 123 | function addNormalRectPath(ctx, rect) { |
| 124 | ctx.rect(rect.x, rect.y, rect.w, rect.h); |
| 125 | } |
| 126 | |
| 127 | function inflateRect(rect, amount, refRect = {}) { |
| 128 | const x = rect.x !== refRect.x ? -amount : 0; |
nothing calls this directly
no outgoing calls
no test coverage detected