UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 701 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{createScreenPointArray as e,createScreenPoint as r}from"../../../core/screenUtils.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{makeDehydratedPoint as o}from"../../../layers/graphics/dehydratedPoint.js";import{vectorToRender as i}from"../../3d/interactive/support/viewUtils.js";function s(e,t,o,s){return"2d"===s.type?(c.x=e[0],c.y=e[1],c.spatialReference=t,s.toScreen(c)):(i(e,t,o,s,a),s.state.camera.projectToScreen(a,n),r(n[0],n[1]))}const c=o(0,0,0,null),a=t(),n=e();export{s as vectorToScreenPoint};