@itwin/ecschema-rpcinterface-tests 4.0.0-dev.61 → 4.0.0-dev.63
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/_d48c.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +121 -53
- 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_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.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 +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\7\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -34645,11 +34645,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34645
34645
|
/* harmony export */ "Tracing": () => (/* binding */ Tracing)
|
|
34646
34646
|
/* harmony export */ });
|
|
34647
34647
|
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../../core/bentley/lib/esm/Logger.js");
|
|
34648
|
+
/*---------------------------------------------------------------------------------------------
|
|
34649
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
34650
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
34651
|
+
*--------------------------------------------------------------------------------------------*/
|
|
34652
|
+
/** @packageDocumentation
|
|
34653
|
+
* @module Logging
|
|
34654
|
+
*/
|
|
34648
34655
|
|
|
34649
34656
|
// re-export so that consumers can construct full SpanOptions object without external dependencies
|
|
34650
34657
|
/**
|
|
34651
|
-
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js
|
|
34652
|
-
* @
|
|
34658
|
+
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
|
|
34659
|
+
* @public
|
|
34653
34660
|
*/
|
|
34654
34661
|
var SpanKind;
|
|
34655
34662
|
(function (SpanKind) {
|
|
@@ -34707,7 +34714,7 @@ function flattenObject(obj) {
|
|
|
34707
34714
|
}
|
|
34708
34715
|
/**
|
|
34709
34716
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
34710
|
-
* @
|
|
34717
|
+
* @public
|
|
34711
34718
|
*/
|
|
34712
34719
|
class Tracing {
|
|
34713
34720
|
/**
|
|
@@ -34741,7 +34748,7 @@ class Tracing {
|
|
|
34741
34748
|
}
|
|
34742
34749
|
/**
|
|
34743
34750
|
* Enable logging to OpenTelemetry. [[Tracing.withSpan]] will be enabled, all log entries will be attached to active span as span events.
|
|
34744
|
-
* [
|
|
34751
|
+
* [IModelHost.startup]($backend) will call this automatically if the `enableOpenTelemetry` option is enabled and it succeeds in requiring `@opentelemetry/api`.
|
|
34745
34752
|
* @note Node.js OpenTelemetry SDK should be initialized by the user.
|
|
34746
34753
|
*/
|
|
34747
34754
|
static enableOpenTelemetry(tracer, api) {
|
|
@@ -34762,7 +34769,7 @@ class Tracing {
|
|
|
34762
34769
|
};
|
|
34763
34770
|
}
|
|
34764
34771
|
/** Set attributes on currently active openTelemetry span. Doesn't do anything if openTelemetry logging is not initialized.
|
|
34765
|
-
* @param attributes
|
|
34772
|
+
* @param attributes The attributes to set
|
|
34766
34773
|
*/
|
|
34767
34774
|
static setAttributes(attributes) {
|
|
34768
34775
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
|
|
@@ -76698,20 +76705,32 @@ var AccuDrawFlags;
|
|
|
76698
76705
|
AccuDrawFlags[AccuDrawFlags["UpdateRotation"] = 8388608] = "UpdateRotation";
|
|
76699
76706
|
AccuDrawFlags[AccuDrawFlags["SmartRotation"] = 16777216] = "SmartRotation";
|
|
76700
76707
|
})(AccuDrawFlags || (AccuDrawFlags = {}));
|
|
76701
|
-
/**
|
|
76708
|
+
/** AccuDraw coordinate input mode
|
|
76709
|
+
* @public
|
|
76710
|
+
*/
|
|
76702
76711
|
var CompassMode;
|
|
76703
76712
|
(function (CompassMode) {
|
|
76713
|
+
/** Coordinate input using distance and angle */
|
|
76704
76714
|
CompassMode[CompassMode["Polar"] = 0] = "Polar";
|
|
76715
|
+
/** Coordinate input using x, y, and z deltas */
|
|
76705
76716
|
CompassMode[CompassMode["Rectangular"] = 1] = "Rectangular";
|
|
76706
76717
|
})(CompassMode || (CompassMode = {}));
|
|
76707
|
-
/**
|
|
76718
|
+
/** AccuDraw compass base rotation
|
|
76719
|
+
* @public
|
|
76720
|
+
*/
|
|
76708
76721
|
var RotationMode;
|
|
76709
76722
|
(function (RotationMode) {
|
|
76723
|
+
/** Aligned with standard view top or ACS top when [[ToolAdmin.acsContextLock]] is enabled */
|
|
76710
76724
|
RotationMode[RotationMode["Top"] = 1] = "Top";
|
|
76725
|
+
/** Aligned with standard view front or ACS front when [[ToolAdmin.acsContextLock]] is enabled */
|
|
76711
76726
|
RotationMode[RotationMode["Front"] = 2] = "Front";
|
|
76727
|
+
/** Aligned with standard view right or ACS right when [[ToolAdmin.acsContextLock]] is enabled */
|
|
76712
76728
|
RotationMode[RotationMode["Side"] = 3] = "Side";
|
|
76729
|
+
/** Aligned with view */
|
|
76713
76730
|
RotationMode[RotationMode["View"] = 4] = "View";
|
|
76731
|
+
/** Aligned with view ACS */
|
|
76714
76732
|
RotationMode[RotationMode["ACS"] = 5] = "ACS";
|
|
76733
|
+
/** Not aligned with a standard rotation or ACS */
|
|
76715
76734
|
RotationMode[RotationMode["Context"] = 6] = "Context";
|
|
76716
76735
|
})(RotationMode || (RotationMode = {}));
|
|
76717
76736
|
/** @internal */
|
|
@@ -76725,12 +76744,18 @@ var LockedStates;
|
|
|
76725
76744
|
LockedStates[LockedStates["XY_BM"] = 3] = "XY_BM";
|
|
76726
76745
|
LockedStates[LockedStates["ANGLE_BM"] = 7] = "ANGLE_BM";
|
|
76727
76746
|
})(LockedStates || (LockedStates = {}));
|
|
76728
|
-
/**
|
|
76747
|
+
/** AccuDraw enabled states
|
|
76748
|
+
* @public
|
|
76749
|
+
*/
|
|
76729
76750
|
var CurrentState;
|
|
76730
76751
|
(function (CurrentState) {
|
|
76752
|
+
/** Compass disabled/unwanted for this session */
|
|
76731
76753
|
CurrentState[CurrentState["NotEnabled"] = 0] = "NotEnabled";
|
|
76754
|
+
/** Compass deactivated but CAN be activated by user */
|
|
76732
76755
|
CurrentState[CurrentState["Deactivated"] = 1] = "Deactivated";
|
|
76756
|
+
/** Compass not displayed awaiting automatic activation (default tool state) */
|
|
76733
76757
|
CurrentState[CurrentState["Inactive"] = 2] = "Inactive";
|
|
76758
|
+
/** Compass displayed and adjusting points */
|
|
76734
76759
|
CurrentState[CurrentState["Active"] = 3] = "Active";
|
|
76735
76760
|
})(CurrentState || (CurrentState = {}));
|
|
76736
76761
|
/** @internal */
|
|
@@ -76743,13 +76768,20 @@ var ContextMode;
|
|
|
76743
76768
|
ContextMode[ContextMode["XAxis2"] = 4] = "XAxis2";
|
|
76744
76769
|
ContextMode[ContextMode["None"] = 15] = "None";
|
|
76745
76770
|
})(ContextMode || (ContextMode = {}));
|
|
76746
|
-
/**
|
|
76771
|
+
/** AccuDraw coordinate input fields
|
|
76772
|
+
* @public
|
|
76773
|
+
*/
|
|
76747
76774
|
var ItemField;
|
|
76748
76775
|
(function (ItemField) {
|
|
76776
|
+
/** Distance for polar mode */
|
|
76749
76777
|
ItemField[ItemField["DIST_Item"] = 0] = "DIST_Item";
|
|
76778
|
+
/** Angle for polar mode */
|
|
76750
76779
|
ItemField[ItemField["ANGLE_Item"] = 1] = "ANGLE_Item";
|
|
76780
|
+
/** X delta for rectangular mode */
|
|
76751
76781
|
ItemField[ItemField["X_Item"] = 2] = "X_Item";
|
|
76782
|
+
/** Y delta for rectangular mode */
|
|
76752
76783
|
ItemField[ItemField["Y_Item"] = 3] = "Y_Item";
|
|
76784
|
+
/** Z delta (3d only) */
|
|
76753
76785
|
ItemField[ItemField["Z_Item"] = 4] = "Z_Item";
|
|
76754
76786
|
})(ItemField || (ItemField = {}));
|
|
76755
76787
|
/** @internal */
|
|
@@ -76861,15 +76893,16 @@ class ThreeAxes {
|
|
|
76861
76893
|
equals(other) { return this.x.isExactEqual(other.x) && this.y.isExactEqual(other.y) && this.z.isExactEqual(other.z); }
|
|
76862
76894
|
}
|
|
76863
76895
|
/** Accudraw is an aide for entering coordinate data.
|
|
76864
|
-
*
|
|
76896
|
+
* This class is public to allow applications to provide a user interface for AccuDraw, either by implementing their own, or
|
|
76897
|
+
* using the one supplied by the itwin appui package.
|
|
76898
|
+
* @note When writing an [[InteractiveTool]] it is not correct to call methods on AccuDraw directly, tools should instead
|
|
76899
|
+
* provide hints to AccuDraw using [[AccuDrawHintBuilder]].
|
|
76900
|
+
* @public
|
|
76865
76901
|
*/
|
|
76866
76902
|
class AccuDraw {
|
|
76867
76903
|
constructor() {
|
|
76868
|
-
/** @internal */
|
|
76869
76904
|
this.currentState = CurrentState.NotEnabled; // Compass state
|
|
76870
|
-
/** @internal */
|
|
76871
76905
|
this.compassMode = CompassMode.Rectangular; // Compass mode
|
|
76872
|
-
/** @internal */
|
|
76873
76906
|
this.rotationMode = RotationMode.View; // Compass rotation
|
|
76874
76907
|
/** @internal */
|
|
76875
76908
|
this.published = new AccudrawData(); // Staging area for hints
|
|
@@ -76968,13 +77001,11 @@ class AccuDraw {
|
|
|
76968
77001
|
get isDeactivated() { return (CurrentState.Deactivated === this.currentState); }
|
|
76969
77002
|
/** @internal */
|
|
76970
77003
|
setNewFocus(index) { this.newFocus = index; }
|
|
76971
|
-
/**
|
|
77004
|
+
/** Get the current lock state for the supplied input field */
|
|
76972
77005
|
getFieldLock(index) { return this._fieldLocked[index]; }
|
|
76973
77006
|
/** @internal */
|
|
76974
77007
|
getKeyinStatus(index) { return this._keyinStatus[index]; }
|
|
76975
|
-
/** Implement this method to set focus to the AccuDraw UI.
|
|
76976
|
-
* @internal
|
|
76977
|
-
*/
|
|
77008
|
+
/** Implement this method to set focus to the AccuDraw UI. */
|
|
76978
77009
|
grabInputFocus() { }
|
|
76979
77010
|
/** @internal */
|
|
76980
77011
|
activate() {
|
|
@@ -76990,21 +77021,21 @@ class AccuDraw {
|
|
|
76990
77021
|
if (CurrentState.Inactive === this.currentState)
|
|
76991
77022
|
this.currentState = CurrentState.Deactivated;
|
|
76992
77023
|
}
|
|
76993
|
-
/**
|
|
77024
|
+
/** Change current compass input mode to either polar or rectangular */
|
|
76994
77025
|
setCompassMode(mode) {
|
|
76995
77026
|
if (mode === this.compassMode)
|
|
76996
77027
|
return;
|
|
76997
77028
|
this.compassMode = mode;
|
|
76998
77029
|
this.onCompassModeChange();
|
|
76999
77030
|
}
|
|
77000
|
-
/**
|
|
77031
|
+
/** Change current compass orientation */
|
|
77001
77032
|
setRotationMode(mode) {
|
|
77002
77033
|
if (mode === this.rotationMode)
|
|
77003
77034
|
return;
|
|
77004
77035
|
this.rotationMode = mode;
|
|
77005
77036
|
this.onRotationModeChange();
|
|
77006
77037
|
}
|
|
77007
|
-
/**
|
|
77038
|
+
/** Change the lock status for the supplied input field */
|
|
77008
77039
|
setFieldLock(index, locked) {
|
|
77009
77040
|
if (locked === this._fieldLocked[index])
|
|
77010
77041
|
return;
|
|
@@ -77485,7 +77516,7 @@ class AccuDraw {
|
|
|
77485
77516
|
return this.sendDataPoint(this.point, vp);
|
|
77486
77517
|
}
|
|
77487
77518
|
}
|
|
77488
|
-
/**
|
|
77519
|
+
/** Get the current value for the supplied input field */
|
|
77489
77520
|
getValueByIndex(index) {
|
|
77490
77521
|
switch (index) {
|
|
77491
77522
|
case ItemField.X_Item: return this.delta.x;
|
|
@@ -77497,7 +77528,7 @@ class AccuDraw {
|
|
|
77497
77528
|
return 0.0;
|
|
77498
77529
|
}
|
|
77499
77530
|
}
|
|
77500
|
-
/**
|
|
77531
|
+
/** Set the current value for the supplied input field */
|
|
77501
77532
|
setValueByIndex(index, value) {
|
|
77502
77533
|
switch (index) {
|
|
77503
77534
|
case ItemField.X_Item:
|
|
@@ -77677,7 +77708,7 @@ class AccuDraw {
|
|
|
77677
77708
|
return true;
|
|
77678
77709
|
return (!_IModelApp__WEBPACK_IMPORTED_MODULE_6__.IModelApp.toolAdmin.gridLock);
|
|
77679
77710
|
}
|
|
77680
|
-
/**
|
|
77711
|
+
/** Call from an AccuDraw UI event to sync the supplied input field value */
|
|
77681
77712
|
async processFieldInput(index, input, synchText) {
|
|
77682
77713
|
const isBearing = false;
|
|
77683
77714
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.SUCCESS !== this.updateFieldValue(index, input, { isBearing })) {
|
|
@@ -78499,17 +78530,17 @@ class AccuDraw {
|
|
|
78499
78530
|
this.saveCoordinate(ItemField.Z_Item, this.delta.z);
|
|
78500
78531
|
}
|
|
78501
78532
|
}
|
|
78502
|
-
/**
|
|
78533
|
+
/** Called after compass mode is changed between polar and rectangular */
|
|
78503
78534
|
onCompassModeChange() { }
|
|
78504
|
-
/**
|
|
78535
|
+
/** Called after compass rotation is changed */
|
|
78505
78536
|
onRotationModeChange() { }
|
|
78506
|
-
/**
|
|
78537
|
+
/** Called after input field locked state is changed */
|
|
78507
78538
|
onFieldLockChange(_index) { }
|
|
78508
|
-
/**
|
|
78539
|
+
/** Called after input field value changes */
|
|
78509
78540
|
onFieldValueChange(_index) { }
|
|
78510
|
-
/**
|
|
78541
|
+
/** Whether AccuDraw currently has input focus */
|
|
78511
78542
|
get hasInputFocus() { return true; }
|
|
78512
|
-
/**
|
|
78543
|
+
/** Set focus to the specified input field */
|
|
78513
78544
|
setFocusItem(_index) { }
|
|
78514
78545
|
static getMinPolarMag(origin) {
|
|
78515
78546
|
return (1.0e-12 * (1.0 + origin.magnitude()));
|
|
@@ -79046,7 +79077,6 @@ class AccuDraw {
|
|
|
79046
79077
|
/** Implemented by sub-classes to update ui fields to show current deltas or coordinates when inactive.
|
|
79047
79078
|
* Should also choose active x or y input field in rectangular mode based on cursor position when
|
|
79048
79079
|
* axis isn't locked to support "smart lock".
|
|
79049
|
-
* @internal
|
|
79050
79080
|
*/
|
|
79051
79081
|
onMotion(_ev) { }
|
|
79052
79082
|
/** @internal */
|
|
@@ -83465,6 +83495,44 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
83465
83495
|
* @see [[overrideSubCategory]]
|
|
83466
83496
|
*/
|
|
83467
83497
|
getSubCategoryOverride(id) { return this.settings.getSubCategoryOverride(id); }
|
|
83498
|
+
/** For each subcategory belonging to any of the specified categories, make it visible by turning off the "invisible" flag in its subcategory appearance.
|
|
83499
|
+
* This requires that the categories and subcategories have been previously loaded by, e.g., a call to IModelConnection.querySubCategories.
|
|
83500
|
+
* @returns true if the visibility of any subcategory was modified.
|
|
83501
|
+
* @see Viewport.changeCategoryDisplay
|
|
83502
|
+
* @see ViewCreator3dOptions.allSubCategoriesVisible
|
|
83503
|
+
* @internal
|
|
83504
|
+
*/
|
|
83505
|
+
enableAllLoadedSubCategories(categoryIds) {
|
|
83506
|
+
let anyChanged = false;
|
|
83507
|
+
for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
|
|
83508
|
+
const subCategoryIds = this.iModel.subcategories.getSubCategories(categoryId);
|
|
83509
|
+
if (undefined !== subCategoryIds)
|
|
83510
|
+
for (const subCategoryId of subCategoryIds)
|
|
83511
|
+
if (this.setSubCategoryVisible(subCategoryId, true))
|
|
83512
|
+
anyChanged = true;
|
|
83513
|
+
}
|
|
83514
|
+
return anyChanged;
|
|
83515
|
+
}
|
|
83516
|
+
/** Change the "invisible" flag for the given subcategory's appearance.
|
|
83517
|
+
* This requires that the subcategory appearance has been previously loaded by, e.g., a call to IModelConnection.Categories.getSubCategoryInfo.
|
|
83518
|
+
* @returns true if the visibility of any subcategory was modified.
|
|
83519
|
+
* @see [[enableAllLoadedSubCategories]]
|
|
83520
|
+
* @internal
|
|
83521
|
+
*/
|
|
83522
|
+
setSubCategoryVisible(subCategoryId, visible) {
|
|
83523
|
+
const app = this.iModel.subcategories.getSubCategoryAppearance(subCategoryId);
|
|
83524
|
+
if (undefined === app)
|
|
83525
|
+
return false; // category not enabled or subcategory not found
|
|
83526
|
+
const curOvr = this.getSubCategoryOverride(subCategoryId);
|
|
83527
|
+
const isAlreadyVisible = undefined !== curOvr && undefined !== curOvr.invisible ? !curOvr.invisible : !app.invisible;
|
|
83528
|
+
if (isAlreadyVisible === visible)
|
|
83529
|
+
return false;
|
|
83530
|
+
// Preserve existing overrides - just flip the visibility flag.
|
|
83531
|
+
const json = undefined !== curOvr ? curOvr.toJSON() : {};
|
|
83532
|
+
json.invisible = !visible;
|
|
83533
|
+
this.overrideSubCategory(subCategoryId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SubCategoryOverride.fromJSON(json));
|
|
83534
|
+
return true;
|
|
83535
|
+
}
|
|
83468
83536
|
/** Returns true if solar shadow display is enabled by this display style. */
|
|
83469
83537
|
get wantShadows() {
|
|
83470
83538
|
return this.is3d() && this.viewFlags.shadows && false !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.renderSystem.options.displaySolarShadows;
|
|
@@ -87168,9 +87236,7 @@ class IModelApp {
|
|
|
87168
87236
|
static get quantityFormatter() { return this._quantityFormatter; }
|
|
87169
87237
|
/** The [[ToolAdmin]] for this session. */
|
|
87170
87238
|
static get toolAdmin() { return this._toolAdmin; }
|
|
87171
|
-
/** The [[AccuDraw]] for this session.
|
|
87172
|
-
* @internal
|
|
87173
|
-
*/
|
|
87239
|
+
/** The [[AccuDraw]] for this session. */
|
|
87174
87240
|
static get accuDraw() { return this._accuDraw; }
|
|
87175
87241
|
/** The [[AccuSnap]] for this session. */
|
|
87176
87242
|
static get accuSnap() { return this._accuSnap; }
|
|
@@ -93886,6 +93952,9 @@ class SubCategoriesCache {
|
|
|
93886
93952
|
if (undefined === this._byCategoryId.get(id))
|
|
93887
93953
|
this._byCategoryId.set(id, invalidCategoryIdEntry);
|
|
93888
93954
|
}
|
|
93955
|
+
/** Exposed strictly for tests.
|
|
93956
|
+
* @internal
|
|
93957
|
+
*/
|
|
93889
93958
|
add(categoryId, subCategoryId, appearance) {
|
|
93890
93959
|
let set = this._byCategoryId.get(categoryId);
|
|
93891
93960
|
if (undefined === set)
|
|
@@ -94633,6 +94702,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
94633
94702
|
|
|
94634
94703
|
/** Provides context for producing [[RenderGraphic]]s for drawing within a [[Viewport]].
|
|
94635
94704
|
* @public
|
|
94705
|
+
* @extensions
|
|
94636
94706
|
*/
|
|
94637
94707
|
class RenderContext {
|
|
94638
94708
|
constructor(vp, frustum) {
|
|
@@ -94710,6 +94780,7 @@ class DynamicsContext extends RenderContext {
|
|
|
94710
94780
|
}
|
|
94711
94781
|
/** Provides context for a [[ViewportDecorator]] to add [[Decorations]] to be rendered within a [[Viewport]].
|
|
94712
94782
|
* @public
|
|
94783
|
+
* @extensions
|
|
94713
94784
|
*/
|
|
94714
94785
|
class DecorateContext extends RenderContext {
|
|
94715
94786
|
/** The [[ScreenViewport]] in which this context's [[Decorations]] will be drawn. */
|
|
@@ -95365,6 +95436,8 @@ class ViewCreator3d {
|
|
|
95365
95436
|
}
|
|
95366
95437
|
if (options?.standardViewId)
|
|
95367
95438
|
viewState.setStandardRotation(options.standardViewId);
|
|
95439
|
+
if (options?.allSubCategoriesVisible)
|
|
95440
|
+
viewState.displayStyle.enableAllLoadedSubCategories(viewState.categorySelector.categories);
|
|
95368
95441
|
const range = viewState.computeFitRange();
|
|
95369
95442
|
viewState.lookAtVolume(range, options?.vpAspect);
|
|
95370
95443
|
return viewState;
|
|
@@ -98933,6 +99006,7 @@ const ELEMENT_MARKED_FOR_REMOVAL = Symbol.for("@bentley/imodeljs/Viewport/__elem
|
|
|
98933
99006
|
*
|
|
98934
99007
|
* @see [[ViewManager]]
|
|
98935
99008
|
* @public
|
|
99009
|
+
* @extensions
|
|
98936
99010
|
*/
|
|
98937
99011
|
class Viewport {
|
|
98938
99012
|
/** @internal */
|
|
@@ -99257,13 +99331,8 @@ class Viewport {
|
|
|
99257
99331
|
});
|
|
99258
99332
|
}
|
|
99259
99333
|
enableAllSubCategories(categoryIds) {
|
|
99260
|
-
|
|
99261
|
-
|
|
99262
|
-
if (undefined !== subCategoryIds) {
|
|
99263
|
-
for (const subCategoryId of subCategoryIds)
|
|
99264
|
-
this.changeSubCategoryDisplay(subCategoryId, true);
|
|
99265
|
-
}
|
|
99266
|
-
}
|
|
99334
|
+
if (this.displayStyle.enableAllLoadedSubCategories(categoryIds))
|
|
99335
|
+
this.maybeInvalidateScene();
|
|
99267
99336
|
}
|
|
99268
99337
|
/** @internal */
|
|
99269
99338
|
getSubCategories(categoryId) { return this.iModel.subcategories.getSubCategories(categoryId); }
|
|
@@ -99272,18 +99341,8 @@ class Viewport {
|
|
|
99272
99341
|
* @param display: True to make geometry belonging to the subcategory visible within this viewport, false to make it invisible.
|
|
99273
99342
|
*/
|
|
99274
99343
|
changeSubCategoryDisplay(subCategoryId, display) {
|
|
99275
|
-
|
|
99276
|
-
|
|
99277
|
-
return; // category not enabled or subcategory not found
|
|
99278
|
-
const curOvr = this.getSubCategoryOverride(subCategoryId);
|
|
99279
|
-
const isAlreadyVisible = undefined !== curOvr && undefined !== curOvr.invisible ? !curOvr.invisible : !app.invisible;
|
|
99280
|
-
if (isAlreadyVisible === display)
|
|
99281
|
-
return;
|
|
99282
|
-
// Preserve existing overrides - just flip the visibility flag.
|
|
99283
|
-
const json = undefined !== curOvr ? curOvr.toJSON() : {};
|
|
99284
|
-
json.invisible = !display;
|
|
99285
|
-
this.overrideSubCategory(subCategoryId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SubCategoryOverride.fromJSON(json)); // will set the ChangeFlag appropriately
|
|
99286
|
-
this.maybeInvalidateScene();
|
|
99344
|
+
if (this.displayStyle.setSubCategoryVisible(subCategoryId, display))
|
|
99345
|
+
this.maybeInvalidateScene();
|
|
99287
99346
|
}
|
|
99288
99347
|
/** The settings controlling how a background map is displayed within a view.
|
|
99289
99348
|
* @see [[ViewFlags.backgroundMap]] for toggling display of the map on or off.
|
|
@@ -101127,6 +101186,7 @@ Viewport.undoDelay = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeDuration
|
|
|
101127
101186
|
* 5b. Otherwise, it is disposed of by invoking its dispose() method directly.
|
|
101128
101187
|
* ```
|
|
101129
101188
|
* @public
|
|
101189
|
+
* @extensions
|
|
101130
101190
|
*/
|
|
101131
101191
|
class ScreenViewport extends Viewport {
|
|
101132
101192
|
/** Create a new ScreenViewport that shows a View of an iModel into an HTMLDivElement. This method will create a new HTMLCanvasElement as a child of the supplied parentDiv.
|
|
@@ -101750,6 +101810,7 @@ function _clear2dCanvas(canvas) {
|
|
|
101750
101810
|
* Offscreen viewports can be useful for, e.g., producing an image from the contents of a view (see [[Viewport.readImageBuffer]] and [[Viewport.readImageToCanvas]])
|
|
101751
101811
|
* without drawing to the screen.
|
|
101752
101812
|
* @public
|
|
101813
|
+
* @extensions
|
|
101753
101814
|
*/
|
|
101754
101815
|
class OffScreenViewport extends Viewport {
|
|
101755
101816
|
constructor() {
|
|
@@ -103179,6 +103240,7 @@ const extensionExports = {
|
|
|
103179
103240
|
CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSource,
|
|
103180
103241
|
CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSystem,
|
|
103181
103242
|
CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordinateLockOverrides,
|
|
103243
|
+
DecorateContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DecorateContext,
|
|
103182
103244
|
Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Decorations,
|
|
103183
103245
|
DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisclosedTileTreeSet,
|
|
103184
103246
|
DisplayStyle2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle2dState,
|
|
@@ -103258,6 +103320,7 @@ const extensionExports = {
|
|
|
103258
103320
|
NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotificationManager,
|
|
103259
103321
|
NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotifyMessageDetails,
|
|
103260
103322
|
Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Npc,
|
|
103323
|
+
OffScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OffScreenViewport,
|
|
103261
103324
|
OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OrthographicViewState,
|
|
103262
103325
|
OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessageAlert,
|
|
103263
103326
|
OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessagePriority,
|
|
@@ -103283,11 +103346,13 @@ const extensionExports = {
|
|
|
103283
103346
|
QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QueryRowFormat,
|
|
103284
103347
|
Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Rank,
|
|
103285
103348
|
RenderClipVolume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderClipVolume,
|
|
103349
|
+
RenderContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderContext,
|
|
103286
103350
|
RenderGraphic: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphic,
|
|
103287
103351
|
RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphicOwner,
|
|
103288
103352
|
RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RenderMode,
|
|
103289
103353
|
RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderSystem,
|
|
103290
103354
|
Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Scene,
|
|
103355
|
+
ScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ScreenViewport,
|
|
103291
103356
|
SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SectionDrawingModelState,
|
|
103292
103357
|
SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SectionType,
|
|
103293
103358
|
SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionMethod,
|
|
@@ -103365,6 +103430,7 @@ const extensionExports = {
|
|
|
103365
103430
|
ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewStatus,
|
|
103366
103431
|
ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewTool,
|
|
103367
103432
|
ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewingSpace,
|
|
103433
|
+
Viewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Viewport,
|
|
103368
103434
|
canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToImageBuffer,
|
|
103369
103435
|
canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToResizedCanvasWithBars,
|
|
103370
103436
|
connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.connectViewportFrusta,
|
|
@@ -103381,6 +103447,7 @@ const extensionExports = {
|
|
|
103381
103447
|
imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageElementFromUrl,
|
|
103382
103448
|
queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.queryTerrainElevationOffset,
|
|
103383
103449
|
readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readElementGraphics,
|
|
103450
|
+
readGltfGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readGltfGraphics,
|
|
103384
103451
|
synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportFrusta,
|
|
103385
103452
|
synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportViews,
|
|
103386
103453
|
};
|
|
@@ -142830,6 +142897,7 @@ class GltfReader {
|
|
|
142830
142897
|
* @see [Example decorator]($docs/learning/frontend/ViewDecorations#gltf-decorations) for an example of a decorator that reads and displays a glTF asset.
|
|
142831
142898
|
* @see [[readGltf]] to obtain more information about the glTF model.
|
|
142832
142899
|
* @public
|
|
142900
|
+
* @extensions
|
|
142833
142901
|
*/
|
|
142834
142902
|
async function readGltfGraphics(args) {
|
|
142835
142903
|
const result = await readGltf(args);
|
|
@@ -289069,7 +289137,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
289069
289137
|
/***/ ((module) => {
|
|
289070
289138
|
|
|
289071
289139
|
"use strict";
|
|
289072
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
289140
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.63","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 && 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 \\"./node_modules/@itwin/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.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.63","@itwin/core-bentley":"workspace:^4.0.0-dev.63","@itwin/core-common":"workspace:^4.0.0-dev.63","@itwin/core-geometry":"workspace:^4.0.0-dev.63","@itwin/core-orbitgt":"workspace:^4.0.0-dev.63","@itwin/core-quantity":"workspace:^4.0.0-dev.63"},"//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":"^4.0.0-dev.32","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.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":"~5.0.2","webpack":"^5.76.0"},"//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.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","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"}}]}}');
|
|
289073
289141
|
|
|
289074
289142
|
/***/ })
|
|
289075
289143
|
|