/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{VerticalPlaneConstraint as t}from"../../sketch/constraints.js";import{SnappingCandidate as n}from"./SnappingCandidate.js";import{LineSnappingHint as e}from"../hints/LineSnappingHint.js";class i extends n{constructor({lineStart:n,lineEnd:i,targetPoint:s,isDraped:r}){super(s,new t(n,i),r,2),this._referenceLineHint=new e(2,n,i,r,this.domain)}get hints(){return[this._referenceLineHint,new e(0,this._lineEndClosestToTarget(),this.targetPoint,this.isDraped,this.domain)]}_lineEndClosestToTarget(){return this.constraint.closestEndTo(this.targetPoint)}}export{i as LineSnappingCandidate};
