makeProjectionTransform(frameState, transform) {
    const size = frameState.size;
    const rotation = frameState.viewState.rotation;
    const resolution = frameState.viewState.resolution;
    const center = frameState.viewState.center;

    resetTransform(transform);
    composeTransform(
      transform,
      0,
      0,
      2 / (resolution * size[0]),
      2 / (resolution * size[1]),
      -rotation,
      -center[0],
      -center[1]
    );
    return transform;
  }
/**
   * Modifies 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.
   * @param {import("../PluggableMap.js").FrameState} frameState Frame state.
   * @param {import("../transform").Transform} transform Transform to update.
   * @return {import("../transform").Transform} The updated transform object.
   * @api
   */
Modifies 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.
Modifies 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 .
makeProjectionTransform(frameState, transform) {
    const size = frameState.size;
    const rotation = frameState.viewState.rotation;
    const resolution = frameState.viewState.resolution;
    const center = frameState.viewState.center;
    resetTransform(transform);
    composeTransform(
      transform,
      0,
      0,
      2 / (resolution * size[0]),
      2 / (resolution * size[1]),
      -rotation,
      -center[0],
      -center[1]
    );
    return transform;
  }
makeProjectionTransform ( frameState , transform ) { const size = frameState . size ; const rotation = frameState . viewState . rotation ; const resolution = frameState . viewState . resolution ; const center = frameState . viewState . center ; resetTransform ( transform ) ; composeTransform ( transform , 0 , 0 , 2 / ( resolution * size [ 0 ] ) , 2 / ( resolution * size [ 1 ] ) , - rotation , - center [ 0 ] , - center [ 1 ] ) ; return transform ; }
Modifies the given transform to apply the rotation/translation/scaling of the given frame state.
Modifies the given transform to apply the rotation / translation / scaling of the given frame state .