;

    const b = new go.Rect();
    const ndata = myWholeModel.nodeDataArray;
    for (let i = 0; i < ndata.length; i++) {
      const n = ndata[i];
      if (model.containsNodeData(n)) continue;
      if (!n.bounds) continue;
      if (n.bounds.intersectsRect(viewb)) {
        model.addNodeData(n);
      }
      if (model instanceof go.TreeModel) {
        // make sure links to all parent nodes appear
        const parentkey = myWholeModel.getParentKeyForNodeData(n);
        const parent = myWholeModel.fin