/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 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 * * * 该版本修改了部分代码,主要是汉化、优化功能、添加接口 等 by 火星科技 http://marsgis.cn * 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/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details. */ define(["./defined-b9ff0e39","./Check-e6691f86","./freezeObject-2d5b18ce","./defaultValue-199f5aa8","./Math-92bd3539","./Cartesian2-8fa798b8","./defineProperties-ae15c9d5","./WebGLConstants-554ddbe2","./when-c208a7cf","./AttributeCompression-4cb3e905","./IndexDatatype-7119db15","./createTaskProcessorWorker"],function(a,e,r,t,W,z,n,i,s,B,O,u){"use strict";var j=32767,H=new z.Cartographic,V=new z.Cartesian3;var Y=new z.Rectangle,Z=new z.Ellipsoid,q=new z.Cartesian3,J={min:void 0,max:void 0};var K=new z.Cartesian3,Q=new z.Cartesian3,X=new z.Cartesian3,$=new z.Cartesian3,aa=new z.Cartesian3;return u(function(a,e){var r=new Uint16Array(a.positions),t=new Uint16Array(a.widths),n=new Uint32Array(a.counts),i=new Uint16Array(a.batchIds);!function(a){a=new Float64Array(a);var e=0;J.min=a[e++],J.max=a[e++],z.Rectangle.unpack(a,e,Y),e+=z.Rectangle.packedLength,z.Ellipsoid.unpack(a,e,Z),e+=z.Ellipsoid.packedLength,z.Cartesian3.unpack(a,e,q)}(a.packedBuffer);var s,u=Z,c=q,f=function(a,e,r,t,n){var i=a.length/3,s=a.subarray(0,i),u=a.subarray(i,2*i),c=a.subarray(2*i,3*i);B.AttributeCompression.zigZagDeltaDecode(s,u,c);for(var f=new Float32Array(a.length),o=0;o