one

        // Requirement in some browsers, such as Internet Explorer
        event.preventDefault();
      },
      false
    );

    div.addEventListener(
      'dragover',
      (event) => {
        // We call preventDefault to allow a drop
        // But on divs that already contain an element,
        // we want to disallow dropping

        if (div === myDiagram.div) {
          const can = event.target;
          const pixelratio = myDiagram.computePixelRatio();

          // if the target is not t