<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{c as E,u as R,H as a,I as L}from"./vec32-070cf9c9.js";import{t as l,n as _}from"./vec3f64-b400eac8.js";import{K as u,M as d,a as o,f as r,C as n,l as w,e as f}from"./LineSnappingHint-1d7bd243.js";import{t as g}from"./SnappingCandidate-2f5affa1.js";import{r as D}from"./geodesicMeasurementUtils-38cee9d4.js";import{m as P}from"./vec2-18936733.js";import{s as F}from"./RightAngleSnappingHint-4c3644cb.js";let A=class extends g{constructor({referenceLine:t,lineStart:i,targetPoint:e,isDraped:h}){const s=l(i),{left:m,right:c}=t;E(s,R(s,s,c),m),super(e,new u(i,d(s)),h,o.SELF),this._referenceLines=[{edge:t,fadeLeft:!0,fadeRight:!0}]}get hints(){return[new r(n.TARGET,this.constraint.start,this.targetPoint,this.isDraped,this.domain),new D(this.constraint.start,this.targetPoint,this.isDraped,this.domain),...this._referenceLines.map(t=&gt;new r(n.REFERENCE,t.edge.left,t.edge.right,this.isDraped,this.domain,t.fadeLeft,t.fadeRight))]}addReferenceLine(t){const i={edge:t,fadeLeft:!0,fadeRight:!0};this._referenceLines.forEach(e=&gt;{a(t.right,e.edge.left)&amp;&amp;(e.fadeLeft=!1,i.fadeRight=!1),a(t.right,e.edge.right)&amp;&amp;(e.fadeRight=!1,i.fadeRight=!1),a(t.left,e.edge.right)&amp;&amp;(e.fadeRight=!1,i.fadeLeft=!1),a(t.left,e.edge.left)&amp;&amp;(e.fadeLeft=!1,i.fadeLeft=!1)}),this._referenceLines.push(i)}};class H extends g{constructor({targetPoint:t,point1:i,point2:e,isDraped:h}){super(t,new w(d(L(_(),i,e,.5)),.5*P(f(i),f(e))),h,o.SELF),this._p1=i,this._p2=e}get hints(){return[new r(n.REFERENCE,this.targetPoint,this._p1,this.isDraped,this.domain),new r(n.REFERENCE,this.targetPoint,this._p2,this.isDraped,this.domain),new F(this._p1,this.targetPoint,this._p2,this.isDraped,this.domain)]}}export{H as a,A as g};
</pre></body></html>