You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,11 @@
22
22
23
23
- Expand the CustomShader Sample to support real-time modification of CustomShader. [#12702](https://github.com/CesiumGS/cesium/pull/12702)
24
24
- Add wrapR property to Sampler and Texture3D, to support the newly added third dimension wrap.[#12701](https://github.com/CesiumGS/cesium/pull/12701)
25
+
- Added the ability to load a specific changeset for iTwin Mesh Exports using `ITwinData.createTilesetFromIModelId` [#12778](https://github.com/CesiumGS/cesium/issues/12778)
26
+
27
+
#### Deprecated :hourglass_flowing_sand:
28
+
29
+
- Updated all of the `ITwinData.*` functions to accept an `options` parameter instead of individual arguments to avoid confusion with multiple optional arguments. There is a fallback to the old signature that will be removed in 1.133 [#12778](https://github.com/CesiumGS/cesium/issues/12778)
Copy file name to clipboardExpand all lines: packages/engine/Source/Core/ITwinPlatform.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -153,13 +153,17 @@ ITwinPlatform.apiEndpoint = new Resource({
153
153
* @private
154
154
*
155
155
* @param {string} iModelId iModel id
156
+
* @param {string} [changesetId] The id of the changeset to filter results by. If not provided, exports from the latest available changesets will be returned.
156
157
* @returns {Promise<GetExportsResponse>}
157
158
*
158
159
* @throws {RuntimeError} If the iTwin API request is not successful
* Methods for loading iTwin platform data into CesiumJS
@@ -25,23 +26,40 @@ const ITwinData = {};
25
26
* We recommend waiting 10-20 seconds and trying to load the tileset again.
26
27
* If all exports are Invalid this will throw an error.
27
28
*
29
+
* See the {@link https://developer.bentley.com/apis/mesh-export/overview/|iTwin Platform Mesh Export API documentation} for more information on request parameters
* @experimental This feature is not final and is subject to change without Cesium's standard deprecation policy.
35
38
*
36
-
* @param {string} iModelId The id of the iModel to load
37
-
* @param {Cesium3DTileset.ConstructorOptions} [options] Object containing options to pass to the internally created {@link Cesium3DTileset}.
39
+
* @param {Object} options
40
+
* @param {string} options.iModelId The id of the iModel to load
41
+
* @param {Cesium3DTileset.ConstructorOptions} [options.tilesetOptions] Object containing options to pass to the internally created {@link Cesium3DTileset}.
42
+
* @param {string} [options.changesetId] The id of the changeset to load, if not provided the latest changesets will be used
38
43
* @returns {Promise<Cesium3DTileset | undefined>} A promise that will resolve to the created 3D tileset or <code>undefined</code> if there is no completed export for the given iModel id
39
44
*
40
45
* @throws {RuntimeError} If all exports for the given iModel are Invalid
41
46
* @throws {RuntimeError} If the iTwin API request is not successful
"The arguments signature for ITwinData functions has changed in 1.132 in favor of a single options object. Please update your code. This fallback will be removed in 1.133",
// the old signature was (iTwinId: string, realityDataId: string, type: RealityDataType, rootDocument: string)
119
+
// grab the later arguments directly instead of in the params only for this special case
120
+
internalOptions={
121
+
iTwinId: options,
122
+
realityDataId: arguments[1],
123
+
type: arguments[2],
124
+
rootDocument: arguments[3],
125
+
};
126
+
deprecationWarning(
127
+
"ITwinData.createTilesetFromIModelId",
128
+
"The arguments signature for ITwinData functions has changed in 1.132 in favor of a single options object. Please update your code. This fallback will be removed in 1.133",
// the old signature was (iTwinId: string, realityDataId: string, type: RealityDataType, rootDocument: string)
197
+
// grab the later arguments directly instead of in the params only for this special case
198
+
internalOptions={
199
+
iTwinId: options,
200
+
realityDataId: arguments[1],
201
+
type: arguments[2],
202
+
rootDocument: arguments[3],
203
+
};
204
+
deprecationWarning(
205
+
"ITwinData.createTilesetFromIModelId",
206
+
"The arguments signature for ITwinData functions has changed in 1.132 in favor of a single options object. Please update your code. This fallback will be removed in 1.133",
// the old signature was (iTwinId: string, collectionId: string, limit: number)
271
+
// grab the later arguments directly instead of in the params only for this special case
272
+
internalOptions={
273
+
iTwinId: options,
274
+
collectionId: arguments[1],
275
+
limit: arguments[2],
276
+
};
277
+
deprecationWarning(
278
+
"ITwinData.createTilesetFromIModelId",
279
+
"The arguments signature for ITwinData functions has changed in 1.132 in favor of a single options object. Please update your code. This fallback will be removed in 1.133",
0 commit comments