src/utils/render.js
Avoid deeply nested control flow statements. Open
Open
if(d <= w) {
ret = [x, y + h, x + d, y];
} else {
d = w / tan;
ret = [x, y + h, x + w, y + h - d];
Function drawEllipseBorder
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
function drawEllipseBorder(ctx, x, y, w, h, pos = 'leftTop') {