UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.88 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as t}from"../../../../chunks/tslib.es6.js";import o from"../../../../core/Accessor.js";import{watch as e,syncAndInitial as n}from"../../../../core/reactiveUtils.js";import{property as i}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as r}from"../../../../core/accessorSupport/decorators/subclass.js";import s from"../../../analysis/LengthDimensionResult.js";let l=class extends o{constructor(t){super(t),this.geometry=null,this.unconstrainedGeometry=null,this.elevationAlignedStartPoint=null,this.elevationAlignedEndPoint=null}normalizeCtorArgs(t){const{dimension:o,...e}=t;return{result:new s({dimension:o}),...e}}initialize(){this.addHandles([e((()=>this.dimension.startPoint),(t=>this.elevationAlignedStartPoint=this.projectAndAlignPoint(t)),n),e((()=>this.dimension.endPoint),(t=>this.elevationAlignedEndPoint=this.projectAndAlignPoint(t)),n)])}get dimension(){return this.result.dimension}get length(){return this.result.length}};t([i({constructOnly:!0,nonNullable:!0})],l.prototype,"result",void 0),t([i({constructOnly:!0,nonNullable:!0})],l.prototype,"projectAndAlignPoint",void 0),t([i()],l.prototype,"dimension",null),t([i()],l.prototype,"length",null),t([i()],l.prototype,"geometry",void 0),t([i()],l.prototype,"unconstrainedGeometry",void 0),t([i()],l.prototype,"elevationAlignedStartPoint",void 0),t([i()],l.prototype,"elevationAlignedEndPoint",void 0),t([i()],l.prototype,"preConstraintProperties",void 0),t([i()],l.prototype,"previousConstraint",void 0),l=t([r("esri.views.3d.analysis.Dimension.LengthDimensionComputation")],l);export{l as LengthDimensionComputation};