konvajs/konva

View on GitHub
src/DragAndDrop.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function _drag has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  _drag(evt) {
    const nodesToFireEvents: Array<Node> = [];
    DD._dragElements.forEach((elem, key) => {
      const { node } = elem;
      // we need to find pointer relative to that node
Severity: Minor
Found in src/DragAndDrop.ts - About 1 hr to fix

    Function _endDragBefore has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      _endDragBefore(evt?) {
        const drawNodes: Array<Container> = [];
        DD._dragElements.forEach((elem) => {
          const { node } = elem;
          // we need to find pointer relative to that node
    Severity: Minor
    Found in src/DragAndDrop.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status