private getStartOfChildNode()

in src/plugin/fieldViews/RepeaterFieldView.ts [79:92]


  private getStartOfChildNode(
    parentNode: Node,
    index: number,
    position: number,
    offset: number
  ) {
    let startOfChildNode = position + this.contentOffset + offset;
    parentNode.forEach((childNode, offset) => {
      if (childNode === parentNode.child(index)) {
        startOfChildNode = startOfChildNode + offset;
      }
    });
    return startOfChildNode;
  }