spritejs/sprite-core

View on GitHub
src/utils/render.js

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

    if(d <= w) {
      ret = [x, y + h, x + d, y];
    } else {
      d = w / tan;
      ret = [x, y + h, x + w, y + h - d];
Severity: Major
Found in src/utils/render.js - About 45 mins to fix

    Function drawEllipseBorder has 6 arguments (exceeds 5 allowed). Consider refactoring.
    Open

    function drawEllipseBorder(ctx, x, y, w, h, pos = 'leftTop') {
    Severity: Minor
    Found in src/utils/render.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status