linkedin/hopscotch — pull request #133 by ima007 (2014-11-11 04:38:41+00:00)
Title: Add right-to-left support to hopscotch

This provides a configuration option to tours and individual callouts to "flip" the positioning of callouts . Callouts positioned on the top and bottom are shifted to their right-to-left position equivalent, and anything oriented "left" is switched to "right" and vice-versa. xOffset is respected. Instantiators must simply set the 'isRtl" flag to true when they are expecting to view the callout in a RTL language context.

Two util functions were created to handle the placement/orientation legacy handling, and the right-to-left switch. Additionally, the render and setPosition methods were updated to support the parameter.