Law of Uniform Connectedness

is a Gestalt principle stating that elements visually connected by lines, borders, or other linking features are perceived as related or grouped