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

2 lines
82 KiB
JavaScript
Raw Permalink Normal View History

2024-01-02 14:12:39 +08:00
define(["./Color-82ef4a75","./ComponentDatatype-aaeec80f","./defaultValue-81eec7ed","./Check-741c5f3c","./GeometryInstance-1b39c9e8","./PolygonGeometry-95e6b579","./PolygonOutlineGeometry-29f6cf19","./VertexFormat-d50a69ba","./Resource-8ae1a924","./combine-3c023bda","./WebGLConstants-508b9636","./Cartesian2-bd414876","./when-422ea0ae","./Transforms-5b829630","./RuntimeError-26acdd3b","./Matrix2-dc0c61cc","./Matrix4-4c545f70","./Math-e73894ab","./PixelFormat-bd725b72","./GeometryAttribute-2b42a913","./GeometryAttributes-32b29525","./PrimitivePipeline-d5bc2e2a","./GeographicProjection-c931c7fb","./BoundingSphere-9a3b5656","./Cartesian3-e0307675","./GetRidingLanternGeometry","./ArcType-fc72c06c","./GeometryOffsetAttribute-ed56ff58","./BoundingRectangle-0e36efc3","./Rectangle-cf3e0e3e","./EllipsoidGeodesic-e7a5ca44","./EllipsoidTangentPlane-4d138901","./AxisAlignedBoundingBox-8774439c","./IntersectionTests-80510c7b","./Plane-bc8b6777","./GeometryPipeline-e7083fea","./AttributeCompression-8f752c03","./EncodedCartesian3-aafcc30f","./IndexDatatype-3f3c99e8","./PolygonGeometryLibrary-231711c2","./arrayRemoveDuplicates-cea3b206","./EllipsoidRhumbLine-592e8885","./PolygonPipeline-04baeb41","./WebMercatorProjection-44373a3d"],(function(e,t,a,r,n,i,o,l,s,u,m,c,f,p,d,_,h,g,x,T,y,C,v,E,b,A,P,I,S,M,L,D,R,w,N,O,z,F,B,V,U,G,W,k){"use strict";function Y(t,r,n,i){t=a.defaultValue(t,1),r=a.defaultValue(r,1),n=a.defaultValue(n,1),i=a.defaultValue(i,1),this.value=new Uint8Array([e.Color.floatToByte(t),e.Color.floatToByte(r),e.Color.floatToByte(n),e.Color.floatToByte(i)])}Object.defineProperties(Y.prototype,{componentDatatype:{get:function(){return t.ComponentDatatype.UNSIGNED_BYTE}},componentsPerAttribute:{get:function(){return 4}},normalize:{get:function(){return!0}}}),Y.fromColor=function(e){return new Y(e.red,e.green,e.blue,e.alpha)},Y.toValue=function(e,t){return a.defined(t)?e.toBytes(t):new Uint8Array(e.toBytes())},Y.equals=function(e,t){return e===t||a.defined(e)&&a.defined(t)&&e.value[0]===t.value[0]&&e.value[1]===t.value[1]&&e.value[2]===t.value[2]&&e.value[3]===t.value[3]};const H={ADD:m.WebGLConstants.FUNC_ADD,SUBTRACT:m.WebGLConstants.FUNC_SUBTRACT,REVERSE_SUBTRACT:m.WebGLConstants.FUNC_REVERSE_SUBTRACT,MIN:m.WebGLConstants.MIN,MAX:m.WebGLConstants.MAX};var X=Object.freeze(H);const K={ZERO:m.WebGLConstants.ZERO,ONE:m.WebGLConstants.ONE,SOURCE_COLOR:m.WebGLConstants.SRC_COLOR,ONE_MINUS_SOURCE_COLOR:m.WebGLConstants.ONE_MINUS_SRC_COLOR,DESTINATION_COLOR:m.WebGLConstants.DST_COLOR,ONE_MINUS_DESTINATION_COLOR:m.WebGLConstants.ONE_MINUS_DST_COLOR,SOURCE_ALPHA:m.WebGLConstants.SRC_ALPHA,ONE_MINUS_SOURCE_ALPHA:m.WebGLConstants.ONE_MINUS_SRC_ALPHA,DESTINATION_ALPHA:m.WebGLConstants.DST_ALPHA,ONE_MINUS_DESTINATION_ALPHA:m.WebGLConstants.ONE_MINUS_DST_ALPHA,CONSTANT_COLOR:m.WebGLConstants.CONSTANT_COLOR,ONE_MINUS_CONSTANT_COLOR:m.WebGLConstants.ONE_MINUS_CONSTANT_COLOR,CONSTANT_ALPHA:m.WebGLConstants.CONSTANT_ALPHA,ONE_MINUS_CONSTANT_ALPHA:m.WebGLConstants.ONE_MINUS_CONSTANT_ALPHA,SOURCE_ALPHA_SATURATE:m.WebGLConstants.SRC_ALPHA_SATURATE};var j=Object.freeze(K);const Z={DISABLED:Object.freeze({enabled:!1}),ALPHA_BLEND:Object.freeze({enabled:!0,equationRgb:X.ADD,equationAlpha:X.ADD,functionSourceRgb:j.SOURCE_ALPHA,functionSourceAlpha:j.ONE,functionDestinationRgb:j.ONE_MINUS_SOURCE_ALPHA,functionDestinationAlpha:j.ONE_MINUS_SOURCE_ALPHA}),PRE_MULTIPLIED_ALPHA_BLEND:Object.freeze({enabled:!0,equationRgb:X.ADD,equationAlpha:X.ADD,functionSourceRgb:j.ONE,functionSourceAlpha:j.ONE,functionDestinationRgb:j.ONE_MINUS_SOURCE_ALPHA,functionDestinationAlpha:j.ONE_MINUS_SOURCE_ALPHA}),ADDITIVE_BLEND:Object.freeze({enabled:!0,equationRgb:X.ADD,equationAlpha:X.ADD,functionSourceRgb:j.SOURCE_ALPHA,functionSourceAlpha:j.ONE,functionDestinationRgb:j.ONE,functionDestinationAlpha:j.ONE})};var q=Object.freeze(Z);const J={FRONT:m.WebGLConstants.FRONT,BACK:m.WebGLConstants.BACK,FRONT_AND_BACK:m.WebGLConstants.FRONT_AND_BACK};var $=Object.freeze(J);function Q(e){e=a.defaultValue(e,a.defaultValue.EMPTY_OBJECT),this.material=e.material,this.translucent=a.defaultVa