Added a center argument to set_dotcode and set_xdotcode

Added a "center" argument to `set_dotcode` and `set_xdotcode` functions to determine whether the view returns to center after dotcode generation.