@cesium/engine 8.0.0 → 9.0.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/Build/ThirdParty/Workers/z-worker-pako.js +1 -5
- package/Build/Workers/{chunk-UEXTBDBE.js → chunk-24YTYWNB.js} +10 -10
- package/Build/Workers/{chunk-2A75IWRS.js → chunk-2632RVPI.js} +7 -7
- package/Build/Workers/{chunk-TTUZP4BO.js → chunk-2KACWKS4.js} +4 -4
- package/Build/Workers/{chunk-YJEBABKH.js → chunk-2XPLH3JY.js} +7 -7
- package/Build/Workers/{chunk-7TC63SJW.js → chunk-2ZBL3MVO.js} +8 -8
- package/Build/Workers/{chunk-GRC2ZTAF.js → chunk-3NCVAGDA.js} +14 -14
- package/Build/Workers/{chunk-PGSJK77E.js → chunk-5R6VWLMH.js} +6 -6
- package/Build/Workers/{chunk-BROJAZRZ.js → chunk-5TIV3L26.js} +13 -13
- package/Build/Workers/{chunk-MDWEGWPA.js → chunk-6WF3KIF5.js} +10 -10
- package/Build/Workers/{chunk-BIKA3NRA.js → chunk-73FKKY52.js} +5 -5
- package/Build/Workers/{chunk-FJKNFAKQ.js → chunk-7COR472O.js} +10 -10
- package/Build/Workers/{chunk-OGXZVPPM.js → chunk-ADOVHYWO.js} +5 -5
- package/Build/Workers/{chunk-HU6N6EXB.js → chunk-BCU2LH5T.js} +12 -11
- package/Build/Workers/{chunk-I46ZRR5W.js → chunk-C3XBUYBO.js} +17 -17
- package/Build/Workers/{chunk-EHWHNOEX.js → chunk-C6OI26DR.js} +1 -1
- package/Build/Workers/{chunk-EERJKOAF.js → chunk-CO35JNNE.js} +4 -4
- package/Build/Workers/{chunk-SH5USDPI.js → chunk-DGDUKCJJ.js} +6 -6
- package/Build/Workers/{chunk-2UPKWTMJ.js → chunk-DPUSFA7S.js} +6 -6
- package/Build/Workers/{chunk-Z3TIFFGF.js → chunk-E6WXPSJS.js} +7 -7
- package/Build/Workers/{chunk-4H7PY4U5.js → chunk-EOXYZ34O.js} +2 -2
- package/Build/Workers/{chunk-FZRIVR7Y.js → chunk-EPKE7GE3.js} +5 -5
- package/Build/Workers/{chunk-VOXYEYJT.js → chunk-GFA4SMXV.js} +11 -11
- package/Build/Workers/{chunk-F3YA3Y2Z.js → chunk-GXUXEOE2.js} +1 -1
- package/Build/Workers/{chunk-X4356LRH.js → chunk-HBQPB6IH.js} +12 -12
- package/Build/Workers/{chunk-SOWMRMWA.js → chunk-I37B3MZ2.js} +1 -1
- package/Build/Workers/{chunk-2FRVPMCS.js → chunk-L4BW3RUA.js} +7 -7
- package/Build/Workers/{chunk-34FXV7D7.js → chunk-LAQP3SCC.js} +2 -2
- package/Build/Workers/{chunk-FNIRWHJB.js → chunk-LQJ5FFFR.js} +10 -10
- package/Build/Workers/{chunk-Y2ME2IJV.js → chunk-M2AYBTNH.js} +13 -13
- package/Build/Workers/{chunk-DDUQAJ4P.js → chunk-MWV7IZK4.js} +7 -7
- package/Build/Workers/{chunk-STW2DGFI.js → chunk-N4KXMWQU.js} +2 -2
- package/Build/Workers/{chunk-Y5UQJLYE.js → chunk-NP2GYYE5.js} +6 -6
- package/Build/Workers/{chunk-PPH7OFP3.js → chunk-NZWNZA6S.js} +5 -5
- package/Build/Workers/{chunk-EG6PTBY2.js → chunk-P2YAAMT2.js} +15 -15
- package/Build/Workers/{chunk-LPR3YNP2.js → chunk-P4XKB3QZ.js} +5 -5
- package/Build/Workers/{chunk-4DO5W5XZ.js → chunk-PXB7T27O.js} +6 -6
- package/Build/Workers/{chunk-5QULIR53.js → chunk-QCQUZGXI.js} +4 -4
- package/Build/Workers/{chunk-7ZFGPDJA.js → chunk-QKBGRKKG.js} +4 -4
- package/Build/Workers/{chunk-3VAZEH7M.js → chunk-RMOEYCZW.js} +2 -2
- package/Build/Workers/{chunk-GATZHF3K.js → chunk-RSJXEO2A.js} +2 -2
- package/Build/Workers/{chunk-M7ERACJJ.js → chunk-RV7ZOSS6.js} +13 -13
- package/Build/Workers/{chunk-JURN7NPV.js → chunk-SE4PXOEA.js} +17 -17
- package/Build/Workers/{chunk-XGI5BXZY.js → chunk-SS4ESNE3.js} +2 -2
- package/Build/Workers/{chunk-G43QFN4Q.js → chunk-TJBU6GML.js} +6 -6
- package/Build/Workers/{chunk-BBWDMCVU.js → chunk-TZORKRNK.js} +1 -1
- package/Build/Workers/{chunk-23UFSGND.js → chunk-VR5RBW52.js} +7 -7
- package/Build/Workers/{chunk-A5DWLWCY.js → chunk-WHUSTDIB.js} +10 -10
- package/Build/Workers/{chunk-T3XIFPYR.js → chunk-X2F6BEPY.js} +13 -13
- package/Build/Workers/{chunk-BG4UCVXN.js → chunk-X6XOMPWL.js} +3 -3
- package/Build/Workers/{chunk-YWTJ2B4B.js → chunk-YDVSBWEO.js} +1 -1
- package/Build/Workers/{chunk-2FWRMUTY.js → chunk-YV4H2Y7M.js} +4 -4
- package/Build/Workers/{chunk-ZT7KWISZ.js → chunk-Z7FQLK6N.js} +4 -4
- package/Build/Workers/{chunk-F4HFJMGM.js → chunk-ZNVSKMQ2.js} +6 -6
- package/Build/Workers/{chunk-KKCR2YOP.js → chunk-ZYPTP7GS.js} +11 -11
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +25 -25
- package/Build/Workers/createGroundPolylineGeometry.js +22 -22
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +33 -33
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +11 -11
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Source/Core/Check.d.ts +127 -0
- package/Source/Core/Check.js +0 -1
- package/Source/Core/Geometry.js +1 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/PolygonGeometry.js +1 -1
- package/Source/Core/VerticalExaggeration.js +2 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +32 -0
- package/Source/Scene/BillboardCollection.js +1 -1
- package/Source/Scene/BingMapsImageryProvider.js +4 -0
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +2 -9
- package/Source/Scene/Cesium3DTileset.js +4 -39
- package/Source/Scene/Globe.js +0 -67
- package/Source/Scene/Label.js +33 -0
- package/Source/Scene/LabelCollection.js +2 -1
- package/Source/Scene/Primitive.js +0 -3
- package/Source/Scene/SensorVolumePortionToDisplay.js +1 -1
- package/Source/Scene/VoxelBoxShape.js +0 -15
- package/Source/Scene/VoxelCylinderShape.js +14 -131
- package/Source/Scene/VoxelEllipsoidShape.js +136 -227
- package/Source/Scene/VoxelPrimitive.js +106 -14
- package/Source/Scene/VoxelRenderResources.js +9 -3
- package/Source/Scene/VoxelShape.js +0 -10
- package/Source/Scene/processVoxelProperties.js +1 -0
- package/Source/Shaders/Voxels/IntersectBox.glsl +21 -47
- package/Source/Shaders/Voxels/IntersectBox.js +21 -47
- package/Source/Shaders/Voxels/IntersectClippingPlanes.glsl +1 -1
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +1 -1
- package/Source/Shaders/Voxels/IntersectCylinder.glsl +66 -96
- package/Source/Shaders/Voxels/IntersectCylinder.js +66 -96
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +226 -154
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +226 -154
- package/Source/Shaders/Voxels/IntersectionUtils.glsl +33 -11
- package/Source/Shaders/Voxels/IntersectionUtils.js +33 -11
- package/Source/Shaders/Voxels/Megatexture.glsl +1 -2
- package/Source/Shaders/Voxels/Megatexture.js +1 -2
- package/Source/Shaders/Voxels/Octree.glsl +14 -9
- package/Source/Shaders/Voxels/Octree.js +14 -9
- package/Source/Shaders/Voxels/VoxelFS.glsl +93 -43
- package/Source/Shaders/Voxels/VoxelFS.js +93 -43
- package/Source/Shaders/Voxels/VoxelUtils.glsl +31 -0
- package/Source/Shaders/Voxels/VoxelUtils.js +33 -0
- package/Source/Shaders/Voxels/convertUvToBox.glsl +24 -3
- package/Source/Shaders/Voxels/convertUvToBox.js +24 -4
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +50 -8
- package/Source/Shaders/Voxels/convertUvToCylinder.js +50 -8
- package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +82 -53
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +82 -53
- package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/Source/Workers/createGeometry.js +1 -1
- package/index.d.ts +251 -34
- package/index.js +77 -76
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.116
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,51 +26,51 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BCU2LH5T.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RMOEYCZW.js";
|
|
33
33
|
import {
|
|
34
34
|
OrientedBoundingBox_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WHUSTDIB.js";
|
|
36
36
|
import {
|
|
37
37
|
AttributeCompression_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-E6WXPSJS.js";
|
|
39
|
+
import "./chunk-LQJ5FFFR.js";
|
|
40
|
+
import "./chunk-TJBU6GML.js";
|
|
41
|
+
import "./chunk-L4BW3RUA.js";
|
|
42
|
+
import "./chunk-NP2GYYE5.js";
|
|
43
43
|
import {
|
|
44
44
|
IndexDatatype_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-P4XKB3QZ.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-7COR472O.js";
|
|
49
|
+
import "./chunk-2KACWKS4.js";
|
|
50
|
+
import "./chunk-X6XOMPWL.js";
|
|
51
51
|
import {
|
|
52
52
|
Rectangle_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-2XPLH3JY.js";
|
|
54
|
+
import "./chunk-NZWNZA6S.js";
|
|
55
55
|
import {
|
|
56
56
|
Cartesian2_default,
|
|
57
57
|
Cartesian3_default,
|
|
58
58
|
Cartographic_default,
|
|
59
59
|
Ellipsoid_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ADOVHYWO.js";
|
|
61
61
|
import {
|
|
62
62
|
Math_default
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-QCQUZGXI.js";
|
|
64
|
+
import "./chunk-I37B3MZ2.js";
|
|
65
|
+
import "./chunk-N4KXMWQU.js";
|
|
66
|
+
import "./chunk-TZORKRNK.js";
|
|
67
67
|
import {
|
|
68
68
|
Check_default,
|
|
69
69
|
DeveloperError_default
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-SS4ESNE3.js";
|
|
71
71
|
import {
|
|
72
72
|
defined_default
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YDVSBWEO.js";
|
|
74
74
|
|
|
75
75
|
// packages/engine/Source/Core/Intersections2D.js
|
|
76
76
|
var Intersections2D = {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains functions for checking that supplied arguments are of a specified type
|
|
3
|
+
* or meet specified conditions
|
|
4
|
+
*/
|
|
5
|
+
export const Check: {
|
|
6
|
+
/**
|
|
7
|
+
* Throws if test is not defined
|
|
8
|
+
*
|
|
9
|
+
* @param {string} name The name of the variable being tested
|
|
10
|
+
* @param {*} test The value that is to be checked
|
|
11
|
+
* @exception {DeveloperError} test must be defined
|
|
12
|
+
*/
|
|
13
|
+
defined<T>(name: string, test: T): asserts test is NonNullable<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Contains type checking functions, all using the typeof operator
|
|
16
|
+
*/
|
|
17
|
+
typeOf: {
|
|
18
|
+
/**
|
|
19
|
+
* Throws if test is not typeof 'string'
|
|
20
|
+
*
|
|
21
|
+
* @param {string} name The name of the variable being tested
|
|
22
|
+
* @param {*} test The value to test
|
|
23
|
+
* @exception {DeveloperError} test must be typeof 'string'
|
|
24
|
+
*/
|
|
25
|
+
string(name: string, test: any): asserts test is string;
|
|
26
|
+
/**
|
|
27
|
+
* Throws if test is not typeof 'function'
|
|
28
|
+
*
|
|
29
|
+
* @param {string} name The name of the variable being tested
|
|
30
|
+
* @param {*} test The value to test
|
|
31
|
+
* @exception {DeveloperError} test must be typeof 'function'
|
|
32
|
+
*/
|
|
33
|
+
func(name: string, test: any): asserts test is Function;
|
|
34
|
+
/**
|
|
35
|
+
* Throws if test is not typeof 'object'
|
|
36
|
+
*
|
|
37
|
+
* @param {string} name The name of the variable being tested
|
|
38
|
+
* @param {*} test The value to test
|
|
39
|
+
* @exception {DeveloperError} test must be typeof 'object'
|
|
40
|
+
*/
|
|
41
|
+
object(name: string, test: any): asserts test is object;
|
|
42
|
+
/**
|
|
43
|
+
* Throws if test is not typeof 'boolean'
|
|
44
|
+
*
|
|
45
|
+
* @param {string} name The name of the variable being tested
|
|
46
|
+
* @param {*} test The value to test
|
|
47
|
+
* @exception {DeveloperError} test must be typeof 'boolean'
|
|
48
|
+
*/
|
|
49
|
+
bool(name: string, test: any): asserts test is boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Throws if test is not typeof 'bigint'
|
|
52
|
+
*
|
|
53
|
+
* @param {string} name The name of the variable being tested
|
|
54
|
+
* @param {*} test The value to test
|
|
55
|
+
* @exception {DeveloperError} test must be typeof 'bigint'
|
|
56
|
+
*/
|
|
57
|
+
bigint(name: string, test: any): asserts test is bigint;
|
|
58
|
+
/**
|
|
59
|
+
* Throws if test is not typeof 'number'
|
|
60
|
+
*
|
|
61
|
+
* @param {string} name The name of the variable being tested
|
|
62
|
+
* @param {*} test The value to test
|
|
63
|
+
* @exception {DeveloperError} test must be typeof 'number'
|
|
64
|
+
*/
|
|
65
|
+
number: {
|
|
66
|
+
(name: string, test: any): void;
|
|
67
|
+
/**
|
|
68
|
+
* Throws if test is not typeof 'number' and less than limit
|
|
69
|
+
*
|
|
70
|
+
* @param {string} name The name of the variable being tested
|
|
71
|
+
* @param {*} test The value to test
|
|
72
|
+
* @param {number} limit The limit value to compare against
|
|
73
|
+
* @exception {DeveloperError} test must be typeof 'number' and less than limit
|
|
74
|
+
*/
|
|
75
|
+
lessThan(name: string, test: any, limit: number): asserts test is number;
|
|
76
|
+
/**
|
|
77
|
+
* Throws if test is not typeof 'number' and less than or equal to limit
|
|
78
|
+
*
|
|
79
|
+
* @param {string} name The name of the variable being tested
|
|
80
|
+
* @param {*} test The value to test
|
|
81
|
+
* @param {number} limit The limit value to compare against
|
|
82
|
+
* @exception {DeveloperError} test must be typeof 'number' and less than or equal to limit
|
|
83
|
+
*/
|
|
84
|
+
lessThanOrEquals(
|
|
85
|
+
name: string,
|
|
86
|
+
test: any,
|
|
87
|
+
limit: number
|
|
88
|
+
): asserts test is number;
|
|
89
|
+
/**
|
|
90
|
+
* Throws if test is not typeof 'number' and greater than limit
|
|
91
|
+
*
|
|
92
|
+
* @param {string} name The name of the variable being tested
|
|
93
|
+
* @param {*} test The value to test
|
|
94
|
+
* @param {number} limit The limit value to compare against
|
|
95
|
+
* @exception {DeveloperError} test must be typeof 'number' and greater than limit
|
|
96
|
+
*/
|
|
97
|
+
greaterThan(
|
|
98
|
+
name: string,
|
|
99
|
+
test: any,
|
|
100
|
+
limit: number
|
|
101
|
+
): asserts test is number;
|
|
102
|
+
/**
|
|
103
|
+
* Throws if test is not typeof 'number' and greater than or equal to limit
|
|
104
|
+
*
|
|
105
|
+
* @param {string} name The name of the variable being tested
|
|
106
|
+
* @param {*} test The value to test
|
|
107
|
+
* @param {number} limit The limit value to compare against
|
|
108
|
+
* @exception {DeveloperError} test must be typeof 'number' and greater than or equal to limit
|
|
109
|
+
*/
|
|
110
|
+
greaterThanOrEquals(
|
|
111
|
+
name: string,
|
|
112
|
+
test: any,
|
|
113
|
+
limit: number
|
|
114
|
+
): asserts test is number;
|
|
115
|
+
/**
|
|
116
|
+
* Throws if test1 and test2 is not typeof 'number' and not equal in value
|
|
117
|
+
*
|
|
118
|
+
* @param {string} name1 The name of the first variable being tested
|
|
119
|
+
* @param {string} name2 The name of the second variable being tested against
|
|
120
|
+
* @param {*} test1 The value to test
|
|
121
|
+
* @param {*} test2 The value to test against
|
|
122
|
+
* @exception {DeveloperError} test1 and test2 should be type of 'number' and be equal in value
|
|
123
|
+
*/
|
|
124
|
+
equals(name1: string, name2: string, test1: any, test2: any): void;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
package/Source/Core/Check.js
CHANGED
package/Source/Core/Geometry.js
CHANGED
|
@@ -95,7 +95,7 @@ function Geometry(options) {
|
|
|
95
95
|
* <ul>
|
|
96
96
|
* <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>
|
|
97
97
|
* <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>
|
|
98
|
-
* <li><code>
|
|
98
|
+
* <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>
|
|
99
99
|
* <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>
|
|
100
100
|
* <li><code>color</code> - RGBA color (normalized) usually from {@link GeometryInstance#color}. 32-bit floating-point. 4 components per attribute.</li>
|
|
101
101
|
* <li><code>pickColor</code> - RGBA color used for picking. 32-bit floating-point. 4 components per attribute.</li>
|
package/Source/Core/Ion.js
CHANGED
|
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
7
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjM2I5YWEyNS02NzRiLTRmOTEtYWZhNi1jNzlhZTI5Yjc3YWYiLCJpZCI6MjU5LCJpYXQiOjE3MTE1NTQ2Njd9.dawdakmPEfdAKpH2-Cv-IDOlVHwicZ1Mgk7ZzI775hQ";
|
|
8
8
|
/**
|
|
9
9
|
* Default settings for accessing the Cesium ion API.
|
|
10
10
|
*
|
|
@@ -171,7 +171,7 @@ function computeAttributes(options) {
|
|
|
171
171
|
scratchPosition
|
|
172
172
|
);
|
|
173
173
|
p = ellipsoid.scaleToGeodeticSurface(p, p);
|
|
174
|
-
const st = projectTo2d(p, appendTextureCoordinatesCartesian2);
|
|
174
|
+
const st = projectTo2d([p], appendTextureCoordinatesCartesian2)[0];
|
|
175
175
|
Cartesian2.subtract(st, origin, st);
|
|
176
176
|
|
|
177
177
|
const stx = CesiumMath.clamp(st.x / boundingRectangle.width, 0, 1);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Cartesian3 from "./Cartesian3.js";
|
|
2
|
+
import Cartographic from "./Cartographic.js";
|
|
2
3
|
import DeveloperError from "./DeveloperError.js";
|
|
3
4
|
import defined from "./defined.js";
|
|
4
5
|
|
|
@@ -26,7 +27,7 @@ VerticalExaggeration.getHeight = function (height, scale, relativeHeight) {
|
|
|
26
27
|
return (height - relativeHeight) * scale + relativeHeight;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
const scratchCartographic = new
|
|
30
|
+
const scratchCartographic = new Cartographic();
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* Scales a position by exaggeration.
|
|
@@ -4,7 +4,7 @@ import Resource from "../Core/Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"
|
|
7
|
+
"AAPK3b7fccd1509046758d03c6641e404040gQG5edfR9eun2VcwtbXJKNbQjIZ7ma2vUd9ulqZK4lo3R_DJIAhwoGW9p86JNauB";
|
|
8
8
|
/**
|
|
9
9
|
* Default options for accessing the ArcGIS image tile service.
|
|
10
10
|
*
|
|
@@ -22,6 +22,35 @@ import SceneMode from "./SceneMode.js";
|
|
|
22
22
|
import SceneTransforms from "./SceneTransforms.js";
|
|
23
23
|
import VerticalOrigin from "./VerticalOrigin.js";
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {object} Billboard.ConstructorOptions
|
|
27
|
+
*
|
|
28
|
+
* Initialization options for the first param of Billboard constructor
|
|
29
|
+
*
|
|
30
|
+
* @property {Cartesian3} position The cartesian position of the billboard.
|
|
31
|
+
* @property {string} [id] A user-defined object to return when the billboard is picked with {@link Scene#pick}.
|
|
32
|
+
* @property {boolean} [show=true] Determines if this billboard will be shown.
|
|
33
|
+
* @property {string | HTMLCanvasElement} [image] A loaded HTMLImageElement, ImageData, or a url to an image to use for the billboard.
|
|
34
|
+
* @property {number} [scale=1.0] A number specifying the uniform scale that is multiplied with the billboard's image size in pixels.
|
|
35
|
+
* @property {Cartesian2} [pixelOffset=Cartesian2.ZERO] A {@link Cartesian2} Specifying the pixel offset in screen space from the origin of this billboard.
|
|
36
|
+
* @property {Cartesian3} [eyeOffset=Cartesian3.ZERO] A {@link Cartesian3} Specifying the 3D Cartesian offset applied to this billboard in eye coordinates.
|
|
37
|
+
* @property {HorizontalOrigin} [horizontalOrigin=HorizontalOrigin.CENTER] A {@link HorizontalOrigin} Specifying the horizontal origin of this billboard.
|
|
38
|
+
* @property {VerticalOrigin} [verticalOrigin=VerticalOrigin.CENTER] A {@link VerticalOrigin} Specifying the vertical origin of this billboard.
|
|
39
|
+
* @property {HeightReference} [heightReference=HeightReference.NONE] A {@link HeightReference} Specifying the height reference of this billboard.
|
|
40
|
+
* @property {Color} [color=Color.WHITE] A {@link Color} Specifying the color that is multiplied with the billboard's texture.
|
|
41
|
+
* @property {number} [rotation=0] A number specifying the rotation angle in radians.
|
|
42
|
+
* @property {Cartesian3} [alignedAxis=Cartesian3.ZERO] A {@link Cartesian3} Specifying the aligned axis in world space.
|
|
43
|
+
* @property {boolean} [sizeInMeters] A boolean specifying if the billboard size is in meters or pixels.
|
|
44
|
+
* @property {number} [width] A number specifying the width of the billboard. If undefined, the image width will be used.
|
|
45
|
+
* @property {number} [height] A number specifying the height of the billboard. If undefined, the image height will be used.
|
|
46
|
+
* @property {NearFarScalar} [scaleByDistance] A {@link NearFarScalar} Specifying near and far scaling properties of a Billboard based on the billboard's distance from the camera.
|
|
47
|
+
* @property {NearFarScalar} [translucencyByDistance] A {@link NearFarScalar} Specifying near and far translucency properties of a Billboard based on the billboard's distance from the camera.
|
|
48
|
+
* @property {NearFarScalar} [pixelOffsetScaleByDistance] A {@link NearFarScalar} Specifying near and far pixel offset scaling properties of a Billboard based on the billboard's distance from the camera.
|
|
49
|
+
* @property {BoundingRectangle} [imageSubRegion] A {@link BoundingRectangle} Specifying the sub-region of the image to use for the billboard, rather than the entire image.
|
|
50
|
+
* @property {DistanceDisplayCondition} [distanceDisplayCondition] A {@link DistanceDisplayCondition} Specifying the distance from the camera at which this billboard will be displayed.
|
|
51
|
+
* @property {number} [disableDepthTestDistance] A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
|
|
52
|
+
*/
|
|
53
|
+
|
|
25
54
|
/**
|
|
26
55
|
* <div class="notice">
|
|
27
56
|
* A billboard is created and its initial
|
|
@@ -56,6 +85,9 @@ import VerticalOrigin from "./VerticalOrigin.js";
|
|
|
56
85
|
* @internalConstructor
|
|
57
86
|
* @class
|
|
58
87
|
*
|
|
88
|
+
* @param {Billboard.ConstructorOptions} options Object describing initialization options
|
|
89
|
+
* @param {BillboardCollection} billboardCollection Instance of BillboardCollection
|
|
90
|
+
*
|
|
59
91
|
* @demo {@link https://sandcastle.cesium.com/index.html?src=Billboards.html|Cesium Sandcastle Billboard Demo}
|
|
60
92
|
*/
|
|
61
93
|
function Billboard(options, billboardCollection) {
|
|
@@ -426,7 +426,7 @@ function destroyBillboards(billboards) {
|
|
|
426
426
|
* Creates and adds a billboard with the specified initial properties to the collection.
|
|
427
427
|
* The added billboard is returned so it can be modified or removed from the collection later.
|
|
428
428
|
*
|
|
429
|
-
* @param {
|
|
429
|
+
* @param {Billboard.ConstructorOptions}[options] A template describing the billboard's properties as shown in Example 1.
|
|
430
430
|
* @returns {Billboard} The billboard that was added to the collection.
|
|
431
431
|
*
|
|
432
432
|
* @performance Calling <code>add</code> is expected constant time. However, the collection's vertex buffer
|
|
@@ -500,6 +500,10 @@ BingMapsImageryProvider.fromUrl = async function (url, options) {
|
|
|
500
500
|
queryParameters.mapLayer = options.mapLayer;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
+
if (defined(options.culture)) {
|
|
504
|
+
queryParameters.culture = options.culture;
|
|
505
|
+
}
|
|
506
|
+
|
|
503
507
|
const metadataResource = resource.getDerivedResource({
|
|
504
508
|
url: `REST/v1/Imagery/Metadata/${mapStyle}`,
|
|
505
509
|
queryParameters: queryParameters,
|
|
@@ -247,15 +247,8 @@ function getEllipsoidShape(region) {
|
|
|
247
247
|
|
|
248
248
|
const shapeTransform = Matrix4.fromScale(Ellipsoid.WGS84.radii);
|
|
249
249
|
|
|
250
|
-
const
|
|
251
|
-
const
|
|
252
|
-
const minBoundsY = south;
|
|
253
|
-
const maxBoundsY = north;
|
|
254
|
-
const minBoundsZ = minHeight;
|
|
255
|
-
const maxBoundsZ = maxHeight;
|
|
256
|
-
|
|
257
|
-
const minBounds = new Cartesian3(minBoundsX, minBoundsY, minBoundsZ);
|
|
258
|
-
const maxBounds = new Cartesian3(maxBoundsX, maxBoundsY, maxBoundsZ);
|
|
250
|
+
const minBounds = new Cartesian3(west, south, minHeight);
|
|
251
|
+
const maxBounds = new Cartesian3(east, north, maxHeight);
|
|
259
252
|
|
|
260
253
|
return {
|
|
261
254
|
shape: VoxelShapeType.ELLIPSOID,
|
|
@@ -113,7 +113,6 @@ import Ray from "../Core/Ray.js";
|
|
|
113
113
|
* @property {boolean} [showCreditsOnScreen=false] Whether to display the credits of this tileset on screen.
|
|
114
114
|
* @property {SplitDirection} [splitDirection=SplitDirection.NONE] The {@link SplitDirection} split to apply to this tileset.
|
|
115
115
|
* @property {boolean} [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.
|
|
116
|
-
* @property {boolean} [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.
|
|
117
116
|
* @property {boolean} [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.
|
|
118
117
|
* @property {boolean} [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.
|
|
119
118
|
* @property {string} [debugHeatmapTilePropertyName] The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
|
|
@@ -871,16 +870,6 @@ function Cesium3DTileset(options) {
|
|
|
871
870
|
* @default false
|
|
872
871
|
*/
|
|
873
872
|
this.enableCollision = defaultValue(options.enableCollision, false);
|
|
874
|
-
|
|
875
|
-
if (defined(options.disableCollision)) {
|
|
876
|
-
deprecationWarning(
|
|
877
|
-
"Cesium3DTileset options.disableCollision",
|
|
878
|
-
"Cesium3DTileset options.disableCollision has been deprecated in CesiumJS 1.115. It will be removed in CesiumJS 1.116. Use options.enableCollision instead."
|
|
879
|
-
);
|
|
880
|
-
|
|
881
|
-
this.enableCollision = !options.disableCollision;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
873
|
this._projectTo2D = defaultValue(options.projectTo2D, false);
|
|
885
874
|
this._enablePick = defaultValue(options.enablePick, false);
|
|
886
875
|
|
|
@@ -1083,34 +1072,6 @@ Object.defineProperties(Cesium3DTileset.prototype, {
|
|
|
1083
1072
|
},
|
|
1084
1073
|
},
|
|
1085
1074
|
|
|
1086
|
-
/**
|
|
1087
|
-
* 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.
|
|
1088
|
-
* @memberof Cesium3DTileset.prototype
|
|
1089
|
-
*
|
|
1090
|
-
* @type {boolean}
|
|
1091
|
-
* @default true
|
|
1092
|
-
*
|
|
1093
|
-
* @deprecated
|
|
1094
|
-
*/
|
|
1095
|
-
disableCollision: {
|
|
1096
|
-
get: function () {
|
|
1097
|
-
deprecationWarning(
|
|
1098
|
-
"Cesium3DTileset.disableCollision",
|
|
1099
|
-
"Cesium3DTileset.disableCollision has been deprecated in CesiumJS 1.115. It will be removed in CesiumJS 1.116. Use Cesium3DTileset.enableCollision instead."
|
|
1100
|
-
);
|
|
1101
|
-
|
|
1102
|
-
return !this.enableCollision;
|
|
1103
|
-
},
|
|
1104
|
-
set: function (value) {
|
|
1105
|
-
deprecationWarning(
|
|
1106
|
-
"Cesium3DTileset.disableCollision",
|
|
1107
|
-
"Cesium3DTileset.disableCollision has been deprecated in CesiumJS 1.115. It will be removed in CesiumJS 1.116. Use Cesium3DTileset.enableCollision instead."
|
|
1108
|
-
);
|
|
1109
|
-
|
|
1110
|
-
this.enableCollision = !value;
|
|
1111
|
-
},
|
|
1112
|
-
},
|
|
1113
|
-
|
|
1114
1075
|
/**
|
|
1115
1076
|
* Gets the tileset's asset object property, which contains metadata about the tileset.
|
|
1116
1077
|
* <p>
|
|
@@ -2677,6 +2638,10 @@ const scratchUpdateHeightCartographic = new Cartographic();
|
|
|
2677
2638
|
const scratchUpdateHeightCartographic2 = new Cartographic();
|
|
2678
2639
|
const scratchUpdateHeightCartesian = new Cartesian3();
|
|
2679
2640
|
function processUpdateHeight(tileset, tile, frameState) {
|
|
2641
|
+
if (!tileset.enableCollision || !tileset.show) {
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2680
2645
|
const heightCallbackData = tileset._addHeightCallbacks;
|
|
2681
2646
|
const boundingSphere = tile.boundingSphere;
|
|
2682
2647
|
|
package/Source/Scene/Globe.js
CHANGED
|
@@ -28,7 +28,6 @@ import ImageryLayerCollection from "./ImageryLayerCollection.js";
|
|
|
28
28
|
import QuadtreePrimitive from "./QuadtreePrimitive.js";
|
|
29
29
|
import SceneMode from "./SceneMode.js";
|
|
30
30
|
import ShadowMode from "./ShadowMode.js";
|
|
31
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* The globe rendered in the scene, including its terrain ({@link Globe#terrainProvider})
|
|
@@ -341,10 +340,6 @@ function Globe(ellipsoid) {
|
|
|
341
340
|
*/
|
|
342
341
|
this.atmosphereBrightnessShift = 0.0;
|
|
343
342
|
|
|
344
|
-
this._terrainExaggerationChanged = false;
|
|
345
|
-
this._terrainExaggeration = 1.0;
|
|
346
|
-
this._terrainExaggerationRelativeHeight = 0.0;
|
|
347
|
-
|
|
348
343
|
/**
|
|
349
344
|
* Whether to show terrain skirts. Terrain skirts are geometry extending downwards from a tile's edges used to hide seams between neighboring tiles.
|
|
350
345
|
* Skirts are always hidden when the camera is underground or translucency is enabled.
|
|
@@ -523,68 +518,6 @@ Object.defineProperties(Globe.prototype, {
|
|
|
523
518
|
return this._terrainProviderChanged;
|
|
524
519
|
},
|
|
525
520
|
},
|
|
526
|
-
/**
|
|
527
|
-
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
528
|
-
* A value of <code>2.0</code> scales the terrain by 2x.
|
|
529
|
-
* A value of <code>0.0</code> makes the terrain completely flat.
|
|
530
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
531
|
-
*
|
|
532
|
-
* @memberof Globe.prototype
|
|
533
|
-
* @type {number}
|
|
534
|
-
* @default 1.0
|
|
535
|
-
*
|
|
536
|
-
* @deprecated
|
|
537
|
-
*/
|
|
538
|
-
terrainExaggeration: {
|
|
539
|
-
get: function () {
|
|
540
|
-
deprecationWarning(
|
|
541
|
-
"Globe.terrainExaggeration",
|
|
542
|
-
"Globe.terrainExaggeration was deprecated in CesiumJS 1.113. It will be removed in CesiumJS 1.116. Use Scene.verticalExaggeration instead."
|
|
543
|
-
);
|
|
544
|
-
return this._terrainExaggeration;
|
|
545
|
-
},
|
|
546
|
-
set: function (value) {
|
|
547
|
-
deprecationWarning(
|
|
548
|
-
"Globe.terrainExaggeration",
|
|
549
|
-
"Globe.terrainExaggeration was deprecated in CesiumJS 1.113. It will be removed in CesiumJS 1.116. Use Scene.verticalExaggeration instead."
|
|
550
|
-
);
|
|
551
|
-
if (value !== this._terrainExaggeration) {
|
|
552
|
-
this._terrainExaggeration = value;
|
|
553
|
-
this._terrainExaggerationChanged = true;
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
},
|
|
557
|
-
/**
|
|
558
|
-
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
559
|
-
* Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
560
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
561
|
-
* If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
562
|
-
*
|
|
563
|
-
* @memberof Globe.prototype
|
|
564
|
-
* @type {number}
|
|
565
|
-
* @default 0.0
|
|
566
|
-
*
|
|
567
|
-
* @deprecated
|
|
568
|
-
*/
|
|
569
|
-
terrainExaggerationRelativeHeight: {
|
|
570
|
-
get: function () {
|
|
571
|
-
deprecationWarning(
|
|
572
|
-
"Globe.terrainExaggerationRelativeHeight",
|
|
573
|
-
"Globe.terrainExaggerationRelativeHeight was deprecated in CesiumJS 1.113. It will be removed in CesiumJS 1.116. Use Scene.verticalExaggerationRelativeHeight instead."
|
|
574
|
-
);
|
|
575
|
-
return this._terrainExaggerationRelativeHeight;
|
|
576
|
-
},
|
|
577
|
-
set: function (value) {
|
|
578
|
-
deprecationWarning(
|
|
579
|
-
"Globe.terrainExaggerationRelativeHeight",
|
|
580
|
-
"Globe.terrainExaggerationRelativeHeight was deprecated in CesiumJS 1.113. It will be removed in CesiumJS 1.116. Use Scene.verticalExaggerationRelativeHeight instead."
|
|
581
|
-
);
|
|
582
|
-
if (value !== this._terrainExaggerationRelativeHeight) {
|
|
583
|
-
this._terrainExaggerationRelativeHeight = value;
|
|
584
|
-
this._terrainExaggerationChanged = true;
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
},
|
|
588
521
|
/**
|
|
589
522
|
* 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,
|
|
590
523
|
* all terrain and imagery for the current view have been loaded. The event passes the new length of the tile load queue.
|
package/Source/Scene/Label.js
CHANGED
|
@@ -85,6 +85,36 @@ function parseFont(label) {
|
|
|
85
85
|
label._lineHeight = fontInfo.lineHeight;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* @typedef {object} Label.ConstructorOptions
|
|
90
|
+
*
|
|
91
|
+
* Initialization options for the Label constructor
|
|
92
|
+
*
|
|
93
|
+
* @property {Cartesian3} position The cartesian position of the label.
|
|
94
|
+
* @property {string} [id] A user-defined object to return when the label is picked with {@link Scene#pick}.
|
|
95
|
+
* @property {boolean} [show=true] Determines if this label will be shown.
|
|
96
|
+
* @property {string} [text] A string specifying the text of the label.
|
|
97
|
+
* @property {string} [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.
|
|
98
|
+
* @property {LabelStyle} [style=LabelStyle.FILL] A {@link LabelStyle} specifying the style of the label.
|
|
99
|
+
* @property {number} [scale=1.0] A number specifying the uniform scale that is multiplied with the label size.
|
|
100
|
+
* @property {boolean} [showBackground=false] Determines if a background behind this label will be shown.
|
|
101
|
+
* @property {Color} [backgroundColor=new Color(0.165, 0.165, 0.165, 0.8)] A {@link Color} specifying the background color of the label.
|
|
102
|
+
* @property {Cartesian2} [backgroundPadding=new Cartesian2(7, 5)] A {@link Cartesian2} Specifying the horizontal and vertical background padding in pixels.
|
|
103
|
+
* @property {Cartesian2} [pixelOffset=Cartesian2.ZERO] A {@link Cartesian2} specifying the pixel offset in screen space from the origin of this label.
|
|
104
|
+
* @property {Cartesian3} [eyeOffset=Cartesian3.ZERO] A {@link Cartesian3} specifying the 3D Cartesian offset applied to this label in eye coordinates.
|
|
105
|
+
* @property {HorizontalOrigin} [horizontalOrigin=HorizontalOrigin.CENTER] A {@link HorizontalOrigin} specifying the horizontal origin of this label.
|
|
106
|
+
* @property {VerticalOrigin} [verticalOrigin=VerticalOrigin.CENTER] A {@link VerticalOrigin} specifying the vertical origin of this label.
|
|
107
|
+
* @property {HeightReference} [heightReference=HeightReference.NONE] A {@link HeightReference} specifying the height reference of this label.
|
|
108
|
+
* @property {Color} [fillColor=Color.WHITE] A {@link Color} specifying the fill color of the label.
|
|
109
|
+
* @property {Color} [outlineColor=Color.BLACK] A {@link Color} specifying the outline color of the label.
|
|
110
|
+
* @property {number} [outlineWidth=1.0] A number specifying the outline width of the label.
|
|
111
|
+
* @property {NearFarScalar} [translucencyByDistance] A {@link NearFarScalar} specifying near and far translucency properties of the label based on the label's distance from the camera.
|
|
112
|
+
* @property {NearFarScalar} [pixelOffsetScaleByDistance] A {@link NearFarScalar} specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.
|
|
113
|
+
* @property {NearFarScalar} [scaleByDistance] A {@link NearFarScalar} specifying near and far scaling properties of the label based on the label's distance from the camera.
|
|
114
|
+
* @property {DistanceDisplayCondition} [distanceDisplayCondition] A {@link DistanceDisplayCondition} specifying at what distance from the camera that this label will be displayed.
|
|
115
|
+
* @property {number} [disableDepthTestDistance] A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
|
|
116
|
+
*/
|
|
117
|
+
|
|
88
118
|
/**
|
|
89
119
|
* <div class="notice">
|
|
90
120
|
* Create labels by calling {@link LabelCollection#add}. Do not call the constructor directly.
|
|
@@ -94,6 +124,9 @@ function parseFont(label) {
|
|
|
94
124
|
* @internalConstructor
|
|
95
125
|
* @class
|
|
96
126
|
*
|
|
127
|
+
* @param {Label.ConstructorOptions} options Object describing initialization options
|
|
128
|
+
* @param {LabelCollection} labelCollection Instance of LabelCollection
|
|
129
|
+
*
|
|
97
130
|
* @exception {DeveloperError} translucencyByDistance.far must be greater than translucencyByDistance.near
|
|
98
131
|
* @exception {DeveloperError} pixelOffsetScaleByDistance.far must be greater than pixelOffsetScaleByDistance.near
|
|
99
132
|
* @exception {DeveloperError} distanceDisplayCondition.far must be greater than distanceDisplayCondition.near
|
|
@@ -710,7 +710,7 @@ Object.defineProperties(LabelCollection.prototype, {
|
|
|
710
710
|
* Creates and adds a label with the specified initial properties to the collection.
|
|
711
711
|
* The added label is returned so it can be modified or removed from the collection later.
|
|
712
712
|
*
|
|
713
|
-
* @param {
|
|
713
|
+
* @param {Label.ConstructorOptions} [options] A template describing the label's properties as shown in Example 1.
|
|
714
714
|
* @returns {Label} The label that was added to the collection.
|
|
715
715
|
*
|
|
716
716
|
* @performance Calling <code>add</code> is expected constant time. However, the collection's vertex buffer
|
|
@@ -755,6 +755,7 @@ Object.defineProperties(LabelCollection.prototype, {
|
|
|
755
755
|
* font : '24px Helvetica',
|
|
756
756
|
* });
|
|
757
757
|
*
|
|
758
|
+
*
|
|
758
759
|
* @see LabelCollection#remove
|
|
759
760
|
* @see LabelCollection#removeAll
|
|
760
761
|
*/
|
|
@@ -2515,9 +2515,6 @@ function setReady(primitive, frameState, state, error) {
|
|
|
2515
2515
|
primitive._ready =
|
|
2516
2516
|
primitive._state === PrimitiveState.COMPLETE ||
|
|
2517
2517
|
primitive._state === PrimitiveState.FAILED;
|
|
2518
|
-
if (!defined(error)) {
|
|
2519
|
-
return true;
|
|
2520
|
-
}
|
|
2521
2518
|
});
|
|
2522
2519
|
}
|
|
2523
2520
|
export default Primitive;
|
|
@@ -427,21 +427,6 @@ VoxelBoxShape.prototype.computeOrientedBoundingBoxForSample = function (
|
|
|
427
427
|
);
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
/**
|
|
431
|
-
* Computes an approximate step size for raymarching the root tile of a voxel grid.
|
|
432
|
-
* The update function must be called before calling this function.
|
|
433
|
-
*
|
|
434
|
-
* @param {Cartesian3} dimensions The voxel grid dimensions for a tile.
|
|
435
|
-
* @returns {number} The step size.
|
|
436
|
-
*/
|
|
437
|
-
VoxelBoxShape.prototype.computeApproximateStepSize = function (dimensions) {
|
|
438
|
-
//>>includeStart('debug', pragmas.debug);
|
|
439
|
-
Check.typeOf.object("dimensions", dimensions);
|
|
440
|
-
//>>includeEnd('debug');
|
|
441
|
-
|
|
442
|
-
return 1.0 / Cartesian3.maximumComponent(dimensions);
|
|
443
|
-
};
|
|
444
|
-
|
|
445
430
|
/**
|
|
446
431
|
* Defines the minimum bounds of the shape. Corresponds to minimum X, Y, Z.
|
|
447
432
|
*
|