/** * Applies an affine transformation to 2D geometries via the [Transformation](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/support/Transformation/) class. * * @since 4.31 */ import type Transformation from "./support/Transformation.js"; import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js"; /** * Executes an affine transformation on the geometry. * * @param geometry - The geometry to be transformed. * @param transformation - The transformation to apply to the `geometry`. * @returns Returns the transformed geometry. * @since 5.2 */ export function affineTransformExecute(geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion; /** * Executes an affine transformation on the geometry. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [affineTransformExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/affineTransformOperator/#affineTransformExecute). * @param geometry - The geometry to be transformed. * @param transformation - The transformation to apply to the `geometry`. * @returns Returns the transformed geometry. */ export function execute(geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion; /** * Executes an affine transformation on multiple geometries. * * @param geometries - The geometries to be transformed. * All the geometries must have the same spatial reference. * @param transformation - The transformation to apply to the `geometries`. * @returns Returns the transformed geometries. * @since 5.2 */ export function affineTransformExecuteMany(geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]; /** * Executes an affine transformation on multiple geometries. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [affineTransformExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/affineTransformOperator/#affineTransformExecuteMany). * @param geometries - The geometries to be transformed. * All the geometries must have the same spatial reference. * @param transformation - The transformation to apply to the `geometries`. * @returns Returns the transformed geometries. */ export function executeMany(geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. * * @since 5.2 */ export const affineTransformSupportsCurves: boolean; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. * * @deprecated * since 5.2. Refactor using \@arcgis/codemod or manually replace usages * with [affineTransformSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/affineTransformOperator/#affineTransformSupportsCurves). */ export const supportsCurves: ReturnType;