set opacity(val) {
    let trueVal = Number(val);
    if (Number.isNaN(trueVal)) {
      return;
    }

    // Opacity is a percentage value between 0 and 1,
    // so adjust the number accordingly if we get something off
    if (trueVal < 0) {
      trueVal = 0;
    }
    if (trueVal > 1) {
      trueVal = 1;
    }
    this.state.opacity = trueVal;
    this.#changeOpacity(trueVal);
  }
/**
   * @param {number} val a percentage number for setting overlay transparency
   */
@param {number} val a percentage number for setting overlay transparency
@param { number } val a percentage number for setting overlay transparency
set opacity(val) {
    let trueVal = Number(val);
    if (Number.isNaN(trueVal)) {
      return;
    }
    if (trueVal < 0) {
      trueVal = 0;
    }
    if (trueVal > 1) {
      trueVal = 1;
    }
    this.state.opacity = trueVal;
    this.#changeOpacity(trueVal);
  }
set opacity ( val ) { let trueVal = Number ( val ) ; if ( Number . isNaN ( trueVal ) ) { return ; } if ( trueVal < 0 ) { trueVal = 0 ; } if ( trueVal > 1 ) { trueVal = 1 ; } this . state . opacity = trueVal ; this . #changeOpacity ( trueVal ) ; }
@param {number} val a percentage number for setting overlay transparency
@param { number } val a percentage number for setting overlay transparency
// Opacity is a percentage value between 0 and 1, // so adjust the number accordingly if we get something off