Putting it in my own words, Edwards says that the infinite complexity of the divine mind is such that God has the capacity to look at the world through two lenses. He can look through a narrow lens or through a wide-angle lens. When God looks at a painful or wicked event through his narrow lens, he sees the tragedy or the
sin for what it is in itself, and he is angered and grieved. “I have no pleasure in the death of anyone, declares the Lord God” (Ezek.18:32). “Let no corrupting talk come out of your mouths. . . . And do not grieve the Holy Spirit of God” (Eph. 4:29–30).
But when God looks at a painful or wicked event through his wide-angle lens, he sees the tragedy or the sin in relation to everything leading up to it and everything flowing out from it. He sees it in all the connections and effects that form a pattern or mosaic
stretching into eternity. This mosaic, with all its (good and evil) parts, he does delight in (Ps. 115:3). Or, again, as Edwards says, “God, though he hates a thing as it is simply, may incline to it with reference to the universality of things.”
From the book "Does God Desire All to Be Saved?"