src/js/utils/general.js
function _makeAttachedTippyOptions(attachToOptions) {
  const resultingTippyOptions = {
    content: this.el,
    flipOnUpdate: true,
    placement: attachToOptions.on || 'right'
  };

  Object.assign(resultingTippyOptions, this.options.tippyOptions);

  if (this.options.title) {
    const existingTheme = resultingTippyOptions.theme;
    resultingTippyOptions.theme = existingTheme ? `${existingTheme} shepherd-has-title` : 'shepherd-has-title';
  }

  if (this.options.tippyOptions && this.options.tippyOptions.popperOptions) {
    Object.assign(defaultPopperOptions, this.options.tippyOptions.popperOptions);
  }

  resultingTippyOptions.popperOptions = defaultPopperOptions;

  return resultingTippyOptions;
}
function _makeAttachedTippyOptions(attachToOptions) {
  const resultingTippyOptions = {
    content: this.el,
    flipOnUpdate: true,
    placement: attachToOptions.on || 'right'
  };

  Object.assign(resultingTippyOptions, this.options.tippyOptions);

  if (this.options.title) {
    const existingTheme = resultingTippyOptions.theme;
    resultingTippyOptions.theme = existingTheme ? `${existingTheme} shepherd-has-title` : 'shepherd-has-title';
  }

  if (this.options.tippyOptions && this.options.tippyOptions.popperOptions) {
    Object.assign(defaultPopperOptions, this.options.tippyOptions.popperOptions);
  }

  resultingTippyOptions.popperOptions = defaultPopperOptions;

  return resultingTippyOptions;
}
function _makeAttachedTippyOptions ( attachToOptions ) { const resultingTippyOptions = { content : this . el , flipOnUpdate : true , placement : attachToOptions . on || 'right' } ; Object . assign ( resultingTippyOptions , this . options . tippyOptions ) ; if ( this . options . title ) { const existingTheme = resultingTippyOptions . theme ; resultingTippyOptions . theme = existingTheme ? ` ${ existingTheme } ` : 'shepherd-has-title' ; } if ( this . options . tippyOptions && this . options . tippyOptions . popperOptions ) { Object . assign ( defaultPopperOptions , this . options . tippyOptions . popperOptions ) ; } resultingTippyOptions . popperOptions = defaultPopperOptions ; return resultingTippyOptions ; }
Generates the hash of options that will be passed to `Tippy` instances
target an element in the DOM.

@param {Object} attachToOptions The local `attachTo` options
@return {Object} The final tippy options  object
@private
Generates the hash of options that will be passed to Tippy instances target an element in the DOM .