import { affineTransformExecute, execute, affineTransformExecuteMany, executeMany, affineTransformSupportsCurves } from "@arcgis/core/geometry/operators/affineTransformOperator.js";
Since
ArcGIS Maps SDK for JavaScript 4.31

Applies an affine transformation to 2D geometries via the Transformation class.

Functions

affineTransformExecute

Function
Since
ArcGIS Maps SDK for JavaScript 5.2

Executes an affine transformation on the geometry.

Signature
affineTransformExecute (geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion

Parameters

ParameterTypeDescriptionRequired
geometry

The geometry to be transformed.

transformation

The transformation to apply to the geometry.

Returns
GeometryWithoutMeshUnion

Returns the transformed geometry.

execute

deprecated Function

Executes an affine transformation on the geometry.

Signature
execute (geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion

Parameters

ParameterTypeDescriptionRequired
geometry

The geometry to be transformed.

transformation

The transformation to apply to the geometry.

Returns
GeometryWithoutMeshUnion

Returns the transformed geometry.

affineTransformExecuteMany

Function
Since
ArcGIS Maps SDK for JavaScript 5.2

Executes an affine transformation on multiple geometries.

Signature
affineTransformExecuteMany (geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]

Parameters

ParameterTypeDescriptionRequired
geometries

The geometries to be transformed. All the geometries must have the same spatial reference.

transformation

The transformation to apply to the geometries.

Returns
GeometryWithoutMeshUnion[]

Returns the transformed geometries.

executeMany

deprecated Function

Executes an affine transformation on multiple geometries.

Signature
executeMany (geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]

Parameters

ParameterTypeDescriptionRequired
geometries

The geometries to be transformed. All the geometries must have the same spatial reference.

transformation

The transformation to apply to the geometries.

Returns
GeometryWithoutMeshUnion[]

Returns the transformed geometries.

Variables

affineTransformSupportsCurves

Variable
Since
ArcGIS Maps SDK for JavaScript 5.2

Indicates if the operator supports input geometries that contain curves. The value will always be true.

Type
boolean

supportsCurves

deprecated Variable

Indicates if the operator supports input geometries that contain curves. The value will always be true.

Type
ReturnType