@itwin/core-common 3.0.0-dev.98 → 3.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/CHANGELOG.md +158 -17
- package/LICENSE.md +1 -1
- package/lib/cjs/BackgroundMapSettings.d.ts +1 -1
- package/lib/cjs/BackgroundMapSettings.d.ts.map +1 -1
- package/lib/cjs/BackgroundMapSettings.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.d.ts +28 -11
- package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
- package/lib/cjs/ConcurrentQuery.js +26 -12
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/ContextRealityModel.d.ts +36 -16
- package/lib/cjs/ContextRealityModel.d.ts.map +1 -1
- package/lib/cjs/ContextRealityModel.js +46 -7
- package/lib/cjs/ContextRealityModel.js.map +1 -1
- package/lib/cjs/DisplayStyleSettings.d.ts +30 -24
- package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
- package/lib/cjs/DisplayStyleSettings.js +43 -16
- package/lib/cjs/DisplayStyleSettings.js.map +1 -1
- package/lib/cjs/ECSqlReader.d.ts +17 -5
- package/lib/cjs/ECSqlReader.d.ts.map +1 -1
- package/lib/cjs/ECSqlReader.js +55 -22
- package/lib/cjs/ECSqlReader.js.map +1 -1
- package/lib/cjs/ECSqlTypes.d.ts +3 -3
- package/lib/cjs/ECSqlTypes.js +3 -3
- package/lib/cjs/ECSqlTypes.js.map +1 -1
- package/lib/cjs/EntityProps.d.ts +8 -1
- package/lib/cjs/EntityProps.d.ts.map +1 -1
- package/lib/cjs/EntityProps.js.map +1 -1
- package/lib/cjs/Environment.d.ts +61 -0
- package/lib/cjs/Environment.d.ts.map +1 -0
- package/lib/cjs/Environment.js +74 -0
- package/lib/cjs/Environment.js.map +1 -0
- package/lib/cjs/FeatureSymbology.d.ts +97 -18
- package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
- package/lib/cjs/FeatureSymbology.js +83 -27
- package/lib/cjs/FeatureSymbology.js.map +1 -1
- package/lib/cjs/GeoCoordinateServices.d.ts +66 -1
- package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
- package/lib/cjs/GeoCoordinateServices.js +39 -1
- package/lib/cjs/GeoCoordinateServices.js.map +1 -1
- package/lib/cjs/Gradient.d.ts.map +1 -1
- package/lib/cjs/Gradient.js +10 -0
- package/lib/cjs/Gradient.js.map +1 -1
- package/lib/cjs/GroundPlane.d.ts +26 -15
- package/lib/cjs/GroundPlane.d.ts.map +1 -1
- package/lib/cjs/GroundPlane.js +40 -39
- package/lib/cjs/GroundPlane.js.map +1 -1
- package/lib/cjs/IModel.d.ts +33 -4
- package/lib/cjs/IModel.d.ts.map +1 -1
- package/lib/cjs/IModel.js +27 -10
- package/lib/cjs/IModel.js.map +1 -1
- package/lib/cjs/Localization.d.ts +1 -1
- package/lib/cjs/Localization.js.map +1 -1
- package/lib/cjs/MapLayerSettings.d.ts +2 -2
- package/lib/cjs/MapLayerSettings.js +2 -2
- package/lib/cjs/MapLayerSettings.js.map +1 -1
- package/lib/cjs/NativeAppProps.d.ts +2 -36
- package/lib/cjs/NativeAppProps.d.ts.map +1 -1
- package/lib/cjs/NativeAppProps.js.map +1 -1
- package/lib/cjs/PlanarClipMask.d.ts +73 -8
- package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
- package/lib/cjs/PlanarClipMask.js +17 -24
- package/lib/cjs/PlanarClipMask.js.map +1 -1
- package/lib/cjs/RealityDataAccessProps.d.ts +42 -0
- package/lib/cjs/RealityDataAccessProps.d.ts.map +1 -0
- package/lib/cjs/RealityDataAccessProps.js +20 -0
- package/lib/cjs/RealityDataAccessProps.js.map +1 -0
- package/lib/cjs/RenderSchedule.d.ts +4 -0
- package/lib/cjs/RenderSchedule.d.ts.map +1 -1
- package/lib/cjs/RenderSchedule.js +5 -1
- package/lib/cjs/RenderSchedule.js.map +1 -1
- package/lib/cjs/RenderTexture.d.ts +8 -1
- package/lib/cjs/RenderTexture.d.ts.map +1 -1
- package/lib/cjs/RenderTexture.js.map +1 -1
- package/lib/cjs/SkyBox.d.ts +142 -34
- package/lib/cjs/SkyBox.d.ts.map +1 -1
- package/lib/cjs/SkyBox.js +192 -6
- package/lib/cjs/SkyBox.js.map +1 -1
- package/lib/cjs/TextureProps.d.ts +21 -2
- package/lib/cjs/TextureProps.d.ts.map +1 -1
- package/lib/cjs/TextureProps.js +19 -0
- package/lib/cjs/TextureProps.js.map +1 -1
- package/lib/cjs/ThematicDisplay.d.ts +6 -0
- package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
- package/lib/cjs/ThematicDisplay.js +26 -0
- package/lib/cjs/ThematicDisplay.js.map +1 -1
- package/lib/cjs/TileProps.d.ts +6 -0
- package/lib/cjs/TileProps.d.ts.map +1 -1
- package/lib/cjs/TileProps.js.map +1 -1
- package/lib/cjs/ViewFlags.d.ts +8 -0
- package/lib/cjs/ViewFlags.d.ts.map +1 -1
- package/lib/cjs/ViewFlags.js +30 -10
- package/lib/cjs/ViewFlags.js.map +1 -1
- package/lib/cjs/core-common.d.ts +7 -0
- package/lib/cjs/core-common.d.ts.map +1 -1
- package/lib/cjs/core-common.js +7 -0
- package/lib/cjs/core-common.js.map +1 -1
- package/lib/cjs/geometry/AdditionalTransform.d.ts +1 -1
- package/lib/cjs/geometry/AdditionalTransform.js +1 -1
- package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
- package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts +25 -10
- package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
- package/lib/cjs/geometry/CoordinateReferenceSystem.js +9 -7
- package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/cjs/geometry/FrustumPlanes.d.ts +1 -1
- package/lib/cjs/geometry/FrustumPlanes.d.ts.map +1 -1
- package/lib/cjs/geometry/FrustumPlanes.js +26 -13
- package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
- package/lib/cjs/geometry/GeometryStream.d.ts +3 -3
- package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
- package/lib/cjs/geometry/GeometryStream.js.map +1 -1
- package/lib/cjs/ipc/IpcWebSocket.d.ts +12 -5
- package/lib/cjs/ipc/IpcWebSocket.d.ts.map +1 -1
- package/lib/cjs/ipc/IpcWebSocket.js +32 -8
- package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
- package/lib/cjs/ipc/IpcWebSocketTransport.d.ts +15 -0
- package/lib/cjs/ipc/IpcWebSocketTransport.d.ts.map +1 -0
- package/lib/cjs/ipc/IpcWebSocketTransport.js +142 -0
- package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -0
- package/lib/cjs/rpc/core/RpcInvocation.d.ts +4 -4
- package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcInvocation.js +3 -1
- package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/cjs/tile/ElementGraphics.d.ts +5 -1
- package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
- package/lib/cjs/tile/ElementGraphics.js.map +1 -1
- package/lib/cjs/tile/GltfTileIO.d.ts +16 -79
- package/lib/cjs/tile/GltfTileIO.d.ts.map +1 -1
- package/lib/cjs/tile/GltfTileIO.js +72 -153
- package/lib/cjs/tile/GltfTileIO.js.map +1 -1
- package/lib/cjs/tile/TileMetadata.d.ts +20 -8
- package/lib/cjs/tile/TileMetadata.d.ts.map +1 -1
- package/lib/cjs/tile/TileMetadata.js +50 -53
- package/lib/cjs/tile/TileMetadata.js.map +1 -1
- package/lib/esm/BackgroundMapSettings.d.ts +1 -1
- package/lib/esm/BackgroundMapSettings.d.ts.map +1 -1
- package/lib/esm/BackgroundMapSettings.js.map +1 -1
- package/lib/esm/ConcurrentQuery.d.ts +28 -11
- package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
- package/lib/esm/ConcurrentQuery.js +26 -12
- package/lib/esm/ConcurrentQuery.js.map +1 -1
- package/lib/esm/ContextRealityModel.d.ts +36 -16
- package/lib/esm/ContextRealityModel.d.ts.map +1 -1
- package/lib/esm/ContextRealityModel.js +45 -6
- package/lib/esm/ContextRealityModel.js.map +1 -1
- package/lib/esm/DisplayStyleSettings.d.ts +30 -24
- package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
- package/lib/esm/DisplayStyleSettings.js +43 -16
- package/lib/esm/DisplayStyleSettings.js.map +1 -1
- package/lib/esm/ECSqlReader.d.ts +17 -5
- package/lib/esm/ECSqlReader.d.ts.map +1 -1
- package/lib/esm/ECSqlReader.js +56 -23
- package/lib/esm/ECSqlReader.js.map +1 -1
- package/lib/esm/ECSqlTypes.d.ts +3 -3
- package/lib/esm/ECSqlTypes.js +3 -3
- package/lib/esm/ECSqlTypes.js.map +1 -1
- package/lib/esm/EntityProps.d.ts +8 -1
- package/lib/esm/EntityProps.d.ts.map +1 -1
- package/lib/esm/EntityProps.js.map +1 -1
- package/lib/esm/Environment.d.ts +61 -0
- package/lib/esm/Environment.d.ts.map +1 -0
- package/lib/esm/Environment.js +70 -0
- package/lib/esm/Environment.js.map +1 -0
- package/lib/esm/FeatureSymbology.d.ts +97 -18
- package/lib/esm/FeatureSymbology.d.ts.map +1 -1
- package/lib/esm/FeatureSymbology.js +84 -28
- package/lib/esm/FeatureSymbology.js.map +1 -1
- package/lib/esm/GeoCoordinateServices.d.ts +66 -1
- package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
- package/lib/esm/GeoCoordinateServices.js +39 -1
- package/lib/esm/GeoCoordinateServices.js.map +1 -1
- package/lib/esm/Gradient.d.ts.map +1 -1
- package/lib/esm/Gradient.js +10 -0
- package/lib/esm/Gradient.js.map +1 -1
- package/lib/esm/GroundPlane.d.ts +26 -15
- package/lib/esm/GroundPlane.d.ts.map +1 -1
- package/lib/esm/GroundPlane.js +40 -39
- package/lib/esm/GroundPlane.js.map +1 -1
- package/lib/esm/IModel.d.ts +33 -4
- package/lib/esm/IModel.d.ts.map +1 -1
- package/lib/esm/IModel.js +27 -10
- package/lib/esm/IModel.js.map +1 -1
- package/lib/esm/Localization.d.ts +1 -1
- package/lib/esm/Localization.js.map +1 -1
- package/lib/esm/MapLayerSettings.d.ts +2 -2
- package/lib/esm/MapLayerSettings.js +2 -2
- package/lib/esm/MapLayerSettings.js.map +1 -1
- package/lib/esm/NativeAppProps.d.ts +2 -36
- package/lib/esm/NativeAppProps.d.ts.map +1 -1
- package/lib/esm/NativeAppProps.js.map +1 -1
- package/lib/esm/PlanarClipMask.d.ts +73 -8
- package/lib/esm/PlanarClipMask.d.ts.map +1 -1
- package/lib/esm/PlanarClipMask.js +17 -24
- package/lib/esm/PlanarClipMask.js.map +1 -1
- package/lib/esm/RealityDataAccessProps.d.ts +42 -0
- package/lib/esm/RealityDataAccessProps.d.ts.map +1 -0
- package/lib/esm/RealityDataAccessProps.js +17 -0
- package/lib/esm/RealityDataAccessProps.js.map +1 -0
- package/lib/esm/RenderSchedule.d.ts +4 -0
- package/lib/esm/RenderSchedule.d.ts.map +1 -1
- package/lib/esm/RenderSchedule.js +5 -1
- package/lib/esm/RenderSchedule.js.map +1 -1
- package/lib/esm/RenderTexture.d.ts +8 -1
- package/lib/esm/RenderTexture.d.ts.map +1 -1
- package/lib/esm/RenderTexture.js.map +1 -1
- package/lib/esm/SkyBox.d.ts +142 -34
- package/lib/esm/SkyBox.d.ts.map +1 -1
- package/lib/esm/SkyBox.js +187 -5
- package/lib/esm/SkyBox.js.map +1 -1
- package/lib/esm/TextureProps.d.ts +21 -2
- package/lib/esm/TextureProps.d.ts.map +1 -1
- package/lib/esm/TextureProps.js +18 -1
- package/lib/esm/TextureProps.js.map +1 -1
- package/lib/esm/ThematicDisplay.d.ts +6 -0
- package/lib/esm/ThematicDisplay.d.ts.map +1 -1
- package/lib/esm/ThematicDisplay.js +26 -0
- package/lib/esm/ThematicDisplay.js.map +1 -1
- package/lib/esm/TileProps.d.ts +6 -0
- package/lib/esm/TileProps.d.ts.map +1 -1
- package/lib/esm/TileProps.js.map +1 -1
- package/lib/esm/ViewFlags.d.ts +8 -0
- package/lib/esm/ViewFlags.d.ts.map +1 -1
- package/lib/esm/ViewFlags.js +30 -10
- package/lib/esm/ViewFlags.js.map +1 -1
- package/lib/esm/core-common.d.ts +7 -0
- package/lib/esm/core-common.d.ts.map +1 -1
- package/lib/esm/core-common.js +7 -0
- package/lib/esm/core-common.js.map +1 -1
- package/lib/esm/geometry/AdditionalTransform.d.ts +1 -1
- package/lib/esm/geometry/AdditionalTransform.js +1 -1
- package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
- package/lib/esm/geometry/CoordinateReferenceSystem.d.ts +25 -10
- package/lib/esm/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
- package/lib/esm/geometry/CoordinateReferenceSystem.js +9 -7
- package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/esm/geometry/FrustumPlanes.d.ts +1 -1
- package/lib/esm/geometry/FrustumPlanes.d.ts.map +1 -1
- package/lib/esm/geometry/FrustumPlanes.js +26 -13
- package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
- package/lib/esm/geometry/GeometryStream.d.ts +3 -3
- package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
- package/lib/esm/geometry/GeometryStream.js.map +1 -1
- package/lib/esm/ipc/IpcWebSocket.d.ts +12 -5
- package/lib/esm/ipc/IpcWebSocket.d.ts.map +1 -1
- package/lib/esm/ipc/IpcWebSocket.js +31 -6
- package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
- package/lib/esm/ipc/IpcWebSocketTransport.d.ts +15 -0
- package/lib/esm/ipc/IpcWebSocketTransport.d.ts.map +1 -0
- package/lib/esm/ipc/IpcWebSocketTransport.js +138 -0
- package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -0
- package/lib/esm/rpc/core/RpcInvocation.d.ts +4 -4
- package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcInvocation.js +3 -1
- package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/esm/tile/ElementGraphics.d.ts +5 -1
- package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
- package/lib/esm/tile/ElementGraphics.js.map +1 -1
- package/lib/esm/tile/GltfTileIO.d.ts +16 -79
- package/lib/esm/tile/GltfTileIO.d.ts.map +1 -1
- package/lib/esm/tile/GltfTileIO.js +70 -149
- package/lib/esm/tile/GltfTileIO.js.map +1 -1
- package/lib/esm/tile/TileMetadata.d.ts +20 -8
- package/lib/esm/tile/TileMetadata.d.ts.map +1 -1
- package/lib/esm/tile/TileMetadata.js +50 -53
- package/lib/esm/tile/TileMetadata.js.map +1 -1
- package/package.json +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,147 @@
|
|
|
1
1
|
# Change Log - @itwin/core-common
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 24 Jan 2022 14:00:52 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 3.0.0
|
|
6
|
+
Mon, 24 Jan 2022 14:00:52 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Add support for producing larger tiles.
|
|
11
|
+
- The Cartographic creation API now takes an interface as an argument with named properties. This will avoid callers mixing up the order of longitude, latitude, and height.
|
|
12
|
+
- improve concurrent query changes
|
|
13
|
+
- Upgrade target to ES2019 and deliver both a CommonJs and ESModule version of package
|
|
14
|
+
- Added additional documentation for ecefLocation iniModel
|
|
15
|
+
- Add support for indexed edges in tile graphics.
|
|
16
|
+
- Added non-existent property to EntityProps to make the compiler discriminate between EntityProps and Entity.
|
|
17
|
+
- Add compare method to ThematicGradientSettings. Fix Gradient.Symb.compareSymb method to also compare thematicSettings.
|
|
18
|
+
- Clean up SkyBox and GroundPlane APIs.
|
|
19
|
+
- improve getMetaData() and provide extended error codes
|
|
20
|
+
- Added support to LightSettings for Fresnel effect.
|
|
21
|
+
- Add new GeoServices class and first method to interpret WKT or complete GCS JSON."
|
|
22
|
+
- GeoCoordStatus documentation added
|
|
23
|
+
- getAccessToken always returns a token
|
|
24
|
+
- Fix frustum translate method.
|
|
25
|
+
- Make ViewFlags immutable. Simplify ViewFlagOverrides.
|
|
26
|
+
- Added LOCAL_ELLIPSOID vertical datum identifier.
|
|
27
|
+
- Added ability to convert iModel coordinates to or from any Geographic CRS
|
|
28
|
+
- rename contextId -> iTwinId
|
|
29
|
+
- MapLayerSettings.fromJSON, BaseLayerSettings.fromJSON and MapSubLayerSettings.fromJSON no longer return undefined.
|
|
30
|
+
- Fix problem with RealityDataSourceKey string convertion
|
|
31
|
+
- Promote RealityDataSource and RealityDataSourceKey API to beta and update documentation
|
|
32
|
+
- Removed internal tag from EGFBAccessors
|
|
33
|
+
- Moved RealityDataAccessProps from core-frontend to core-common
|
|
34
|
+
- FeatureOverrides now merge by default in case of conflicts.
|
|
35
|
+
- rename to @itwin/core-common
|
|
36
|
+
- Fix an import which would cause consumers of core-common to fail during build
|
|
37
|
+
- move js-base64 from devDeps to deps
|
|
38
|
+
- Improve conformance with the glTF 2.0 spec when reading glb chunks.
|
|
39
|
+
- remove ClientRequestContext and its subclasses
|
|
40
|
+
- Added AuthorizationClient
|
|
41
|
+
- Add support for inverting planar clip mask (inside vs outside)
|
|
42
|
+
- Remove deprecated APIs for 3.0.
|
|
43
|
+
- Generalize the way to attach a reality data by adding a RealityDataSourceKey to ContextRealityModelProps
|
|
44
|
+
- Enhance RealityDataSource class
|
|
45
|
+
- Replace usage of I18N with generic Localization interface.
|
|
46
|
+
- GeometryContainmentRequestProps.clip and SnapRequestProps.viewFlags use stricter type than `any`.
|
|
47
|
+
- removed deprecated apis
|
|
48
|
+
- Move map imagery provider from BackgroundMapSettings to MapImagerySettings.backgroundBase.
|
|
49
|
+
- remove IModelWriteRpcInterface
|
|
50
|
+
- Rename AnalysisStyleScalar to AnalysisStyleThematic
|
|
51
|
+
- Rename AnalysisStyleScalar to AnalysisStyleThematic.
|
|
52
|
+
- remove ClientRequestContext.current
|
|
53
|
+
- rework locks
|
|
54
|
+
- Fix for IModel._ecefTrans not being updated when setting IModel._ecefLocation.
|
|
55
|
+
- Deprecate RenderTexture.Params
|
|
56
|
+
- Renamed an iModel's parent container to iTwin
|
|
57
|
+
- Support Open City Planner (OCP) that stores orbit point clouds (OPC) in their own azure environment.
|
|
58
|
+
- FeatureAppearance transparency override by default ignores render mode and transparency view flag.
|
|
59
|
+
- Adding WebEditServer (test scenarios only for now)
|
|
60
|
+
- Concurrency fix within web IPC transport system.
|
|
61
|
+
- Add ViewFlags.wiremesh to control wiremesh display.
|
|
62
|
+
|
|
63
|
+
## 2.19.28
|
|
64
|
+
Wed, 12 Jan 2022 14:52:38 GMT
|
|
65
|
+
|
|
66
|
+
_Version update only_
|
|
67
|
+
|
|
68
|
+
## 2.19.27
|
|
69
|
+
Wed, 05 Jan 2022 20:07:20 GMT
|
|
70
|
+
|
|
71
|
+
### Updates
|
|
72
|
+
|
|
73
|
+
- Add compare method to ThematicGradientSettings. Fix Gradient.Symb.compareSymb method to also compare thematicSettings.
|
|
74
|
+
|
|
75
|
+
## 2.19.26
|
|
76
|
+
Wed, 08 Dec 2021 20:54:52 GMT
|
|
77
|
+
|
|
78
|
+
_Version update only_
|
|
79
|
+
|
|
80
|
+
## 2.19.25
|
|
81
|
+
Fri, 03 Dec 2021 20:05:49 GMT
|
|
82
|
+
|
|
83
|
+
_Version update only_
|
|
84
|
+
|
|
85
|
+
## 2.19.24
|
|
86
|
+
Mon, 29 Nov 2021 18:44:31 GMT
|
|
87
|
+
|
|
88
|
+
_Version update only_
|
|
89
|
+
|
|
90
|
+
## 2.19.23
|
|
91
|
+
Mon, 22 Nov 2021 20:41:39 GMT
|
|
92
|
+
|
|
93
|
+
_Version update only_
|
|
94
|
+
|
|
95
|
+
## 2.19.22
|
|
96
|
+
Wed, 17 Nov 2021 01:23:26 GMT
|
|
97
|
+
|
|
98
|
+
_Version update only_
|
|
99
|
+
|
|
100
|
+
## 2.19.21
|
|
101
|
+
Wed, 10 Nov 2021 10:58:24 GMT
|
|
102
|
+
|
|
103
|
+
_Version update only_
|
|
104
|
+
|
|
105
|
+
## 2.19.20
|
|
106
|
+
Fri, 29 Oct 2021 16:14:22 GMT
|
|
107
|
+
|
|
108
|
+
_Version update only_
|
|
109
|
+
|
|
110
|
+
## 2.19.19
|
|
111
|
+
Mon, 25 Oct 2021 16:16:25 GMT
|
|
112
|
+
|
|
113
|
+
_Version update only_
|
|
114
|
+
|
|
115
|
+
## 2.19.18
|
|
116
|
+
Thu, 21 Oct 2021 20:59:44 GMT
|
|
117
|
+
|
|
118
|
+
### Updates
|
|
119
|
+
|
|
120
|
+
- Backport from PR#2451 enable reprojection and merge
|
|
121
|
+
|
|
122
|
+
## 2.19.17
|
|
123
|
+
Thu, 14 Oct 2021 21:19:43 GMT
|
|
124
|
+
|
|
125
|
+
### Updates
|
|
126
|
+
|
|
127
|
+
- Support Open City Planner (OCP) that stores orbit point clouds (OPC) in their own azure environment.
|
|
128
|
+
|
|
129
|
+
## 2.19.16
|
|
130
|
+
Mon, 11 Oct 2021 17:37:46 GMT
|
|
131
|
+
|
|
132
|
+
_Version update only_
|
|
133
|
+
|
|
134
|
+
## 2.19.15
|
|
135
|
+
Fri, 08 Oct 2021 16:44:23 GMT
|
|
136
|
+
|
|
137
|
+
### Updates
|
|
138
|
+
|
|
139
|
+
- Add a new property to ContextRealityModelState named rdSourecKey that provide a new way of attaching Reality Data that will resolve tilesetUrl at runtime.
|
|
140
|
+
|
|
141
|
+
## 2.19.14
|
|
142
|
+
Fri, 01 Oct 2021 13:07:03 GMT
|
|
143
|
+
|
|
144
|
+
_Version update only_
|
|
4
145
|
|
|
5
146
|
## 2.19.13
|
|
6
147
|
Tue, 21 Sep 2021 21:06:40 GMT
|
|
@@ -110,8 +251,8 @@ Fri, 09 Jul 2021 18:11:24 GMT
|
|
|
110
251
|
|
|
111
252
|
### Updates
|
|
112
253
|
|
|
113
|
-
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
114
|
-
- Use ecef location calculated for projected models.
|
|
254
|
+
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
255
|
+
- Use ecef location calculated for projected models.
|
|
115
256
|
- Clean up and promote AnalysisStyle APIs.
|
|
116
257
|
- Added support for section clip to ElementGraphicsRequestProps.
|
|
117
258
|
- Add internal API for reconstructing TileOptions from tree and content Ids.
|
|
@@ -377,7 +518,7 @@ Thu, 28 Jan 2021 13:39:27 GMT
|
|
|
377
518
|
### Updates
|
|
378
519
|
|
|
379
520
|
- Fix brep DataProps to/from flatbuffer to account for base64 string header.
|
|
380
|
-
- Element geometry creation by brep operations.
|
|
521
|
+
- Element geometry creation by brep operations.
|
|
381
522
|
- add EditCommand
|
|
382
523
|
- Improve ElementGeometry documentation.
|
|
383
524
|
- Remove assertion in supplyPathForOperation when defaulting changeSetId.
|
|
@@ -533,8 +674,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
|
|
|
533
674
|
|
|
534
675
|
- Add documentation for ContextRealityModelProps.
|
|
535
676
|
- Fix calculation of cartographic range.
|
|
536
|
-
- Fixes to front end methods to pull, merge and push.
|
|
537
|
-
- Fixed desktop authorization after recent changes.
|
|
677
|
+
- Fixes to front end methods to pull, merge and push.
|
|
678
|
+
- Fixed desktop authorization after recent changes.
|
|
538
679
|
- Update Tile version due to changes to indexes for tesselated polylines
|
|
539
680
|
- On iOS download in background
|
|
540
681
|
- Introduce NoContentError (transmitted via 204)
|
|
@@ -666,7 +807,7 @@ Fri, 10 Jul 2020 17:23:14 GMT
|
|
|
666
807
|
- Add ability to create selective overrides from display style settings, and apply the overrides to another settings.
|
|
667
808
|
- Fix orientation of Ecef.createFromCartographicOrigin
|
|
668
809
|
- Add non-locatable flag to TerrainSettings.
|
|
669
|
-
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
810
|
+
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
670
811
|
- Support for multiple RPC interface clients and attaching interfaces after startup.
|
|
671
812
|
- Add function to convert solar angles to solar direction.
|
|
672
813
|
- enforce max texture size for stepped gradients.
|
|
@@ -700,7 +841,7 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
|
700
841
|
### Updates
|
|
701
842
|
|
|
702
843
|
- Improved log message written on rpc error
|
|
703
|
-
- Change default origin mode for terrain to Geodetic.
|
|
844
|
+
- Change default origin mode for terrain to Geodetic.
|
|
704
845
|
- Fix transforms for creating and querying part instance geometry in world coordinate.
|
|
705
846
|
- channel rules
|
|
706
847
|
- Optimize thematic sensor display by culling sensors based on a distanceCutoff property on ThematicDisplaySensorSettings.
|
|
@@ -715,7 +856,7 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
715
856
|
- Show min/max window error for mouse wheel zoom.
|
|
716
857
|
- Make animation state of a display style persistent.
|
|
717
858
|
- Send a default pending message since Azure strips content-type header if no data is present
|
|
718
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
859
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
719
860
|
- Added to DisplayStyle3dSettings: MonochromeMode, LightSettings.
|
|
720
861
|
- Simplify GeometryStreamIteratorEntry (breaking API change).
|
|
721
862
|
- constructor of ColorDef wasn't setting transparency properly for rgba() strings
|
|
@@ -738,11 +879,11 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
738
879
|
- Added file size.
|
|
739
880
|
- Supply RPC routing props for SnapshotIModelRpcInterface open methods"
|
|
740
881
|
- MobileRpcConfiguration throws exception
|
|
741
|
-
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
742
|
-
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
743
|
-
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
882
|
+
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
883
|
+
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
884
|
+
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
744
885
|
- Added new interface for native app
|
|
745
|
-
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
886
|
+
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
746
887
|
- Handle null JSON in ViewDetails.
|
|
747
888
|
- Renamed OIDC constructs for consistency; Removed SAML support.
|
|
748
889
|
- OrbitGT point cloud interface.
|
|
@@ -792,7 +933,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
792
933
|
- iModel write API development
|
|
793
934
|
- Fix issue with constructing the tile cache URL() on Safari.
|
|
794
935
|
- Prevent reuse of cached tiles after project extents change.
|
|
795
|
-
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
936
|
+
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
796
937
|
- Define ViewDetails for manipulating optional detail settings of ViewDefinition and ViewState.
|
|
797
938
|
- Add support for plan projection models with 3d display priority.
|
|
798
939
|
- Add settings to control display of plan projection models.
|
|
@@ -954,7 +1095,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
954
1095
|
|
|
955
1096
|
### Updates
|
|
956
1097
|
|
|
957
|
-
- Support spatial classification of context reality models.
|
|
1098
|
+
- Support spatial classification of context reality models.
|
|
958
1099
|
- Added OpenAPIInfo to the barrel file
|
|
959
1100
|
- Adds parameter for api-extractor to validate missing release tags
|
|
960
1101
|
- Adds ignoreMissingTags flag
|
|
@@ -967,14 +1108,14 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
967
1108
|
- LoggerCategory -> CommonLoggerCategory
|
|
968
1109
|
- Fix default line pattern for hidden edges.
|
|
969
1110
|
- Introduce LoggerCategory enum to advertise logger categories used by this package.
|
|
970
|
-
- Logging fixes.
|
|
1111
|
+
- Logging fixes.
|
|
971
1112
|
- Put sourcemap in npm package.
|
|
972
1113
|
- Add SVG to ImageSourceFormat
|
|
973
1114
|
- Add imodeljs-markup
|
|
974
1115
|
- New tile cache naming scheme.
|
|
975
1116
|
- queryPage use memoization/pending pattern
|
|
976
1117
|
- Remove StandaloneIModelRpcInterface
|
|
977
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1118
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
978
1119
|
- Prefer the IModelToken values in the url (if different from values in JSON body -- should never happen except in a malicious request).
|
|
979
1120
|
- Exports interface MarshalingBinaryMarker to prevent errors in api-extractor V7
|
|
980
1121
|
- Add SnapshotIModelRpcInterface
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2017-
|
|
3
|
+
Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
|
@@ -86,7 +86,7 @@ export declare class BackgroundMapSettings {
|
|
|
86
86
|
readonly useDepthBuffer: boolean;
|
|
87
87
|
/** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */
|
|
88
88
|
readonly applyTerrain: boolean;
|
|
89
|
-
/**
|
|
89
|
+
/** Settings associated with terrain display. */
|
|
90
90
|
readonly terrainSettings: TerrainSettings;
|
|
91
91
|
/** Globe display mode. */
|
|
92
92
|
readonly globeMode: GlobeMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundMapSettings.d.ts","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,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AA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,cAAc,EAAE,MAAA,YAAY,CAAC,cAAc,mCAAI,IAAI,CAAC,cAAc;YAClE,SAAS,EAAE,MAAA,YAAY,CAAC,SAAS,mCAAI,IAAI,CAAC,SAAS;YACnD,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,CAAC,IAAI,CAAC,UAAU;YAC3D,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,eAAe,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YACjJ,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,mEAAmF;AACnF,qDAA+E;AAC/E,uDAAkE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K,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YACjJ,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
|
|
@@ -8,20 +8,20 @@ import { Point2d, Point3d } from "@itwin/core-geometry";
|
|
|
8
8
|
* [IModelConnection]($frontend), [IModelDb]($backend), and [ECDb]($backend).
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
|
-
|
|
11
|
+
*/
|
|
12
12
|
export declare enum QueryRowFormat {
|
|
13
13
|
/** Each row is an object in which each non-null column value can be accessed by its name as defined in the ECSql.
|
|
14
14
|
* Null values are omitted.
|
|
15
15
|
*/
|
|
16
16
|
UseECSqlPropertyNames = 0,
|
|
17
|
-
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
18
|
-
* This format is backwards-compatible with the format produced by iModel.js version 2.x. Null values are omitted.
|
|
19
|
-
*/
|
|
20
|
-
UseJsPropertyNames = 1,
|
|
21
17
|
/** Each row is an array of values accessed by an index corresponding to the property's position in the ECSql SELECT statement.
|
|
22
18
|
* Null values are included if they are followed by a non-null column, but trailing null values at the end of the array are omitted.
|
|
23
19
|
*/
|
|
24
|
-
|
|
20
|
+
UseECSqlPropertyIndexes = 1,
|
|
21
|
+
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
22
|
+
* This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
|
|
23
|
+
*/
|
|
24
|
+
UseJsPropertyNames = 2
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Specify limit or range of rows to return
|
|
@@ -40,7 +40,7 @@ export interface QueryPropertyMetaData {
|
|
|
40
40
|
index: number;
|
|
41
41
|
jsonName: string;
|
|
42
42
|
name: string;
|
|
43
|
-
|
|
43
|
+
extendType: string;
|
|
44
44
|
typeName: string;
|
|
45
45
|
}
|
|
46
46
|
/** @beta */
|
|
@@ -101,6 +101,10 @@ export interface QueryOptions extends BaseReaderOptions {
|
|
|
101
101
|
* When true, XXXXClassId property will be returned as className.
|
|
102
102
|
* */
|
|
103
103
|
convertClassIdsToClassNames?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Determine row format.
|
|
106
|
+
*/
|
|
107
|
+
rowFormat?: QueryRowFormat;
|
|
104
108
|
}
|
|
105
109
|
/** @beta */
|
|
106
110
|
export declare type BlobRange = QueryLimit;
|
|
@@ -121,6 +125,7 @@ export declare class QueryOptionsBuilder {
|
|
|
121
125
|
setSuppressLogErrors(val: boolean): this;
|
|
122
126
|
setConvertClassIdsToNames(val: boolean): this;
|
|
123
127
|
setLimit(val: QueryLimit): this;
|
|
128
|
+
setRowFormat(val: QueryRowFormat): this;
|
|
124
129
|
}
|
|
125
130
|
/** @beta */
|
|
126
131
|
export declare class BlobOptionsBuilder {
|
|
@@ -166,19 +171,31 @@ export declare enum DbResponseKind {
|
|
|
166
171
|
}
|
|
167
172
|
/** @internal */
|
|
168
173
|
export declare enum DbResponseStatus {
|
|
169
|
-
Error = 0,
|
|
170
174
|
Done = 1,
|
|
171
175
|
Cancel = 2,
|
|
172
176
|
Partial = 3,
|
|
173
|
-
|
|
174
|
-
QueueFull = 5
|
|
177
|
+
Timeout = 4,
|
|
178
|
+
QueueFull = 5,
|
|
179
|
+
Error = 100,
|
|
180
|
+
Error_ECSql_PreparedFailed = 101,
|
|
181
|
+
Error_ECSql_StepFailed = 102,
|
|
182
|
+
Error_ECSql_RowToJsonFailed = 103,
|
|
183
|
+
Error_ECSql_BindingFailed = 104,
|
|
184
|
+
Error_BlobIO_OpenFailed = 105,
|
|
185
|
+
Error_BlobIO_OutOfRange = 106
|
|
186
|
+
}
|
|
187
|
+
/** @internal */
|
|
188
|
+
export declare enum DbValueFormat {
|
|
189
|
+
ECSqlNames = 0,
|
|
190
|
+
JsNames = 1
|
|
175
191
|
}
|
|
176
192
|
/** @internal */
|
|
177
193
|
export interface DbRequest extends BaseReaderOptions {
|
|
178
|
-
kind
|
|
194
|
+
kind?: DbRequestKind;
|
|
179
195
|
}
|
|
180
196
|
/** @internal */
|
|
181
197
|
export interface DbQueryRequest extends DbRequest, QueryOptions {
|
|
198
|
+
valueFormat?: DbValueFormat;
|
|
182
199
|
query: string;
|
|
183
200
|
args?: object;
|
|
184
201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAqB,QAAQ,
|
|
1
|
+
{"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAqB,QAAQ,EAAQ,UAAU,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;GAKG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,qB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GAAG,EAAkB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ;WAGhF,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG;CAQxD;AACD,gBAAgB;AAChB,MAAM,WAAW,iBAAiB,CAAC,QAAQ,SAAS,SAAS,EAAE,SAAS,SAAS,UAAU;IACzF,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DbQueryError = exports.DbResponseStatus = exports.DbResponseKind = exports.DbRequestKind = exports.QueryBinder = exports.BlobOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryRowFormat = void 0;
|
|
3
|
+
exports.DbQueryError = exports.DbValueFormat = exports.DbResponseStatus = exports.DbResponseKind = exports.DbRequestKind = exports.QueryBinder = exports.BlobOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryRowFormat = void 0;
|
|
4
4
|
/*---------------------------------------------------------------------------------------------
|
|
5
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -15,21 +15,21 @@ const core_geometry_1 = require("@itwin/core-geometry");
|
|
|
15
15
|
* [IModelConnection]($frontend), [IModelDb]($backend), and [ECDb]($backend).
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
|
-
|
|
18
|
+
*/
|
|
19
19
|
var QueryRowFormat;
|
|
20
20
|
(function (QueryRowFormat) {
|
|
21
21
|
/** Each row is an object in which each non-null column value can be accessed by its name as defined in the ECSql.
|
|
22
22
|
* Null values are omitted.
|
|
23
23
|
*/
|
|
24
24
|
QueryRowFormat[QueryRowFormat["UseECSqlPropertyNames"] = 0] = "UseECSqlPropertyNames";
|
|
25
|
-
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
26
|
-
* This format is backwards-compatible with the format produced by iModel.js version 2.x. Null values are omitted.
|
|
27
|
-
*/
|
|
28
|
-
QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 1] = "UseJsPropertyNames";
|
|
29
25
|
/** Each row is an array of values accessed by an index corresponding to the property's position in the ECSql SELECT statement.
|
|
30
26
|
* Null values are included if they are followed by a non-null column, but trailing null values at the end of the array are omitted.
|
|
31
27
|
*/
|
|
32
|
-
QueryRowFormat[QueryRowFormat["
|
|
28
|
+
QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
|
|
29
|
+
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
30
|
+
* This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
|
|
31
|
+
*/
|
|
32
|
+
QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
|
|
33
33
|
})(QueryRowFormat = exports.QueryRowFormat || (exports.QueryRowFormat = {}));
|
|
34
34
|
/** @public */
|
|
35
35
|
class QueryOptionsBuilder {
|
|
@@ -45,6 +45,7 @@ class QueryOptionsBuilder {
|
|
|
45
45
|
setSuppressLogErrors(val) { this._options.suppressLogErrors = val; return this; }
|
|
46
46
|
setConvertClassIdsToNames(val) { this._options.convertClassIdsToClassNames = val; return this; }
|
|
47
47
|
setLimit(val) { this._options.limit = val; return this; }
|
|
48
|
+
setRowFormat(val) { this._options.rowFormat = val; return this; }
|
|
48
49
|
}
|
|
49
50
|
exports.QueryOptionsBuilder = QueryOptionsBuilder;
|
|
50
51
|
/** @beta */
|
|
@@ -143,10 +144,11 @@ class QueryBinder {
|
|
|
143
144
|
bindIdSet(indexOrName, val) {
|
|
144
145
|
this.verify(indexOrName);
|
|
145
146
|
const name = String(indexOrName);
|
|
147
|
+
core_bentley_1.OrderedId64Iterable.uniqueIterator(val);
|
|
146
148
|
Object.defineProperty(this._args, name, {
|
|
147
149
|
enumerable: true, value: {
|
|
148
150
|
type: QueryParamType.IdSet,
|
|
149
|
-
value: core_bentley_1.CompressedId64Set.
|
|
151
|
+
value: core_bentley_1.CompressedId64Set.sortAndCompress(core_bentley_1.OrderedId64Iterable.uniqueIterator(val)),
|
|
150
152
|
},
|
|
151
153
|
});
|
|
152
154
|
return this;
|
|
@@ -247,7 +249,7 @@ class QueryBinder {
|
|
|
247
249
|
else if (val instanceof core_geometry_1.Point3d) {
|
|
248
250
|
params.bindPoint3d(nameOrId, val);
|
|
249
251
|
}
|
|
250
|
-
else if (val instanceof
|
|
252
|
+
else if (val instanceof Array && val.length > 0 && typeof val[0] === "string" && core_bentley_1.Id64.isValidId64(val[0])) {
|
|
251
253
|
params.bindIdSet(nameOrId, val);
|
|
252
254
|
}
|
|
253
255
|
else if (typeof val === "object" && !Array.isArray(val)) {
|
|
@@ -296,13 +298,25 @@ var DbResponseKind;
|
|
|
296
298
|
/** @internal */
|
|
297
299
|
var DbResponseStatus;
|
|
298
300
|
(function (DbResponseStatus) {
|
|
299
|
-
DbResponseStatus[DbResponseStatus["Error"] = 0] = "Error";
|
|
300
301
|
DbResponseStatus[DbResponseStatus["Done"] = 1] = "Done";
|
|
301
302
|
DbResponseStatus[DbResponseStatus["Cancel"] = 2] = "Cancel";
|
|
302
303
|
DbResponseStatus[DbResponseStatus["Partial"] = 3] = "Partial";
|
|
303
|
-
DbResponseStatus[DbResponseStatus["
|
|
304
|
+
DbResponseStatus[DbResponseStatus["Timeout"] = 4] = "Timeout";
|
|
304
305
|
DbResponseStatus[DbResponseStatus["QueueFull"] = 5] = "QueueFull";
|
|
306
|
+
DbResponseStatus[DbResponseStatus["Error"] = 100] = "Error";
|
|
307
|
+
DbResponseStatus[DbResponseStatus["Error_ECSql_PreparedFailed"] = 101] = "Error_ECSql_PreparedFailed";
|
|
308
|
+
DbResponseStatus[DbResponseStatus["Error_ECSql_StepFailed"] = 102] = "Error_ECSql_StepFailed";
|
|
309
|
+
DbResponseStatus[DbResponseStatus["Error_ECSql_RowToJsonFailed"] = 103] = "Error_ECSql_RowToJsonFailed";
|
|
310
|
+
DbResponseStatus[DbResponseStatus["Error_ECSql_BindingFailed"] = 104] = "Error_ECSql_BindingFailed";
|
|
311
|
+
DbResponseStatus[DbResponseStatus["Error_BlobIO_OpenFailed"] = 105] = "Error_BlobIO_OpenFailed";
|
|
312
|
+
DbResponseStatus[DbResponseStatus["Error_BlobIO_OutOfRange"] = 106] = "Error_BlobIO_OutOfRange";
|
|
305
313
|
})(DbResponseStatus = exports.DbResponseStatus || (exports.DbResponseStatus = {}));
|
|
314
|
+
/** @internal */
|
|
315
|
+
var DbValueFormat;
|
|
316
|
+
(function (DbValueFormat) {
|
|
317
|
+
DbValueFormat[DbValueFormat["ECSqlNames"] = 0] = "ECSqlNames";
|
|
318
|
+
DbValueFormat[DbValueFormat["JsNames"] = 1] = "JsNames";
|
|
319
|
+
})(DbValueFormat = exports.DbValueFormat || (exports.DbValueFormat = {}));
|
|
306
320
|
/** @public */
|
|
307
321
|
class DbQueryError extends core_bentley_1.BentleyError {
|
|
308
322
|
constructor(response, request, rc) {
|
|
@@ -311,7 +325,7 @@ class DbQueryError extends core_bentley_1.BentleyError {
|
|
|
311
325
|
this.request = request;
|
|
312
326
|
}
|
|
313
327
|
static throwIfError(response, request) {
|
|
314
|
-
if (response.status
|
|
328
|
+
if (response.status >= DbResponseStatus.Error) {
|
|
315
329
|
throw new DbQueryError(response, request);
|
|
316
330
|
}
|
|
317
331
|
if (response.status === DbResponseStatus.Cancel) {
|