mars3d-cesium 1.115.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Source → Build/Cesium}/Cesium.d.ts +250 -33
- package/Build/Cesium/Cesium.js +14772 -14558
- package/Build/Cesium/Core/Check.d.ts +127 -0
- package/Build/Cesium/Workers/{chunk-63MCY5JU.js → chunk-2DF4CAYN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QWQOVUJ7.js → chunk-2QAZKO32.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UNVMUIJM.js → chunk-2S4UUFD6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2NSXRWDL.js → chunk-37KLWU3W.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WVB7XP3Q.js → chunk-42VHSORI.js} +1 -1
- package/Build/Cesium/Workers/{chunk-A7LPWAU6.js → chunk-4353PD6R.js} +1 -1
- package/Build/Cesium/Workers/{chunk-O33GEOBU.js → chunk-4LWXONMT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FNVE7RUO.js → chunk-4NDMMWOM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DFXTICUP.js → chunk-4NVG6N2Q.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ESSWH6Y6.js → chunk-4PZYNNSN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SPQOGAZ5.js → chunk-5CBMSEPD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-M2ZLAWU2.js → chunk-5J7YBBQK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IADNIOZ2.js → chunk-63E276CT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UEH5LICU.js → chunk-7VY24AS3.js} +1 -1
- package/Build/Cesium/Workers/{chunk-63A2WZHE.js → chunk-ACKL3UCP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IVQ7PEYC.js → chunk-AEWBPSCB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ASPQMVDG.js → chunk-AHZBRYZA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-MBESV6EZ.js → chunk-B7XFA4YC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-CV3CPKDV.js → chunk-BMTOWA7K.js} +2 -2
- package/Build/Cesium/Workers/{chunk-KPSZDO4L.js → chunk-DTEVYUV6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-RO427MKC.js → chunk-EJXUGS5C.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BWZHI247.js → chunk-FCEVC3JZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2OCTB5MG.js → chunk-FSXLPWHR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PM6NEW3Y.js → chunk-GKRM7KEL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3ZA7SJZ4.js → chunk-GW444G3T.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BPPZBFNC.js → chunk-H7FFK4U5.js} +1 -1
- package/Build/Cesium/Workers/{chunk-LCPJ46PJ.js → chunk-HTNJJ6YO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DTVKHN2M.js → chunk-I24DPSBO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-D2UEHP4Q.js → chunk-I2MF4BQC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QHMHXQHC.js → chunk-J26GWQSN.js} +2 -2
- package/Build/Cesium/Workers/chunk-JDDR7LGD.js +26 -0
- package/Build/Cesium/Workers/{chunk-3PHDN47O.js → chunk-KODO46B4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-AT6LKTZH.js → chunk-LGFQRF3V.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SVXBKJVU.js → chunk-M5A47EM2.js} +2 -2
- package/Build/Cesium/Workers/{chunk-HVT5SA4Z.js → chunk-M7WODBAD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-OVN7IQW7.js → chunk-NRKRIGW5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QK5WKMSE.js → chunk-NRW2R4YV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DCQPNKAH.js → chunk-NSILPUHD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-G6PVPPCC.js → chunk-OXKDIHB6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BNXUNDP3.js → chunk-PB7S64VP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GGFNGKXD.js → chunk-PYB3IV2X.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TN3QK5HZ.js → chunk-TFV4LXCD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4L6WQV6O.js → chunk-TK2AA6M2.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GEHJZPOQ.js → chunk-TM5U646E.js} +2 -2
- package/Build/Cesium/Workers/{chunk-565QV2WE.js → chunk-TWAPNO4J.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JGH2YY6Z.js → chunk-TXIAMGDC.js} +1 -1
- package/Build/Cesium/Workers/{chunk-QKJG2BY2.js → chunk-U2CMUMOR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4AFNJVTV.js → chunk-UT4RPIUP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ERSSB3GJ.js → chunk-W2YTVRCC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QLLBTCJW.js → chunk-XORBV237.js} +2 -2
- package/Build/Cesium/Workers/{chunk-6DW2D3WX.js → chunk-YEUII2A5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-I7Q6CKJV.js → chunk-YPW76GEP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WHKFD7TF.js → chunk-ZK2UTPA3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QFKMIH6H.js → chunk-ZZAO5JE6.js} +2 -2
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/createWallGeometry.js +2 -2
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/decodeDraco.js +2 -2
- package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Build/Cesium/Workers/decodeI3S.js +2 -2
- package/Build/Cesium/Workers/transcodeKTX2.js +21 -21
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/index.cjs +14774 -14560
- package/Build/Cesium/index.js +14763 -14549
- package/README.md +119 -34
- package/package.json +29 -150
- package/Build/Cesium/Workers/chunk-S2FMFP7G.js +0 -26
- package/LICENSE.md +0 -1117
|
@@ -3046,6 +3046,136 @@ export class CesiumTerrainProvider {
|
|
|
3046
3046
|
loadTileDataAvailability(x: number, y: number, level: number): undefined | Promise<void>;
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* Contains functions for checking that supplied arguments are of a specified type
|
|
3052
|
+
* or meet specified conditions
|
|
3053
|
+
*/
|
|
3054
|
+
export const Check: {
|
|
3055
|
+
/**
|
|
3056
|
+
* Throws if test is not defined
|
|
3057
|
+
*
|
|
3058
|
+
* @param {string} name The name of the variable being tested
|
|
3059
|
+
* @param {*} test The value that is to be checked
|
|
3060
|
+
* @exception {DeveloperError} test must be defined
|
|
3061
|
+
*/
|
|
3062
|
+
defined<T>(name: string, test: T): asserts test is NonNullable<T>;
|
|
3063
|
+
/**
|
|
3064
|
+
* Contains type checking functions, all using the typeof operator
|
|
3065
|
+
*/
|
|
3066
|
+
typeOf: {
|
|
3067
|
+
/**
|
|
3068
|
+
* Throws if test is not typeof 'string'
|
|
3069
|
+
*
|
|
3070
|
+
* @param {string} name The name of the variable being tested
|
|
3071
|
+
* @param {*} test The value to test
|
|
3072
|
+
* @exception {DeveloperError} test must be typeof 'string'
|
|
3073
|
+
*/
|
|
3074
|
+
string(name: string, test: any): asserts test is string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Throws if test is not typeof 'function'
|
|
3077
|
+
*
|
|
3078
|
+
* @param {string} name The name of the variable being tested
|
|
3079
|
+
* @param {*} test The value to test
|
|
3080
|
+
* @exception {DeveloperError} test must be typeof 'function'
|
|
3081
|
+
*/
|
|
3082
|
+
func(name: string, test: any): asserts test is Function;
|
|
3083
|
+
/**
|
|
3084
|
+
* Throws if test is not typeof 'object'
|
|
3085
|
+
*
|
|
3086
|
+
* @param {string} name The name of the variable being tested
|
|
3087
|
+
* @param {*} test The value to test
|
|
3088
|
+
* @exception {DeveloperError} test must be typeof 'object'
|
|
3089
|
+
*/
|
|
3090
|
+
object(name: string, test: any): asserts test is object;
|
|
3091
|
+
/**
|
|
3092
|
+
* Throws if test is not typeof 'boolean'
|
|
3093
|
+
*
|
|
3094
|
+
* @param {string} name The name of the variable being tested
|
|
3095
|
+
* @param {*} test The value to test
|
|
3096
|
+
* @exception {DeveloperError} test must be typeof 'boolean'
|
|
3097
|
+
*/
|
|
3098
|
+
bool(name: string, test: any): asserts test is boolean;
|
|
3099
|
+
/**
|
|
3100
|
+
* Throws if test is not typeof 'bigint'
|
|
3101
|
+
*
|
|
3102
|
+
* @param {string} name The name of the variable being tested
|
|
3103
|
+
* @param {*} test The value to test
|
|
3104
|
+
* @exception {DeveloperError} test must be typeof 'bigint'
|
|
3105
|
+
*/
|
|
3106
|
+
bigint(name: string, test: any): asserts test is bigint;
|
|
3107
|
+
/**
|
|
3108
|
+
* Throws if test is not typeof 'number'
|
|
3109
|
+
*
|
|
3110
|
+
* @param {string} name The name of the variable being tested
|
|
3111
|
+
* @param {*} test The value to test
|
|
3112
|
+
* @exception {DeveloperError} test must be typeof 'number'
|
|
3113
|
+
*/
|
|
3114
|
+
number: {
|
|
3115
|
+
(name: string, test: any): void;
|
|
3116
|
+
/**
|
|
3117
|
+
* Throws if test is not typeof 'number' and less than limit
|
|
3118
|
+
*
|
|
3119
|
+
* @param {string} name The name of the variable being tested
|
|
3120
|
+
* @param {*} test The value to test
|
|
3121
|
+
* @param {number} limit The limit value to compare against
|
|
3122
|
+
* @exception {DeveloperError} test must be typeof 'number' and less than limit
|
|
3123
|
+
*/
|
|
3124
|
+
lessThan(name: string, test: any, limit: number): asserts test is number;
|
|
3125
|
+
/**
|
|
3126
|
+
* Throws if test is not typeof 'number' and less than or equal to limit
|
|
3127
|
+
*
|
|
3128
|
+
* @param {string} name The name of the variable being tested
|
|
3129
|
+
* @param {*} test The value to test
|
|
3130
|
+
* @param {number} limit The limit value to compare against
|
|
3131
|
+
* @exception {DeveloperError} test must be typeof 'number' and less than or equal to limit
|
|
3132
|
+
*/
|
|
3133
|
+
lessThanOrEquals(
|
|
3134
|
+
name: string,
|
|
3135
|
+
test: any,
|
|
3136
|
+
limit: number
|
|
3137
|
+
): asserts test is number;
|
|
3138
|
+
/**
|
|
3139
|
+
* Throws if test is not typeof 'number' and greater than limit
|
|
3140
|
+
*
|
|
3141
|
+
* @param {string} name The name of the variable being tested
|
|
3142
|
+
* @param {*} test The value to test
|
|
3143
|
+
* @param {number} limit The limit value to compare against
|
|
3144
|
+
* @exception {DeveloperError} test must be typeof 'number' and greater than limit
|
|
3145
|
+
*/
|
|
3146
|
+
greaterThan(
|
|
3147
|
+
name: string,
|
|
3148
|
+
test: any,
|
|
3149
|
+
limit: number
|
|
3150
|
+
): asserts test is number;
|
|
3151
|
+
/**
|
|
3152
|
+
* Throws if test is not typeof 'number' and greater than or equal to limit
|
|
3153
|
+
*
|
|
3154
|
+
* @param {string} name The name of the variable being tested
|
|
3155
|
+
* @param {*} test The value to test
|
|
3156
|
+
* @param {number} limit The limit value to compare against
|
|
3157
|
+
* @exception {DeveloperError} test must be typeof 'number' and greater than or equal to limit
|
|
3158
|
+
*/
|
|
3159
|
+
greaterThanOrEquals(
|
|
3160
|
+
name: string,
|
|
3161
|
+
test: any,
|
|
3162
|
+
limit: number
|
|
3163
|
+
): asserts test is number;
|
|
3164
|
+
/**
|
|
3165
|
+
* Throws if test1 and test2 is not typeof 'number' and not equal in value
|
|
3166
|
+
*
|
|
3167
|
+
* @param {string} name1 The name of the first variable being tested
|
|
3168
|
+
* @param {string} name2 The name of the second variable being tested against
|
|
3169
|
+
* @param {*} test1 The value to test
|
|
3170
|
+
* @param {*} test2 The value to test against
|
|
3171
|
+
* @exception {DeveloperError} test1 and test2 should be type of 'number' and be equal in value
|
|
3172
|
+
*/
|
|
3173
|
+
equals(name1: string, name2: string, test1: any, test2: any): void;
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3178
|
+
|
|
3049
3179
|
/**
|
|
3050
3180
|
* A description of a circle on the ellipsoid. Circle geometry can be rendered with both {@link Primitive} and {@link GroundPrimitive}.
|
|
3051
3181
|
* @example
|
|
@@ -7025,7 +7155,7 @@ export class Geometry {
|
|
|
7025
7155
|
<ul>
|
|
7026
7156
|
<li><code>position3DHigh</code> - High 32 bits for encoded 64-bit position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
|
7027
7157
|
<li><code>position3DLow</code> - Low 32 bits for encoded 64-bit position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
|
7028
|
-
<li><code>
|
|
7158
|
+
<li><code>position2DHigh</code> - High 32 bits for encoded 64-bit 2D (Columbus view) position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
|
7029
7159
|
<li><code>position2DLow</code> - Low 32 bits for encoded 64-bit 2D (Columbus view) position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
|
7030
7160
|
<li><code>color</code> - RGBA color (normalized) usually from {@link GeometryInstance#color}. 32-bit floating-point. 4 components per attribute.</li>
|
|
7031
7161
|
<li><code>pickColor</code> - RGBA color used for picking. 32-bit floating-point. 4 components per attribute.</li>
|
|
@@ -25768,6 +25898,63 @@ export enum Axis {
|
|
|
25768
25898
|
Z = 2
|
|
25769
25899
|
}
|
|
25770
25900
|
|
|
25901
|
+
export namespace Billboard {
|
|
25902
|
+
/**
|
|
25903
|
+
* Initialization options for the first param of Billboard constructor
|
|
25904
|
+
* @property position - The cartesian position of the billboard.
|
|
25905
|
+
* @property [id] - A user-defined object to return when the billboard is picked with {@link Scene#pick}.
|
|
25906
|
+
* @property [show = true] - Determines if this billboard will be shown.
|
|
25907
|
+
* @property [image] - A loaded HTMLImageElement, ImageData, or a url to an image to use for the billboard.
|
|
25908
|
+
* @property [scale = 1.0] - A number specifying the uniform scale that is multiplied with the billboard's image size in pixels.
|
|
25909
|
+
* @property [pixelOffset = Cartesian2.ZERO] - A {@link Cartesian2} Specifying the pixel offset in screen space from the origin of this billboard.
|
|
25910
|
+
* @property [eyeOffset = Cartesian3.ZERO] - A {@link Cartesian3} Specifying the 3D Cartesian offset applied to this billboard in eye coordinates.
|
|
25911
|
+
* @property [horizontalOrigin = HorizontalOrigin.CENTER] - A {@link HorizontalOrigin} Specifying the horizontal origin of this billboard.
|
|
25912
|
+
* @property [verticalOrigin = VerticalOrigin.CENTER] - A {@link VerticalOrigin} Specifying the vertical origin of this billboard.
|
|
25913
|
+
* @property [heightReference = HeightReference.NONE] - A {@link HeightReference} Specifying the height reference of this billboard.
|
|
25914
|
+
* @property [color = Color.WHITE] - A {@link Color} Specifying the color that is multiplied with the billboard's texture.
|
|
25915
|
+
* @property [rotation = 0] - A number specifying the rotation angle in radians.
|
|
25916
|
+
* @property [alignedAxis = Cartesian3.ZERO] - A {@link Cartesian3} Specifying the aligned axis in world space.
|
|
25917
|
+
* @property [sizeInMeters] - A boolean specifying if the billboard size is in meters or pixels.
|
|
25918
|
+
* @property [width] - A number specifying the width of the billboard. If undefined, the image width will be used.
|
|
25919
|
+
* @property [height] - A number specifying the height of the billboard. If undefined, the image height will be used.
|
|
25920
|
+
* @property [scaleByDistance] - A {@link NearFarScalar} Specifying near and far scaling properties of a Billboard based on the billboard's distance from the camera.
|
|
25921
|
+
* @property [translucencyByDistance] - A {@link NearFarScalar} Specifying near and far translucency properties of a Billboard based on the billboard's distance from the camera.
|
|
25922
|
+
* @property [pixelOffsetScaleByDistance] - A {@link NearFarScalar} Specifying near and far pixel offset scaling properties of a Billboard based on the billboard's distance from the camera.
|
|
25923
|
+
* @property [imageSubRegion] - A {@link BoundingRectangle} Specifying the sub-region of the image to use for the billboard, rather than the entire image.
|
|
25924
|
+
* @property [distanceDisplayCondition] - A {@link DistanceDisplayCondition} Specifying the distance from the camera at which this billboard will be displayed.
|
|
25925
|
+
* @property [disableDepthTestDistance] - A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
|
|
25926
|
+
*/
|
|
25927
|
+
type ConstructorOptions = {
|
|
25928
|
+
position: Cartesian3;
|
|
25929
|
+
id?: string;
|
|
25930
|
+
show?: boolean;
|
|
25931
|
+
image?: string | HTMLCanvasElement;
|
|
25932
|
+
scale?: number;
|
|
25933
|
+
pixelOffset?: Cartesian2;
|
|
25934
|
+
eyeOffset?: Cartesian3;
|
|
25935
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
25936
|
+
verticalOrigin?: VerticalOrigin;
|
|
25937
|
+
heightReference?: HeightReference;
|
|
25938
|
+
color?: Color;
|
|
25939
|
+
rotation?: number;
|
|
25940
|
+
alignedAxis?: Cartesian3;
|
|
25941
|
+
sizeInMeters?: boolean;
|
|
25942
|
+
width?: number;
|
|
25943
|
+
height?: number;
|
|
25944
|
+
scaleByDistance?: NearFarScalar;
|
|
25945
|
+
translucencyByDistance?: NearFarScalar;
|
|
25946
|
+
pixelOffsetScaleByDistance?: NearFarScalar;
|
|
25947
|
+
imageSubRegion?: BoundingRectangle;
|
|
25948
|
+
distanceDisplayCondition?: DistanceDisplayCondition;
|
|
25949
|
+
disableDepthTestDistance?: number;
|
|
25950
|
+
};
|
|
25951
|
+
/**
|
|
25952
|
+
* A function that creates an image.
|
|
25953
|
+
* @param id - The identifier of the image to load.
|
|
25954
|
+
*/
|
|
25955
|
+
type CreateImageCallback = (id: string) => HTMLImageElement | HTMLCanvasElement | Promise<HTMLImageElement | HTMLCanvasElement>;
|
|
25956
|
+
}
|
|
25957
|
+
|
|
25771
25958
|
/**
|
|
25772
25959
|
* <div class="notice">
|
|
25773
25960
|
A billboard is created and its initial
|
|
@@ -25780,9 +25967,11 @@ and rendered using a {@link BillboardCollection}.
|
|
|
25780
25967
|
<img src='Images/Billboard.png' width='400' height='300' /><br />
|
|
25781
25968
|
Example billboards
|
|
25782
25969
|
</div>
|
|
25970
|
+
* @param options - Object describing initialization options
|
|
25971
|
+
* @param billboardCollection - Instance of BillboardCollection
|
|
25783
25972
|
*/
|
|
25784
25973
|
export class Billboard {
|
|
25785
|
-
constructor();
|
|
25974
|
+
constructor(options: Billboard.ConstructorOptions, billboardCollection: BillboardCollection);
|
|
25786
25975
|
/**
|
|
25787
25976
|
* Determines if this billboard will be shown. Use this to hide or show a billboard, instead
|
|
25788
25977
|
of removing it and re-adding it to the collection.
|
|
@@ -26085,14 +26274,6 @@ export class Billboard {
|
|
|
26085
26274
|
equals(other: Billboard): boolean;
|
|
26086
26275
|
}
|
|
26087
26276
|
|
|
26088
|
-
export namespace Billboard {
|
|
26089
|
-
/**
|
|
26090
|
-
* A function that creates an image.
|
|
26091
|
-
* @param id - The identifier of the image to load.
|
|
26092
|
-
*/
|
|
26093
|
-
type CreateImageCallback = (id: string) => HTMLImageElement | HTMLCanvasElement | Promise<HTMLImageElement | HTMLCanvasElement>;
|
|
26094
|
-
}
|
|
26095
|
-
|
|
26096
26277
|
/**
|
|
26097
26278
|
* A renderable collection of billboards. Billboards are viewport-aligned
|
|
26098
26279
|
images positioned in the 3D scene.
|
|
@@ -26226,7 +26407,7 @@ export class BillboardCollection {
|
|
|
26226
26407
|
* @param [options] - A template describing the billboard's properties as shown in Example 1.
|
|
26227
26408
|
* @returns The billboard that was added to the collection.
|
|
26228
26409
|
*/
|
|
26229
|
-
add(options?:
|
|
26410
|
+
add(options?: Billboard.ConstructorOptions): Billboard;
|
|
26230
26411
|
/**
|
|
26231
26412
|
* Removes a billboard from the collection.
|
|
26232
26413
|
* @example
|
|
@@ -28081,7 +28262,6 @@ export namespace Cesium3DTileset {
|
|
|
28081
28262
|
* @property [showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
|
|
28082
28263
|
* @property [splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
|
|
28083
28264
|
* @property [enableCollision = false] - When <code>true</code>, enables collisions for camera or CPU picking. While this is <code>true</code> the camera will be prevented from going below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true.
|
|
28084
|
-
* @property [disableCollision = true] - Whether to turn off collisions for camera collisions or picking. While this is <code>true</code> the camera will be allowed to go in or below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true. Deprecated.
|
|
28085
28265
|
* @property [projectTo2D = false] - Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has been created.
|
|
28086
28266
|
* @property [enablePick = false] - Whether to allow collision and CPU picking with <code>pick</code> when using WebGL 1. If using WebGL 2 or above, this option will be ignored. If using WebGL 1 and this is true, the <code>pick</code> operation will work correctly, but it will use more memory to do so. If running with WebGL 1 and this is false, the model will use less memory, but <code>pick</code> will always return <code>undefined</code>. This cannot be set after the tileset has loaded.
|
|
28087
28267
|
* @property [debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
|
|
@@ -28145,7 +28325,6 @@ export namespace Cesium3DTileset {
|
|
|
28145
28325
|
showCreditsOnScreen?: boolean;
|
|
28146
28326
|
splitDirection?: SplitDirection;
|
|
28147
28327
|
enableCollision?: boolean;
|
|
28148
|
-
disableCollision?: boolean;
|
|
28149
28328
|
projectTo2D?: boolean;
|
|
28150
28329
|
enablePick?: boolean;
|
|
28151
28330
|
debugHeatmapTilePropertyName?: string;
|
|
@@ -28633,10 +28812,6 @@ export class Cesium3DTileset {
|
|
|
28633
28812
|
* Function for examining vector lines as they are being streamed.
|
|
28634
28813
|
*/
|
|
28635
28814
|
examineVectorLinesFunction: (...params: any[]) => any;
|
|
28636
|
-
/**
|
|
28637
|
-
* Whether to turn off collisions for camera collisions or picking. While this is <code>true</code> the camera will be allowed to go in or below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true.
|
|
28638
|
-
*/
|
|
28639
|
-
disableCollision: boolean;
|
|
28640
28815
|
/**
|
|
28641
28816
|
* Gets the tileset's asset object property, which contains metadata about the tileset.
|
|
28642
28817
|
<p>
|
|
@@ -31808,20 +31983,6 @@ export class Globe {
|
|
|
31808
31983
|
* Gets an event that's raised when the terrain provider is changed
|
|
31809
31984
|
*/
|
|
31810
31985
|
readonly terrainProviderChanged: Event;
|
|
31811
|
-
/**
|
|
31812
|
-
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
31813
|
-
A value of <code>2.0</code> scales the terrain by 2x.
|
|
31814
|
-
A value of <code>0.0</code> makes the terrain completely flat.
|
|
31815
|
-
Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31816
|
-
*/
|
|
31817
|
-
terrainExaggeration: number;
|
|
31818
|
-
/**
|
|
31819
|
-
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
31820
|
-
Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
31821
|
-
Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31822
|
-
If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
31823
|
-
*/
|
|
31824
|
-
terrainExaggerationRelativeHeight: number;
|
|
31825
31986
|
/**
|
|
31826
31987
|
* Gets an event that's raised when the length of the tile load queue has changed since the last render frame. When the load queue is empty,
|
|
31827
31988
|
all terrain and imagery for the current view have been loaded. The event passes the new length of the tile load queue.
|
|
@@ -34290,13 +34451,69 @@ export enum IonWorldImageryStyle {
|
|
|
34290
34451
|
ROAD = 4
|
|
34291
34452
|
}
|
|
34292
34453
|
|
|
34454
|
+
export namespace Label {
|
|
34455
|
+
/**
|
|
34456
|
+
* Initialization options for the Label constructor
|
|
34457
|
+
* @property position - The cartesian position of the label.
|
|
34458
|
+
* @property [id] - A user-defined object to return when the label is picked with {@link Scene#pick}.
|
|
34459
|
+
* @property [show = true] - Determines if this label will be shown.
|
|
34460
|
+
* @property [text] - A string specifying the text of the label.
|
|
34461
|
+
* @property [font = '30px sans-serif'] - A string specifying the font used to draw this label. Fonts are specified using the same syntax as the CSS 'font' property.
|
|
34462
|
+
* @property [style = LabelStyle.FILL] - A {@link LabelStyle} specifying the style of the label.
|
|
34463
|
+
* @property [scale = 1.0] - A number specifying the uniform scale that is multiplied with the label size.
|
|
34464
|
+
* @property [showBackground = false] - Determines if a background behind this label will be shown.
|
|
34465
|
+
* @property [backgroundColor = new Color(0.165, 0.165, 0.165, 0.8)] - A {@link Color} specifying the background color of the label.
|
|
34466
|
+
* @property [backgroundPadding = new Cartesian2(7, 5)] - A {@link Cartesian2} Specifying the horizontal and vertical background padding in pixels.
|
|
34467
|
+
* @property [pixelOffset = Cartesian2.ZERO] - A {@link Cartesian2} specifying the pixel offset in screen space from the origin of this label.
|
|
34468
|
+
* @property [eyeOffset = Cartesian3.ZERO] - A {@link Cartesian3} specifying the 3D Cartesian offset applied to this label in eye coordinates.
|
|
34469
|
+
* @property [horizontalOrigin = HorizontalOrigin.CENTER] - A {@link HorizontalOrigin} specifying the horizontal origin of this label.
|
|
34470
|
+
* @property [verticalOrigin = VerticalOrigin.CENTER] - A {@link VerticalOrigin} specifying the vertical origin of this label.
|
|
34471
|
+
* @property [heightReference = HeightReference.NONE] - A {@link HeightReference} specifying the height reference of this label.
|
|
34472
|
+
* @property [fillColor = Color.WHITE] - A {@link Color} specifying the fill color of the label.
|
|
34473
|
+
* @property [outlineColor = Color.BLACK] - A {@link Color} specifying the outline color of the label.
|
|
34474
|
+
* @property [outlineWidth = 1.0] - A number specifying the outline width of the label.
|
|
34475
|
+
* @property [translucencyByDistance] - A {@link NearFarScalar} specifying near and far translucency properties of the label based on the label's distance from the camera.
|
|
34476
|
+
* @property [pixelOffsetScaleByDistance] - A {@link NearFarScalar} specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.
|
|
34477
|
+
* @property [scaleByDistance] - A {@link NearFarScalar} specifying near and far scaling properties of the label based on the label's distance from the camera.
|
|
34478
|
+
* @property [distanceDisplayCondition] - A {@link DistanceDisplayCondition} specifying at what distance from the camera that this label will be displayed.
|
|
34479
|
+
* @property [disableDepthTestDistance] - A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
|
|
34480
|
+
*/
|
|
34481
|
+
type ConstructorOptions = {
|
|
34482
|
+
position: Cartesian3;
|
|
34483
|
+
id?: string;
|
|
34484
|
+
show?: boolean;
|
|
34485
|
+
text?: string;
|
|
34486
|
+
font?: string;
|
|
34487
|
+
style?: LabelStyle;
|
|
34488
|
+
scale?: number;
|
|
34489
|
+
showBackground?: boolean;
|
|
34490
|
+
backgroundColor?: Color;
|
|
34491
|
+
backgroundPadding?: Cartesian2;
|
|
34492
|
+
pixelOffset?: Cartesian2;
|
|
34493
|
+
eyeOffset?: Cartesian3;
|
|
34494
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
34495
|
+
verticalOrigin?: VerticalOrigin;
|
|
34496
|
+
heightReference?: HeightReference;
|
|
34497
|
+
fillColor?: Color;
|
|
34498
|
+
outlineColor?: Color;
|
|
34499
|
+
outlineWidth?: number;
|
|
34500
|
+
translucencyByDistance?: NearFarScalar;
|
|
34501
|
+
pixelOffsetScaleByDistance?: NearFarScalar;
|
|
34502
|
+
scaleByDistance?: NearFarScalar;
|
|
34503
|
+
distanceDisplayCondition?: DistanceDisplayCondition;
|
|
34504
|
+
disableDepthTestDistance?: number;
|
|
34505
|
+
};
|
|
34506
|
+
}
|
|
34507
|
+
|
|
34293
34508
|
/**
|
|
34294
34509
|
* <div class="notice">
|
|
34295
34510
|
Create labels by calling {@link LabelCollection#add}. Do not call the constructor directly.
|
|
34296
34511
|
</div>
|
|
34512
|
+
* @param options - Object describing initialization options
|
|
34513
|
+
* @param labelCollection - Instance of LabelCollection
|
|
34297
34514
|
*/
|
|
34298
34515
|
export class Label {
|
|
34299
|
-
constructor();
|
|
34516
|
+
constructor(options: Label.ConstructorOptions, labelCollection: LabelCollection);
|
|
34300
34517
|
/**
|
|
34301
34518
|
* Determines if this label will be shown. Use this to hide or show a label, instead
|
|
34302
34519
|
of removing it and re-adding it to the collection.
|
|
@@ -34681,7 +34898,7 @@ export class LabelCollection {
|
|
|
34681
34898
|
* @param [options] - A template describing the label's properties as shown in Example 1.
|
|
34682
34899
|
* @returns The label that was added to the collection.
|
|
34683
34900
|
*/
|
|
34684
|
-
add(options?:
|
|
34901
|
+
add(options?: Label.ConstructorOptions): Label;
|
|
34685
34902
|
/**
|
|
34686
34903
|
* Removes a label from the collection. Once removed, a label is no longer usable.
|
|
34687
34904
|
* @example
|