27 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
/**
 | 
						|
 * @license
 | 
						|
 * Cesium - https://github.com/CesiumGS/cesium
 | 
						|
 * Version 1.127
 | 
						|
 *
 | 
						|
 * Copyright 2011-2022 Cesium Contributors
 | 
						|
 *
 | 
						|
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
						|
 * you may not use this file except in compliance with the License.
 | 
						|
 * You may obtain a copy of the License at
 | 
						|
 *
 | 
						|
 * http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
 *
 | 
						|
 * Unless required by applicable law or agreed to in writing, software
 | 
						|
 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
						|
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
						|
 * See the License for the specific language governing permissions and
 | 
						|
 * limitations under the License.
 | 
						|
 *
 | 
						|
 * Columbus View (Pat. Pend.)
 | 
						|
 *
 | 
						|
 * Portions licensed separately.
 | 
						|
 * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
 | 
						|
 */
 | 
						|
 | 
						|
import{a as r}from"./chunk-ZO6A2GWK.js";import"./chunk-ISJZ32RD.js";import{a as m}from"./chunk-UMETRE6B.js";import"./chunk-3ENQPBUN.js";import"./chunk-7JZ622KV.js";import"./chunk-JIHKLWIP.js";import"./chunk-OJFQMRFX.js";import"./chunk-Z527LWHO.js";import"./chunk-XK36GTOK.js";import{a as s}from"./chunk-USIHDKAN.js";import"./chunk-NTNB2RUS.js";import"./chunk-SCRFYNVO.js";import"./chunk-QT4PP33T.js";import{a as l}from"./chunk-WFRUBKWC.js";import{b as p}from"./chunk-H5M663KA.js";import{e as c}from"./chunk-IEMGHOZF.js";function n(e){let t=l(e.radius,1),o={radii:new s(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new r(o),this._workerName="createSphereGeometry"}n.packedLength=r.packedLength;n.pack=function(e,t,a){return p.typeOf.object("value",e),r.pack(e._ellipsoidGeometry,t,a)};var f=new r,i={radius:void 0,radii:new s,vertexFormat:new m,stackPartitions:void 0,slicePartitions:void 0};n.unpack=function(e,t,a){let o=r.unpack(e,t,f);return i.vertexFormat=m.clone(o._vertexFormat,i.vertexFormat),i.stackPartitions=o._stackPartitions,i.slicePartitions=o._slicePartitions,c(a)?(s.clone(o._radii,i.radii),a._ellipsoidGeometry=new r(i),a):(i.radius=o._radii.x,new n(i))};n.createGeometry=function(e){return r.createGeometry(e._ellipsoidGeometry)};var d=n;function u(e,t){return c(t)&&(e=d.unpack(e,t)),d.createGeometry(e)}var v=u;export{v as default};
 |