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

    let alignX = val;
    if (!ALIGNMENTS_X.includes(val)) {
      alignX = ALIGNMENTS_X[0];
    }

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

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

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