qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/createCircleOutlineGeometry.js

2 lines
2.3 KiB
JavaScript

define(["./Cartesian3-e0307675","./Check-741c5f3c","./defaultValue-81eec7ed","./EllipseOutlineGeometry-1628e71d","./Cartesian2-bd414876","./Math-e73894ab","./GeometryOffsetAttribute-ed56ff58","./BoundingSphere-9a3b5656","./GeographicProjection-c931c7fb","./Matrix4-4c545f70","./RuntimeError-26acdd3b","./Rectangle-cf3e0e3e","./ComponentDatatype-aaeec80f","./WebGLConstants-508b9636","./EllipseGeometryLibrary-6649af71","./Transforms-5b829630","./when-422ea0ae","./Resource-8ae1a924","./combine-3c023bda","./GeometryAttribute-2b42a913","./Matrix2-dc0c61cc","./GeometryAttributes-32b29525","./IndexDatatype-3f3c99e8"],(function(e,i,t,r,n,l,o,s,a,c,u,d,m,p,y,f,G,h,_,b,g,x,E){"use strict";function O(e){const i=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,n={center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new r.EllipseOutlineGeometry(n),this._workerName="createCircleOutlineGeometry"}O.packedLength=r.EllipseOutlineGeometry.packedLength,O.pack=function(e,i,t){return r.EllipseOutlineGeometry.pack(e._ellipseGeometry,i,t)};const M=new r.EllipseOutlineGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),A={center:new e.Cartesian3,radius:void 0,ellipsoid:n.Ellipsoid.clone(n.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};return O.unpack=function(i,l,o){const s=r.EllipseOutlineGeometry.unpack(i,l,M);return A.center=e.Cartesian3.clone(s._center,A.center),A.ellipsoid=n.Ellipsoid.clone(s._ellipsoid,A.ellipsoid),A.height=s._height,A.extrudedHeight=s._extrudedHeight,A.granularity=s._granularity,A.numberOfVerticalLines=s._numberOfVerticalLines,t.defined(o)?(A.semiMajorAxis=s._semiMajorAxis,A.semiMinorAxis=s._semiMinorAxis,o._ellipseGeometry=new r.EllipseOutlineGeometry(A),o):(A.radius=s._semiMajorAxis,new O(A))},O.createGeometry=function(e){return r.EllipseOutlineGeometry.createGeometry(e._ellipseGeometry)},function(i,r){return t.defined(r)&&(i=O.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=n.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),O.createGeometry(i)}}));