set alignY(val) {
    if (typeof val !== 'string' || !val.length) {
      return;
    }

    let alignY = ALIGNMENTS_Y[0];
    if (ALIGNMENTS_Y.includes(val)) {
      alignY = val;
    }

    // If `align-y` was used directy, standardize against the `align` attribute.
    if (this.hasAttribute(attributes.ALIGN_Y)) {
      this.removeAttribute(attributes.ALIGN_Y);
    }

    if (this.#alignY !== alignY) {
      this.#alignY = alignY;
      const alignX = this.#alignX;

      // Setting the `align` attribute causes a refresh to occur,
      // so no need to call `refresh()` here.
      this.align = formatAlignAttribute(alignX, alignY, alignY);
    }
  }
/**
   * @param {string} val alignment strategy for the current parent Y alignment
   */
@param {string} val alignment strategy for the current parent Y alignment
@param { string } val alignment strategy for the current parent Y alignment
set alignY(val) {
    if (typeof val !== 'string' || !val.length) {
      return;
    }
    let alignY = ALIGNMENTS_Y[0];
    if (ALIGNMENTS_Y.includes(val)) {
      alignY = val;
    }
    if (this.hasAttribute(attributes.ALIGN_Y)) {
      this.removeAttribute(attributes.ALIGN_Y);
    }
    if (this.#alignY !== alignY) {
      this.#alignY = alignY;
      const alignX = this.#alignX;
      this.align = formatAlignAttribute(alignX, alignY, alignY);
    }
  }
set alignY ( val ) { if ( typeof val !== 'string' || ! val . length ) { return ; } let alignY = ALIGNMENTS_Y [ 0 ] ; if ( ALIGNMENTS_Y . includes ( val ) ) { alignY = val ; } if ( this . hasAttribute ( attributes . ALIGN_Y ) ) { this . removeAttribute ( attributes . ALIGN_Y ) ; } if ( this . #alignY !== alignY ) { this . #alignY = alignY ; const alignX = this . #alignX ; this . align = formatAlignAttribute ( alignX , alignY , alignY ) ; } }
@param {string} val alignment strategy for the current parent Y alignment
@param { string } val alignment strategy for the current parent Y alignment
// If `align-y` was used directy, standardize against the `align` attribute. // Setting the `align` attribute causes a refresh to occur, // so no need to call `refresh()` here.