@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.03 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{_ as e}from"../../../chunks/tslib.es6.js";import{createScreenPointArray as r}from"../../../core/screenUtils.js";import"../../../core/Logger.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import"../../../core/Error.js";import{subclass as t}from"../../../core/accessorSupport/decorators/subclass.js";import{create as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{vectorToRender as s}from"./support/viewUtils.js";import{SegmentLabels as i}from"../../interactive/SegmentLabels.js";let a=class extends i{getCameraOrExtent({view:e}){return e.state.camera}toScreenPointArray({view:e,elevationInfo:t,editGeometryOperations:o},i,a=r()){const{spatialReference:m}=o.data.coordinateHelper;return s(i,m,t,e,c),e.state.camera.projectToScreen(c,a),a}};a=e([t("esri.views.3d.interactive.SegmentLabels3D")],a);const c=o();export{a as SegmentLabels3D};