PageSourceSearch

https://hoydedata.no/LaserInnsyn2/assets/rotate-BGc5Hq2l.js

js hoydedata.no collected 2026-09-24 19:16:31 UTC 1,641 bytes, 1 lines download raw bytes

1import{bS as m,bw as x,bU as v,es as y,aC as g,h as M,bB as p,bC as R,et as b,bD as w,bE as d}from"./index-DOEMLUVm.js";import{i as Z,n as P,c as z}from"./rotate-Dqk21NFj.js";function C(e,t,n,a){const r=[];for(const s of e){const c=s.slice();r.push(c);const h=t*(s[0]-a.x)-n*(s[1]-a.y)+a.x,o=n*(s[0]-a.x)+t*(s[1]-a.y)+a.y;c[0]=h,c[1]=o}return r}function I(e,t,n,a){const r=[a.x,a.y];if(R(e)){const s=[...e];return b(s,s,r,n)}return w(e)?Z(e,r,n):d(e)?P(e,r,n):t?z(t,e,r,n):e}function l(e,t,n,a){const r=[];for(const s of e){const c=[],h=a&&s.length>0&&M(p(s[0]),p(s.at(-1)));for(let o=0;o<s.length;o++){const u=s[o],i=o>0?p(s[o-1]):void 0;c.push(I(u,i,t,n))}h&&(c[0]=[...p(c.at(-1))]),r.push(c)}return r}function j({spatialReference:e,xmin:t,ymin:n,ymax:a,xmax:r}){return new y({spatialReference:e??void 0,hasM:!1,hasZ:!1,rings:[[[t,n],[t,a],[r,a],[r,n],[t,n]]]})}function E(e,t,n){const{hasM:a,hasZ:r,spatialReference:s,type:c}=e,h=t*Math.PI/180,o=Math.cos(h),u=Math.sin(h);switch(c){case"point":return n=n??e,new g({x:o*(e.x-n.x)-u*(e.y-n.y)+n.x,y:u*(e.x-n.x)+o*(e.y-n.y)+n.y,z:e.z,m:e.m,spatialReference:s});case"extent":case"polygon":{e=c==="extent"?j(e):e,n=n??e.extent.center;const i=x(e),f=l(e.curveRings??e.rings,h,n,!0);return new y({spatialReference:s,hasZ:e.hasZ,hasM:e.hasM,curveRings:i?f:void 0,rings:i?void 0:f})}case"polyline":{n=n??e.extent.center;const i=x(e),f=l(e.curvePaths??e.paths,h,n,!1);return new v({hasZ:r,hasM:a,spatialReference:s,curvePaths:i?f:void 0,paths:i?void 0:f})}case"multipoint":return n??(n=e.extent.center),new m({hasM:a,hasZ:r,points:C(e.points,o,u,n),spatialReference:s})}return null}export{E as g};

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.