tinue;
        const to = myWholeModel.findNodeDataForKey(tokey);
        if (to === null || !to.bounds) continue;

        b.set(from.bounds);
        b.unionRect(to.bounds);
        if (b.intersectsRect(viewb)) {
          // also make sure both connected nodes are present,
          // so that link routing is authentic
          model.addNodeData(from);
          model.addNodeData(to);
          model.addLinkData(l);
          const link = diagram.findLinkForData(l);
          if (link !== null) {
      