@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
31 lines (29 loc) • 785 B
TypeScript
/**
* Draw utils for Components.
*
* @internal
* @internal
*/
import type Extent from "../../geometry/Extent.js";
import type Multipoint from "../../geometry/Multipoint.js";
import type Point from "../../geometry/Point.js";
import type Polygon from "../../geometry/Polygon.js";
import type Polyline from "../../geometry/Polyline.js";
/**
* @internal
* @internal
*/
export type MoveGeometries = Extent | Multipoint | Point | Polygon | Polyline;
/**
* performs translation of given geometry
* dx, dy: how much to translate the geometry in x and y direction. Given in
* screen space.
*
* @param geometry
* @param dx
* @param dy
* @param dz
* @internal
* @internal
*/
export function move(geometry: MoveGeometries, dx: number, dy: number, dz?: number): MoveGeometries;