@itwin/ecschema-rpcinterface-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 +245 -229
- 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 +16 -16
|
@@ -46176,60 +46176,6 @@ function assert(condition, message) {
|
|
|
46176
46176
|
}
|
|
46177
46177
|
|
|
46178
46178
|
|
|
46179
|
-
/***/ }),
|
|
46180
|
-
|
|
46181
|
-
/***/ "../../core/bentley/lib/esm/AsyncMutex.js":
|
|
46182
|
-
/*!************************************************!*\
|
|
46183
|
-
!*** ../../core/bentley/lib/esm/AsyncMutex.js ***!
|
|
46184
|
-
\************************************************/
|
|
46185
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
46186
|
-
|
|
46187
|
-
"use strict";
|
|
46188
|
-
__webpack_require__.r(__webpack_exports__);
|
|
46189
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46190
|
-
/* harmony export */ "AsyncMutex": () => (/* binding */ AsyncMutex)
|
|
46191
|
-
/* harmony export */ });
|
|
46192
|
-
/*---------------------------------------------------------------------------------------------
|
|
46193
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
46194
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
46195
|
-
*--------------------------------------------------------------------------------------------*/
|
|
46196
|
-
/** @packageDocumentation
|
|
46197
|
-
* @module Utils
|
|
46198
|
-
*/
|
|
46199
|
-
/**
|
|
46200
|
-
* Utility to ensure a block of async code executes atomically.
|
|
46201
|
-
* Even if JavaScript precludes the possibility of race conditions between threads, there is potential for
|
|
46202
|
-
* race conditions with async code. This utility is needed in cases where a block of async code needs to run
|
|
46203
|
-
* to completion before another block is started.
|
|
46204
|
-
* This utility was based on this article: https://spin.atomicobject.com/2018/09/10/javascript-concurrency/
|
|
46205
|
-
* @alpha
|
|
46206
|
-
*/
|
|
46207
|
-
class AsyncMutex {
|
|
46208
|
-
constructor() {
|
|
46209
|
-
this._mutex = Promise.resolve();
|
|
46210
|
-
}
|
|
46211
|
-
/**
|
|
46212
|
-
* Await the return value to setup a lock. The return value
|
|
46213
|
-
* is also the unlock function that can be called to unlock
|
|
46214
|
-
* the mutex.
|
|
46215
|
-
*/
|
|
46216
|
-
async lock() {
|
|
46217
|
-
/**
|
|
46218
|
-
* Note: The promise returned by this method will resolve (with the unlock function, which is actually the
|
|
46219
|
-
* mutex’s then’s resolve function) once any previous mutexes have finished and called their
|
|
46220
|
-
* respective unlock function that was yielded over their promise.
|
|
46221
|
-
*/
|
|
46222
|
-
let begin = (_unlock) => { };
|
|
46223
|
-
this._mutex = this._mutex.then(async () => {
|
|
46224
|
-
return new Promise(begin);
|
|
46225
|
-
});
|
|
46226
|
-
return new Promise((res) => {
|
|
46227
|
-
begin = res;
|
|
46228
|
-
});
|
|
46229
|
-
}
|
|
46230
|
-
}
|
|
46231
|
-
|
|
46232
|
-
|
|
46233
46179
|
/***/ }),
|
|
46234
46180
|
|
|
46235
46181
|
/***/ "../../core/bentley/lib/esm/BeEvent.js":
|
|
@@ -52488,133 +52434,131 @@ class YieldManager {
|
|
|
52488
52434
|
"use strict";
|
|
52489
52435
|
__webpack_require__.r(__webpack_exports__);
|
|
52490
52436
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52491
|
-
/* harmony export */ "AbandonedError": () => (/* reexport safe */
|
|
52492
|
-
/* harmony export */ "
|
|
52493
|
-
/* harmony export */ "
|
|
52494
|
-
/* harmony export */ "
|
|
52495
|
-
/* harmony export */ "
|
|
52496
|
-
/* harmony export */ "
|
|
52497
|
-
/* harmony export */ "
|
|
52498
|
-
/* harmony export */ "
|
|
52499
|
-
/* harmony export */ "
|
|
52500
|
-
/* harmony export */ "
|
|
52501
|
-
/* harmony export */ "
|
|
52502
|
-
/* harmony export */ "
|
|
52503
|
-
/* harmony export */ "
|
|
52504
|
-
/* harmony export */ "
|
|
52505
|
-
/* harmony export */ "
|
|
52506
|
-
/* harmony export */ "
|
|
52507
|
-
/* harmony export */ "
|
|
52508
|
-
/* harmony export */ "
|
|
52509
|
-
/* harmony export */ "
|
|
52510
|
-
/* harmony export */ "
|
|
52511
|
-
/* harmony export */ "
|
|
52512
|
-
/* harmony export */ "
|
|
52513
|
-
/* harmony export */ "
|
|
52514
|
-
/* harmony export */ "
|
|
52515
|
-
/* harmony export */ "
|
|
52516
|
-
/* harmony export */ "
|
|
52517
|
-
/* harmony export */ "
|
|
52518
|
-
/* harmony export */ "
|
|
52519
|
-
/* harmony export */ "
|
|
52520
|
-
/* harmony export */ "
|
|
52521
|
-
/* harmony export */ "
|
|
52522
|
-
/* harmony export */ "
|
|
52523
|
-
/* harmony export */ "
|
|
52524
|
-
/* harmony export */ "
|
|
52525
|
-
/* harmony export */ "
|
|
52526
|
-
/* harmony export */ "
|
|
52527
|
-
/* harmony export */ "
|
|
52528
|
-
/* harmony export */ "
|
|
52529
|
-
/* harmony export */ "
|
|
52530
|
-
/* harmony export */ "
|
|
52531
|
-
/* harmony export */ "
|
|
52532
|
-
/* harmony export */ "
|
|
52533
|
-
/* harmony export */ "
|
|
52534
|
-
/* harmony export */ "
|
|
52535
|
-
/* harmony export */ "
|
|
52536
|
-
/* harmony export */ "
|
|
52537
|
-
/* harmony export */ "
|
|
52538
|
-
/* harmony export */ "
|
|
52539
|
-
/* harmony export */ "
|
|
52540
|
-
/* harmony export */ "
|
|
52541
|
-
/* harmony export */ "
|
|
52542
|
-
/* harmony export */ "
|
|
52543
|
-
/* harmony export */ "
|
|
52544
|
-
/* harmony export */ "
|
|
52545
|
-
/* harmony export */ "
|
|
52546
|
-
/* harmony export */ "
|
|
52547
|
-
/* harmony export */ "
|
|
52548
|
-
/* harmony export */ "
|
|
52549
|
-
/* harmony export */ "
|
|
52550
|
-
/* harmony export */ "
|
|
52551
|
-
/* harmony export */ "
|
|
52552
|
-
/* harmony export */ "
|
|
52553
|
-
/* harmony export */ "
|
|
52554
|
-
/* harmony export */ "
|
|
52555
|
-
/* harmony export */ "
|
|
52556
|
-
/* harmony export */ "
|
|
52557
|
-
/* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.asInstanceOf),
|
|
52437
|
+
/* harmony export */ "AbandonedError": () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.AbandonedError),
|
|
52438
|
+
/* harmony export */ "BeDuration": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeDuration),
|
|
52439
|
+
/* harmony export */ "BeEvent": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEvent),
|
|
52440
|
+
/* harmony export */ "BeEventList": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEventList),
|
|
52441
|
+
/* harmony export */ "BeTimePoint": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeTimePoint),
|
|
52442
|
+
/* harmony export */ "BeUiEvent": () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUiEvent),
|
|
52443
|
+
/* harmony export */ "BentleyError": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyError),
|
|
52444
|
+
/* harmony export */ "BentleyLoggerCategory": () => (/* reexport safe */ _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_4__.BentleyLoggerCategory),
|
|
52445
|
+
/* harmony export */ "BentleyStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyStatus),
|
|
52446
|
+
/* harmony export */ "BriefcaseStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BriefcaseStatus),
|
|
52447
|
+
/* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
|
|
52448
|
+
/* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
|
|
52449
|
+
/* harmony export */ "CompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
|
|
52450
|
+
/* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
|
|
52451
|
+
/* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
|
|
52452
|
+
/* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
|
|
52453
|
+
/* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
|
|
52454
|
+
/* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
|
|
52455
|
+
/* harmony export */ "Entry": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.Entry),
|
|
52456
|
+
/* harmony export */ "ErrorCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.ErrorCategory),
|
|
52457
|
+
/* harmony export */ "GeoServiceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.GeoServiceStatus),
|
|
52458
|
+
/* harmony export */ "Guid": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Guid),
|
|
52459
|
+
/* harmony export */ "HttpStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.HttpStatus),
|
|
52460
|
+
/* harmony export */ "IModelHubStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelHubStatus),
|
|
52461
|
+
/* harmony export */ "IModelStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelStatus),
|
|
52462
|
+
/* harmony export */ "Id64": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Id64),
|
|
52463
|
+
/* harmony export */ "IndexMap": () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexMap),
|
|
52464
|
+
/* harmony export */ "IndexedValue": () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexedValue),
|
|
52465
|
+
/* harmony export */ "JsonUtils": () => (/* reexport safe */ _JsonUtils__WEBPACK_IMPORTED_MODULE_16__.JsonUtils),
|
|
52466
|
+
/* harmony export */ "LRUCache": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUCache),
|
|
52467
|
+
/* harmony export */ "LRUDictionary": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUDictionary),
|
|
52468
|
+
/* harmony export */ "LRUMap": () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUMap),
|
|
52469
|
+
/* harmony export */ "LogLevel": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.LogLevel),
|
|
52470
|
+
/* harmony export */ "Logger": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.Logger),
|
|
52471
|
+
/* harmony export */ "MutableCompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.MutableCompressedId64Set),
|
|
52472
|
+
/* harmony export */ "ObservableSet": () => (/* reexport safe */ _ObservableSet__WEBPACK_IMPORTED_MODULE_19__.ObservableSet),
|
|
52473
|
+
/* harmony export */ "OneAtATimeAction": () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.OneAtATimeAction),
|
|
52474
|
+
/* harmony export */ "OpenMode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.OpenMode),
|
|
52475
|
+
/* harmony export */ "OrderedId64Array": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.OrderedId64Array),
|
|
52476
|
+
/* harmony export */ "OrderedId64Iterable": () => (/* reexport safe */ _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_21__.OrderedId64Iterable),
|
|
52477
|
+
/* harmony export */ "OrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.OrderedSet),
|
|
52478
|
+
/* harmony export */ "PerfLogger": () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.PerfLogger),
|
|
52479
|
+
/* harmony export */ "PriorityQueue": () => (/* reexport safe */ _PriorityQueue__WEBPACK_IMPORTED_MODULE_24__.PriorityQueue),
|
|
52480
|
+
/* harmony export */ "ProcessDetector": () => (/* reexport safe */ _ProcessDetector__WEBPACK_IMPORTED_MODULE_25__.ProcessDetector),
|
|
52481
|
+
/* harmony export */ "ReadonlyOrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
|
|
52482
|
+
/* harmony export */ "ReadonlySortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
|
|
52483
|
+
/* harmony export */ "RealityDataStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
|
|
52484
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RepositoryStatus),
|
|
52485
|
+
/* harmony export */ "RpcInterfaceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
|
|
52486
|
+
/* harmony export */ "SortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
|
|
52487
|
+
/* harmony export */ "SpanKind": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
|
|
52488
|
+
/* harmony export */ "StatusCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.StatusCategory),
|
|
52489
|
+
/* harmony export */ "StopWatch": () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.StopWatch),
|
|
52490
|
+
/* harmony export */ "SuccessCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.SuccessCategory),
|
|
52491
|
+
/* harmony export */ "Tracing": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.Tracing),
|
|
52492
|
+
/* harmony export */ "TransientIdSequence": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.TransientIdSequence),
|
|
52493
|
+
/* harmony export */ "TupleKeyedMap": () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_30__.TupleKeyedMap),
|
|
52494
|
+
/* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.TypedArrayBuilder),
|
|
52495
|
+
/* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint16ArrayBuilder),
|
|
52496
|
+
/* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint32ArrayBuilder),
|
|
52497
|
+
/* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint8ArrayBuilder),
|
|
52498
|
+
/* harmony export */ "UintArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.UintArrayBuilder),
|
|
52499
|
+
/* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__.UnexpectedErrors),
|
|
52500
|
+
/* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_34__.YieldManager),
|
|
52501
|
+
/* harmony export */ "areEqualPossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.areEqualPossiblyUndefined),
|
|
52502
|
+
/* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
|
|
52558
52503
|
/* harmony export */ "assert": () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
|
|
52559
|
-
/* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */
|
|
52560
|
-
/* harmony export */ "compareBooleans": () => (/* reexport safe */
|
|
52561
|
-
/* harmony export */ "compareBooleansOrUndefined": () => (/* reexport safe */
|
|
52562
|
-
/* harmony export */ "compareNumbers": () => (/* reexport safe */
|
|
52563
|
-
/* harmony export */ "compareNumbersOrUndefined": () => (/* reexport safe */
|
|
52564
|
-
/* harmony export */ "comparePossiblyUndefined": () => (/* reexport safe */
|
|
52565
|
-
/* harmony export */ "compareStrings": () => (/* reexport safe */
|
|
52566
|
-
/* harmony export */ "compareStringsOrUndefined": () => (/* reexport safe */
|
|
52567
|
-
/* harmony export */ "compareWithTolerance": () => (/* reexport safe */
|
|
52568
|
-
/* harmony export */ "dispose": () => (/* reexport safe */
|
|
52569
|
-
/* harmony export */ "disposeArray": () => (/* reexport safe */
|
|
52570
|
-
/* harmony export */ "isIDisposable": () => (/* reexport safe */
|
|
52571
|
-
/* harmony export */ "isInstanceOf": () => (/* reexport safe */
|
|
52572
|
-
/* harmony export */ "isProperSubclassOf": () => (/* reexport safe */
|
|
52573
|
-
/* harmony export */ "isSubclassOf": () => (/* reexport safe */
|
|
52574
|
-
/* harmony export */ "lowerBound": () => (/* reexport safe */
|
|
52575
|
-
/* harmony export */ "omit": () => (/* reexport safe */
|
|
52576
|
-
/* harmony export */ "partitionArray": () => (/* reexport safe */
|
|
52577
|
-
/* harmony export */ "shallowClone": () => (/* reexport safe */
|
|
52578
|
-
/* harmony export */ "using": () => (/* reexport safe */
|
|
52579
|
-
/* harmony export */ "utf8ToString": () => (/* reexport safe */
|
|
52580
|
-
/* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */
|
|
52504
|
+
/* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.base64StringToUint8Array),
|
|
52505
|
+
/* harmony export */ "compareBooleans": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleans),
|
|
52506
|
+
/* harmony export */ "compareBooleansOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleansOrUndefined),
|
|
52507
|
+
/* harmony export */ "compareNumbers": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbers),
|
|
52508
|
+
/* harmony export */ "compareNumbersOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbersOrUndefined),
|
|
52509
|
+
/* harmony export */ "comparePossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.comparePossiblyUndefined),
|
|
52510
|
+
/* harmony export */ "compareStrings": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStrings),
|
|
52511
|
+
/* harmony export */ "compareStringsOrUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStringsOrUndefined),
|
|
52512
|
+
/* harmony export */ "compareWithTolerance": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareWithTolerance),
|
|
52513
|
+
/* harmony export */ "dispose": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.dispose),
|
|
52514
|
+
/* harmony export */ "disposeArray": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.disposeArray),
|
|
52515
|
+
/* harmony export */ "isIDisposable": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.isIDisposable),
|
|
52516
|
+
/* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.isInstanceOf),
|
|
52517
|
+
/* harmony export */ "isProperSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isProperSubclassOf),
|
|
52518
|
+
/* harmony export */ "isSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isSubclassOf),
|
|
52519
|
+
/* harmony export */ "lowerBound": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.lowerBound),
|
|
52520
|
+
/* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
|
|
52521
|
+
/* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
|
|
52522
|
+
/* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
|
|
52523
|
+
/* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
|
|
52524
|
+
/* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString),
|
|
52525
|
+
/* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToStringPolyfill)
|
|
52581
52526
|
/* harmony export */ });
|
|
52582
52527
|
/* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../../core/bentley/lib/esm/AccessToken.js");
|
|
52583
52528
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../../core/bentley/lib/esm/Assert.js");
|
|
52584
|
-
/* harmony import */ var
|
|
52585
|
-
/* harmony import */ var
|
|
52586
|
-
/* harmony import */ var
|
|
52587
|
-
/* harmony import */ var
|
|
52588
|
-
/* harmony import */ var
|
|
52589
|
-
/* harmony import */ var
|
|
52590
|
-
/* harmony import */ var
|
|
52591
|
-
/* harmony import */ var
|
|
52592
|
-
/* harmony import */ var
|
|
52593
|
-
/* harmony import */ var
|
|
52594
|
-
/* harmony import */ var
|
|
52595
|
-
/* harmony import */ var
|
|
52596
|
-
/* harmony import */ var
|
|
52597
|
-
/* harmony import */ var
|
|
52598
|
-
/* harmony import */ var
|
|
52599
|
-
/* harmony import */ var
|
|
52600
|
-
/* harmony import */ var
|
|
52601
|
-
/* harmony import */ var
|
|
52602
|
-
/* harmony import */ var
|
|
52603
|
-
/* harmony import */ var
|
|
52604
|
-
/* harmony import */ var
|
|
52605
|
-
/* harmony import */ var
|
|
52606
|
-
/* harmony import */ var
|
|
52607
|
-
/* harmony import */ var
|
|
52608
|
-
/* harmony import */ var
|
|
52609
|
-
/* harmony import */ var
|
|
52610
|
-
/* harmony import */ var
|
|
52611
|
-
/* harmony import */ var
|
|
52612
|
-
/* harmony import */ var
|
|
52613
|
-
/* harmony import */ var
|
|
52614
|
-
/* harmony import */ var
|
|
52615
|
-
/* harmony import */ var
|
|
52616
|
-
/* harmony import */ var
|
|
52617
|
-
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
|
|
52529
|
+
/* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BeEvent */ "../../core/bentley/lib/esm/BeEvent.js");
|
|
52530
|
+
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/esm/BentleyError.js");
|
|
52531
|
+
/* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/esm/BentleyLoggerCategory.js");
|
|
52532
|
+
/* harmony import */ var _StatusCategory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./StatusCategory */ "../../core/bentley/lib/esm/StatusCategory.js");
|
|
52533
|
+
/* harmony import */ var _BeSQLite__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BeSQLite */ "../../core/bentley/lib/esm/BeSQLite.js");
|
|
52534
|
+
/* harmony import */ var _ByteStream__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ByteStream */ "../../core/bentley/lib/esm/ByteStream.js");
|
|
52535
|
+
/* harmony import */ var _ClassUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ClassUtils */ "../../core/bentley/lib/esm/ClassUtils.js");
|
|
52536
|
+
/* harmony import */ var _Compare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Compare */ "../../core/bentley/lib/esm/Compare.js");
|
|
52537
|
+
/* harmony import */ var _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CompressedId64Set */ "../../core/bentley/lib/esm/CompressedId64Set.js");
|
|
52538
|
+
/* harmony import */ var _Dictionary__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Dictionary */ "../../core/bentley/lib/esm/Dictionary.js");
|
|
52539
|
+
/* harmony import */ var _Disposable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Disposable */ "../../core/bentley/lib/esm/Disposable.js");
|
|
52540
|
+
/* harmony import */ var _Id__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Id */ "../../core/bentley/lib/esm/Id.js");
|
|
52541
|
+
/* harmony import */ var _IndexMap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./IndexMap */ "../../core/bentley/lib/esm/IndexMap.js");
|
|
52542
|
+
/* harmony import */ var _JsonSchema__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./JsonSchema */ "../../core/bentley/lib/esm/JsonSchema.js");
|
|
52543
|
+
/* harmony import */ var _JsonUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./JsonUtils */ "../../core/bentley/lib/esm/JsonUtils.js");
|
|
52544
|
+
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Logger */ "../../core/bentley/lib/esm/Logger.js");
|
|
52545
|
+
/* harmony import */ var _LRUMap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./LRUMap */ "../../core/bentley/lib/esm/LRUMap.js");
|
|
52546
|
+
/* harmony import */ var _ObservableSet__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ObservableSet */ "../../core/bentley/lib/esm/ObservableSet.js");
|
|
52547
|
+
/* harmony import */ var _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./OneAtATimeAction */ "../../core/bentley/lib/esm/OneAtATimeAction.js");
|
|
52548
|
+
/* harmony import */ var _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./OrderedId64Iterable */ "../../core/bentley/lib/esm/OrderedId64Iterable.js");
|
|
52549
|
+
/* harmony import */ var _OrderedSet__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./OrderedSet */ "../../core/bentley/lib/esm/OrderedSet.js");
|
|
52550
|
+
/* harmony import */ var _partitionArray__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./partitionArray */ "../../core/bentley/lib/esm/partitionArray.js");
|
|
52551
|
+
/* harmony import */ var _PriorityQueue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./PriorityQueue */ "../../core/bentley/lib/esm/PriorityQueue.js");
|
|
52552
|
+
/* harmony import */ var _ProcessDetector__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ProcessDetector */ "../../core/bentley/lib/esm/ProcessDetector.js");
|
|
52553
|
+
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./SortedArray */ "../../core/bentley/lib/esm/SortedArray.js");
|
|
52554
|
+
/* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./StringUtils */ "../../core/bentley/lib/esm/StringUtils.js");
|
|
52555
|
+
/* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Time */ "../../core/bentley/lib/esm/Time.js");
|
|
52556
|
+
/* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Tracing */ "../../core/bentley/lib/esm/Tracing.js");
|
|
52557
|
+
/* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./TupleKeyedMap */ "../../core/bentley/lib/esm/TupleKeyedMap.js");
|
|
52558
|
+
/* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../../core/bentley/lib/esm/TypedArrayBuilder.js");
|
|
52559
|
+
/* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../../core/bentley/lib/esm/UnexpectedErrors.js");
|
|
52560
|
+
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../../core/bentley/lib/esm/UtilityTypes.js");
|
|
52561
|
+
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
|
|
52618
52562
|
/*---------------------------------------------------------------------------------------------
|
|
52619
52563
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
52620
52564
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -52652,7 +52596,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
52652
52596
|
|
|
52653
52597
|
|
|
52654
52598
|
|
|
52655
|
-
|
|
52656
52599
|
|
|
52657
52600
|
|
|
52658
52601
|
/** @docs-package-description
|
|
@@ -70155,23 +70098,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
70155
70098
|
* @module Geometry
|
|
70156
70099
|
*/
|
|
70157
70100
|
|
|
70158
|
-
/**
|
|
70101
|
+
/** Describes a spherical volume of space as an approximation of the shape of some more complex geometric entity fully contained within that volume.
|
|
70102
|
+
* When performing tests for intersection or containment, the approximation can be used as a first, quick check.
|
|
70103
|
+
* @see [[FrustumPlanes.computeContainment]], for example.
|
|
70159
70104
|
* @public
|
|
70160
70105
|
*/
|
|
70161
70106
|
class BoundingSphere {
|
|
70162
|
-
|
|
70163
|
-
|
|
70164
|
-
this.
|
|
70107
|
+
/** Create a new bounding sphere with the specified center and radius. */
|
|
70108
|
+
constructor(center = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.createZero(), radius = 0) {
|
|
70109
|
+
this.center = center;
|
|
70110
|
+
this.radius = radius;
|
|
70165
70111
|
}
|
|
70112
|
+
/** Change the center and radius of the sphere. */
|
|
70166
70113
|
init(center, radius) {
|
|
70167
70114
|
this.center = center;
|
|
70168
70115
|
this.radius = radius;
|
|
70169
70116
|
}
|
|
70117
|
+
/** Applies the specified transformation matrix to produce a new bounding sphere.
|
|
70118
|
+
* @param transform The transformation matrix to apply.
|
|
70119
|
+
* @param result An optional preallocated object to hold the result, to avoid allocating a new object. May be the same object as `this`.
|
|
70120
|
+
* @returns A bounding sphere equivalent to `this` with the specified transform applied.
|
|
70121
|
+
*/
|
|
70170
70122
|
transformBy(transform, result) {
|
|
70123
|
+
result = result !== null && result !== void 0 ? result : new BoundingSphere();
|
|
70171
70124
|
transform.multiplyPoint3d(this.center, result.center);
|
|
70172
70125
|
result.radius = this.radius * Math.max(transform.matrix.columnXMagnitude(), Math.max(transform.matrix.columnYMagnitude(), (transform.matrix.columnZMagnitude())));
|
|
70173
70126
|
return result;
|
|
70174
70127
|
}
|
|
70128
|
+
/** Apply the specified transform to this bounding sphere. */
|
|
70129
|
+
transformInPlace(transform) {
|
|
70130
|
+
this.transformBy(transform, this);
|
|
70131
|
+
}
|
|
70175
70132
|
}
|
|
70176
70133
|
|
|
70177
70134
|
|
|
@@ -76409,43 +76366,104 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
76409
76366
|
*/
|
|
76410
76367
|
|
|
76411
76368
|
|
|
76369
|
+
const planePointIndices = [
|
|
76370
|
+
[1, 3, 5],
|
|
76371
|
+
[0, 4, 2],
|
|
76372
|
+
[2, 6, 3],
|
|
76373
|
+
[0, 1, 4],
|
|
76374
|
+
[0, 2, 1],
|
|
76375
|
+
[4, 5, 6], // front
|
|
76376
|
+
];
|
|
76377
|
+
function computeFrustumPlanes(frustum) {
|
|
76378
|
+
const planes = [];
|
|
76379
|
+
const points = frustum.points;
|
|
76380
|
+
const expandPlaneDistance = 1e-6;
|
|
76381
|
+
for (const indices of planePointIndices) {
|
|
76382
|
+
const i0 = indices[0], i1 = indices[1], i2 = indices[2];
|
|
76383
|
+
const normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createCrossProductToPoints(points[i2], points[i1], points[i0]);
|
|
76384
|
+
normal.normalizeInPlace();
|
|
76385
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
76386
|
+
if (!plane)
|
|
76387
|
+
return [];
|
|
76388
|
+
planes.push(plane);
|
|
76389
|
+
}
|
|
76390
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(planes.length === 6);
|
|
76391
|
+
return planes;
|
|
76392
|
+
}
|
|
76412
76393
|
// Scratch variable used by FrustumPlanes.computeContainment.
|
|
76413
76394
|
const planesContainingSphere = [false, false, false, false, false, false];
|
|
76414
|
-
/** Represents a
|
|
76415
|
-
*
|
|
76395
|
+
/** Represents a the planes of a [[Frustum]] for testing containment and intersection.
|
|
76396
|
+
* A valid frustum produces six planes. A degenerate frustum produces zero planes.
|
|
76397
|
+
* @public
|
|
76398
|
+
* @extensions
|
|
76416
76399
|
*/
|
|
76417
76400
|
class FrustumPlanes {
|
|
76418
|
-
constructor(
|
|
76419
|
-
|
|
76420
|
-
|
|
76421
|
-
|
|
76401
|
+
constructor(planes) {
|
|
76402
|
+
this._planes = planes;
|
|
76403
|
+
}
|
|
76404
|
+
/** Compute the six planes of the specified frustum.
|
|
76405
|
+
* If the frustum is degenerate - that is, its points do not represent a truncated pyramid - then the returned `FrustumPlanes` will contain zero planes.
|
|
76406
|
+
* @see [[isValid]] to test this condition.
|
|
76407
|
+
*/
|
|
76408
|
+
static fromFrustum(frustum) {
|
|
76409
|
+
const planes = computeFrustumPlanes(frustum);
|
|
76410
|
+
return new FrustumPlanes(planes);
|
|
76422
76411
|
}
|
|
76423
|
-
|
|
76424
|
-
|
|
76425
|
-
|
|
76412
|
+
/** 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]] -
|
|
76413
|
+
* for example, if you intend to use the same object repeatedly with different [[Frustum]]s.
|
|
76414
|
+
*/
|
|
76415
|
+
static createEmpty() {
|
|
76416
|
+
return new FrustumPlanes([]);
|
|
76417
|
+
}
|
|
76418
|
+
/** 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
|
|
76419
|
+
* via [[createEmpty]] - in either case, [[planes]] will be an empty array.
|
|
76420
|
+
*/
|
|
76421
|
+
get isValid() {
|
|
76422
|
+
return this._planes.length === 6;
|
|
76423
|
+
}
|
|
76424
|
+
/** Obtain the list of planes defining the frustum. If [[isValid]] is `true`, it will have a length of six, with the planes ordered as
|
|
76425
|
+
* right, left, top, bottom, back, front. Otherwise, it will be empty.
|
|
76426
|
+
*/
|
|
76427
|
+
get planes() {
|
|
76428
|
+
return this._planes;
|
|
76429
|
+
}
|
|
76430
|
+
/** Recompute the planes from the specified frustum.
|
|
76431
|
+
* @returns true upon success, or false if the input frustum was degenerate, in which case [[isValid]] will be `false`.
|
|
76432
|
+
*/
|
|
76426
76433
|
init(frustum) {
|
|
76427
|
-
|
|
76428
|
-
|
|
76429
|
-
}
|
|
76430
|
-
else {
|
|
76431
|
-
this._planes.length = 0;
|
|
76432
|
-
}
|
|
76433
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 1, 3, 5); // right
|
|
76434
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 4, 2); // left
|
|
76435
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 2, 6, 3); // top
|
|
76436
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 1, 4); // bottom
|
|
76437
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 0, 2, 1); // back
|
|
76438
|
-
FrustumPlanes.addPlaneFromPoints(this._planes, frustum.points, 4, 5, 6); // front
|
|
76434
|
+
this._planes = computeFrustumPlanes(frustum);
|
|
76435
|
+
return this.isValid;
|
|
76439
76436
|
}
|
|
76437
|
+
/** Compute to what degree a [[Frustum]] is contained with these frustum planes.
|
|
76438
|
+
* @param box The frustum to test for containment.
|
|
76439
|
+
* @param sphere An optional spherical bounding volume fully containing `box`. If supplied, this can reduce the amount of computation required.
|
|
76440
|
+
* @returns the degree to which `box` is contained within the clipping planes.
|
|
76441
|
+
*/
|
|
76440
76442
|
computeFrustumContainment(box, sphere) {
|
|
76441
76443
|
return this.computeContainment(box.points, sphere);
|
|
76442
76444
|
}
|
|
76445
|
+
/** Determines whether a [[Frustum]] intersects with or is fully contained within these frustum planes.
|
|
76446
|
+
* @param box The frustum to test for containment.
|
|
76447
|
+
* @param sphere An optional spherical bounding volume fully containing `box`. If supplied, this can reduce the amount of computation required.
|
|
76448
|
+
* @returns true if `box` is not entirely outside of the clipping planes.
|
|
76449
|
+
*/
|
|
76443
76450
|
intersectsFrustum(box, sphere) {
|
|
76444
76451
|
return FrustumPlanes.Containment.Outside !== this.computeFrustumContainment(box, sphere);
|
|
76445
76452
|
}
|
|
76453
|
+
/** Determines whether a point is contained within these frustum planes.
|
|
76454
|
+
* @param point The point to test for containment.
|
|
76455
|
+
* @param tolerance The maximum distance from the interior of the frustum planes that will still be considered "contained".
|
|
76456
|
+
* @returns true if `point` is no further than `tolerance` meters outside of the clipping planes.
|
|
76457
|
+
*/
|
|
76446
76458
|
containsPoint(point, tolerance = 1.0e-8) {
|
|
76447
76459
|
return FrustumPlanes.Containment.Outside !== this.computeContainment([point], undefined, tolerance);
|
|
76448
76460
|
}
|
|
76461
|
+
/** Compute the degree to which a set of points is contained within these frustum planes.
|
|
76462
|
+
* @param points The points to test for containment.
|
|
76463
|
+
* @param sphere An optional spherical bounding volume fully containing all of the points. If supplied, this can reduce the amount of computation required.
|
|
76464
|
+
* @param tolerance The maximum distance from the interior of the frustum planes a point must be to be considered "contained".
|
|
76465
|
+
* @returns the degree to which all of the points are contained within the clipping planes.
|
|
76466
|
+
*/
|
|
76449
76467
|
computeContainment(points, sphere, tolerance = 1.0e-8) {
|
|
76450
76468
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
76451
76469
|
if (undefined === this._planes)
|
|
@@ -76479,6 +76497,11 @@ class FrustumPlanes {
|
|
|
76479
76497
|
}
|
|
76480
76498
|
return allInside ? FrustumPlanes.Containment.Inside : FrustumPlanes.Containment.Partial;
|
|
76481
76499
|
}
|
|
76500
|
+
/** Computes whether a ray intersects these clipping planes.
|
|
76501
|
+
* @param origin The origin of the ray.
|
|
76502
|
+
* @param direction The direction of the ray.
|
|
76503
|
+
* @returns true if the ray extending from `origin` in the specified `direction` intersects at least one of the clipping planes.
|
|
76504
|
+
*/
|
|
76482
76505
|
intersectsRay(origin, direction) {
|
|
76483
76506
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this.isValid);
|
|
76484
76507
|
if (undefined === this._planes) {
|
|
@@ -76508,25 +76531,20 @@ class FrustumPlanes {
|
|
|
76508
76531
|
return tNear <= tFar;
|
|
76509
76532
|
}
|
|
76510
76533
|
}
|
|
76511
|
-
/** @
|
|
76534
|
+
/** @public @extensions */
|
|
76512
76535
|
(function (FrustumPlanes) {
|
|
76513
|
-
/**
|
|
76536
|
+
/** Describes the degree to which an object is contained within the planes of a [[Frustum]].
|
|
76537
|
+
* @see [[FrustumPlanes.computeContainment]], for example.
|
|
76538
|
+
*/
|
|
76514
76539
|
let Containment;
|
|
76515
76540
|
(function (Containment) {
|
|
76541
|
+
/** The object is entirely outside of the frustum, intersecting none of its planes. */
|
|
76516
76542
|
Containment[Containment["Outside"] = 0] = "Outside";
|
|
76543
|
+
/** The object intersects at least one of the frustum planes. placing it partially inside of the frustum. */
|
|
76517
76544
|
Containment[Containment["Partial"] = 1] = "Partial";
|
|
76545
|
+
/** The object is entirely inside of the frustum, intersecting none of its planes. */
|
|
76518
76546
|
Containment[Containment["Inside"] = 2] = "Inside";
|
|
76519
76547
|
})(Containment = FrustumPlanes.Containment || (FrustumPlanes.Containment = {}));
|
|
76520
|
-
/** @internal */
|
|
76521
|
-
function addPlaneFromPoints(planes, points, i0, i1, i2, expandPlaneDistance = 1.0e-6) {
|
|
76522
|
-
const normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createCrossProductToPoints(points[i2], points[i1], points[i0]);
|
|
76523
|
-
normal.normalizeInPlace();
|
|
76524
|
-
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ClipPlane.createNormalAndDistance(normal, normal.dotProduct(points[i0]) - expandPlaneDistance);
|
|
76525
|
-
if (undefined !== plane) {
|
|
76526
|
-
planes.push(plane);
|
|
76527
|
-
}
|
|
76528
|
-
}
|
|
76529
|
-
FrustumPlanes.addPlaneFromPoints = addPlaneFromPoints;
|
|
76530
76548
|
})(FrustumPlanes || (FrustumPlanes = {}));
|
|
76531
76549
|
|
|
76532
76550
|
|
|
@@ -104457,7 +104475,7 @@ class IModelApp {
|
|
|
104457
104475
|
}
|
|
104458
104476
|
}
|
|
104459
104477
|
/** Get the user's access token for this IModelApp, or a blank string if none is available.
|
|
104460
|
-
* @note
|
|
104478
|
+
* @note Access tokens expire periodically and are automatically refreshed, if possible. Therefore tokens should not be saved, and the value
|
|
104461
104479
|
* returned by this method may change over time throughout the course of a session.
|
|
104462
104480
|
*/
|
|
104463
104481
|
static async getAccessToken() {
|
|
@@ -111678,7 +111696,7 @@ class RenderContext {
|
|
|
111678
111696
|
this._viewport = vp;
|
|
111679
111697
|
this.viewFlags = vp.viewFlags;
|
|
111680
111698
|
this.frustum = frustum ? frustum : vp.getFrustum();
|
|
111681
|
-
this.frustumPlanes =
|
|
111699
|
+
this.frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this.frustum);
|
|
111682
111700
|
}
|
|
111683
111701
|
/** Given a point in world coordinates, determine approximately how many pixels it occupies on screen based on this context's frustum. */
|
|
111684
111702
|
getPixelSizeAtPoint(inPoint) {
|
|
@@ -114812,7 +114830,6 @@ class ViewState3d extends ViewState {
|
|
|
114812
114830
|
* @returns A [[ViewStatus]] indicating whether the camera was successfully positioned.
|
|
114813
114831
|
* @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
|
|
114814
114832
|
* adjusted when the [[Viewport]] is synchronized from this view.
|
|
114815
|
-
* @beta
|
|
114816
114833
|
*/
|
|
114817
114834
|
lookAt(args) {
|
|
114818
114835
|
var _a, _b, _c;
|
|
@@ -117984,7 +118001,6 @@ class Viewport {
|
|
|
117984
118001
|
* @param options Specifies how to query.
|
|
117985
118002
|
* @param callback Callback to invoke with the results.
|
|
117986
118003
|
* @note This function may be slow, especially if the features are being queried from screen pixels. Avoid calling it repeatedly in rapid succession.
|
|
117987
|
-
* @beta
|
|
117988
118004
|
*/
|
|
117989
118005
|
queryVisibleFeatures(options, callback) {
|
|
117990
118006
|
return (0,_render_VisibleFeature__WEBPACK_IMPORTED_MODULE_29__.queryVisibleFeatures)(this, options, callback);
|
|
@@ -120214,6 +120230,7 @@ const extensionExports = {
|
|
|
120214
120230
|
FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FontType,
|
|
120215
120231
|
FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory,
|
|
120216
120232
|
FrustumAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrustumAnimator,
|
|
120233
|
+
FrustumPlanes: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FrustumPlanes,
|
|
120217
120234
|
GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeoCoordStatus,
|
|
120218
120235
|
GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel2dState,
|
|
120219
120236
|
GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel3dState,
|
|
@@ -130189,7 +130206,7 @@ class BackgroundMapDrape extends _TextureDrape__WEBPACK_IMPORTED_MODULE_13__.Tex
|
|
|
130189
130206
|
this._frustum = projection.textureFrustum;
|
|
130190
130207
|
this._debugFrustum = projection.debugFrustum;
|
|
130191
130208
|
this._projectionMatrix = projection.projectionMatrix;
|
|
130192
|
-
const drawArgs = _tile_internal__WEBPACK_IMPORTED_MODULE_3__.GraphicsCollectorDrawArgs.create(context, this, this._mapTree,
|
|
130209
|
+
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);
|
|
130193
130210
|
if (undefined !== drawArgs)
|
|
130194
130211
|
tileTree.draw(drawArgs);
|
|
130195
130212
|
if (context.target.debugControl && context.target.debugControl.displayDrapeFrustum) {
|
|
@@ -137586,7 +137603,8 @@ class PlanarClassifier extends _RenderPlanarClassifier__WEBPACK_IMPORTED_MODULE_
|
|
|
137586
137603
|
this._planarClipMaskOverrides = (_b = this._planarClipMask) === null || _b === void 0 ? void 0 : _b.getPlanarClipMaskSymbologyOverrides();
|
|
137587
137604
|
const drawTree = (treeRef, graphics) => {
|
|
137588
137605
|
this._graphics = graphics;
|
|
137589
|
-
const
|
|
137606
|
+
const frustumPlanes = this._frustum ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this._frustum) : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.createEmpty();
|
|
137607
|
+
const drawArgs = _tile_internal__WEBPACK_IMPORTED_MODULE_3__.GraphicsCollectorDrawArgs.create(context, this, treeRef, frustumPlanes, projection.worldToViewMap);
|
|
137590
137608
|
if (undefined !== drawArgs)
|
|
137591
137609
|
treeRef.draw(drawArgs);
|
|
137592
137610
|
this._graphics = undefined;
|
|
@@ -137900,7 +137918,7 @@ class PlanarTextureProjection {
|
|
|
137900
137918
|
const textureMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRows(frustumX, frustumY, frustumZ);
|
|
137901
137919
|
const textureTransform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createRefs(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero(), textureMatrix);
|
|
137902
137920
|
const viewFrustum = viewingSpace.getFrustum().transformBy(textureTransform);
|
|
137903
|
-
const viewPlanes =
|
|
137921
|
+
const viewPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.FrustumPlanes.fromFrustum(viewFrustum);
|
|
137904
137922
|
const viewClipPlanes = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.ConvexClipPlaneSet.createPlanes(viewPlanes.planes);
|
|
137905
137923
|
let textureRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
137906
137924
|
const tileToTexture = textureTransform.multiplyTransformTransform(target.location);
|
|
@@ -139704,7 +139722,7 @@ class RenderCommands {
|
|
|
139704
139722
|
this._batchState.pop();
|
|
139705
139723
|
}
|
|
139706
139724
|
// Define a culling frustum. Commands associated with Graphics whose ranges do not intersect the frustum will be skipped.
|
|
139707
|
-
setCheckRange(frustum) { this._frustumPlanes =
|
|
139725
|
+
setCheckRange(frustum) { this._frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.fromFrustum(frustum); }
|
|
139708
139726
|
// Clear the culling frustum.
|
|
139709
139727
|
clearCheckRange() { this._frustumPlanes = undefined; }
|
|
139710
139728
|
setupClassificationByVolume() {
|
|
@@ -144672,7 +144690,7 @@ class ShadowMapParams {
|
|
|
144672
144690
|
}
|
|
144673
144691
|
const defaultSunDirection = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(-1, -1, -1).normalize();
|
|
144674
144692
|
const scratchFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Frustum();
|
|
144675
|
-
const scratchFrustumPlanes =
|
|
144693
|
+
const scratchFrustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.createEmpty();
|
|
144676
144694
|
class SolarShadowMap {
|
|
144677
144695
|
constructor(target) {
|
|
144678
144696
|
this._projectionMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix4d.createIdentity();
|
|
@@ -166125,7 +166143,6 @@ class TraversalSelectionContext {
|
|
|
166125
166143
|
}
|
|
166126
166144
|
}
|
|
166127
166145
|
const scratchFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Frustum();
|
|
166128
|
-
const scratchFrustumPlanes = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes();
|
|
166129
166146
|
const scratchCarto = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Cartographic.createZero();
|
|
166130
166147
|
const scratchPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero(), scratchOrigin = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero();
|
|
166131
166148
|
const scratchRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
@@ -166399,11 +166416,10 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
166399
166416
|
/** @internal */
|
|
166400
166417
|
preloadTilesForScene(args, context, frustumTransform) {
|
|
166401
166418
|
const preloadFrustum = args.viewingSpace.getPreloadFrustum(frustumTransform, scratchFrustum);
|
|
166402
|
-
const preloadFrustumPlanes =
|
|
166419
|
+
const preloadFrustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes.fromFrustum(preloadFrustum);
|
|
166403
166420
|
const worldToNpc = preloadFrustum.toMap4d();
|
|
166404
166421
|
const preloadWorldToViewMap = args.viewingSpace.calcNpcToView().multiplyMapMap(worldToNpc);
|
|
166405
166422
|
const preloadArgs = new _internal__WEBPACK_IMPORTED_MODULE_6__.RealityTileDrawArgs(args, preloadWorldToViewMap, preloadFrustumPlanes);
|
|
166406
|
-
scratchFrustumPlanes.init(preloadFrustum);
|
|
166407
166423
|
if (context.preloadDebugBuilder) {
|
|
166408
166424
|
context.preloadDebugBuilder.setSymbology(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.blue, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.blue, 2, 0);
|
|
166409
166425
|
context.preloadDebugBuilder.addFrustum(preloadFrustum);
|
|
@@ -168040,7 +168056,7 @@ class TileDrawArgs {
|
|
|
168040
168056
|
this.graphics.symbologyOverrides = symbologyOverrides;
|
|
168041
168057
|
this.graphics.animationId = tree.modelId;
|
|
168042
168058
|
this.viewingSpace = context.viewingSpace;
|
|
168043
|
-
this._frustumPlanes =
|
|
168059
|
+
this._frustumPlanes = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this.viewingSpace.getFrustum());
|
|
168044
168060
|
this.planarClassifier = context.getPlanarClassifierForModel(tree.modelId);
|
|
168045
168061
|
this.drape = context.getTextureDrapeForModel(tree.modelId);
|
|
168046
168062
|
// NB: If the tile tree has its own clip, do not also apply the view's clip.
|
|
@@ -302551,7 +302567,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
302551
302567
|
/***/ ((module) => {
|
|
302552
302568
|
|
|
302553
302569
|
"use strict";
|
|
302554
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
302570
|
+
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"}}]}}');
|
|
302555
302571
|
|
|
302556
302572
|
/***/ })
|
|
302557
302573
|
|