function renderFeatureInternal(
  replayGroup,
  feature,
  style,
  squaredTolerance,
  transform,
  declutter,
  index,
) {
  const geometry = style.getGeometryFunction()(feature);
  if (!geometry) {
    return;
  }
  const simplifiedGeometry = geometry.simplifyTransformed(
    squaredTolerance,
    transform,
  );
  const renderer = style.getRenderer();
  if (renderer) {
    renderGeometry(replayGroup, simplifiedGeometry, style, feature, index);
  } else {
    const geometryRenderer = GEOMETRY_RENDERERS[simplifiedGeometry.getType()];
    geometryRenderer(
      replayGroup,
      simplifiedGeometry,
      style,
      feature,
      index,
      declutter,
    );
  }
}
@param {import("../render/canvas/BuilderGroup.js").default} replayGroup Replay group.
@param {import("../Feature.js").FeatureLike} feature Feature.
@param {import("../style/Style.js").default} style Style.
@param {number} squaredTolerance Squared tolerance.
@param {import("../proj.js").TransformFunction} [transform] Optional transform function.
@param {boolean} [declutter] Enable decluttering.
@param {number} [index] Render order index..