@itwin/core-frontend 3.7.0-dev.2 → 3.7.0-dev.3
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 +47 -37
- package/lib/cjs/DrawingViewState.d.ts.map +1 -1
- package/lib/cjs/DrawingViewState.js +1 -0
- package/lib/cjs/DrawingViewState.js.map +1 -1
- package/lib/cjs/IModelConnection.d.ts +4 -1
- package/lib/cjs/IModelConnection.d.ts.map +1 -1
- package/lib/cjs/IModelConnection.js +7 -1
- package/lib/cjs/IModelConnection.js.map +1 -1
- package/lib/cjs/SheetViewState.d.ts.map +1 -1
- package/lib/cjs/SheetViewState.js +1 -0
- package/lib/cjs/SheetViewState.js.map +1 -1
- package/lib/cjs/ViewCreator2d.d.ts.map +1 -1
- package/lib/cjs/ViewCreator2d.js +2 -0
- package/lib/cjs/ViewCreator2d.js.map +1 -1
- package/lib/cjs/ViewCreator3d.d.ts.map +1 -1
- package/lib/cjs/ViewCreator3d.js +1 -0
- package/lib/cjs/ViewCreator3d.js.map +1 -1
- package/lib/cjs/tools/ClipViewTool.d.ts.map +1 -1
- package/lib/cjs/tools/ClipViewTool.js +5 -1
- package/lib/cjs/tools/ClipViewTool.js.map +1 -1
- package/lib/cjs/tools/ElementSetTool.d.ts.map +1 -1
- package/lib/cjs/tools/ElementSetTool.js +1 -0
- package/lib/cjs/tools/ElementSetTool.js.map +1 -1
- package/lib/esm/DrawingViewState.d.ts.map +1 -1
- package/lib/esm/DrawingViewState.js +1 -0
- package/lib/esm/DrawingViewState.js.map +1 -1
- package/lib/esm/IModelConnection.d.ts +4 -1
- package/lib/esm/IModelConnection.d.ts.map +1 -1
- package/lib/esm/IModelConnection.js +7 -1
- package/lib/esm/IModelConnection.js.map +1 -1
- package/lib/esm/SheetViewState.d.ts.map +1 -1
- package/lib/esm/SheetViewState.js +1 -0
- package/lib/esm/SheetViewState.js.map +1 -1
- package/lib/esm/ViewCreator2d.d.ts.map +1 -1
- package/lib/esm/ViewCreator2d.js +2 -0
- package/lib/esm/ViewCreator2d.js.map +1 -1
- package/lib/esm/ViewCreator3d.d.ts.map +1 -1
- package/lib/esm/ViewCreator3d.js +1 -0
- package/lib/esm/ViewCreator3d.js.map +1 -1
- package/lib/esm/tools/ClipViewTool.d.ts.map +1 -1
- package/lib/esm/tools/ClipViewTool.js +5 -1
- package/lib/esm/tools/ClipViewTool.js.map +1 -1
- package/lib/esm/tools/ElementSetTool.d.ts.map +1 -1
- package/lib/esm/tools/ElementSetTool.js +1 -0
- package/lib/esm/tools/ElementSetTool.js.map +1 -1
- package/lib/public/locales/en/CoreTools.json +4 -0
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @itwin/core-frontend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 17 Mar 2023 17:52:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 3.6.2
|
|
6
|
+
Fri, 17 Mar 2023 17:52:32 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 3.6.1
|
|
11
|
+
Fri, 24 Feb 2023 22:00:48 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 3.6.0
|
|
6
16
|
Wed, 08 Feb 2023 14:58:40 GMT
|
|
@@ -324,7 +334,7 @@ Tue, 29 Mar 2022 20:53:47 GMT
|
|
|
324
334
|
- Promote QuantityFormatter from beta to public.
|
|
325
335
|
- Now initializing Unit alternate display labels from UNIT_EXTRA_DATA. Minimal changes to support Units schema retrieval from backend iModels.
|
|
326
336
|
- Functions that fit a view to a volume accept an optional MarginOptions specifying how tightly to fit.
|
|
327
|
-
- Defaulting to the internal BasicUnitsProvider if QuantityFormatter units provider initialization fails.
|
|
337
|
+
- Defaulting to the internal BasicUnitsProvider if QuantityFormatter units provider initialization fails.
|
|
328
338
|
- Ensure view attachments referencing section drawings transform the spatial view's clip into sheet coordinates.
|
|
329
339
|
- Switched to more flexible extension api
|
|
330
340
|
- Generalize the concept of a TileUser to include types other than Viewports.
|
|
@@ -420,7 +430,7 @@ Mon, 24 Jan 2022 14:00:52 GMT
|
|
|
420
430
|
- rename to @itwin/core-frontend
|
|
421
431
|
- Support reading non-binary glTF assets.
|
|
422
432
|
- Fix non-locatable override for point clouds
|
|
423
|
-
- separate OnViewExtentsError from ViewChangeOptions
|
|
433
|
+
- separate OnViewExtentsError from ViewChangeOptions
|
|
424
434
|
- Support to open OPC file from any server
|
|
425
435
|
- Enhancements and improvements to particle systems.
|
|
426
436
|
- Removed WebAppViewer
|
|
@@ -944,7 +954,7 @@ Fri, 02 Apr 2021 13:18:42 GMT
|
|
|
944
954
|
|
|
945
955
|
- Polish up InteractiveEditingSession API and promote to beta.
|
|
946
956
|
- rework Authentication to use IpcHost
|
|
947
|
-
- Fixed isAuthorized check.
|
|
957
|
+
- Fixed isAuthorized check.
|
|
948
958
|
- Fix GPU Profiler for display-test-app
|
|
949
959
|
- Grid drawing code
|
|
950
960
|
- fixed z for edges and polylines when extended behind the eye
|
|
@@ -961,7 +971,7 @@ Fri, 02 Apr 2021 13:18:42 GMT
|
|
|
961
971
|
- Align scheduling of tile content requests more closely with capabilities of HTTP and RPC.
|
|
962
972
|
- Support for Bump Tool Settings
|
|
963
973
|
- Add missing ViewState.viewFlags setter.
|
|
964
|
-
- Simplified web app signIn, following the pattern established for desktops. The logic for silent signin has now been moved to WebViewerApp.
|
|
974
|
+
- Simplified web app signIn, following the pattern established for desktops. The logic for silent signin has now been moved to WebViewerApp.
|
|
965
975
|
|
|
966
976
|
## 2.13.0
|
|
967
977
|
Tue, 09 Mar 2021 20:28:13 GMT
|
|
@@ -1266,8 +1276,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
|
|
|
1266
1276
|
|
|
1267
1277
|
- Added MapLayerSettingsService to persist custom map sources between sessions for same project/model
|
|
1268
1278
|
- Support authorization via URL suffix for Cesium ion. Handle PBR texture.
|
|
1269
|
-
- Fixes to front end methods to pull, merge and push.
|
|
1270
|
-
- Fixed desktop authorization after recent changes.
|
|
1279
|
+
- Fixes to front end methods to pull, merge and push.
|
|
1280
|
+
- Fixed desktop authorization after recent changes.
|
|
1271
1281
|
- Support literal double-quote characters in quoted key-in arguments.
|
|
1272
1282
|
- Restore reality model and schedule script init - inadvertently removed.
|
|
1273
1283
|
- Generate normals for 3d view decorations.
|
|
@@ -1364,7 +1374,7 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
|
1364
1374
|
|
|
1365
1375
|
### Updates
|
|
1366
1376
|
|
|
1367
|
-
- Change to use toast message to inform user of extension loaded.
|
|
1377
|
+
- Change to use toast message to inform user of extension loaded.
|
|
1368
1378
|
- Decorators can now optionally have their decorations cached to achieve a potential performance benefit.
|
|
1369
1379
|
- Introduce IModelApp security options (including CSRF protection).
|
|
1370
1380
|
- Fixed Web Accessibility issues
|
|
@@ -1502,7 +1512,7 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1502
1512
|
|
|
1503
1513
|
### Updates
|
|
1504
1514
|
|
|
1505
|
-
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1515
|
+
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1506
1516
|
- Add a peerDependency on @bentley/extension-client
|
|
1507
1517
|
- lookAtViewAlignedVolume should adjust view delta for limits and not fail.
|
|
1508
1518
|
- Show min/max window error for mouse wheel zoom.
|
|
@@ -1515,7 +1525,7 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1515
1525
|
- `IModelApp.shutdown()` is now async.
|
|
1516
1526
|
- Make locate work for background map with depth turned off.
|
|
1517
1527
|
- Setup initialization of briefcase cache for offline workflows. (VSTS#286489)
|
|
1518
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1528
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1519
1529
|
- Introduce BriefcaseConnection, make IModelConnection abstract
|
|
1520
1530
|
- Remove ^ for ulas client dep in the frontend"
|
|
1521
1531
|
- Improve performance of shadow display on macOS by avoiding frequent calls to gl.getParameter().
|
|
@@ -1528,7 +1538,7 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1528
1538
|
- WebGL Compatibility functionality moved to webgl-compatibility package
|
|
1529
1539
|
- Added support for backward slashes in erroneous URLs of Reality Data in PW Context Share
|
|
1530
1540
|
- Reality models now cast and receive solar shadows.
|
|
1531
|
-
- NativeApp.deleteBriefcase should work in offline scenarios.
|
|
1541
|
+
- NativeApp.deleteBriefcase should work in offline scenarios.
|
|
1532
1542
|
- Dont reproject tiles if GeoLocation from tool.
|
|
1533
1543
|
- Support for progress/cancel from ios
|
|
1534
1544
|
- Ensure view decorations are scaled based on device-pixel ratio.
|
|
@@ -1572,14 +1582,14 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1572
1582
|
- Ensure the view updates in response to changes to terrain transparency.
|
|
1573
1583
|
- openBriefcase should not access internet.
|
|
1574
1584
|
- Fix material color inappropriately being applied in SolidFill mode when feature symbology overrides are in effect.
|
|
1575
|
-
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1576
|
-
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1577
|
-
- Differentiated RemoteBriefcaseConnection-s from LocalBriefcaseConnection-s for use in web and native applications. These are now sub-classes of the abstract base class BriefcaseConnection.
|
|
1578
|
-
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1585
|
+
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1586
|
+
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1587
|
+
- Differentiated RemoteBriefcaseConnection-s from LocalBriefcaseConnection-s for use in web and native applications. These are now sub-classes of the abstract base class BriefcaseConnection.
|
|
1588
|
+
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1579
1589
|
- add new interface for native app
|
|
1580
|
-
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1590
|
+
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1581
1591
|
- initialize connectivity status on NativeApp.startup() and unregister callback on NativeApp.shutdown()
|
|
1582
|
-
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1592
|
+
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1583
1593
|
- Remove named clip code, we ended up not wanting to save clips independent of saved views.
|
|
1584
1594
|
- Renamed OIDC constructs for consistency; Removed SAML support.
|
|
1585
1595
|
- Support OrbitGT point cloud dislay.
|
|
@@ -1593,7 +1603,7 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1593
1603
|
- Ensure unused tile trees are purged at regular intervals.
|
|
1594
1604
|
- Added API in MessageManager to display either a Toast or Sticky message using React components.
|
|
1595
1605
|
- Always accept point on reality model when snapping and remove message about nearest snap.
|
|
1596
|
-
- Optimize reality tile display.
|
|
1606
|
+
- Optimize reality tile display.
|
|
1597
1607
|
- Add mechanism to preload reality tiles included in an expanded frustum. Support display of ellipsoidal map tiles without depth buffering.
|
|
1598
1608
|
- Reduce the number of surface shader variations by 75%
|
|
1599
1609
|
- react to new clients packages from imodeljs-clients
|
|
@@ -1674,7 +1684,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1674
1684
|
- Fix regression causing background map to be affected by view's symbology overrides.
|
|
1675
1685
|
- Added support for backward slashes in erroneous URLs of Reality Data in PW Context Share
|
|
1676
1686
|
- Prevent reuse of cached tiles after project extents change.
|
|
1677
|
-
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1687
|
+
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1678
1688
|
- Fix incorrect aspect ratio for 3d view attachments.
|
|
1679
1689
|
- Overriding transparency of a textured surface or raster text multiplies the texture alpha by the override rather than replacing it.
|
|
1680
1690
|
- Better documentation of OidcDesktopClient/IOidcFrontendClient
|
|
@@ -1687,7 +1697,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1687
1697
|
- Resolve circular dependencies between tile-related types.
|
|
1688
1698
|
- Support for TypeDoc 0.16.8
|
|
1689
1699
|
- Mark as deprecated classes and interfaces that have moved to bentley/ui-abstract.
|
|
1690
|
-
- Change feature tracking API for plugins as requested by Design Review.
|
|
1700
|
+
- Change feature tracking API for plugins as requested by Design Review.
|
|
1691
1701
|
- EN: #124601 - Initial implementation of WebGL2
|
|
1692
1702
|
|
|
1693
1703
|
## 1.11.0
|
|
@@ -1722,7 +1732,7 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
|
1722
1732
|
|
|
1723
1733
|
### Updates
|
|
1724
1734
|
|
|
1725
|
-
- Clear reality tile children loading flag when selecting.
|
|
1735
|
+
- Clear reality tile children loading flag when selecting.
|
|
1726
1736
|
- Animate change view operations
|
|
1727
1737
|
- Average the gpu profiler times for the last 120 frames instead of updating each frame; also simplify PerformnaceMetrics
|
|
1728
1738
|
- Implement tile availability testing for Cesium World Terrain.
|
|
@@ -1765,7 +1775,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
|
1765
1775
|
- Code quality report fixes
|
|
1766
1776
|
- Make iModel.js viewports adhere to DPI of a host display.
|
|
1767
1777
|
- Code cleanup from codeQL hits
|
|
1768
|
-
- Setup OidcDesktopClient for Electron use cases.
|
|
1778
|
+
- Setup OidcDesktopClient for Electron use cases.
|
|
1769
1779
|
- Don't execute our event loop if there is no need
|
|
1770
1780
|
- Fix regression causing animation to be uneven.
|
|
1771
1781
|
- Fix warnings from static analysis
|
|
@@ -1829,7 +1839,7 @@ Fri, 01 Nov 2019 13:28:37 GMT
|
|
|
1829
1839
|
- Anisotropic filting of draped map tiles.
|
|
1830
1840
|
- Add debug tool for drape frustum.
|
|
1831
1841
|
- Added MarkerSet.changeViewport
|
|
1832
|
-
- Allow sub classes of OidcBrowserClient to override the settings passed to the underlying oidc-client library.
|
|
1842
|
+
- Allow sub classes of OidcBrowserClient to override the settings passed to the underlying oidc-client library.
|
|
1833
1843
|
- Tweaks to ambient occlusion settings.
|
|
1834
1844
|
- Fixed issues with use of OIDC AuthCode workflow in Electron and Single Page Applications.
|
|
1835
1845
|
- Update DefaultToolSettingsProvider to create responisve UI.
|
|
@@ -1857,7 +1867,7 @@ Fri, 01 Nov 2019 13:28:37 GMT
|
|
|
1857
1867
|
- Fixed bug that caused duplicated points to be handled improperly in batched spatial<->geocoord conversions
|
|
1858
1868
|
- MarkerSet applies only to a single ScreenViewport
|
|
1859
1869
|
- Make viewport member of MarkerSet public
|
|
1860
|
-
- More OIDC fixes for logout of electron apps.
|
|
1870
|
+
- More OIDC fixes for logout of electron apps.
|
|
1861
1871
|
- Improve performance for multiple viewports.
|
|
1862
1872
|
- Added New badge for UI items
|
|
1863
1873
|
- Cross-platform function to open an image in a new window.
|
|
@@ -1910,7 +1920,7 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
|
1910
1920
|
- Added Cesium ION logo; fixed exception when opening a second viewport while terrain, shadows, or planar classification are enabled.
|
|
1911
1921
|
- Add checkbrowser.js, refine i18n in Tool
|
|
1912
1922
|
- Don't try to correct clip plane handle location when plane has been moved outside project extents. Updated image for two finger drag svg.
|
|
1913
|
-
- Refine frustum calculation for planar projection to create a tighter fit.
|
|
1923
|
+
- Refine frustum calculation for planar projection to create a tighter fit.
|
|
1914
1924
|
- Added ViewManager.getElementToolTip for overriding default persistent element tooltip.
|
|
1915
1925
|
- Various EVSM shadow tweaks
|
|
1916
1926
|
- Fix scenario in which a tile request is canceled after its http request completes and it remains perpetually in the request queue.
|
|
@@ -1973,7 +1983,7 @@ Tue, 10 Sep 2019 12:09:49 GMT
|
|
|
1973
1983
|
- Support reality model masking via black classifier geometry.
|
|
1974
1984
|
- Support nearest snap for reality models.
|
|
1975
1985
|
- Remove doubling of planar classifier size. This caused excessive generation time.
|
|
1976
|
-
- Refine texture projection calculation to include height range (for terrain).
|
|
1986
|
+
- Refine texture projection calculation to include height range (for terrain).
|
|
1977
1987
|
- Ensure DisplayStyle3dState.sunDirection is synchronized with DisplayStyle3dSettings JSON.
|
|
1978
1988
|
- Clip volume applied to view also applies to reality models.
|
|
1979
1989
|
- Added SetupCameraTool for defining camera by eye point and target point.
|
|
@@ -2046,7 +2056,7 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
|
2046
2056
|
- Various OIDC related fixes - Bugs: 148507, 148508, Product Backlog Items: 148510, 148517, 148522.
|
|
2047
2057
|
- Add PluginUiManager class and PluginUiProvider interface that will be used by Plugins to specify UI components to add to an iModeljs application.
|
|
2048
2058
|
- Choose handle location for for section plane that is visible in the view.
|
|
2049
|
-
- Temporarily undid change to save tokens in local storage.
|
|
2059
|
+
- Temporarily undid change to save tokens in local storage.
|
|
2050
2060
|
- Added ToolAssistance support and Tool.iconSpec
|
|
2051
2061
|
- The WebGL rendering system now takes advantage of Vertex Array Objects if they are available via an extension. These provide a measurable performance increase in certain datasets.
|
|
2052
2062
|
|
|
@@ -2079,7 +2089,7 @@ Mon, 01 Jul 2019 19:04:29 GMT
|
|
|
2079
2089
|
- Allow index.html to set a CDN from which to load imodeljs external modules.
|
|
2080
2090
|
- Make Viewport.invaildateDecorations @beta, was @internal
|
|
2081
2091
|
- Add default unhandled exception handler to ToolAdmin
|
|
2082
|
-
- Added feature tracking info to UserInfo obtained by OidcBrowserClient.
|
|
2092
|
+
- Added feature tracking info to UserInfo obtained by OidcBrowserClient.
|
|
2083
2093
|
- Ensure we never have two active snap or tooltip requests
|
|
2084
2094
|
- Refine tile selection for map tiles
|
|
2085
2095
|
- Prevent default symbology overrides applying to subcategories whose appearances were explicitly overridden.
|
|
@@ -2099,7 +2109,7 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
|
2099
2109
|
### Updates
|
|
2100
2110
|
|
|
2101
2111
|
- RPC system now accepts only basic values (primitives, "interface" objects, and binary).
|
|
2102
|
-
- Updated release tags.
|
|
2112
|
+
- Updated release tags.
|
|
2103
2113
|
- Added Viewport.changeViewedModel2d
|
|
2104
2114
|
- Clip shape tool should only set AccuDraw rotation on 1st point.
|
|
2105
2115
|
- Fix a prompt. Clip from element change to ignore selection set containing clip transient.
|
|
@@ -2132,7 +2142,7 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
|
2132
2142
|
- Set max tiles to skip to 1 for reality model tiles. (better user experience)
|
|
2133
2143
|
- Set release tags for TiledGraphicsProvider classes
|
|
2134
2144
|
- Reload tile tree if animation id changes
|
|
2135
|
-
- Removed use of OidcClientWrapper.
|
|
2145
|
+
- Removed use of OidcClientWrapper.
|
|
2136
2146
|
- Add cSpell comment.
|
|
2137
2147
|
- Rename terrain to backgroundMap.
|
|
2138
2148
|
- Add IModelApp.queryRenderCompatibility() API to allow querying of any rendering limitations of a client system.
|
|
@@ -2167,7 +2177,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
2167
2177
|
- Save ClipVector on ViewState instead of always creating new one from json.
|
|
2168
2178
|
- Set initial GL state to match default
|
|
2169
2179
|
- Dispose of planar classifiers.
|
|
2170
|
-
- Add spatial classifier UX
|
|
2180
|
+
- Add spatial classifier UX
|
|
2171
2181
|
- Hide clip decoration during modify. Easier right-click/touch tap support for non-handle pickable decoration.
|
|
2172
2182
|
- Add orientation option button to toolsettings for ClipByPlane/ClipByShape tools.
|
|
2173
2183
|
- ConvexClipPlaneSet modify handles. Make EmphasizeElements internal.
|
|
@@ -2237,7 +2247,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
2237
2247
|
- Remove "assembly lock" from SelectTool now that SelectionScope has been implemented.
|
|
2238
2248
|
- Remove IModelApp subclasses
|
|
2239
2249
|
- Remove IModelConnection.openStandalone and IModelConnection.closeStandalone
|
|
2240
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
2250
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
2241
2251
|
- Allow tile content to be requested without edge data, reducing tile size and download time.
|
|
2242
2252
|
- Support image textures larger than WebGL capabilities by resizing them.
|
|
2243
2253
|
- Update icons-generic-webfont version to latest available.
|
|
@@ -2318,7 +2328,7 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
|
2318
2328
|
- Fix clipping volume being inconsistently applied to view.
|
|
2319
2329
|
- Don't make textures transparent unless technique enables it.
|
|
2320
2330
|
- Fix incorrect "fit view" behavior when empty tiles exist.
|
|
2321
|
-
- Handle relative subpaths in reality model tile trees. Handle Y for axis/
|
|
2331
|
+
- Handle relative subpaths in reality model tile trees. Handle Y for axis/
|
|
2322
2332
|
- Fix handling of null animation visibility - should be 100% not 0.
|
|
2323
2333
|
- Added spatial <-> cartographic methods that check/use the geographic coordinate system before using ecef location.
|
|
2324
2334
|
- DefaultViewTouchTool should not call handleEvent until it's installed as the active ViewTool.
|
|
@@ -2340,10 +2350,10 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
|
2340
2350
|
- Omit animation branches that are not visible.
|
|
2341
2351
|
- Improve efficiency and completeness of SubCategory loading for ViewStates.
|
|
2342
2352
|
- Save BUILD_SEMVER to globally accessible map. PluginAdmin and Plugin classes defined. IModelJsLoader improved.
|
|
2343
|
-
- Add optional iModel argument to EntityState.clone
|
|
2353
|
+
- Add optional iModel argument to EntityState.clone
|
|
2344
2354
|
- Added GeometricModelState.queryModelRange
|
|
2345
2355
|
- Added creatorId, new method to list RD per project, identified numerous area for changes WIP
|
|
2346
|
-
- IModelConnection.close() always disposes the briefcase held at the backend in the case of ReadWrite connections.
|
|
2356
|
+
- IModelConnection.close() always disposes the briefcase held at the backend in the case of ReadWrite connections.
|
|
2347
2357
|
- Implemented spatial criterai when searching through all reality data associated to a project.
|
|
2348
2358
|
- Problem with root document of reality data not in root of blob. Tiles could not be fetched. Root path is added to tiles names.
|
|
2349
2359
|
- Threading issue accessing Reality Data, RealityData class was transformed to be the main data access object instead of the client that was used by most/all reality data causing cache data clash and mix between many reality data.
|
|
@@ -2403,7 +2413,7 @@ Thu, 10 Jan 2019 22:46:17 GMT
|
|
|
2403
2413
|
- Fix IModelJsLoader to ensure react loaded before bwc.
|
|
2404
2414
|
- MeasureLocationTool show lat/long and altitude.
|
|
2405
2415
|
- Make raster text locate behave better.
|
|
2406
|
-
- Removed default OIDC scopes. All applications must now explicitly pass the required scopes.
|
|
2416
|
+
- Removed default OIDC scopes. All applications must now explicitly pass the required scopes.
|
|
2407
2417
|
- Can now await result from QuantityFormatter. Report delta relative to ACS when context lock enabled. Cleanup "Measure.Points" plug-in example until real measure tools are available.
|
|
2408
2418
|
- Quantity formatter now allows async method to get FormatterSpec that can be used to format quantities.
|
|
2409
2419
|
- QuantityFormatter.formatQuantity is now the only method to format quantities.
|
|
@@ -2572,7 +2582,7 @@ Mon, 12 Nov 2018 16:42:10 GMT
|
|
|
2572
2582
|
|
|
2573
2583
|
### Updates
|
|
2574
2584
|
|
|
2575
|
-
- Hydrated briefcases for ReadOnly cases from the latest checkpoint, rather than the seed files. This significantly improves performance of IModelDb/IModelConnection.open() for typical cases.
|
|
2585
|
+
- Hydrated briefcases for ReadOnly cases from the latest checkpoint, rather than the seed files. This significantly improves performance of IModelDb/IModelConnection.open() for typical cases.
|
|
2576
2586
|
|
|
2577
2587
|
## 0.165.0
|
|
2578
2588
|
Mon, 12 Nov 2018 15:47:00 GMT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawingViewState.d.ts","sourceRoot":"","sources":["../../src/DrawingViewState.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAyB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EACL,gBAAgB,EAAW,4BAA4B,EAAE,6BAA6B,EAAkB,uBAAuB,EAAE,qBAAqB,EAAqB,cAAc,EAC1L,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAqB,SAAS,EAAkB,Q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AAW,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAQxD,gBAAgB;IAChB,IAAoB,qBAAqB,IAAI,OAAO,CAEnD;IAED,gBAAgB;IAChB,IAAoB,kBAAkB,4CAErC;CACF"}
|
|
@@ -287,6 +287,7 @@ class DrawingViewState extends ViewState_1.ViewState2d {
|
|
|
287
287
|
CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView
|
|
288
288
|
FROM bis.SectionDrawing
|
|
289
289
|
WHERE ECInstanceId=${this.baseModelId}`;
|
|
290
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290
291
|
for await (const row of this.iModel.query(ecsql, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames })) {
|
|
291
292
|
spatialView = core_bentley_1.Id64.fromJSON((_a = row.spatialView) === null || _a === void 0 ? void 0 : _a.id);
|
|
292
293
|
displaySpatialView = !!row.displaySpatialView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawingViewState.js","sourceRoot":"","sources":["../../src/DrawingViewState.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAwE;AACxE,oDAE4B;AAC5B,wDAA8F;AAC9F,mEAAgE;AAChE,+CAA4C;AAC5C,2DAA0D;AAC1D,2CAAwC;AACxC,2CAAwC;AAExC,gEAA6D;AAC7D,0DAA6E;AAC7E,oDAAiD;AAGjD,8CAAwE;AAExE,yCAA+C;AAC/C,yCAAsC;AACtC,2CAA2F;AAU3F;;;GAGG;AACH,MAAM,qBAAqB;IAUzB,YAAoB,WAAqC,EAAE,yBAAoC,EAAE,kBAA2B;QAC1H,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,0BAA0B,GAAG,yBAAyB,CAAC;QAC5D,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;IAChD,CAAC;IATD,IAAW,WAAW,KAA+B,OAAO,IAAI,CAAC,YAAY,CAAC,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KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,IAAI,CAAC,WAAW;YAClB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,gBAAgB;IACA,WAAW,CAAC,OAAqB;QAC/C,IAAI,CAAC,gBAAgB,CAAC,mBAAmB;YACvC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAE7B,IAAI,IAAI,CAAC,WAAW;YAClB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAED,gBAAgB;IAChB,IAAoB,qBAAqB;QACvC,OAAO,KAAK,CAAC,qBAAqB,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC3G,CAAC;IAED,gBAAgB;IAChB,IAAoB,kBAAkB;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACnF,CAAC;;AA9LH,4CA+LC;AA3LC;;;GAGG;AACW,yCAAwB,GAAG,KAAK,CAAC;AAE/C;;GAEG;AACW,oCAAmB,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Views\n */\n\nimport { assert, dispose, Id64, Id64String } from \"@itwin/core-bentley\";\nimport {\n AxisAlignedBox3d, Frustum, HydrateViewStateRequestProps, HydrateViewStateResponseProps, QueryRowFormat, SectionDrawingViewProps, ViewDefinition2dProps, ViewFlagOverrides, ViewStateProps,\n} from \"@itwin/core-common\";\nimport { Constant, Range3d, Transform, TransformProps, Vector3d } from \"@itwin/core-geometry\";\nimport { CategorySelectorState } from \"./CategorySelectorState\";\nimport { CoordSystem } from \"./CoordSystem\";\nimport { DisplayStyle2dState } from \"./DisplayStyleState\";\nimport { Frustum2d } from \"./Frustum2d\";\nimport { IModelApp } from \"./IModelApp\";\nimport { IModelConnection } from \"./IModelConnection\";\nimport { FeatureSymbology } from \"./render/FeatureSymbology\";\nimport { GraphicBranch, GraphicBranchOptions } from \"./render/GraphicBranch\";\nimport { MockRender } from \"./render/MockRender\";\nimport { RenderGraphic } from \"./render/RenderGraphic\";\nimport { Scene } from \"./render/Scene\";\nimport { DisclosedTileTreeSet, TileGraphicType } from \"./tile/internal\";\nimport { SceneContext } from \"./ViewContext\";\nimport { OffScreenViewport } from \"./Viewport\";\nimport { ViewRect } from \"./ViewRect\";\nimport { AttachToViewportArgs, ExtentLimits, ViewState2d, ViewState3d } from \"./ViewState\";\n\n/** Strictly for testing.\n * @internal\n */\nexport interface SectionDrawingInfo {\n readonly spatialView: Id64String;\n readonly drawingToSpatialTransform: Transform;\n}\n\n/** The information required to instantiate a [[SectionAttachment]]. This information is supplied to DrawingViewState constructor via ViewStateProps.\n * The spatial view is obtained asynchronously in DrawingViewState.load(). The SectionAttachment is created in DrawingViewState.attachToViewport and\n * disposed of in DrawingViewState.detachFromViewport.\n */\nclass SectionAttachmentInfo {\n private _spatialView: Id64String | ViewState3d;\n private readonly _drawingToSpatialTransform: Transform;\n private readonly _displaySpatialView: boolean;\n\n public get spatialView(): Id64String | ViewState3d { return this._spatialView; }\n public get wantDisplayed(): boolean {\n return this._displaySpatialView || DrawingViewState.alwaysDisplaySpatialView;\n }\n\n private constructor(spatialView: Id64String | ViewState3d, drawingToSpatialTransform: Transform, displaySpatialView: boolean) {\n this._spatialView = spatialView;\n this._drawingToSpatialTransform = drawingToSpatialTransform;\n this._displaySpatialView = displaySpatialView;\n }\n\n public static fromJSON(props?: SectionDrawingViewProps): SectionAttachmentInfo {\n if (!props)\n return new SectionAttachmentInfo(Id64.invalid, Transform.createIdentity(), false);\n\n return new SectionAttachmentInfo(props.spatialView, Transform.fromJSON(props.drawingToSpatialTransform), true === props.displaySpatialView);\n }\n\n public toJSON(): SectionDrawingViewProps | undefined {\n if (\"string\" === typeof this._spatialView && !Id64.isValidId64(this._spatialView))\n return undefined;\n\n return {\n spatialView: (this._spatialView instanceof ViewState3d) ? this._spatialView.id : this._spatialView,\n drawingToSpatialTransform: this._drawingToSpatialTransform.isIdentity ? undefined : this._drawingToSpatialTransform.toJSON(),\n displaySpatialView: this._displaySpatialView,\n };\n }\n\n public clone(): SectionAttachmentInfo {\n return new SectionAttachmentInfo(this._spatialView, this._drawingToSpatialTransform, this._displaySpatialView);\n }\n\n public preload(options: HydrateViewStateRequestProps): void {\n if (!this.wantDisplayed)\n return;\n\n if (this._spatialView instanceof ViewState3d)\n return;\n\n if (!Id64.isValidId64(this._spatialView))\n return;\n\n options.spatialViewId = this._spatialView;\n options.viewStateLoadProps = {\n displayStyle: {\n omitScheduleScriptElementIds: !IModelApp.tileAdmin.enableFrontendScheduleScripts,\n compressExcludedElementIds: true,\n },\n };\n }\n\n public async load(iModel: IModelConnection): Promise<void> {\n if (!this.wantDisplayed)\n return;\n\n if (this._spatialView instanceof ViewState3d)\n return;\n\n if (!Id64.isValidId64(this._spatialView))\n return;\n\n const spatialView = await iModel.views.load(this._spatialView);\n if (spatialView instanceof ViewState3d)\n this._spatialView = spatialView;\n }\n\n public async postload(options: HydrateViewStateResponseProps, iModel: IModelConnection): Promise<void> {\n let spatialView;\n if (options.spatialViewProps) {\n spatialView = await iModel.views.convertViewStatePropsToViewState(options.spatialViewProps);\n }\n\n if (spatialView instanceof ViewState3d)\n this._spatialView = spatialView;\n }\n\n public createAttachment(toSheet: Transform | undefined): SectionAttachment | undefined {\n if (!this.wantDisplayed || !(this._spatialView instanceof ViewState3d))\n return undefined;\n\n const spatialToDrawing = this._drawingToSpatialTransform.inverse();\n return spatialToDrawing ? new SectionAttachment(this._spatialView, spatialToDrawing, this._drawingToSpatialTransform, toSheet) : undefined;\n }\n\n public get sectionDrawingInfo(): SectionDrawingInfo {\n return {\n drawingToSpatialTransform: this._drawingToSpatialTransform,\n spatialView: this._spatialView instanceof ViewState3d ? this._spatialView.id : this._spatialView,\n };\n }\n}\n\n/** A mostly no-op [[RenderTarget]] for a [[SectionAttachment]]. It allocates no webgl resources. */\nclass SectionTarget extends MockRender.OffScreenTarget {\n private readonly _attachment: SectionAttachment;\n\n public constructor(attachment: SectionAttachment) {\n super(IModelApp.renderSystem, new ViewRect(0, 0, 1, 1));\n this._attachment = attachment;\n }\n\n public override changeScene(scene: Scene): void {\n this._attachment.scene = scene;\n }\n\n public override overrideFeatureSymbology(ovrs: FeatureSymbology.Overrides): void {\n this._attachment.symbologyOverrides = ovrs;\n }\n}\n\n/** Draws the contents of an orthographic [[ViewState3d]] directly into a [[DrawingViewState]], if the associated [SectionDrawing]($backend)\n * specifies it should be. We select tiles for the view in the context of a lightweight offscreen viewport with a no-op [[RenderTarget]], then\n * add the resultant graphics to the drawing view's scene. The attachment is created in DrawingViewState.attachToViewport and disposed of in\n * DrawingViewState.detachFromViewport.\n */\nclass SectionAttachment {\n private readonly _viewFlagOverrides: ViewFlagOverrides;\n private readonly _toDrawing: Transform;\n private readonly _fromDrawing: Transform;\n private readonly _viewRect = new ViewRect(0, 0, 1, 1);\n private readonly _originalFrustum = new Frustum();\n private readonly _drawingExtents: Vector3d;\n public readonly viewport: OffScreenViewport;\n private readonly _branchOptions: GraphicBranchOptions;\n public scene?: Scene;\n public symbologyOverrides: FeatureSymbology.Overrides;\n\n public get view(): ViewState3d {\n assert(this.viewport.view instanceof ViewState3d);\n return this.viewport.view;\n }\n\n public get zDepth(): number {\n return this._drawingExtents.z;\n }\n\n public constructor(view: ViewState3d, toDrawing: Transform, fromDrawing: Transform, toSheet: Transform | undefined) {\n // Save the input for clone(). Attach a copy to the viewport.\n this._toDrawing = toDrawing;\n this._fromDrawing = fromDrawing;\n\n this.viewport = OffScreenViewport.createViewport(view, new SectionTarget(this), true);\n\n this.symbologyOverrides = new FeatureSymbology.Overrides(view);\n let clipVolume;\n let clip = this.view.getViewClip();\n if (clip) {\n clip = clip.clone();\n const clipTransform = toSheet ? toSheet.multiplyTransformTransform(this._toDrawing) : this._toDrawing;\n clip.transformInPlace(clipTransform);\n clipVolume = IModelApp.renderSystem.createClipVolume(clip);\n }\n\n this._branchOptions = {\n clipVolume,\n hline: view.getDisplayStyle3d().settings.hiddenLineSettings,\n frustum: {\n is3d: true,\n scale: { x: 1, y: 1 },\n },\n };\n\n this._viewFlagOverrides = { ...view.viewFlags, lighting: false, shadows: false };\n this._drawingExtents = this.viewport.viewingSpace.viewDelta.clone();\n this._toDrawing.multiplyVector(this._drawingExtents, this._drawingExtents);\n this._drawingExtents.z = Math.abs(this._drawingExtents.z);\n\n // Save off the original frustum (potentially adjusted by viewport).\n this.viewport.setupFromView();\n this.viewport.viewingSpace.getFrustum(CoordSystem.World, true, this._originalFrustum);\n }\n\n public dispose(): void {\n this.viewport.dispose();\n }\n\n public addToScene(context: SceneContext): void {\n if (context.viewport.freezeScene)\n return;\n\n const pixelSize = context.viewport.getPixelSizeAtPoint();\n if (0 === pixelSize)\n return;\n\n // Adjust offscreen viewport's frustum based on intersection with drawing view frustum.\n const frustum3d = this._originalFrustum.transformBy(this._toDrawing);\n const frustumRange3d = frustum3d.toRange();\n const frustum2d = context.viewport.getWorldFrustum();\n const frustumRange2d = frustum2d.toRange();\n const intersect = frustumRange3d.intersect(frustumRange2d);\n if (intersect.isNull)\n return;\n\n frustum3d.initFromRange(intersect);\n frustum3d.transformBy(this._fromDrawing, frustum3d);\n this.viewport.setupViewFromFrustum(frustum3d);\n\n // Adjust view rect based on size of attachment on screen so tiles of appropriate LOD are selected.\n const width = this._drawingExtents.x * intersect.xLength() / frustumRange3d.xLength();\n const height = this._drawingExtents.y * intersect.yLength() / frustumRange3d.yLength();\n this._viewRect.width = Math.max(1, Math.round(width / pixelSize));\n this._viewRect.height = Math.max(1, Math.round(height / pixelSize));\n this.viewport.setRect(this._viewRect);\n\n // Propagate settings from drawing viewport.\n this.viewport.debugBoundingBoxes = context.viewport.debugBoundingBoxes;\n this.viewport.setTileSizeModifier(context.viewport.tileSizeModifier);\n\n // Create the scene.\n this.viewport.renderFrame();\n const scene = this.scene;\n if (!scene)\n return;\n\n // Extract graphics and insert into drawing's scene context.\n const outputGraphics = (source: RenderGraphic[]) => {\n if (0 === source.length)\n return;\n\n const graphics = new GraphicBranch();\n graphics.setViewFlagOverrides(this._viewFlagOverrides);\n graphics.symbologyOverrides = this.symbologyOverrides;\n\n for (const graphic of source)\n graphics.entries.push(graphic);\n\n const branch = context.createGraphicBranch(graphics, this._toDrawing, this._branchOptions);\n context.outputGraphic(branch);\n };\n\n outputGraphics(scene.foreground);\n context.withGraphicType(TileGraphicType.BackgroundMap, () => outputGraphics(scene.background));\n context.withGraphicType(TileGraphicType.Overlay, () => outputGraphics(scene.overlay));\n\n // Report tile statistics to drawing viewport.\n const tileAdmin = IModelApp.tileAdmin;\n const selectedAndReady = tileAdmin.getTilesForUser(this.viewport);\n const requested = tileAdmin.getRequestsForUser(this.viewport);\n tileAdmin.addExternalTilesForUser(context.viewport, {\n requested: requested?.size ?? 0,\n selected: selectedAndReady?.selected.size ?? 0,\n ready: selectedAndReady?.ready.size ?? 0,\n });\n }\n}\n\n/** A view of a [DrawingModel]($backend)\n * @public\n * @extensions\n */\nexport class DrawingViewState extends ViewState2d {\n /** @internal */\n public static override get className() { return \"DrawingViewDefinition\"; }\n\n /** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even\n * if `SectionDrawing.displaySpatialView` is not `true`.\n * @internal\n */\n public static alwaysDisplaySpatialView = false;\n\n /** Exposed strictly for testing and debugging. Indicates that the 2d graphics should not be displayed.\n * @internal\n */\n public static hideDrawingGraphics = false;\n\n private readonly _modelLimits: ExtentLimits;\n private readonly _viewedExtents: AxisAlignedBox3d;\n private _attachmentInfo: SectionAttachmentInfo;\n private _attachment?: SectionAttachment;\n\n /** Strictly for testing. @internal */\n public get sectionDrawingProps(): SectionDrawingViewProps | undefined {\n return this._attachmentInfo.toJSON();\n }\n\n /** Strictly for testing. @internal */\n public get sectionDrawingInfo() {\n return this._attachmentInfo.sectionDrawingInfo;\n }\n\n /** Strictly for testing. @internal */\n public get attachment(): Object | undefined {\n return this._attachment;\n }\n\n /** Strictly for testing. @internal */\n public get attachmentInfo(): Object {\n return this._attachmentInfo;\n }\n\n public constructor(props: ViewDefinition2dProps, iModel: IModelConnection, categories: CategorySelectorState, displayStyle: DisplayStyle2dState, extents: AxisAlignedBox3d, sectionDrawing?: SectionDrawingViewProps) {\n super(props, iModel, categories, displayStyle);\n if (categories instanceof DrawingViewState) {\n this._viewedExtents = categories._viewedExtents.clone();\n this._modelLimits = { ...categories._modelLimits };\n this._attachmentInfo = categories._attachmentInfo.clone();\n } else {\n this._viewedExtents = extents;\n this._modelLimits = { min: Constant.oneMillimeter, max: 10 * extents.maxLength() };\n this._attachmentInfo = SectionAttachmentInfo.fromJSON(sectionDrawing);\n }\n }\n\n /** @internal */\n public override attachToViewport(args: AttachToViewportArgs): void {\n super.attachToViewport(args);\n assert(undefined === this._attachment);\n this._attachment = this._attachmentInfo.createAttachment(args.drawingToSheetTransform);\n }\n\n /** @internal */\n public override detachFromViewport(): void {\n super.detachFromViewport();\n this._attachment = dispose(this._attachment);\n }\n\n /** @internal */\n public override async changeViewedModel(modelId: Id64String): Promise<void> {\n await super.changeViewedModel(modelId);\n const props = await this.querySectionDrawingProps();\n this._attachmentInfo = SectionAttachmentInfo.fromJSON(props);\n\n // super.changeViewedModel() throws if attached to viewport, and attachment only allocated while attached to viewport\n assert(undefined === this._attachment);\n }\n\n private async querySectionDrawingProps(): Promise<SectionDrawingViewProps> {\n let spatialView = Id64.invalid;\n let drawingToSpatialTransform: TransformProps | undefined;\n let displaySpatialView = false;\n try {\n const ecsql = `\n SELECT spatialView,\n json_extract(jsonProperties, '$.drawingToSpatialTransform') as drawingToSpatialTransform,\n CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView\n FROM bis.SectionDrawing\n WHERE ECInstanceId=${this.baseModelId}`;\n\n for await (const row of this.iModel.query(ecsql, undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames })) {\n spatialView = Id64.fromJSON(row.spatialView?.id);\n displaySpatialView = !!row.displaySpatialView;\n try {\n drawingToSpatialTransform = JSON.parse(row.drawingToSpatialTransform);\n } catch {\n // We'll use identity transform.\n }\n\n break;\n }\n } catch (_ex) {\n // The version of BisCore ECSchema in the iModel is probably too old to contain the SectionDrawing ECClass.\n }\n\n return { spatialView, displaySpatialView, drawingToSpatialTransform };\n }\n\n /** @internal */\n protected override preload(hydrateRequest: HydrateViewStateRequestProps): void {\n assert(!this.isAttachedToViewport);\n super.preload(hydrateRequest);\n this._attachmentInfo.preload(hydrateRequest);\n }\n\n /** @internal */\n protected override async postload(hydrateResponse: HydrateViewStateResponseProps): Promise<void> {\n const promises = [];\n promises.push(super.postload(hydrateResponse));\n promises.push(this._attachmentInfo.postload(hydrateResponse, this.iModel));\n await Promise.all(promises);\n }\n\n public static override createFromProps(props: ViewStateProps, iModel: IModelConnection): DrawingViewState {\n const cat = new CategorySelectorState(props.categorySelectorProps, iModel);\n const displayStyleState = new DisplayStyle2dState(props.displayStyleProps, iModel);\n const extents = props.modelExtents ? Range3d.fromJSON(props.modelExtents) : new Range3d();\n\n // use \"new this\" so subclasses are correct\n return new this(props.viewDefinitionProps as ViewDefinition2dProps, iModel, cat, displayStyleState, extents, props.sectionDrawing);\n }\n\n public override toProps(): ViewStateProps {\n const props = super.toProps();\n props.modelExtents = this._viewedExtents.toJSON();\n props.sectionDrawing = this._attachmentInfo.toJSON();\n return props;\n }\n\n public getViewedExtents(): AxisAlignedBox3d {\n return this._viewedExtents;\n }\n\n public get defaultExtentLimits() {\n return this._modelLimits;\n }\n\n /** @internal */\n public override isDrawingView(): this is DrawingViewState { return true; }\n\n /** @internal */\n public override getOrigin() {\n const origin = super.getOrigin();\n if (this._attachment)\n origin.z = -this._attachment.zDepth;\n\n return origin;\n }\n\n /** @internal */\n public override getExtents() {\n const extents = super.getExtents();\n if (this._attachment)\n extents.z = this._attachment.zDepth + Frustum2d.minimumZDistance;\n\n return extents;\n }\n\n /** @internal */\n public override discloseTileTrees(trees: DisclosedTileTreeSet): void {\n super.discloseTileTrees(trees);\n if (this._attachment)\n trees.disclose(this._attachment.viewport);\n }\n\n /** @internal */\n public override createScene(context: SceneContext): void {\n if (!DrawingViewState.hideDrawingGraphics)\n super.createScene(context);\n\n if (this._attachment)\n this._attachment.addToScene(context);\n }\n\n /** @internal */\n public override get areAllTileTreesLoaded(): boolean {\n return super.areAllTileTreesLoaded && (!this._attachment || this._attachment.view.areAllTileTreesLoaded);\n }\n\n /** @internal */\n public override get secondaryViewports() {\n return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DrawingViewState.js","sourceRoot":"","sources":["../../src/DrawingViewState.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAwE;AACxE,oDAE4B;AAC5B,wDAA8F;AAC9F,mEAAgE;AAChE,+CAA4C;AAC5C,2DAA0D;AAC1D,2CAAwC;AACxC,2CAAwC;AAExC,gEAA6D;AAC7D,0DAA6E;AAC7E,oDAAiD;AAGjD,8CAAwE;AAExE,yCAA+C;AAC/C,yCAAsC;AACtC,2CAA2F;AAU3F;;;GAGG;AACH,MAAM,qBAAqB;IAUzB,YAAoB,WAAqC,EAAE,yBAAoC,EAAE,kBAA2B;QAC1H,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,0BAA0B,GAAG,yBAAyB,CAAC;QAC5D,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;IAChD,CAAC;IATD,IAAW,WAAW,KAA+B,OAAO,IAAI,CAAC,YAAY,C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AAC,KAA2B;QAC3D,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,IAAI,CAAC,WAAW;YAClB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,gBAAgB;IACA,WAAW,CAAC,OAAqB;QAC/C,IAAI,CAAC,gBAAgB,CAAC,mBAAmB;YACvC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAE7B,IAAI,IAAI,CAAC,WAAW;YAClB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAED,gBAAgB;IAChB,IAAoB,qBAAqB;QACvC,OAAO,KAAK,CAAC,qBAAqB,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC3G,CAAC;IAED,gBAAgB;IAChB,IAAoB,kBAAkB;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACnF,CAAC;;AA/LH,4CAgMC;AA5LC;;;GAGG;AACW,yCAAwB,GAAG,KAAK,CAAC;AAE/C;;GAEG;AACW,oCAAmB,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Views\n */\n\nimport { assert, dispose, Id64, Id64String } from \"@itwin/core-bentley\";\nimport {\n AxisAlignedBox3d, Frustum, HydrateViewStateRequestProps, HydrateViewStateResponseProps, QueryRowFormat, SectionDrawingViewProps, ViewDefinition2dProps, ViewFlagOverrides, ViewStateProps,\n} from \"@itwin/core-common\";\nimport { Constant, Range3d, Transform, TransformProps, Vector3d } from \"@itwin/core-geometry\";\nimport { CategorySelectorState } from \"./CategorySelectorState\";\nimport { CoordSystem } from \"./CoordSystem\";\nimport { DisplayStyle2dState } from \"./DisplayStyleState\";\nimport { Frustum2d } from \"./Frustum2d\";\nimport { IModelApp } from \"./IModelApp\";\nimport { IModelConnection } from \"./IModelConnection\";\nimport { FeatureSymbology } from \"./render/FeatureSymbology\";\nimport { GraphicBranch, GraphicBranchOptions } from \"./render/GraphicBranch\";\nimport { MockRender } from \"./render/MockRender\";\nimport { RenderGraphic } from \"./render/RenderGraphic\";\nimport { Scene } from \"./render/Scene\";\nimport { DisclosedTileTreeSet, TileGraphicType } from \"./tile/internal\";\nimport { SceneContext } from \"./ViewContext\";\nimport { OffScreenViewport } from \"./Viewport\";\nimport { ViewRect } from \"./ViewRect\";\nimport { AttachToViewportArgs, ExtentLimits, ViewState2d, ViewState3d } from \"./ViewState\";\n\n/** Strictly for testing.\n * @internal\n */\nexport interface SectionDrawingInfo {\n readonly spatialView: Id64String;\n readonly drawingToSpatialTransform: Transform;\n}\n\n/** The information required to instantiate a [[SectionAttachment]]. This information is supplied to DrawingViewState constructor via ViewStateProps.\n * The spatial view is obtained asynchronously in DrawingViewState.load(). The SectionAttachment is created in DrawingViewState.attachToViewport and\n * disposed of in DrawingViewState.detachFromViewport.\n */\nclass SectionAttachmentInfo {\n private _spatialView: Id64String | ViewState3d;\n private readonly _drawingToSpatialTransform: Transform;\n private readonly _displaySpatialView: boolean;\n\n public get spatialView(): Id64String | ViewState3d { return this._spatialView; }\n public get wantDisplayed(): boolean {\n return this._displaySpatialView || DrawingViewState.alwaysDisplaySpatialView;\n }\n\n private constructor(spatialView: Id64String | ViewState3d, drawingToSpatialTransform: Transform, displaySpatialView: boolean) {\n this._spatialView = spatialView;\n this._drawingToSpatialTransform = drawingToSpatialTransform;\n this._displaySpatialView = displaySpatialView;\n }\n\n public static fromJSON(props?: SectionDrawingViewProps): SectionAttachmentInfo {\n if (!props)\n return new SectionAttachmentInfo(Id64.invalid, Transform.createIdentity(), false);\n\n return new SectionAttachmentInfo(props.spatialView, Transform.fromJSON(props.drawingToSpatialTransform), true === props.displaySpatialView);\n }\n\n public toJSON(): SectionDrawingViewProps | undefined {\n if (\"string\" === typeof this._spatialView && !Id64.isValidId64(this._spatialView))\n return undefined;\n\n return {\n spatialView: (this._spatialView instanceof ViewState3d) ? this._spatialView.id : this._spatialView,\n drawingToSpatialTransform: this._drawingToSpatialTransform.isIdentity ? undefined : this._drawingToSpatialTransform.toJSON(),\n displaySpatialView: this._displaySpatialView,\n };\n }\n\n public clone(): SectionAttachmentInfo {\n return new SectionAttachmentInfo(this._spatialView, this._drawingToSpatialTransform, this._displaySpatialView);\n }\n\n public preload(options: HydrateViewStateRequestProps): void {\n if (!this.wantDisplayed)\n return;\n\n if (this._spatialView instanceof ViewState3d)\n return;\n\n if (!Id64.isValidId64(this._spatialView))\n return;\n\n options.spatialViewId = this._spatialView;\n options.viewStateLoadProps = {\n displayStyle: {\n omitScheduleScriptElementIds: !IModelApp.tileAdmin.enableFrontendScheduleScripts,\n compressExcludedElementIds: true,\n },\n };\n }\n\n public async load(iModel: IModelConnection): Promise<void> {\n if (!this.wantDisplayed)\n return;\n\n if (this._spatialView instanceof ViewState3d)\n return;\n\n if (!Id64.isValidId64(this._spatialView))\n return;\n\n const spatialView = await iModel.views.load(this._spatialView);\n if (spatialView instanceof ViewState3d)\n this._spatialView = spatialView;\n }\n\n public async postload(options: HydrateViewStateResponseProps, iModel: IModelConnection): Promise<void> {\n let spatialView;\n if (options.spatialViewProps) {\n spatialView = await iModel.views.convertViewStatePropsToViewState(options.spatialViewProps);\n }\n\n if (spatialView instanceof ViewState3d)\n this._spatialView = spatialView;\n }\n\n public createAttachment(toSheet: Transform | undefined): SectionAttachment | undefined {\n if (!this.wantDisplayed || !(this._spatialView instanceof ViewState3d))\n return undefined;\n\n const spatialToDrawing = this._drawingToSpatialTransform.inverse();\n return spatialToDrawing ? new SectionAttachment(this._spatialView, spatialToDrawing, this._drawingToSpatialTransform, toSheet) : undefined;\n }\n\n public get sectionDrawingInfo(): SectionDrawingInfo {\n return {\n drawingToSpatialTransform: this._drawingToSpatialTransform,\n spatialView: this._spatialView instanceof ViewState3d ? this._spatialView.id : this._spatialView,\n };\n }\n}\n\n/** A mostly no-op [[RenderTarget]] for a [[SectionAttachment]]. It allocates no webgl resources. */\nclass SectionTarget extends MockRender.OffScreenTarget {\n private readonly _attachment: SectionAttachment;\n\n public constructor(attachment: SectionAttachment) {\n super(IModelApp.renderSystem, new ViewRect(0, 0, 1, 1));\n this._attachment = attachment;\n }\n\n public override changeScene(scene: Scene): void {\n this._attachment.scene = scene;\n }\n\n public override overrideFeatureSymbology(ovrs: FeatureSymbology.Overrides): void {\n this._attachment.symbologyOverrides = ovrs;\n }\n}\n\n/** Draws the contents of an orthographic [[ViewState3d]] directly into a [[DrawingViewState]], if the associated [SectionDrawing]($backend)\n * specifies it should be. We select tiles for the view in the context of a lightweight offscreen viewport with a no-op [[RenderTarget]], then\n * add the resultant graphics to the drawing view's scene. The attachment is created in DrawingViewState.attachToViewport and disposed of in\n * DrawingViewState.detachFromViewport.\n */\nclass SectionAttachment {\n private readonly _viewFlagOverrides: ViewFlagOverrides;\n private readonly _toDrawing: Transform;\n private readonly _fromDrawing: Transform;\n private readonly _viewRect = new ViewRect(0, 0, 1, 1);\n private readonly _originalFrustum = new Frustum();\n private readonly _drawingExtents: Vector3d;\n public readonly viewport: OffScreenViewport;\n private readonly _branchOptions: GraphicBranchOptions;\n public scene?: Scene;\n public symbologyOverrides: FeatureSymbology.Overrides;\n\n public get view(): ViewState3d {\n assert(this.viewport.view instanceof ViewState3d);\n return this.viewport.view;\n }\n\n public get zDepth(): number {\n return this._drawingExtents.z;\n }\n\n public constructor(view: ViewState3d, toDrawing: Transform, fromDrawing: Transform, toSheet: Transform | undefined) {\n // Save the input for clone(). Attach a copy to the viewport.\n this._toDrawing = toDrawing;\n this._fromDrawing = fromDrawing;\n\n this.viewport = OffScreenViewport.createViewport(view, new SectionTarget(this), true);\n\n this.symbologyOverrides = new FeatureSymbology.Overrides(view);\n let clipVolume;\n let clip = this.view.getViewClip();\n if (clip) {\n clip = clip.clone();\n const clipTransform = toSheet ? toSheet.multiplyTransformTransform(this._toDrawing) : this._toDrawing;\n clip.transformInPlace(clipTransform);\n clipVolume = IModelApp.renderSystem.createClipVolume(clip);\n }\n\n this._branchOptions = {\n clipVolume,\n hline: view.getDisplayStyle3d().settings.hiddenLineSettings,\n frustum: {\n is3d: true,\n scale: { x: 1, y: 1 },\n },\n };\n\n this._viewFlagOverrides = { ...view.viewFlags, lighting: false, shadows: false };\n this._drawingExtents = this.viewport.viewingSpace.viewDelta.clone();\n this._toDrawing.multiplyVector(this._drawingExtents, this._drawingExtents);\n this._drawingExtents.z = Math.abs(this._drawingExtents.z);\n\n // Save off the original frustum (potentially adjusted by viewport).\n this.viewport.setupFromView();\n this.viewport.viewingSpace.getFrustum(CoordSystem.World, true, this._originalFrustum);\n }\n\n public dispose(): void {\n this.viewport.dispose();\n }\n\n public addToScene(context: SceneContext): void {\n if (context.viewport.freezeScene)\n return;\n\n const pixelSize = context.viewport.getPixelSizeAtPoint();\n if (0 === pixelSize)\n return;\n\n // Adjust offscreen viewport's frustum based on intersection with drawing view frustum.\n const frustum3d = this._originalFrustum.transformBy(this._toDrawing);\n const frustumRange3d = frustum3d.toRange();\n const frustum2d = context.viewport.getWorldFrustum();\n const frustumRange2d = frustum2d.toRange();\n const intersect = frustumRange3d.intersect(frustumRange2d);\n if (intersect.isNull)\n return;\n\n frustum3d.initFromRange(intersect);\n frustum3d.transformBy(this._fromDrawing, frustum3d);\n this.viewport.setupViewFromFrustum(frustum3d);\n\n // Adjust view rect based on size of attachment on screen so tiles of appropriate LOD are selected.\n const width = this._drawingExtents.x * intersect.xLength() / frustumRange3d.xLength();\n const height = this._drawingExtents.y * intersect.yLength() / frustumRange3d.yLength();\n this._viewRect.width = Math.max(1, Math.round(width / pixelSize));\n this._viewRect.height = Math.max(1, Math.round(height / pixelSize));\n this.viewport.setRect(this._viewRect);\n\n // Propagate settings from drawing viewport.\n this.viewport.debugBoundingBoxes = context.viewport.debugBoundingBoxes;\n this.viewport.setTileSizeModifier(context.viewport.tileSizeModifier);\n\n // Create the scene.\n this.viewport.renderFrame();\n const scene = this.scene;\n if (!scene)\n return;\n\n // Extract graphics and insert into drawing's scene context.\n const outputGraphics = (source: RenderGraphic[]) => {\n if (0 === source.length)\n return;\n\n const graphics = new GraphicBranch();\n graphics.setViewFlagOverrides(this._viewFlagOverrides);\n graphics.symbologyOverrides = this.symbologyOverrides;\n\n for (const graphic of source)\n graphics.entries.push(graphic);\n\n const branch = context.createGraphicBranch(graphics, this._toDrawing, this._branchOptions);\n context.outputGraphic(branch);\n };\n\n outputGraphics(scene.foreground);\n context.withGraphicType(TileGraphicType.BackgroundMap, () => outputGraphics(scene.background));\n context.withGraphicType(TileGraphicType.Overlay, () => outputGraphics(scene.overlay));\n\n // Report tile statistics to drawing viewport.\n const tileAdmin = IModelApp.tileAdmin;\n const selectedAndReady = tileAdmin.getTilesForUser(this.viewport);\n const requested = tileAdmin.getRequestsForUser(this.viewport);\n tileAdmin.addExternalTilesForUser(context.viewport, {\n requested: requested?.size ?? 0,\n selected: selectedAndReady?.selected.size ?? 0,\n ready: selectedAndReady?.ready.size ?? 0,\n });\n }\n}\n\n/** A view of a [DrawingModel]($backend)\n * @public\n * @extensions\n */\nexport class DrawingViewState extends ViewState2d {\n /** @internal */\n public static override get className() { return \"DrawingViewDefinition\"; }\n\n /** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even\n * if `SectionDrawing.displaySpatialView` is not `true`.\n * @internal\n */\n public static alwaysDisplaySpatialView = false;\n\n /** Exposed strictly for testing and debugging. Indicates that the 2d graphics should not be displayed.\n * @internal\n */\n public static hideDrawingGraphics = false;\n\n private readonly _modelLimits: ExtentLimits;\n private readonly _viewedExtents: AxisAlignedBox3d;\n private _attachmentInfo: SectionAttachmentInfo;\n private _attachment?: SectionAttachment;\n\n /** Strictly for testing. @internal */\n public get sectionDrawingProps(): SectionDrawingViewProps | undefined {\n return this._attachmentInfo.toJSON();\n }\n\n /** Strictly for testing. @internal */\n public get sectionDrawingInfo() {\n return this._attachmentInfo.sectionDrawingInfo;\n }\n\n /** Strictly for testing. @internal */\n public get attachment(): Object | undefined {\n return this._attachment;\n }\n\n /** Strictly for testing. @internal */\n public get attachmentInfo(): Object {\n return this._attachmentInfo;\n }\n\n public constructor(props: ViewDefinition2dProps, iModel: IModelConnection, categories: CategorySelectorState, displayStyle: DisplayStyle2dState, extents: AxisAlignedBox3d, sectionDrawing?: SectionDrawingViewProps) {\n super(props, iModel, categories, displayStyle);\n if (categories instanceof DrawingViewState) {\n this._viewedExtents = categories._viewedExtents.clone();\n this._modelLimits = { ...categories._modelLimits };\n this._attachmentInfo = categories._attachmentInfo.clone();\n } else {\n this._viewedExtents = extents;\n this._modelLimits = { min: Constant.oneMillimeter, max: 10 * extents.maxLength() };\n this._attachmentInfo = SectionAttachmentInfo.fromJSON(sectionDrawing);\n }\n }\n\n /** @internal */\n public override attachToViewport(args: AttachToViewportArgs): void {\n super.attachToViewport(args);\n assert(undefined === this._attachment);\n this._attachment = this._attachmentInfo.createAttachment(args.drawingToSheetTransform);\n }\n\n /** @internal */\n public override detachFromViewport(): void {\n super.detachFromViewport();\n this._attachment = dispose(this._attachment);\n }\n\n /** @internal */\n public override async changeViewedModel(modelId: Id64String): Promise<void> {\n await super.changeViewedModel(modelId);\n const props = await this.querySectionDrawingProps();\n this._attachmentInfo = SectionAttachmentInfo.fromJSON(props);\n\n // super.changeViewedModel() throws if attached to viewport, and attachment only allocated while attached to viewport\n assert(undefined === this._attachment);\n }\n\n private async querySectionDrawingProps(): Promise<SectionDrawingViewProps> {\n let spatialView = Id64.invalid;\n let drawingToSpatialTransform: TransformProps | undefined;\n let displaySpatialView = false;\n try {\n const ecsql = `\n SELECT spatialView,\n json_extract(jsonProperties, '$.drawingToSpatialTransform') as drawingToSpatialTransform,\n CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView\n FROM bis.SectionDrawing\n WHERE ECInstanceId=${this.baseModelId}`;\n\n // eslint-disable-next-line deprecation/deprecation\n for await (const row of this.iModel.query(ecsql, undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames })) {\n spatialView = Id64.fromJSON(row.spatialView?.id);\n displaySpatialView = !!row.displaySpatialView;\n try {\n drawingToSpatialTransform = JSON.parse(row.drawingToSpatialTransform);\n } catch {\n // We'll use identity transform.\n }\n\n break;\n }\n } catch (_ex) {\n // The version of BisCore ECSchema in the iModel is probably too old to contain the SectionDrawing ECClass.\n }\n\n return { spatialView, displaySpatialView, drawingToSpatialTransform };\n }\n\n /** @internal */\n protected override preload(hydrateRequest: HydrateViewStateRequestProps): void {\n assert(!this.isAttachedToViewport);\n super.preload(hydrateRequest);\n this._attachmentInfo.preload(hydrateRequest);\n }\n\n /** @internal */\n protected override async postload(hydrateResponse: HydrateViewStateResponseProps): Promise<void> {\n const promises = [];\n promises.push(super.postload(hydrateResponse));\n promises.push(this._attachmentInfo.postload(hydrateResponse, this.iModel));\n await Promise.all(promises);\n }\n\n public static override createFromProps(props: ViewStateProps, iModel: IModelConnection): DrawingViewState {\n const cat = new CategorySelectorState(props.categorySelectorProps, iModel);\n const displayStyleState = new DisplayStyle2dState(props.displayStyleProps, iModel);\n const extents = props.modelExtents ? Range3d.fromJSON(props.modelExtents) : new Range3d();\n\n // use \"new this\" so subclasses are correct\n return new this(props.viewDefinitionProps as ViewDefinition2dProps, iModel, cat, displayStyleState, extents, props.sectionDrawing);\n }\n\n public override toProps(): ViewStateProps {\n const props = super.toProps();\n props.modelExtents = this._viewedExtents.toJSON();\n props.sectionDrawing = this._attachmentInfo.toJSON();\n return props;\n }\n\n public getViewedExtents(): AxisAlignedBox3d {\n return this._viewedExtents;\n }\n\n public get defaultExtentLimits() {\n return this._modelLimits;\n }\n\n /** @internal */\n public override isDrawingView(): this is DrawingViewState { return true; }\n\n /** @internal */\n public override getOrigin() {\n const origin = super.getOrigin();\n if (this._attachment)\n origin.z = -this._attachment.zDepth;\n\n return origin;\n }\n\n /** @internal */\n public override getExtents() {\n const extents = super.getExtents();\n if (this._attachment)\n extents.z = this._attachment.zDepth + Frustum2d.minimumZDistance;\n\n return extents;\n }\n\n /** @internal */\n public override discloseTileTrees(trees: DisclosedTileTreeSet): void {\n super.discloseTileTrees(trees);\n if (this._attachment)\n trees.disclose(this._attachment.viewport);\n }\n\n /** @internal */\n public override createScene(context: SceneContext): void {\n if (!DrawingViewState.hideDrawingGraphics)\n super.createScene(context);\n\n if (this._attachment)\n this._attachment.addToScene(context);\n }\n\n /** @internal */\n public override get areAllTileTreesLoaded(): boolean {\n return super.areAllTileTreesLoaded && (!this._attachment || this._attachment.view.areAllTileTreesLoaded);\n }\n\n /** @internal */\n public override get secondaryViewports() {\n return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;\n }\n}\n"]}
|
|
@@ -145,7 +145,7 @@ export declare abstract class IModelConnection extends IModel {
|
|
|
145
145
|
/** Allow to execute query and read results along with meta data. The result are streamed.
|
|
146
146
|
* @param params The values to bind to the parameters (if the ECSQL has any).
|
|
147
147
|
* @param config Allow to specify certain flags which control how query is executed.
|
|
148
|
-
* @returns Returns
|
|
148
|
+
* @returns Returns an [ECSqlReader]($common) which helps iterate over the result set and also give access to metadata.
|
|
149
149
|
* @beta
|
|
150
150
|
* */
|
|
151
151
|
createQueryReader(ecsql: string, params?: QueryBinder, config?: QueryOptions): ECSqlReader;
|
|
@@ -170,6 +170,7 @@ export declare abstract class IModelConnection extends IModel {
|
|
|
170
170
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
171
171
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
172
172
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
173
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead; it accepts the same parameters.
|
|
173
174
|
*/
|
|
174
175
|
query(ecsql: string, params?: QueryBinder, options?: QueryOptions): AsyncIterableIterator<any>;
|
|
175
176
|
/** Compute number of rows that would be returned by the ECSQL.
|
|
@@ -183,6 +184,7 @@ export declare abstract class IModelConnection extends IModel {
|
|
|
183
184
|
* See "[iTwin.js Types used in ECSQL Parameter Bindings]($docs/learning/ECSQLParameterTypes)" for details.
|
|
184
185
|
* @returns Return row count.
|
|
185
186
|
* @throws [IModelError]($common) If the statement is invalid
|
|
187
|
+
* @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
|
|
186
188
|
*/
|
|
187
189
|
queryRowCount(ecsql: string, params?: QueryBinder): Promise<number>;
|
|
188
190
|
/** Cancel any previous query with same token and run execute the current specified query.
|
|
@@ -201,6 +203,7 @@ export declare abstract class IModelConnection extends IModel {
|
|
|
201
203
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
202
204
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
203
205
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
206
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
|
|
204
207
|
*/
|
|
205
208
|
restartQuery(token: string, ecsql: string, params?: QueryBinder, options?: QueryOptions): AsyncIterableIterator<any>;
|
|
206
209
|
/** Query for a set of element ids that satisfy the supplied query params
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelConnection.d.ts","sourceRoot":"","sources":["../../src/IModelConnection.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EACG,OAAO,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AAE,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC;KAUxE;IAED,cAAc;IACd,UAAiB,UAAU,CAAC;QAC1B;;WAEG;QACH,UAAiB,eAAe;YAC9B,gDAAgD;YAChD,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;YACxB,wFAAwF;YACxF,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;YAChC,uFAAuF;YACvF,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;SACtD;QAED,kIAAkI;QAClI,UAAiB,YAAY;YAC3B,iCAAiC;YACjC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;YACxB,8IAA8I;YAC9I,QAAQ,CAAC,aAAa,EAAE,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;SAC1D;KACF;IAED;;;OAGG;IACH,MAAa,UAAU;QACrB,gBAAgB;QAChB,SAAgB,KAAK,EAAE,kBAAkB,CAAC;QAE1C,gBAAgB;oBACG,MAAM,EAAE,gBAAgB;QAI3C,mEAAmE;QACtD,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QAIlH,sHAAsH;QACzG,kBAAkB,CAAC,IAAI,EAAE;YACpC,QAAQ,EAAE,UAAU,CAAC;YACrB,aAAa,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;SACrC,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;KAGzD;CACF"}
|
|
@@ -160,7 +160,7 @@ class IModelConnection extends core_common_1.IModel {
|
|
|
160
160
|
/** Allow to execute query and read results along with meta data. The result are streamed.
|
|
161
161
|
* @param params The values to bind to the parameters (if the ECSQL has any).
|
|
162
162
|
* @param config Allow to specify certain flags which control how query is executed.
|
|
163
|
-
* @returns Returns
|
|
163
|
+
* @returns Returns an [ECSqlReader]($common) which helps iterate over the result set and also give access to metadata.
|
|
164
164
|
* @beta
|
|
165
165
|
* */
|
|
166
166
|
createQueryReader(ecsql, params, config) {
|
|
@@ -194,6 +194,7 @@ class IModelConnection extends core_common_1.IModel {
|
|
|
194
194
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
195
195
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
196
196
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
197
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead; it accepts the same parameters.
|
|
197
198
|
*/
|
|
198
199
|
async *query(ecsql, params, options) {
|
|
199
200
|
const builder = new core_common_1.QueryOptionsBuilder(options);
|
|
@@ -212,8 +213,10 @@ class IModelConnection extends core_common_1.IModel {
|
|
|
212
213
|
* See "[iTwin.js Types used in ECSQL Parameter Bindings]($docs/learning/ECSQLParameterTypes)" for details.
|
|
213
214
|
* @returns Return row count.
|
|
214
215
|
* @throws [IModelError]($common) If the statement is invalid
|
|
216
|
+
* @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
|
|
215
217
|
*/
|
|
216
218
|
async queryRowCount(ecsql, params) {
|
|
219
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
217
220
|
for await (const row of this.query(`select count(*) from (${ecsql})`, params)) {
|
|
218
221
|
return row[0];
|
|
219
222
|
}
|
|
@@ -235,8 +238,10 @@ class IModelConnection extends core_common_1.IModel {
|
|
|
235
238
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
236
239
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
237
240
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
241
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
|
|
238
242
|
*/
|
|
239
243
|
async *restartQuery(token, ecsql, params, options) {
|
|
244
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
240
245
|
for await (const row of this.query(ecsql, params, new core_common_1.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
|
|
241
246
|
yield row;
|
|
242
247
|
}
|
|
@@ -782,6 +787,7 @@ exports.SnapshotConnection = SnapshotConnection;
|
|
|
782
787
|
break;
|
|
783
788
|
}
|
|
784
789
|
const placements = new Array();
|
|
790
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
785
791
|
for await (const row of this._iModel.query(ecsql, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames })) {
|
|
786
792
|
const origin = [row.x, row.y, row.z];
|
|
787
793
|
const bbox = {
|