@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 900 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{SnappingCandidate as t}from"./SnappingCandidate.js";import{LineSnappingHint as e}from"../hints/LineSnappingHint.js";import{RightAngleSnappingHint as i}from"../hints/RightAngleSnappingHint.js";class r extends t{constructor({targetPoint:t,constraint:e,previousVertex:i,otherVertex:r,otherVertexType:s,isDraped:n,selfSnappingType:o,objectId:h,domain:p}){super(t,e,n,p??2),this.previousVertex=i,this.otherVertex=r,this.otherVertexType=s,this.selfSnappingType=o??0,this.objectId=h??null}get hints(){const t=this.previousVertex,r=1===this.otherVertexType?this.otherVertex:this.targetPoint,s=1===this.otherVertexType?this.targetPoint:this.otherVertex;return[new e(0,r,s,this.isDraped,this.domain),new e(1,t,r,this.isDraped,this.domain),new i(this.previousVertex,r,s,this.isDraped,this.domain)]}}export{r as RightAngleSnappingCandidate};