Add horizontal visibility check

hi, i add the horizontal visibility check to your plugin and add a third parameter `direction` ('horizontal', 'vertical' or 'both' [default])