@itwin/rpcinterface-full-stack-tests 3.6.0-dev.40 → 3.6.0-dev.44
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/lib/dist/_cb67.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +246 -230
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_4_0_node_modules_itwin_obj-3576c6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_12_node_modules_loaders_gl_draco_d-b19815.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -48886,60 +48886,6 @@ function assert(condition, message) {
|
|
|
48886
48886
|
}
|
|
48887
48887
|
|
|
48888
48888
|
|
|
48889
|
-
/***/ }),
|
|
48890
|
-
|
|
48891
|
-
/***/ "../../core/bentley/lib/esm/AsyncMutex.js":
|
|
48892
|
-
/*!************************************************!*\
|
|
48893
|
-
!*** ../../core/bentley/lib/esm/AsyncMutex.js ***!
|
|
48894
|
-
\************************************************/
|
|
48895
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48896
|
-
|
|
48897
|
-
"use strict";
|
|
48898
|
-
__webpack_require__.r(__webpack_exports__);
|
|
48899
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48900
|
-
/* harmony export */ "AsyncMutex": () => (/* binding */ AsyncMutex)
|
|
48901
|
-
/* harmony export */ });
|
|
48902
|
-
/*---------------------------------------------------------------------------------------------
|
|
48903
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
48904
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
48905
|
-
*--------------------------------------------------------------------------------------------*/
|
|
48906
|
-
/** @packageDocumentation
|
|
48907
|
-
* @module Utils
|
|
48908
|
-
*/
|
|
48909
|
-
/**
|
|
48910
|
-
* Utility to ensure a block of async code executes atomically.
|
|
48911
|
-
* Even if JavaScript precludes the possibility of race conditions between threads, there is potential for
|
|
48912
|
-
* race conditions with async code. This utility is needed in cases where a block of async code needs to run
|
|
48913
|
-
* to completion before another block is started.
|
|
48914
|
-
* This utility was based on this article: https://spin.atomicobject.com/2018/09/10/javascript-concurrency/
|
|
48915
|
-
* @alpha
|
|
48916
|
-
*/
|
|
48917
|
-
class AsyncMutex {
|
|
48918
|
-
constructor() {
|
|
48919
|
-
this._mutex = Promise.resolve();
|
|
48920
|
-
}
|
|
48921
|
-
/**
|
|
48922
|
-
* Await the return value to setup a lock. The return value
|
|
48923
|
-
* is also the unlock function that can be called to unlock
|
|
48924
|
-
* the mutex.
|
|
48925
|
-
*/
|
|
48926
|
-
async lock() {
|
|
48927
|
-
/**
|
|
48928
|
-
* Note: The promise returned by this method will resolve (with the unlock function, which is actually the
|
|
48929
|
-
* mutex’s then’s resolve function) once any previous mutexes have finished and called their
|
|
48930
|
-
* respective unlock function that was yielded over their promise.
|
|
48931
|
-
*/
|
|
48932
|
-
let begin = (_unlock) => { };
|
|
48933
|
-
this._mutex = this._mutex.then(async () => {
|
|
48934
|
-
return new Promise(begin);
|
|
48935
|
-
});
|
|
48936
|
-
return new Promise((res) => {
|
|
48937
|
-
begin = res;
|
|
48938
|
-
});
|
|
48939
|
-
}
|
|
48940
|
-
}
|
|
48941
|
-
|
|
48942
|
-
|
|
48943
48889
|
/***/ }),
|
|
48944
48890
|
|
|
48945
48891
|
/***/ "../../core/bentley/lib/esm/BeEvent.js":
|
|
@@ -55198,133 +55144,131 @@ class YieldManager {
|
|
|
55198
55144
|
"use strict";
|
|
55199
55145
|
__webpack_require__.r(__webpack_exports__);
|
|
55200
55146
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55201
|
-
/* harmony export */ "AbandonedError": () => (/* reexport safe */
|
|
55202
|
-
/* harmony export */ "
|
|
55203
|
-
/* harmony export */ "
|
|
55204
|
-
/* harmony export */ "
|
|
55205
|
-
/* harmony export */ "
|
|
55206
|
-
/* harmony export */ "
|
|
55207
|
-
/* harmony export */ "
|
|
55208
|
-
/* harmony export */ "
|
|
55209
|
-
/* harmony export */ "
|
|
55210
|
-
/* harmony export */ "
|
|
55211
|
-
/* harmony export */ "
|
|
55212
|
-
/* harmony export */ "
|
|
55213
|
-
/* harmony export */ "
|
|
55214
|
-
/* harmony export */ "
|
|
55215
|
-
/* harmony export */ "
|
|
55216
|
-
/* harmony export */ "
|
|
55217
|
-
/* harmony export */ "
|
|
55218
|
-
/* harmony export */ "
|
|
55219
|
-
/* harmony export */ "
|
|
55220
|
-
/* harmony export */ "
|
|
55221
|
-
/* harmony export */ "
|
|
55222
|
-
/* harmony export */ "
|
|
55223
|
-
/* harmony export */ "
|
|
55224
|
-
/* harmony export */ "
|
|
55225
|
-
/* harmony export */ "
|
|
55226
|
-
/* harmony export */ "
|
|
55227
|
-
/* harmony export */ "
|
|
55228
|
-
/* harmony export */ "
|
|
55229
|
-
/* harmony export */ "
|
|
55230
|
-
/* harmony export */ "
|
|
55231
|
-
/* harmony export */ "
|
|
55232
|
-
/* harmony export */ "
|
|
55233
|
-
/* harmony export */ "
|
|
55234
|
-
/* harmony export */ "
|
|
55235
|
-
/* harmony export */ "
|
|
55236
|
-
/* harmony export */ "
|
|
55237
|
-
/* harmony export */ "
|
|
55238
|
-
/* harmony export */ "
|
|
55239
|
-
/* harmony export */ "
|
|
55240
|
-
/* harmony export */ "
|
|
55241
|
-
/* harmony export */ "
|
|
55242
|
-
/* harmony export */ "
|
|
55243
|
-
/* harmony export */ "
|
|
55244
|
-
/* harmony export */ "
|
|
55245
|
-
/* harmony export */ "
|
|
55246
|
-
/* harmony export */ "
|
|
55247
|
-
/* harmony export */ "
|
|
55248
|
-
/* harmony export */ "
|
|
55249
|
-
/* harmony export */ "
|
|
55250
|
-
/* harmony export */ "
|
|
55251
|
-
/* harmony export */ "
|
|
55252
|
-
/* harmony export */ "
|
|
55253
|
-
/* harmony export */ "
|
|
55254
|
-
/* harmony export */ "
|
|
55255
|
-
/* harmony export */ "
|
|
55256
|
-
/* harmony export */ "
|
|
55257
|
-
/* harmony export */ "
|
|
55258
|
-
/* harmony export */ "
|
|
55259
|
-
/* harmony export */ "
|
|
55260
|
-
/* harmony export */ "
|
|
55261
|
-
/* harmony export */ "
|
|
55262
|
-
/* harmony export */ "
|
|
55263
|
-
/* harmony export */ "
|
|
55264
|
-
/* harmony export */ "
|
|
55265
|
-
/* harmony export */ "
|
|
55266
|
-
/* harmony export */ "
|
|
55267
|
-
/* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.asInstanceOf),
|
|
55147
|
+
/* harmony export */ "AbandonedError": () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.AbandonedError),
|
|
55148
|
+
/* harmony export */ "BeDuration": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeDuration),
|
|
55149
|
+
/* harmony export */ "BeEvent": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEvent),
|
|
55150
|
+
/* harmony export */ "BeEventList": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEventList),
|
|
55151
|
+
/* harmony export */ "BeTimePoint": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeTimePoint),
|
|
55152
|
+
/* harmony export */ "BeUiEvent": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUiEvent),
|
|
55153
|
+
/* harmony export */ "BentleyError": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyError),
|
|
55154
|
+
/* harmony export */ "BentleyLoggerCategory": () => (/* reexport safe */ _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_4__.BentleyLoggerCategory),
|
|
55155
|
+
/* harmony export */ "BentleyStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyStatus),
|
|
55156
|
+
/* harmony export */ "BriefcaseStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BriefcaseStatus),
|
|
55157
|
+
/* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
|
|
55158
|
+
/* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
|
|
55159
|
+
/* harmony export */ "CompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
|
|
55160
|
+
/* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
|
|
55161
|
+
/* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
|
|
55162
|
+
/* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
|
|
55163
|
+
/* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
|
|
55164
|
+
/* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
|
|
55165
|
+
/* harmony export */ "Entry": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.Entry),
|
|
55166
|
+
/* harmony export */ "ErrorCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.ErrorCategory),
|
|
55167
|
+
/* harmony export */ "GeoServiceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.GeoServiceStatus),
|
|
55168
|
+
/* harmony export */ "Guid": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Guid),
|
|
55169
|
+
/* harmony export */ "HttpStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.HttpStatus),
|
|
55170
|
+
/* harmony export */ "IModelHubStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelHubStatus),
|
|
55171
|
+
/* harmony export */ "IModelStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelStatus),
|
|
55172
|
+
/* harmony export */ "Id64": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Id64),
|
|
55173
|
+
/* harmony export */ "IndexMap": () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexMap),
|
|
55174
|
+
/* harmony export */ "IndexedValue": () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexedValue),
|
|
55175
|
+
/* harmony export */ "JsonUtils": () => (/* reexport safe */ _JsonUtils__WEBPACK_IMPORTED_MODULE_16__.JsonUtils),
|
|
55176
|
+
/* harmony export */ "LRUCache": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUCache),
|
|
55177
|
+
/* harmony export */ "LRUDictionary": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUDictionary),
|
|
55178
|
+
/* harmony export */ "LRUMap": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUMap),
|
|
55179
|
+
/* harmony export */ "LogLevel": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.LogLevel),
|
|
55180
|
+
/* harmony export */ "Logger": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.Logger),
|
|
55181
|
+
/* harmony export */ "MutableCompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.MutableCompressedId64Set),
|
|
55182
|
+
/* harmony export */ "ObservableSet": () => (/* reexport safe */ _ObservableSet__WEBPACK_IMPORTED_MODULE_19__.ObservableSet),
|
|
55183
|
+
/* harmony export */ "OneAtATimeAction": () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.OneAtATimeAction),
|
|
55184
|
+
/* harmony export */ "OpenMode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.OpenMode),
|
|
55185
|
+
/* harmony export */ "OrderedId64Array": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.OrderedId64Array),
|
|
55186
|
+
/* harmony export */ "OrderedId64Iterable": () => (/* reexport safe */ _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_21__.OrderedId64Iterable),
|
|
55187
|
+
/* harmony export */ "OrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.OrderedSet),
|
|
55188
|
+
/* harmony export */ "PerfLogger": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.PerfLogger),
|
|
55189
|
+
/* harmony export */ "PriorityQueue": () => (/* reexport safe */ _PriorityQueue__WEBPACK_IMPORTED_MODULE_24__.PriorityQueue),
|
|
55190
|
+
/* harmony export */ "ProcessDetector": () => (/* reexport safe */ _ProcessDetector__WEBPACK_IMPORTED_MODULE_25__.ProcessDetector),
|
|
55191
|
+
/* harmony export */ "ReadonlyOrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
|
|
55192
|
+
/* harmony export */ "ReadonlySortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
|
|
55193
|
+
/* harmony export */ "RealityDataStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
|
|
55194
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RepositoryStatus),
|
|
55195
|
+
/* harmony export */ "RpcInterfaceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
|
|
55196
|
+
/* harmony export */ "SortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
|
|
55197
|
+
/* harmony export */ "SpanKind": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
|
|
55198
|
+
/* harmony export */ "StatusCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.StatusCategory),
|
|
55199
|
+
/* harmony export */ "StopWatch": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.StopWatch),
|
|
55200
|
+
/* harmony export */ "SuccessCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.SuccessCategory),
|
|
55201
|
+
/* harmony export */ "Tracing": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.Tracing),
|
|
55202
|
+
/* harmony export */ "TransientIdSequence": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.TransientIdSequence),
|
|
55203
|
+
/* harmony export */ "TupleKeyedMap": () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_30__.TupleKeyedMap),
|
|
55204
|
+
/* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.TypedArrayBuilder),
|
|
55205
|
+
/* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint16ArrayBuilder),
|
|
55206
|
+
/* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint32ArrayBuilder),
|
|
55207
|
+
/* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint8ArrayBuilder),
|
|
55208
|
+
/* harmony export */ "UintArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.UintArrayBuilder),
|
|
55209
|
+
/* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__.UnexpectedErrors),
|
|
55210
|
+
/* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_34__.YieldManager),
|
|
55211
|
+
/* harmony export */ "areEqualPossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.areEqualPossiblyUndefined),
|
|
55212
|
+
/* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
|
|
55268
55213
|
/* harmony export */ "assert": () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
|
|
55269
|
-
/* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */
|
|
55270
|
-
/* harmony export */ "compareBooleans": () => (/* reexport safe */
|
|
55271
|
-
/* harmony export */ "compareBooleansOrUndefined": () => (/* reexport safe */
|
|
55272
|
-
/* harmony export */ "compareNumbers": () => (/* reexport safe */
|
|
55273
|
-
/* harmony export */ "compareNumbersOrUndefined": () => (/* reexport safe */
|
|
55274
|
-
/* harmony export */ "comparePossiblyUndefined": () => (/* reexport safe */
|
|
55275
|
-
/* harmony export */ "compareStrings": () => (/* reexport safe */
|
|
55276
|
-
/* harmony export */ "compareStringsOrUndefined": () => (/* reexport safe */
|
|
55277
|
-
/* harmony export */ "compareWithTolerance": () => (/* reexport safe */
|
|
55278
|
-
/* harmony export */ "dispose": () => (/* reexport safe */
|
|
55279
|
-
/* harmony export */ "disposeArray": () => (/* reexport safe */
|
|
55280
|
-
/* harmony export */ "isIDisposable": () => (/* reexport safe */
|
|
55281
|
-
/* harmony export */ "isInstanceOf": () => (/* reexport safe */
|
|
55282
|
-
/* harmony export */ "isProperSubclassOf": () => (/* reexport safe */
|
|
55283
|
-
/* harmony export */ "isSubclassOf": () => (/* reexport safe */
|
|
55284
|
-
/* harmony export */ "lowerBound": () => (/* reexport safe */
|
|
55285
|
-
/* harmony export */ "omit": () => (/* reexport safe */
|
|
55286
|
-
/* harmony export */ "partitionArray": () => (/* reexport safe */
|
|
55287
|
-
/* harmony export */ "shallowClone": () => (/* reexport safe */
|
|
55288
|
-
/* harmony export */ "using": () => (/* reexport safe */
|
|
55289
|
-
/* harmony export */ "utf8ToString": () => (/* reexport safe */
|
|
55290
|
-
/* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */
|
|
55214
|
+
/* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.base64StringToUint8Array),
|
|
55215
|
+
/* harmony export */ "compareBooleans": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleans),
|
|
55216
|
+
/* harmony export */ "compareBooleansOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleansOrUndefined),
|
|
55217
|
+
/* harmony export */ "compareNumbers": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbers),
|
|
55218
|
+
/* harmony export */ "compareNumbersOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbersOrUndefined),
|
|
55219
|
+
/* harmony export */ "comparePossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.comparePossiblyUndefined),
|
|
55220
|
+
/* harmony export */ "compareStrings": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStrings),
|
|
55221
|
+
/* harmony export */ "compareStringsOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStringsOrUndefined),
|
|
55222
|
+
/* harmony export */ "compareWithTolerance": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareWithTolerance),
|
|
55223
|
+
/* harmony export */ "dispose": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.dispose),
|
|
55224
|
+
/* harmony export */ "disposeArray": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.disposeArray),
|
|
55225
|
+
/* harmony export */ "isIDisposable": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.isIDisposable),
|
|
55226
|
+
/* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.isInstanceOf),
|
|
55227
|
+
/* harmony export */ "isProperSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isProperSubclassOf),
|
|
55228
|
+
/* harmony export */ "isSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isSubclassOf),
|
|
55229
|
+
/* harmony export */ "lowerBound": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.lowerBound),
|
|
55230
|
+
/* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
|
|
55231
|
+
/* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
|
|
55232
|
+
/* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
|
|
55233
|
+
/* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
|
|
55234
|
+
/* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString),
|
|
55235
|
+
/* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToStringPolyfill)
|
|
55291
55236
|
/* harmony export */ });
|
|
55292
55237
|
/* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../../core/bentley/lib/esm/AccessToken.js");
|
|
55293
55238
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../../core/bentley/lib/esm/Assert.js");
|
|
55294
|
-
/* harmony import */ var
|
|
55295
|
-
/* harmony import */ var
|
|
55296
|
-
/* harmony import */ var
|
|
55297
|
-
/* harmony import */ var
|
|
55298
|
-
/* harmony import */ var
|
|
55299
|
-
/* harmony import */ var
|
|
55300
|
-
/* harmony import */ var
|
|
55301
|
-
/* harmony import */ var
|
|
55302
|
-
/* harmony import */ var
|
|
55303
|
-
/* harmony import */ var
|
|
55304
|
-
/* harmony import */ var
|
|
55305
|
-
/* harmony import */ var
|
|
55306
|
-
/* harmony import */ var
|
|
55307
|
-
/* harmony import */ var
|
|
55308
|
-
/* harmony import */ var
|
|
55309
|
-
/* harmony import */ var
|
|
55310
|
-
/* harmony import */ var
|
|
55311
|
-
/* harmony import */ var
|
|
55312
|
-
/* harmony import */ var
|
|
55313
|
-
/* harmony import */ var
|
|
55314
|
-
/* harmony import */ var
|
|
55315
|
-
/* harmony import */ var
|
|
55316
|
-
/* harmony import */ var
|
|
55317
|
-
/* harmony import */ var
|
|
55318
|
-
/* harmony import */ var
|
|
55319
|
-
/* harmony import */ var
|
|
55320
|
-
/* harmony import */ var
|
|
55321
|
-
/* harmony import */ var
|
|
55322
|
-
/* harmony import */ var
|
|
55323
|
-
/* harmony import */ var
|
|
55324
|
-
/* harmony import */ var
|
|
55325
|
-
/* harmony import */ var
|
|
55326
|
-
/* harmony import */ var
|
|
55327
|
-
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
|
|
55239
|
+
/* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BeEvent */ "../../core/bentley/lib/esm/BeEvent.js");
|
|
55240
|
+
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/esm/BentleyError.js");
|
|
55241
|
+
/* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/esm/BentleyLoggerCategory.js");
|
|
55242
|
+
/* harmony import */ var _StatusCategory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./StatusCategory */ "../../core/bentley/lib/esm/StatusCategory.js");
|
|
55243
|
+
/* harmony import */ var _BeSQLite__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BeSQLite */ "../../core/bentley/lib/esm/BeSQLite.js");
|
|
55244
|
+
/* harmony import */ var _ByteStream__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ByteStream */ "../../core/bentley/lib/esm/ByteStream.js");
|
|
55245
|
+
/* harmony import */ var _ClassUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ClassUtils */ "../../core/bentley/lib/esm/ClassUtils.js");
|
|
55246
|
+
/* harmony import */ var _Compare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Compare */ "../../core/bentley/lib/esm/Compare.js");
|
|
55247
|
+
/* harmony import */ var _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CompressedId64Set */ "../../core/bentley/lib/esm/CompressedId64Set.js");
|
|
55248
|
+
/* harmony import */ var _Dictionary__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Dictionary */ "../../core/bentley/lib/esm/Dictionary.js");
|
|
55249
|
+
/* harmony import */ var _Disposable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Disposable */ "../../core/bentley/lib/esm/Disposable.js");
|
|
55250
|
+
/* harmony import */ var _Id__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Id */ "../../core/bentley/lib/esm/Id.js");
|
|
55251
|
+
/* harmony import */ var _IndexMap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./IndexMap */ "../../core/bentley/lib/esm/IndexMap.js");
|
|
55252
|
+
/* harmony import */ var _JsonSchema__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./JsonSchema */ "../../core/bentley/lib/esm/JsonSchema.js");
|
|
55253
|
+
/* harmony import */ var _JsonUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./JsonUtils */ "../../core/bentley/lib/esm/JsonUtils.js");
|
|
55254
|
+
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Logger */ "../../core/bentley/lib/esm/Logger.js");
|
|
55255
|
+
/* harmony import */ var _LRUMap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./LRUMap */ "../../core/bentley/lib/esm/LRUMap.js");
|
|
55256
|
+
/* harmony import */ var _ObservableSet__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ObservableSet */ "../../core/bentley/lib/esm/ObservableSet.js");
|
|
55257
|
+
/* harmony import */ var _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./OneAtATimeAction */ "../../core/bentley/lib/esm/OneAtATimeAction.js");
|
|
55258
|
+
/* harmony import */ var _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./OrderedId64Iterable */ "../../core/bentley/lib/esm/OrderedId64Iterable.js");
|
|
55259
|
+
/* harmony import */ var _OrderedSet__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./OrderedSet */ "../../core/bentley/lib/esm/OrderedSet.js");
|
|
55260
|
+
/* harmony import */ var _partitionArray__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./partitionArray */ "../../core/bentley/lib/esm/partitionArray.js");
|
|
55261
|
+
/* harmony import */ var _PriorityQueue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./PriorityQueue */ "../../core/bentley/lib/esm/PriorityQueue.js");
|
|
55262
|
+
/* harmony import */ var _ProcessDetector__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ProcessDetector */ "../../core/bentley/lib/esm/ProcessDetector.js");
|
|
55263
|
+
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./SortedArray */ "../../core/bentley/lib/esm/SortedArray.js");
|
|
55264
|
+
/* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./StringUtils */ "../../core/bentley/lib/esm/StringUtils.js");
|
|
55265
|
+
/* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Time */ "../../core/bentley/lib/esm/Time.js");
|
|
55266
|
+
/* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Tracing */ "../../core/bentley/lib/esm/Tracing.js");
|
|
55267
|
+
/* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./TupleKeyedMap */ "../../core/bentley/lib/esm/TupleKeyedMap.js");
|
|
55268
|
+
/* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../../core/bentley/lib/esm/TypedArrayBuilder.js");
|
|
55269
|
+
/* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../../core/bentley/lib/esm/UnexpectedErrors.js");
|
|
55270
|
+
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../../core/bentley/lib/esm/UtilityTypes.js");
|
|
55271
|
+
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
|
|
55328
55272
|
/*---------------------------------------------------------------------------------------------
|
|
55329
55273
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
55330
55274
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -55362,7 +55306,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55362
55306
|
|
|
55363
55307
|
|
|
55364
55308
|
|
|
55365
|
-
|
|
55366
55309
|
|
|
55367
55310
|
|
|
55368
55311
|
/** @docs-package-description
|
|
@@ -72865,23 +72808,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72865
72808
|
* @module Geometry
|
|
72866
72809
|
*/
|
|
72867
72810
|
|
|
72868
|
-
/**
|
|
72811
|
+
/** Describes a spherical volume of space as an approximation of the shape of some more complex geometric entity fully contained within that volume.
|
|
72812
|
+
* When performing tests for intersection or containment, the approximation can be used as a first, quick check.
|
|
72813
|
+
* @see [[FrustumPlanes.computeContainment]], for example.
|
|
72869
72814
|
* @public
|
|
72870
72815
|
*/
|
|
72871
72816
|
class BoundingSphere {
|
|
72872
|
-
|
|
72873
|
-
|
|
72874
|
-
this.
|
|
72817
|
+
/** Create a new bounding sphere with the specified center and radius. */
|
|
72818
|
+
constructor(center = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.createZero(), radius = 0) {
|
|
72819
|
+
this.center = center;
|
|
72820
|
+
this.radius = radius;
|
|
72875
72821
|
}
|
|
72822
|
+
/** Change the center and radius of the sphere. */
|
|
72876
72823
|
init(center, radius) {
|
|
72877
72824
|
this.center = center;
|
|
72878
72825
|
this.radius = radius;
|
|
72879
72826
|
}
|
|
72827
|
+
/** Applies the specified transformation matrix to produce a new bounding sphere.
|
|
72828
|
+
* @param transform The transformation matrix to apply.
|
|
72829
|
+
* @param result An optional preallocated object to hold the result, to avoid allocating a new object. May be the same object as `this`.
|
|
72830
|
+
* @returns A bounding sphere equivalent to `this` with the specified transform applied.
|
|
72831
|
+
*/
|
|
72880
72832
|
transformBy(transform, result) {
|
|
72833
|
+
result = result !== null && result !== void 0 ? result : new BoundingSphere();
|
|
72881
72834
|
transform.multiplyPoint3d(this.center, result.center);
|
|
72882
72835
|
result.radius = this.radius * Math.max(transform.matrix.columnXMagnitude(), Math.max(transform.matrix.columnYMagnitude(), (transform.matrix.columnZMagnitude())));
|
|
72883
72836
|
return result;
|
|
72884
72837
|
}
|
|
72838
|
+
/** Apply the specified transform to this bounding sphere. */
|
|
72839
|
+
transformInPlace(transform) {
|
|
72840
|
+
this.transformBy(transform, this);
|
|
72841
|
+
}
|
|
72885
72842
|
}
|
|
72886
72843
|
|
|
72887
72844
|
|
|
@@ -79119,43 +79076,104 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79119
79076
|
*/
|
|
79120
79077
|
|
|
79121
79078
|
|
|
79079
|
+
const planePointIndices = [
|
|
79080
|
+
[1, 3, 5],
|
|
79081
|
+
[0, 4, 2],
|
|
79082
|
+
[2, 6, 3],
|
|
79083
|
+
[0, 1, 4],
|
|
79084
|
+
[0, 2, 1],
|
|
79085
|
+
[4, 5, 6], // front
|
|
79086
|
+
];
|
|
79087
|
+
function computeFrustumPlanes(frustum) {
|
|
79088
|
+
const planes = [];
|
|
79089
|
+
const points = frustum.points;
|
|
79090
|
+
const expandPlaneDistance = 1e-6;
|
|
79091
|
+
for (const indices of planePointIndices) {
|
|
79092
|
+
const i0 = indices[0], i1 = indices[1], i2 = indices[2];
|
|
79093
|
+
const normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createCrossProductToPoints(points[i2], points[i1], points[i0]);
|
|
79094
|
+
normal.normalizeInPlace();
|
|
79095
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
79096
|
+
if (!plane)
|
|
79097
|
+
return [];
|
|
79098
|
+
planes.push(plane);
|
|
79099
|
+
}
|
|
79100
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(planes.length === 6);
|
|
79101
|
+
return planes;
|
|
79102
|
+
}
|
|
79122
79103
|
// Scratch variable used by FrustumPlanes.computeContainment.
|
|
79123
79104
|
const planesContainingSphere = [false, false, false, false, false, false];
|
|
79124
|
-
/** Represents a
|
|
79125
|
-
*
|
|
79105
|
+
/** Represents a the planes of a [[Frustum]] for testing containment and intersection.
|
|
79106
|
+
* A valid frustum produces six planes. A degenerate frustum produces zero planes.
|
|
79107
|
+
* @public
|
|
79108
|
+
* @extensions
|
|
79126
79109
|
*/
|
|
79127
79110
|
class FrustumPlanes {
|
|
79128
|
-
constructor(
|
|
79129
|
-
|
|
79130
|
-
|
|
79131
|
-
|
|
79111
|
+
constructor(planes) {
|
|
79112
|
+
this._planes = planes;
|
|
79113
|
+
}
|
|
79114
|
+
/** Compute the six planes of the specified frustum.
|
|
79115
|
+
* If the frustum is degenerate - that is, its points do not represent a truncated pyramid - then the returned `FrustumPlanes` will contain zero planes.
|
|
79116
|
+
* @see [[isValid]] to test this condition.
|
|
79117
|
+
*/
|
|
79118
|
+
static fromFrustum(frustum) {
|
|
79119
|
+
const planes = computeFrustumPlanes(frustum);
|
|
79120
|
+
return new FrustumPlanes(planes);
|
|
79132
79121
|
}
|
|
79133
|
-
|
|
79134
|
-
|
|
79135
|
-
|
|
79122
|
+
/** Create an empty set of frustum planes. [[isValid]] will be `true`. This can be useful when you want to create a `FrustumPlanes` object and initialize it later via [[init]] -
|
|
79123
|
+
* for example, if you intend to use the same object repeatedly with different [[Frustum]]s.
|
|
79124
|
+
*/
|
|
79125
|
+
static createEmpty() {
|
|
79126
|
+
return new FrustumPlanes([]);
|
|
79127
|
+
}
|
|
79128
|
+
/** Returns true if [[planes]] consists of six planes. This may return `false` if a degenerate [[Frustum]] was supplied to [[fromFrustum]], or if this object was created
|
|
79129
|
+
* via [[createEmpty]] - in either case, [[planes]] will be an empty array.
|
|
79130
|
+
*/
|
|
79131
|
+
get isValid() {
|
|
79132
|
+
return this._planes.length === 6;
|
|
79133
|
+
}
|
|
79134
|
+
/** Obtain the list of planes defining the frustum. If [[isValid]] is `true`, it will have a length of six, with the planes ordered as
|
|
79135
|
+
* right, left, top, bottom, back, front. Otherwise, it will be empty.
|
|
79136
|
+
*/
|
|
79137
|
+
get planes() {
|
|
79138
|
+
return this._planes;
|
|
79139
|
+
}
|
|
79140
|
+
/** Recompute the planes from the specified frustum.
|
|
79141
|
+
* @returns true upon success, or false if the input frustum was degenerate, in which case [[isValid]] will be `false`.
|
|
79142
|
+
*/
|
|
79136
79143
|
init(frustum) {
|
|
79137
|
-
|
|
79138
|
-
|
|
79139
|
-
}
|
|
79140
|
-
else {
|
|
79141
|
-
this._planes.length = 0;
|
|
79142
|
-
}
|
|
79143
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 1, 3, 5); // right
|
|
79144
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 4, 2); // left
|
|
79145
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 2, 6, 3); // top
|
|
79146
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 1, 4); // bottom
|
|
79147
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 2, 1); // back
|
|
79148
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 4, 5, 6); // front
|
|
79144
|
+
this._planes = computeFrustumPlanes(frustum);
|
|
79145
|
+
return this.isValid;
|
|
79149
79146
|
}
|
|
79147
|
+
/** Compute to what degree a [[Frustum]] is contained with these frustum planes.
|
|
79148
|
+
* @param box The frustum to test for containment.
|
|
79149
|
+
* @param sphere An optional spherical bounding volume fully containing `box`. If supplied, this can reduce the amount of computation required.
|
|
79150
|
+
* @returns the degree to which `box` is contained within the clipping planes.
|
|
79151
|
+
*/
|
|
79150
79152
|
computeFrustumContainment(box, sphere) {
|
|
79151
79153
|
return this.computeContainment(box.points, sphere);
|
|
79152
79154
|
}
|
|
79155
|
+
/** Determines whether a [[Frustum]] intersects with or is fully contained within these frustum planes.
|
|
79156
|
+
* @param box The frustum to test for containment.
|
|
79157
|
+
* @param sphere An optional spherical bounding volume fully containing `box`. If supplied, this can reduce the amount of computation required.
|
|
79158
|
+
* @returns true if `box` is not entirely outside of the clipping planes.
|
|
79159
|
+
*/
|
|
79153
79160
|
intersectsFrustum(box, sphere) {
|
|
79154
79161
|
return FrustumPlanes.Containment.Outside !== this.computeFrustumContainment(box, sphere);
|
|
79155
79162
|
}
|
|
79163
|
+
/** Determines whether a point is contained within these frustum planes.
|
|
79164
|
+
* @param point The point to test for containment.
|
|
79165
|
+
* @param tolerance The maximum distance from the interior of the frustum planes that will still be considered "contained".
|
|
79166
|
+
* @returns true if `point` is no further than `tolerance` meters outside of the clipping planes.
|
|
79167
|
+
*/
|
|
79156
79168
|
containsPoint(point, tolerance = 1.0e-8) {
|
|
79157
79169
|
return FrustumPlanes.Containment.Outside !== this.computeContainment([point], undefined, tolerance);
|
|
79158
79170
|
}
|
|
79171
|
+
/** Compute the degree to which a set of points is contained within these frustum planes.
|
|
79172
|
+
* @param points The points to test for containment.
|
|
79173
|
+
* @param sphere An optional spherical bounding volume fully containing all of the points. If supplied, this can reduce the amount of computation required.
|
|
79174
|
+
* @param tolerance The maximum distance from the interior of the frustum planes a point must be to be considered "contained".
|
|
79175
|
+
* @returns the degree to which all of the points are contained within the clipping planes.
|
|
79176
|
+
*/
|
|
79159
79177
|
computeContainment(points, sphere, tolerance = 1.0e-8) {
|
|
79160
79178
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
79161
79179
|
if (undefined === this._planes)
|
|
@@ -79189,6 +79207,11 @@ class FrustumPlanes {
|
|
|
79189
79207
|
}
|
|
79190
79208
|
return allInside ? FrustumPlanes.Containment.Inside : FrustumPlanes.Containment.Partial;
|
|
79191
79209
|
}
|
|
79210
|
+
/** Computes whether a ray intersects these clipping planes.
|
|
79211
|
+
* @param origin The origin of the ray.
|
|
79212
|
+
* @param direction The direction of the ray.
|
|
79213
|
+
* @returns true if the ray extending from `origin` in the specified `direction` intersects at least one of the clipping planes.
|
|
79214
|
+
*/
|
|
79192
79215
|
intersectsRay(origin, direction) {
|
|
79193
79216
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
79194
79217
|
if (undefined === this._planes) {
|
|
@@ -79218,25 +79241,20 @@ class FrustumPlanes {
|
|
|
79218
79241
|
return tNear <= tFar;
|
|
79219
79242
|
}
|
|
79220
79243
|
}
|
|
79221
|
-
/** @
|
|
79244
|
+
/** @public @extensions */
|
|
79222
79245
|
(function (FrustumPlanes) {
|
|
79223
|
-
/**
|
|
79246
|
+
/** Describes the degree to which an object is contained within the planes of a [[Frustum]].
|
|
79247
|
+
* @see [[FrustumPlanes.computeContainment]], for example.
|
|
79248
|
+
*/
|
|
79224
79249
|
let Containment;
|
|
79225
79250
|
(function (Containment) {
|
|
79251
|
+
/** The object is entirely outside of the frustum, intersecting none of its planes. */
|
|
79226
79252
|
Containment[Containment["Outside"] = 0] = "Outside";
|
|
79253
|
+
/** The object intersects at least one of the frustum planes. placing it partially inside of the frustum. */
|
|
79227
79254
|
Containment[Containment["Partial"] = 1] = "Partial";
|
|
79255
|
+
/** The object is entirely inside of the frustum, intersecting none of its planes. */
|
|
79228
79256
|
Containment[Containment["Inside"] = 2] = "Inside";
|
|
79229
79257
|
})(Containment = FrustumPlanes.Containment || (FrustumPlanes.Containment = {}));
|
|
79230
|
-
/** @internal */
|
|
79231
|
-
function addPlaneFromPoints(planes, points, i0, i1, i2, expandPlaneDistance = 1.0e-6) {
|
|
79232
|
-
const normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createCrossProductToPoints(points[i2], points[i1], points[i0]);
|
|
79233
|
-
normal.normalizeInPlace();
|
|
79234
|
-
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
79235
|
-
if (undefined !== plane) {
|
|
79236
|
-
planes.push(plane);
|
|
79237
|
-
}
|
|
79238
|
-
}
|
|
79239
|
-
FrustumPlanes.addPlaneFromPoints = addPlaneFromPoints;
|
|
79240
79258
|
})(FrustumPlanes || (FrustumPlanes = {}));
|
|
79241
79259
|
|
|
79242
79260
|
|
|
@@ -97483,7 +97501,7 @@ class IModelApp {
|
|
|
97483
97501
|
}
|
|
97484
97502
|
}
|
|
97485
97503
|
/** Get the user's access token for this IModelApp, or a blank string if none is available.
|
|
97486
|
-
* @note
|
|
97504
|
+
* @note Access tokens expire periodically and are automatically refreshed, if possible. Therefore tokens should not be saved, and the value
|
|
97487
97505
|
* returned by this method may change over time throughout the course of a session.
|
|
97488
97506
|
*/
|
|
97489
97507
|
static async getAccessToken() {
|
|
@@ -104704,7 +104722,7 @@ class RenderContext {
|
|
|
104704
104722
|
this._viewport = vp;
|
|
104705
104723
|
this.viewFlags = vp.viewFlags;
|
|
104706
104724
|
this.frustum = frustum ? frustum : vp.getFrustum();
|
|
104707
|
-
this.frustumPlanes =
|
|
104725
|
+
this.frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this.frustum);
|
|
104708
104726
|
}
|
|
104709
104727
|
/** Given a point in world coordinates, determine approximately how many pixels it occupies on screen based on this context's frustum. */
|
|
104710
104728
|
getPixelSizeAtPoint(inPoint) {
|
|
@@ -107838,7 +107856,6 @@ class ViewState3d extends ViewState {
|
|
|
107838
107856
|
* @returns A [[ViewStatus]] indicating whether the camera was successfully positioned.
|
|
107839
107857
|
* @note If the aspect ratio of viewDelta does not match the aspect ratio of a Viewport into which this view is displayed, it will be
|
|
107840
107858
|
* adjusted when the [[Viewport]] is synchronized from this view.
|
|
107841
|
-
* @beta
|
|
107842
107859
|
*/
|
|
107843
107860
|
lookAt(args) {
|
|
107844
107861
|
var _a, _b, _c;
|
|
@@ -111010,7 +111027,6 @@ class Viewport {
|
|
|
111010
111027
|
* @param options Specifies how to query.
|
|
111011
111028
|
* @param callback Callback to invoke with the results.
|
|
111012
111029
|
* @note This function may be slow, especially if the features are being queried from screen pixels. Avoid calling it repeatedly in rapid succession.
|
|
111013
|
-
* @beta
|
|
111014
111030
|
*/
|
|
111015
111031
|
queryVisibleFeatures(options, callback) {
|
|
111016
111032
|
return (0,_render_VisibleFeature__WEBPACK_IMPORTED_MODULE_29__.queryVisibleFeatures)(this, options, callback);
|
|
@@ -113240,6 +113256,7 @@ const extensionExports = {
|
|
|
113240
113256
|
FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FontType,
|
|
113241
113257
|
FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory,
|
|
113242
113258
|
FrustumAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrustumAnimator,
|
|
113259
|
+
FrustumPlanes: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FrustumPlanes,
|
|
113243
113260
|
GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeoCoordStatus,
|
|
113244
113261
|
GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel2dState,
|
|
113245
113262
|
GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel3dState,
|
|
@@ -123215,7 +123232,7 @@ class BackgroundMapDrape extends _TextureDrape__WEBPACK_IMPORTED_MODULE_13__.Tex
|
|
|
123215
123232
|
this._frustum = projection.textureFrustum;
|
|
123216
123233
|
this._debugFrustum = projection.debugFrustum;
|
|
123217
123234
|
this._projectionMatrix = projection.projectionMatrix;
|
|
123218
|
-
const drawArgs = _tile_internal__WEBPACK_IMPORTED_MODULE_3__.GraphicsCollectorDrawArgs.create(context, this, this._mapTree,
|
|
123235
|
+
const drawArgs = _tile_internal__WEBPACK_IMPORTED_MODULE_3__.GraphicsCollectorDrawArgs.create(context, this, this._mapTree, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.fromFrustum(this._frustum), projection.worldToViewMap);
|
|
123219
123236
|
if (undefined !== drawArgs)
|
|
123220
123237
|
tileTree.draw(drawArgs);
|
|
123221
123238
|
if (context.target.debugControl && context.target.debugControl.displayDrapeFrustum) {
|
|
@@ -130612,7 +130629,8 @@ class PlanarClassifier extends _RenderPlanarClassifier__WEBPACK_IMPORTED_MODULE_
|
|
|
130612
130629
|
this._planarClipMaskOverrides = (_b = this._planarClipMask) === null || _b === void 0 ? void 0 : _b.getPlanarClipMaskSymbologyOverrides();
|
|
130613
130630
|
const drawTree = (treeRef, graphics) => {
|
|
130614
130631
|
this._graphics = graphics;
|
|
130615
|
-
const
|
|
130632
|
+
const frustumPlanes = this._frustum ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this._frustum) : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.createEmpty();
|
|
130633
|
+
const drawArgs = _tile_internal__WEBPACK_IMPORTED_MODULE_3__.GraphicsCollectorDrawArgs.create(context, this, treeRef, frustumPlanes, projection.worldToViewMap);
|
|
130616
130634
|
if (undefined !== drawArgs)
|
|
130617
130635
|
treeRef.draw(drawArgs);
|
|
130618
130636
|
this._graphics = undefined;
|
|
@@ -130926,7 +130944,7 @@ class PlanarTextureProjection {
|
|
|
130926
130944
|
const textureMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRows(frustumX, frustumY, frustumZ);
|
|
130927
130945
|
const textureTransform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createRefs(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero(), textureMatrix);
|
|
130928
130946
|
const viewFrustum = viewingSpace.getFrustum().transformBy(textureTransform);
|
|
130929
|
-
const viewPlanes =
|
|
130947
|
+
const viewPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.FrustumPlanes.fromFrustum(viewFrustum);
|
|
130930
130948
|
const viewClipPlanes = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ConvexClipPlaneSet.createPlanes(viewPlanes.planes);
|
|
130931
130949
|
let textureRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
130932
130950
|
const tileToTexture = textureTransform.multiplyTransformTransform(target.location);
|
|
@@ -132730,7 +132748,7 @@ class RenderCommands {
|
|
|
132730
132748
|
this._batchState.pop();
|
|
132731
132749
|
}
|
|
132732
132750
|
// Define a culling frustum. Commands associated with Graphics whose ranges do not intersect the frustum will be skipped.
|
|
132733
|
-
setCheckRange(frustum) { this._frustumPlanes =
|
|
132751
|
+
setCheckRange(frustum) { this._frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.fromFrustum(frustum); }
|
|
132734
132752
|
// Clear the culling frustum.
|
|
132735
132753
|
clearCheckRange() { this._frustumPlanes = undefined; }
|
|
132736
132754
|
setupClassificationByVolume() {
|
|
@@ -137698,7 +137716,7 @@ class ShadowMapParams {
|
|
|
137698
137716
|
}
|
|
137699
137717
|
const defaultSunDirection = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(-1, -1, -1).normalize();
|
|
137700
137718
|
const scratchFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Frustum();
|
|
137701
|
-
const scratchFrustumPlanes =
|
|
137719
|
+
const scratchFrustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.createEmpty();
|
|
137702
137720
|
class SolarShadowMap {
|
|
137703
137721
|
constructor(target) {
|
|
137704
137722
|
this._projectionMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix4d.createIdentity();
|
|
@@ -159151,7 +159169,6 @@ class TraversalSelectionContext {
|
|
|
159151
159169
|
}
|
|
159152
159170
|
}
|
|
159153
159171
|
const scratchFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Frustum();
|
|
159154
|
-
const scratchFrustumPlanes = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes();
|
|
159155
159172
|
const scratchCarto = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Cartographic.createZero();
|
|
159156
159173
|
const scratchPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero(), scratchOrigin = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero();
|
|
159157
159174
|
const scratchRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
@@ -159425,11 +159442,10 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
159425
159442
|
/** @internal */
|
|
159426
159443
|
preloadTilesForScene(args, context, frustumTransform) {
|
|
159427
159444
|
const preloadFrustum = args.viewingSpace.getPreloadFrustum(frustumTransform, scratchFrustum);
|
|
159428
|
-
const preloadFrustumPlanes =
|
|
159445
|
+
const preloadFrustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.fromFrustum(preloadFrustum);
|
|
159429
159446
|
const worldToNpc = preloadFrustum.toMap4d();
|
|
159430
159447
|
const preloadWorldToViewMap = args.viewingSpace.calcNpcToView().multiplyMapMap(worldToNpc);
|
|
159431
159448
|
const preloadArgs = new _internal__WEBPACK_IMPORTED_MODULE_6__.RealityTileDrawArgs(args, preloadWorldToViewMap, preloadFrustumPlanes);
|
|
159432
|
-
scratchFrustumPlanes.init(preloadFrustum);
|
|
159433
159449
|
if (context.preloadDebugBuilder) {
|
|
159434
159450
|
context.preloadDebugBuilder.setSymbology(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.blue, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.blue, 2, 0);
|
|
159435
159451
|
context.preloadDebugBuilder.addFrustum(preloadFrustum);
|
|
@@ -161066,7 +161082,7 @@ class TileDrawArgs {
|
|
|
161066
161082
|
this.graphics.symbologyOverrides = symbologyOverrides;
|
|
161067
161083
|
this.graphics.animationId = tree.modelId;
|
|
161068
161084
|
this.viewingSpace = context.viewingSpace;
|
|
161069
|
-
this._frustumPlanes =
|
|
161085
|
+
this._frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this.viewingSpace.getFrustum());
|
|
161070
161086
|
this.planarClassifier = context.getPlanarClassifierForModel(tree.modelId);
|
|
161071
161087
|
this.drape = context.getTextureDrapeForModel(tree.modelId);
|
|
161072
161088
|
// NB: If the tile tree has its own clip, do not also apply the view's clip.
|
|
@@ -286144,7 +286160,7 @@ class TestContext {
|
|
|
286144
286160
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
286145
286161
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
286146
286162
|
await core_frontend_1.NoRenderApp.startup({
|
|
286147
|
-
applicationVersion: "3.6.0-dev.
|
|
286163
|
+
applicationVersion: "3.6.0-dev.44",
|
|
286148
286164
|
applicationId: this.settings.gprid,
|
|
286149
286165
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
286150
286166
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -305311,7 +305327,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305311
305327
|
/***/ ((module) => {
|
|
305312
305328
|
|
|
305313
305329
|
"use strict";
|
|
305314
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
305330
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.44","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.6.0-dev.44","@itwin/core-bentley":"workspace:^3.6.0-dev.44","@itwin/core-common":"workspace:^3.6.0-dev.44","@itwin/core-geometry":"workspace:^3.6.0-dev.44","@itwin/core-orbitgt":"workspace:^3.6.0-dev.44","@itwin/core-quantity":"workspace:^3.6.0-dev.44","@itwin/webgl-compatibility":"workspace:^3.6.0-dev.44"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/object-storage-azure":"~1.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
305315
305331
|
|
|
305316
305332
|
/***/ }),
|
|
305317
305333
|
|