1import{convertToSpatialReferenceUnit as y,toLengthUnit as R}from"./unitConversion-B_5nlEvb.js";import{w as p}from"./operatorOffset-3sYcDCwT.js";import{fromGeometry as d,getSpatialReference as E,fromSpatialReference as G,toGeometry as g}from"./apiConverter-BdPnM_kZ.js";import{fromGeometry as h,toGeometry as x}from"./jsonConverter-D3HAtSzT.js";import"./index-tMz818nX.js";import"./SimpleGeometryCursor-B92kdZ15.js";import"./ProjectionTransformation-B3NvJfDX.js";import"./Envelope2D-3baY5o5V.js";import"./Point2D-jssW50Qo.js";import"./Transformation2D-bvlPpX-x.js";import"./OperatorDefinitions-DP7_WWTp.js";const u={round:0,bevel:1,miter:2,square:3};function L(r,t,i,e,s,m){t=y(R(i),r.spatialReference,t);const a=d(r),n=E(r),f=v(a,G(n),t,e,s,m);return g(f,n)}function M(r,t,i,e,s,m){t=y(R(i),r.spatialReference,t);const a=h(r),n=a.getGeometry(),f=a.getSpatialReference(),c=v(n,f,t,e,s,m);return x(c,f)}function v(r,t,i,e,s,m){const a=p(r,t,i,u[e],s,m);if(!a.isEmpty())return a;{const o=r.clone();o.reverseAllPaths();const l=p(o,t,-i,u[e],s,m);if(!l.isEmpty())return l.reverseAllPaths(),l}const n=Math.abs(i)/10,f=n/10;let c=m;if(e==="round"&&(c+=f),e==="bevel"||e==="square"){const o=p(r,t,i,u[e="miter"],s,m);if(!o.isEmpty())return o}if(e==="miter"){const o=p(r,t,i,u[e="round"],s,m);if(!o.isEmpty())return o}if(e==="round")for(;c<=n;c+=f){const o=p(r,t,i,u[e],s,c);if(!o.isEmpty())return o}return null}export{L as executeOffset,M as executeOffsetJson};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.