Skip to content

Commit 1ae6836

Browse files
authored
Merge pull request #8908 from CesiumGS/smokescreen-em-if-you-got-em
Add additional smokescreen to build-ts
2 parents 50e8a91 + 913810c commit 1ae6836

26 files changed

+538
-108
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
!**/*.css
1818
!**/*.html
1919
!**/*.md
20+
!**/*.ts
2021

2122
# Re-ignore a few things caught above
2223
**/*.min.js

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- Improved `MaterialProperty` JSDoc and TypeScript type definitions, which were missing the ability to take primitive types in addition to Property instances in their constructor.
1212
- Fixed `EllipsoidGeodesic` JSDoc and TypeScript type definitions which incorrectly listed `result` as required.
1313
- Fixed a bug with handling of PixelFormat's flipY. [#8893](https://github.com/CesiumGS/cesium/pull/8893)
14+
- Fixed JSDoc and TypeScript type definitions for all `ImageryProvider` types, which were missing `defaultNightAlpha` and `defaultDayAlpha` properties.
15+
- Fixed JSDoc and TypeScript type definitions for `Viewer` options parameter, which was incorrectly listed as required.
1416
- Fixed a memory leak where some 3D Tiles requests were being unintentionally retained after the requests were cancelled. [#8843](https://github.com/CesiumGS/cesium/pull/8843)
1517

1618
### 1.70.0 - 2020-06-01

Source/Core/HeadingPitchRange.js

+3
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ function HeadingPitchRange(heading, pitch, range) {
1717
/**
1818
* Heading is the rotation from the local north direction where a positive angle is increasing eastward.
1919
* @type {Number}
20+
* @default 0.0
2021
*/
2122
this.heading = defaultValue(heading, 0.0);
2223

2324
/**
2425
* Pitch is the rotation from the local xy-plane. Positive pitch angles
2526
* are above the plane. Negative pitch angles are below the plane.
2627
* @type {Number}
28+
* @default 0.0
2729
*/
2830
this.pitch = defaultValue(pitch, 0.0);
2931

3032
/**
3133
* Range is the distance from the center of the local frame.
3234
* @type {Number}
35+
* @default 0.0
3336
*/
3437
this.range = defaultValue(range, 0.0);
3538
}

Source/Core/HeadingPitchRoll.js

+15
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,23 @@ import CesiumMath from "./Math.js";
1515
* @param {Number} [roll=0.0] The roll component in radians.
1616
*/
1717
function HeadingPitchRoll(heading, pitch, roll) {
18+
/**
19+
* Gets or sets the heading.
20+
* @type {Number}
21+
* @default 0.0
22+
*/
1823
this.heading = defaultValue(heading, 0.0);
24+
/**
25+
* Gets or sets the pitch.
26+
* @type {Number}
27+
* @default 0.0
28+
*/
1929
this.pitch = defaultValue(pitch, 0.0);
30+
/**
31+
* Gets or sets the roll.
32+
* @type {Number}
33+
* @default 0.0
34+
*/
2035
this.roll = defaultValue(roll, 0.0);
2136
}
2237

Source/DataSources/NodeTransformationProperty.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var defaultNodeTransformation = new TranslationRotationScale();
1313
* @constructor
1414
*
1515
* @param {Object} [options] Object with the following properties:
16-
* @param {Property} [options.translation=Cartesian3.ZERO] A {@link Cartesian3} Property specifying the (x, y, z) translation to apply to the node.
17-
* @param {Property} [options.rotation=Quaternion.IDENTITY] A {@link Quaternion} Property specifying the (x, y, z, w) rotation to apply to the node.
18-
* @param {Property} [options.scale=new Cartesian3(1.0, 1.0, 1.0)] A {@link Cartesian3} Property specifying the (x, y, z) scaling to apply to the node.
16+
* @param {Property|Cartesian3} [options.translation=Cartesian3.ZERO] A {@link Cartesian3} Property specifying the (x, y, z) translation to apply to the node.
17+
* @param {Property|Quaternion} [options.rotation=Quaternion.IDENTITY] A {@link Quaternion} Property specifying the (x, y, z, w) rotation to apply to the node.
18+
* @param {Property|Cartesian3} [options.scale=new Cartesian3(1.0, 1.0, 1.0)] A {@link Cartesian3} Property specifying the (x, y, z) scaling to apply to the node.
1919
*/
2020
function NodeTransformationProperty(options) {
2121
options = defaultValue(options, defaultValue.EMPTY_OBJECT);

Source/DataSources/PositionPropertyArray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ReferenceFrame from "../Core/ReferenceFrame.js";
77
import Property from "./Property.js";
88

99
/**
10-
* A {@link PositionProperty} whose value is an array whose items are the computed value
10+
* A {@link Property} whose value is an array whose items are the computed value
1111
* of other PositionProperty instances.
1212
*
1313
* @alias PositionPropertyArray

Source/DataSources/VelocityOrientationProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import VelocityVectorProperty from "./VelocityVectorProperty.js";
1616
* @alias VelocityOrientationProperty
1717
* @constructor
1818
*
19-
* @param {Property} [position] The position property used to compute the orientation.
19+
* @param {PositionProperty} [position] The position property used to compute the orientation.
2020
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid used to determine which way is up.
2121
*
2222
* @example

Source/DataSources/VelocityVectorProperty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Property from "./Property.js";
1313
* @alias VelocityVectorProperty
1414
* @constructor
1515
*
16-
* @param {Property} [position] The position property used to compute the velocity.
16+
* @param {PositionProperty} [position] The position property used to compute the velocity.
1717
* @param {Boolean} [normalize=true] Whether to normalize the computed velocity vector.
1818
*
1919
* @example

Source/Scene/ArcGisMapServerImageryProvider.js

+25-7
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,34 @@ function ArcGisMapServerImageryProvider(options) {
101101
* The default alpha blending value of this provider, with 0.0 representing fully transparent and
102102
* 1.0 representing fully opaque.
103103
*
104-
* @type {Number}
104+
* @type {Number|undefined}
105105
* @default undefined
106106
*/
107107
this.defaultAlpha = undefined;
108108

109+
/**
110+
* The default alpha blending value on the night side of the globe of this provider, with 0.0 representing fully transparent and
111+
* 1.0 representing fully opaque.
112+
*
113+
* @type {Number|undefined}
114+
* @default undefined
115+
*/
116+
this.defaultNightAlpha = undefined;
117+
118+
/**
119+
* The default alpha blending value on the day side of the globe of this provider, with 0.0 representing fully transparent and
120+
* 1.0 representing fully opaque.
121+
*
122+
* @type {Number|undefined}
123+
* @default undefined
124+
*/
125+
this.defaultDayAlpha = undefined;
126+
109127
/**
110128
* The default brightness of this provider. 1.0 uses the unmodified imagery color. Less than 1.0
111129
* makes the imagery darker while greater than 1.0 makes it brighter.
112130
*
113-
* @type {Number}
131+
* @type {Number|undefined}
114132
* @default undefined
115133
*/
116134
this.defaultBrightness = undefined;
@@ -119,15 +137,15 @@ function ArcGisMapServerImageryProvider(options) {
119137
* The default contrast of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces
120138
* the contrast while greater than 1.0 increases it.
121139
*
122-
* @type {Number}
140+
* @type {Number|undefined}
123141
* @default undefined
124142
*/
125143
this.defaultContrast = undefined;
126144

127145
/**
128146
* The default hue of this provider in radians. 0.0 uses the unmodified imagery color.
129147
*
130-
* @type {Number}
148+
* @type {Number|undefined}
131149
* @default undefined
132150
*/
133151
this.defaultHue = undefined;
@@ -136,15 +154,15 @@ function ArcGisMapServerImageryProvider(options) {
136154
* The default saturation of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces the
137155
* saturation while greater than 1.0 increases it.
138156
*
139-
* @type {Number}
157+
* @type {Number|undefined}
140158
* @default undefined
141159
*/
142160
this.defaultSaturation = undefined;
143161

144162
/**
145163
* The default gamma correction to apply to this provider. 1.0 uses the unmodified imagery color.
146164
*
147-
* @type {Number}
165+
* @type {Number|undefined}
148166
* @default undefined
149167
*/
150168
this.defaultGamma = undefined;
@@ -524,7 +542,7 @@ Object.defineProperties(ArcGisMapServerImageryProvider.prototype, {
524542
* Gets the maximum level-of-detail that can be requested. This function should
525543
* not be called before {@link ArcGisMapServerImageryProvider#ready} returns true.
526544
* @memberof ArcGisMapServerImageryProvider.prototype
527-
* @type {Number}
545+
* @type {Number|undefined}
528546
* @readonly
529547
*/
530548
maximumLevel: {

Source/Scene/BingMapsImageryProvider.js

+25-7
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,34 @@ function BingMapsImageryProvider(options) {
8080
* The default alpha blending value of this provider, with 0.0 representing fully transparent and
8181
* 1.0 representing fully opaque.
8282
*
83-
* @type {Number}
83+
* @type {Number|undefined}
8484
* @default undefined
8585
*/
8686
this.defaultAlpha = undefined;
8787

88+
/**
89+
* The default alpha blending value on the night side of the globe of this provider, with 0.0 representing fully transparent and
90+
* 1.0 representing fully opaque.
91+
*
92+
* @type {Number|undefined}
93+
* @default undefined
94+
*/
95+
this.defaultNightAlpha = undefined;
96+
97+
/**
98+
* The default alpha blending value on the day side of the globe of this provider, with 0.0 representing fully transparent and
99+
* 1.0 representing fully opaque.
100+
*
101+
* @type {Number|undefined}
102+
* @default undefined
103+
*/
104+
this.defaultDayAlpha = undefined;
105+
88106
/**
89107
* The default brightness of this provider. 1.0 uses the unmodified imagery color. Less than 1.0
90108
* makes the imagery darker while greater than 1.0 makes it brighter.
91109
*
92-
* @type {Number}
110+
* @type {Number|undefined}
93111
* @default undefined
94112
*/
95113
this.defaultBrightness = undefined;
@@ -98,15 +116,15 @@ function BingMapsImageryProvider(options) {
98116
* The default contrast of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces
99117
* the contrast while greater than 1.0 increases it.
100118
*
101-
* @type {Number}
119+
* @type {Number|undefined}
102120
* @default undefined
103121
*/
104122
this.defaultContrast = undefined;
105123

106124
/**
107125
* The default hue of this provider in radians. 0.0 uses the unmodified imagery color.
108126
*
109-
* @type {Number}
127+
* @type {Number|undefined}
110128
* @default undefined
111129
*/
112130
this.defaultHue = undefined;
@@ -115,15 +133,15 @@ function BingMapsImageryProvider(options) {
115133
* The default saturation of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces the
116134
* saturation while greater than 1.0 increases it.
117135
*
118-
* @type {Number}
136+
* @type {Number|undefined}
119137
* @default undefined
120138
*/
121139
this.defaultSaturation = undefined;
122140

123141
/**
124142
* The default gamma correction to apply to this provider. 1.0 uses the unmodified imagery color.
125143
*
126-
* @type {Number}
144+
* @type {Number|undefined}
127145
* @default 1.0
128146
*/
129147
this.defaultGamma = 1.0;
@@ -404,7 +422,7 @@ Object.defineProperties(BingMapsImageryProvider.prototype, {
404422
* Gets the maximum level-of-detail that can be requested. This function should
405423
* not be called before {@link BingMapsImageryProvider#ready} returns true.
406424
* @memberof BingMapsImageryProvider.prototype
407-
* @type {Number}
425+
* @type {Number|undefined}
408426
* @readonly
409427
*/
410428
maximumLevel: {

Source/Scene/GoogleEarthEnterpriseImageryProvider.js

+25-7
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,34 @@ function GoogleEarthEnterpriseImageryProvider(options) {
100100
* The default alpha blending value of this provider, with 0.0 representing fully transparent and
101101
* 1.0 representing fully opaque.
102102
*
103-
* @type {Number}
103+
* @type {Number|undefined}
104104
* @default undefined
105105
*/
106106
this.defaultAlpha = undefined;
107107

108+
/**
109+
* The default alpha blending value on the night side of the globe of this provider, with 0.0 representing fully transparent and
110+
* 1.0 representing fully opaque.
111+
*
112+
* @type {Number|undefined}
113+
* @default undefined
114+
*/
115+
this.defaultNightAlpha = undefined;
116+
117+
/**
118+
* The default alpha blending value on the day side of the globe of this provider, with 0.0 representing fully transparent and
119+
* 1.0 representing fully opaque.
120+
*
121+
* @type {Number|undefined}
122+
* @default undefined
123+
*/
124+
this.defaultDayAlpha = undefined;
125+
108126
/**
109127
* The default brightness of this provider. 1.0 uses the unmodified imagery color. Less than 1.0
110128
* makes the imagery darker while greater than 1.0 makes it brighter.
111129
*
112-
* @type {Number}
130+
* @type {Number|undefined}
113131
* @default undefined
114132
*/
115133
this.defaultBrightness = undefined;
@@ -118,15 +136,15 @@ function GoogleEarthEnterpriseImageryProvider(options) {
118136
* The default contrast of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces
119137
* the contrast while greater than 1.0 increases it.
120138
*
121-
* @type {Number}
139+
* @type {Number|undefined}
122140
* @default undefined
123141
*/
124142
this.defaultContrast = undefined;
125143

126144
/**
127145
* The default hue of this provider in radians. 0.0 uses the unmodified imagery color.
128146
*
129-
* @type {Number}
147+
* @type {Number|undefined}
130148
* @default undefined
131149
*/
132150
this.defaultHue = undefined;
@@ -135,15 +153,15 @@ function GoogleEarthEnterpriseImageryProvider(options) {
135153
* The default saturation of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces the
136154
* saturation while greater than 1.0 increases it.
137155
*
138-
* @type {Number}
156+
* @type {Number|undefined}
139157
* @default undefined
140158
*/
141159
this.defaultSaturation = undefined;
142160

143161
/**
144162
* The default gamma correction to apply to this provider. 1.0 uses the unmodified imagery color.
145163
*
146-
* @type {Number}
164+
* @type {Number|undefined}
147165
* @default undefined
148166
*/
149167
this.defaultGamma = undefined;
@@ -315,7 +333,7 @@ Object.defineProperties(GoogleEarthEnterpriseImageryProvider.prototype, {
315333
* Gets the maximum level-of-detail that can be requested. This function should
316334
* not be called before {@link GoogleEarthEnterpriseImageryProvider#ready} returns true.
317335
* @memberof GoogleEarthEnterpriseImageryProvider.prototype
318-
* @type {Number}
336+
* @type {Number|undefined}
319337
* @readonly
320338
*/
321339
maximumLevel: {

0 commit comments

Comments
 (0)