I don't think the deal you are referring to can be considered a "line of credit" in the usual sense. The other party gets new treasury shares at a discount to sell (or to hold for investment purposes) in consideration for the funds they "advance". In such deals, the stock is usually sold, but in a limited way according to the terms expressed in the contract.
So, market cap has nothing to do with it, and there is dilution.