/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{t as e,p as t,H as i,h as s}from"./p-DmsAWRoU.js";import{p as a,a as n}from"./p-Tvs4yxd5.js";const r=()=>`:host{display:block;--viewer-measurement-line-stroke:var(--white);--viewer-measurement-line-stroke-opacity:0.75;--viewer-measurement-line-stroke-width:1.25px;--viewer-measurement-line-fill:var(--neutral-900);--viewer-measurement-line-fill-width:2px;--viewer-measurement-line-start-cap-visibility:initial;--viewer-measurement-line-end-cap-visibility:initial}svg{width:100%;height:100%}.line-stroke{stroke-width:calc(     var(--viewer-measurement-line-fill-width) +       var(--viewer-measurement-line-stroke-width)   );stroke:var(--viewer-measurement-line-stroke);opacity:var(--viewer-measurement-line-stroke-opacity)}.line-fill{stroke-width:var(--viewer-measurement-line-fill-width);stroke:var(--viewer-measurement-line-fill)}.start-cap{visibility:var(--viewer-measurement-line-start-cap-visibility)}.end-cap{visibility:var(--viewer-measurement-line-end-cap-visibility)}`;const l=t(class e extends i{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.start=a.create();this.end=a.create();this.capLength=0;this.pointerEvents="none"}render(){const e=n.fromPoints(this.start,this.end);const t=c(this.start,this.end,e,this.capLength);const i=c(this.start,this.end,e,this.capLength+1);return s("svg",{key:"96c8e5b4ddb2e0bfb86e622ba7414c5061000ea9"},s("g",{key:"6b1673f801e3776db396e5912541d51ca54d23bf",class:"line-stroke","pointer-events":this.pointerEvents},s("line",{key:"1ae3892507d0a63701950c12abfa67cd2f02e46f",class:"line",x1:this.start.x,y1:this.start.y,x2:this.end.x,y2:this.end.y}),s("line",{key:"ab3111d1d00653f1d68d12e0e89ad2e0fe609049",class:"start-cap",x1:i.startEndCap.start.x,y1:i.startEndCap.start.y,x2:i.startEndCap.end.x,y2:i.startEndCap.end.y}),s("line",{key:"5c3e899afe9a95af73fcd80aa670c3849dbe1f70",class:"end-cap",x1:i.endEndCap.start.x,y1:i.endEndCap.start.y,x2:i.endEndCap.end.x,y2:i.endEndCap.end.y})),s("g",{key:"cfef2398d0c8445e3f9223c52b446c2cb187c5e9",class:"line-fill","pointer-events":this.pointerEvents},s("line",{key:"90653a7c0fadd495949f85a246d3b640086fbbef",class:"line",x1:this.start.x,y1:this.start.y,x2:this.end.x,y2:this.end.y}),s("line",{key:"c92da23e39cf9248e12875136b68aa5de42b2e09",class:"start-cap",x1:t.startEndCap.start.x,y1:t.startEndCap.start.y,x2:t.startEndCap.end.x,y2:t.startEndCap.end.y}),s("line",{key:"5dbfeff2784da10f6e1a442fcf706edf91e9e4ef",class:"end-cap",x1:t.endEndCap.start.x,y1:t.endEndCap.start.y,x2:t.endEndCap.end.x,y2:t.endEndCap.end.y})))}static get style(){return r()}},[1,"vertex-viewer-measurement-line",{start:[16],end:[16],capLength:[2,"cap-length"],pointerEvents:[1,"pointer-events"]}]);function c(e,t,i,s){return{startEndCap:d(e,i,s),endEndCap:d(t,i,s)}}function d(e,t,i){const s=t+Math.PI/2;const n=a.add(e,a.polar(i/2,s));const r=a.add(e,a.polar(i/2,s+Math.PI));return{start:n,end:r}}function m(){if(typeof customElements==="undefined"){return}const t=["vertex-viewer-measurement-line"];t.forEach((t=>{switch(t){case"vertex-viewer-measurement-line":if(!customElements.get(e(t))){customElements.define(e(t),l)}break}}))}m();export{l as V,m as d};
//# sourceMappingURL=p-Xr7Oa6iw.js.map