/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/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};
