static evaluateKey(key, flipXY) {
    if (flipXY) {
      const firstChar = key.substring(0, 1);
      const rest = key.substring(1);

      if (firstChar === 'x') {
        return `y${rest}`;
      }
      if (firstChar === 'y') {
        return `x${rest}`;
      }
      if (key === 'cx') {
        return 'cy';
      }
      if (key === 'cy') {
        return 'cx';
      }
      if (key === 'width') {
        return 'height';
      }
      if (key === 'height') {
        return 'width';
      }
    }

    return key;
  }
/**
   * Evaluate a key for a transposed coordinate
   *
   * @param  {String} key   Key
   * @return {String}         Actual key
   */
Evaluate a key for a transposed coordinate
@param  {String} key   Key
@return {String}         Actual key
Evaluate a key for a transposed coordinate @param { String } key Key @return { String } Actual key
static evaluateKey(key, flipXY) {
    if (flipXY) {
      const firstChar = key.substring(0, 1);
      const rest = key.substring(1);
      if (firstChar === 'x') {
        return `y${rest}`;
      }
      if (firstChar === 'y') {
        return `x${rest}`;
      }
      if (key === 'cx') {
        return 'cy';
      }
      if (key === 'cy') {
        return 'cx';
      }
      if (key === 'width') {
        return 'height';
      }
      if (key === 'height') {
        return 'width';
      }
    }
    return key;
  }
static evaluateKey ( key , flipXY ) { if ( flipXY ) { const firstChar = key . substring ( 0 , 1 ) ; const rest = key . substring ( 1 ) ; if ( firstChar === 'x' ) { return ` ${ rest } ` ; } if ( firstChar === 'y' ) { return ` ${ rest } ` ; } if ( key === 'cx' ) { return 'cy' ; } if ( key === 'cy' ) { return 'cx' ; } if ( key === 'width' ) { return 'height' ; } if ( key === 'height' ) { return 'width' ; } } return key ; }
Evaluate a key for a transposed coordinate
 @param  {String} key   Key
 @return {String}         Actual key
Evaluate a key for a transposed coordinate @param { String } key Key @return { String } Actual key