taye/interact.js

View on GitHub
packages/@interactjs/utils/rect.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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: Critical
Found in packages/@interactjs/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/@interactjs/utils/rect.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status