getStartAngle = (totalPercent) => {
      let startAngle = Math.PI * 0.5;
      if (totalPercent < 1 && entryConnections && entryConnections.length === 1) {
        const incomingNodePosition = entryConnections[0].source.position;
        // start angle is a function of percent and angle of incoming connection
        const x = incomingNodePosition.x - this.object.position.x;
        const y = incomingNodePosition.y - this.object.position.y;
        startAngle = Math.atan2(y, x);
        startAngle += (totalPercent * 2 * Math.PI) / 2;
        startAngle = Math.PI - startAngle;
      }

      return startAngle;
    }
Get the start angle of the donut graph based on the totalPercent of the donut to be filled

@param {number} totalPercent A percent in decimal form between 0 and 1