Skip to content

Commit aa8dbf2

Browse files
committed
Cesium 1.125.0 [generated]
1 parent 19ed6b9 commit aa8dbf2

19 files changed

+54
-14
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ actions-toolkit.version=1.0.0
5858
browser.version=1.0.0
5959

6060
# https://www.npmjs.com/package/@cesium/engine
61-
cesium-engine.npm.version=^13.0.0
61+
cesium-engine.npm.version=^13.1.0
6262

6363
# https://www.npmjs.com/package/@cesium/widgets
64-
cesium-widgets.npm.version=^10.0.0
64+
cesium-widgets.npm.version=^10.1.0
6565

6666
# The version of kotlin-css does not follow any external dependency
6767
css.version=1.0.0

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/BoundingSphere.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package cesium.engine
66

7+
import cesium.engine.BoundingSphere.Companion.transform
78
import js.array.ReadonlyArray
89

910
/**

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/Cesium3DTileset.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ external class Cesium3DTileset(
10011001
* @property [pointCloudShading] Options for constructing a [PointCloudShading] object to control point attenuation based on geometric error and lighting.
10021002
* @property [lightColor] The light color when shading models. When `undefined` the scene's light color is used instead.
10031003
* @property [imageBasedLighting] The properties for managing image-based lighting for this tileset.
1004+
* @property [environmentMapOptions] The properties for managing dynamic environment maps on this tileset.
10041005
* @property [backFaceCulling] Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.
10051006
* Default value - `true`
10061007
* @property [enableShowOutline] Whether to enable outlines for models using the [CESIUM_primitive_outline](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline) extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.
@@ -1091,6 +1092,7 @@ external class Cesium3DTileset(
10911092
var pointCloudShading: Any?
10921093
var lightColor: Cartesian3?
10931094
var imageBasedLighting: ImageBasedLighting?
1095+
var environmentMapOptions: DynamicEnvironmentMapManager.ConstructorOptions?
10941096
var backFaceCulling: Boolean?
10951097
var enableShowOutline: Boolean?
10961098
var showOutline: Boolean?

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/DynamicEnvironmentMapManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ external class DynamicEnvironmentMapManager(
125125
* @property [enabled] If true, the environment map and related properties will continue to update.
126126
* Default value - `true`
127127
* @property [mipmapLevels] The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
128-
* Default value - `10`
128+
* Default value - `7`
129129
* @property [maximumSecondsDifference] The maximum amount of elapsed seconds before a new environment map is created.
130130
* Default value - `3600`
131131
* @property [maximumPositionEpsilon] The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/ITwinData.kt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,32 @@ external object ITwinData {
6868
type: ITwinPlatform.RealityDataType? = definedExternally,
6969
rootDocument: String? = definedExternally,
7070
): Promise<Cesium3DTileset>
71+
72+
/**
73+
* Create a data source of the correct type for the specified reality data id.
74+
* This function only works for KML and GeoJSON type data.
75+
*
76+
* If the `type` or `rootDocument` are not provided this function
77+
* will first request the full metadata for the specified reality data to fill these values.
78+
* @param [iTwinId] The id of the iTwin to load data from
79+
* @param [realityDataId] The id of the reality data to load
80+
* @param [type] The type of this reality data
81+
* @param [rootDocument] The path of the root document for this reality data
82+
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/ITwinData.html#.createDataSourceForRealityDataId">Online Documentation</a>
83+
*/
84+
@JsAsync
85+
suspend fun createDataSourceForRealityDataId(
86+
iTwinId: String,
87+
realityDataId: String,
88+
type: ITwinPlatform.RealityDataType? = definedExternally,
89+
rootDocument: String? = definedExternally,
90+
): Any /* GeoJsonDataSource | KmlDataSource */
91+
92+
@JsName("createDataSourceForRealityDataId")
93+
fun createDataSourceForRealityDataIdAsync(
94+
iTwinId: String,
95+
realityDataId: String,
96+
type: ITwinPlatform.RealityDataType? = definedExternally,
97+
rootDocument: String? = definedExternally,
98+
): Promise<Any /* GeoJsonDataSource | KmlDataSource */>
7199
}

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/ITwinPlatform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ external object ITwinPlatform {
1616
interface ExportType
1717

1818
/**
19-
* Types of Reality data
19+
* Types of Reality data. This is a partial list of types we know we can support
2020
*/
2121
interface RealityDataType
2222

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/Model.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private constructor() {
414414
*
415415
* The given name may be the name of a glTF extension, like `"EXT_example_extension"`.
416416
* If the specified extension was present in the root of the underlying glTF asset,
417-
* and a loder for the specified extension has processed the extension data, then
417+
* and a loader for the specified extension has processed the extension data, then
418418
* this will return the model representation of the extension.
419419
* @param [extensionName] The name of the extension
420420
* @return The object, or `undefined`

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/ModelGraphics.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ external class ModelGraphics {
132132
*/
133133
var imageBasedLightingFactor: Property?
134134

135+
/**
136+
* Gets or sets the [DynamicEnvironmentMapManager.ConstructorOptions] to apply to this model. This is represented as an [PropertyBag].
137+
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/ModelGraphics.html#environmentMapOptions">Online Documentation</a>
138+
*/
139+
var environmentMapOptions: PropertyBag
140+
135141
/**
136142
* A property specifying the [Cartesian3] light color when shading the model. When `undefined` the scene's light color is used instead.
137143
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/ModelGraphics.html#lightColor">Online Documentation</a>

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/Plane.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
package cesium.engine
66

7+
import cesium.engine.Plane.Companion.transform
8+
79
/**
810
* A plane in Hessian Normal Form defined by
911
* ```

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/Quaternion.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package cesium.engine
66

7+
import cesium.engine.Quaternion.Companion.convertPackedArrayForInterpolation
78
import js.array.ReadonlyArray
89

910
/**

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/RequestScheduler.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
package cesium.engine
66

7+
import cesium.engine.RequestScheduler.requestsByServer
8+
9+
710
/**
811
* The request scheduler is used to track and constrain the number of active requests in order to prioritize incoming requests. The ability
912
* to retain control over the number of requests in CesiumJS is important because due to events such as changes in the camera position,

kotlin-cesium-engine/src/jsMain/generated/cesium/engine/Resource.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package cesium.engine
66

7+
import cesium.engine.Resource.Companion.options
78
import js.buffer.ArrayBuffer
89
import js.objects.JsPlainObject
910
import js.promise.Promise

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/Animation.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package cesium.widgets
66

77
import cesium.engine.Clock
8-
import cesium.engine.ClockRange
98
import web.dom.Element
109

1110
/**

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/ComputeScreenSpacePosition.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
package cesium.widgets
44

5-
import cesium.engine.*
5+
import cesium.engine.Cartesian2
6+
import cesium.engine.Cartesian3
67

78
/**
89
* A function that converts the world position of an object to a screen space position.

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/DateFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package cesium.widgets
44

5-
import cesium.engine.*
5+
import cesium.engine.JulianDate
66

77
/**
88
* A function that formats a date for display.

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/DestinationFoundFunction.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
package cesium.widgets
44

5-
import cesium.engine.*
6-
75
/**
86
* A function that handles the result of a successful geocode.
97
* @param [viewModel] The view model.

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/TimeFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package cesium.widgets
44

5-
import cesium.engine.*
5+
import cesium.engine.JulianDate
66

77
/**
88
* A function that formats a time for display.

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/ViewerMixin.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
package cesium.widgets
44

5-
import cesium.engine.*
6-
75
/**
86
* A function that augments a Viewer instance with additional functionality.
97
* @param [viewer] The viewer instance.

kotlin-cesium-widgets/src/jsMain/generated/cesium/widgets/viewerDragDropMixin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package cesium.widgets
66

7-
import cesium.engine.*
7+
import cesium.engine.Proxy
88
import js.objects.JsPlainObject
99
import web.dom.Element
1010

0 commit comments

Comments
 (0)