scale(sx, sy, anchor) {
    if (sy === undefined) {
      sy = sx;
    }
    if (!anchor) {
      anchor = getCenter(this.getExtent());
    }
    const flatCoordinates = this.getFlatCoordinates();
    if (flatCoordinates) {
      const stride = this.getStride();
      scale(
        flatCoordinates,
        0,
        flatCoordinates.length,
        stride,
        sx,
        sy,
        anchor,
        flatCoordinates,
      );
      this.changed();
    }
  }
Scale the geometry (with an optional origin).  This modifies the geometry
coordinates in place.
@param {number} sx The scaling factor in the x-direction.
@param {number} [sy] The scaling factor in the y-direction (defaults to sx).
@param {import("../coordinate.js").Coordinate} [anchor] The scale origin (defaults to the center
    of the geometry extent).
@api
@override