taye/interact.js

View on GitHub
packages/utils/rect.ts

Summary

Maintainability
A
2 hrs
Test Coverage
C
75%

Consider simplifying this complex logical expression.
Open

  if (rect && !('x' in rect && 'y' in rect)) {
    rect = extend({}, rect)

    rect.x      = rect.left || 0
    rect.y      = rect.top  || 0
Severity: Major
Found in packages/utils/rect.ts - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      if (rect && !('left' in rect && 'top' in rect)) {
        rect = extend({}, rect)
    
        rect.left   = rect.x || 0
        rect.top    = rect.y || 0
    Severity: Major
    Found in packages/utils/rect.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status