makeProjectionTransform(frameState, transform) {
    const size = frameState.size;
    const rotation = frameState.viewState.rotation;
    const resolution = frameState.viewState.resolution;
    const center = frameState.viewState.center;
    composeTransform(
      transform,
      0,
      0,
      2 / (resolution * size[0]),
      2 / (resolution * size[1]),
      -rotation,
      -center[0],
      -center[1],
    );
    return transform;
  }
Sets the given transform to apply the rotation/translation/scaling of the given frame state.
The resulting transform can be used to convert world space coordinates to view coordinates in the [-1, 1] range.
@param {import("../Map.js").FrameState} frameState Frame state.
@param {import("../transform").Transform} transform Transform to update.
@return {import("../transform").Transform} The updated transform object.