szn-tethered.js
function updateAttributes(instance) {
    if (instance.horizontalAlignment !== instance._lastHorizontalAlignment) {
      const horizontalAlignment = instance.horizontalAlignment === HORIZONTAL_ALIGN.LEFT ? 'left' : 'right'
      instance._root.setAttribute('data-horizontal-align', horizontalAlignment)
      instance._lastHorizontalAlignment = instance.horizontalAlignment
    }
    if (instance.verticalAlignment !== instance._lastVerticalAlignment) {
      const verticalAlignment = instance.verticalAlignment === VERTICAL_ALIGN.TOP ? 'top' : 'bottom'
      instance._root.setAttribute('data-vertical-align', verticalAlignment)
      instance._lastVerticalAlignment = instance.verticalAlignment
    }
  }
function updateAttributes(instance) {
    if (instance.horizontalAlignment !== instance._lastHorizontalAlignment) {
      const horizontalAlignment = instance.horizontalAlignment === HORIZONTAL_ALIGN.LEFT ? 'left' : 'right'
      instance._root.setAttribute('data-horizontal-align', horizontalAlignment)
      instance._lastHorizontalAlignment = instance.horizontalAlignment
    }
    if (instance.verticalAlignment !== instance._lastVerticalAlignment) {
      const verticalAlignment = instance.verticalAlignment === VERTICAL_ALIGN.TOP ? 'top' : 'bottom'
      instance._root.setAttribute('data-vertical-align', verticalAlignment)
      instance._lastVerticalAlignment = instance.verticalAlignment
    }
  }
function updateAttributes ( instance ) { if ( instance . horizontalAlignment !== instance . _lastHorizontalAlignment ) { const horizontalAlignment = instance . horizontalAlignment === HORIZONTAL_ALIGN . LEFT ? 'left' : 'right' instance . _root . setAttribute ( 'data-horizontal-align' , horizontalAlignment ) instance . _lastHorizontalAlignment = instance . horizontalAlignment } if ( instance . verticalAlignment !== instance . _lastVerticalAlignment ) { const verticalAlignment = instance . verticalAlignment === VERTICAL_ALIGN . TOP ? 'top' : 'bottom' instance . _root . setAttribute ( 'data-vertical-align' , verticalAlignment ) instance . _lastVerticalAlignment = instance . verticalAlignment } }
Updates the attributes on the szn-tethered element reporting the current alignment to the tethering element.

@param {SznElements.SznTethered} instance The szn-tethered element instance.
Updates the attributes on the szn - tethered element reporting the current alignment to the tethering element .