@itwin/rpcinterface-full-stack-tests 3.5.0-dev.45 → 3.5.0-dev.49
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/_554f.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +78 -41
- 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_10_node_modules_loaders_gl_draco_d-13469a.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_554f.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_554f.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\9\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.10\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -75603,24 +75603,26 @@ var RenderSchedule;
|
|
|
75603
75603
|
}
|
|
75604
75604
|
}
|
|
75605
75605
|
RenderSchedule.ScriptReference = ScriptReference;
|
|
75606
|
-
/** Used as part of a [[RenderSchedule.ScriptBuilder]] to define a [[RenderSchedule.Timeline]].
|
|
75606
|
+
/** Used as part of a [[RenderSchedule.ScriptBuilder]] to define a [[RenderSchedule.Timeline]]. Functions that append
|
|
75607
|
+
* to the timeline expect entries to be appended in chronological order - i.e., you cannot append an entry that is earlier
|
|
75608
|
+
* than a previously appended entry.
|
|
75607
75609
|
* @see [[RenderSchedule.ElementTimelineBuilder]] and [[RenderSchedule.ModelTimelineBuilder]].
|
|
75608
75610
|
*/
|
|
75609
75611
|
class TimelineBuilder {
|
|
75610
|
-
/** Append a new [[RenderSchedule.VisibilityEntry]] to the timeline. */
|
|
75612
|
+
/** Append a new [[RenderSchedule.VisibilityEntry]] to the timeline. `time` must be more recent than any previously-appended visibility entries. */
|
|
75611
75613
|
addVisibility(time, visibility, interpolation = Interpolation.Linear) {
|
|
75612
75614
|
if (!this.visibility)
|
|
75613
75615
|
this.visibility = [];
|
|
75614
75616
|
this.visibility.push({ time, value: visibility, interpolation });
|
|
75615
75617
|
}
|
|
75616
|
-
/** Append a new [[RenderSchedule.ColorEntry]] to the timeline. */
|
|
75618
|
+
/** Append a new [[RenderSchedule.ColorEntry]] to the timeline. `time` must be more recent than any previously-appended color entries. */
|
|
75617
75619
|
addColor(time, color, interpolation = Interpolation.Linear) {
|
|
75618
75620
|
if (!this.color)
|
|
75619
75621
|
this.color = [];
|
|
75620
75622
|
const value = color instanceof _RgbColor__WEBPACK_IMPORTED_MODULE_2__.RgbColor ? { red: color.r, green: color.g, blue: color.b } : color;
|
|
75621
75623
|
this.color.push({ time, value, interpolation });
|
|
75622
75624
|
}
|
|
75623
|
-
/** Append a new [[RenderSchedule.CuttingPlaneEntry]] to the timeline. */
|
|
75625
|
+
/** Append a new [[RenderSchedule.CuttingPlaneEntry]] to the timeline. `time` must be more recent than any previously-appended cutting plane entries. */
|
|
75624
75626
|
addCuttingPlane(time, plane, interpolation = Interpolation.Linear) {
|
|
75625
75627
|
if (!this.cuttingPlane)
|
|
75626
75628
|
this.cuttingPlane = [];
|
|
@@ -75637,7 +75639,7 @@ var RenderSchedule;
|
|
|
75637
75639
|
}
|
|
75638
75640
|
this.cuttingPlane.push({ time, value, interpolation });
|
|
75639
75641
|
}
|
|
75640
|
-
/** Append a new [[RenderSchedule.TransformEntry]] to the timeline. */
|
|
75642
|
+
/** Append a new [[RenderSchedule.TransformEntry]] to the timeline. `time` must be more recent than any previously-appended transform entries. */
|
|
75641
75643
|
addTransform(time, transform, components, interpolation = Interpolation.Linear) {
|
|
75642
75644
|
if (!this.transform)
|
|
75643
75645
|
this.transform = [];
|
|
@@ -75739,7 +75741,7 @@ var RenderSchedule;
|
|
|
75739
75741
|
}
|
|
75740
75742
|
}
|
|
75741
75743
|
RenderSchedule.ModelTimelineBuilder = ModelTimelineBuilder;
|
|
75742
|
-
/** Assembles the JSON representation for a new [[RenderSchedule.Script]]. As an extremely simple example, the following code produces a script that changes the color of a single element:
|
|
75744
|
+
/** Assembles the JSON representation for a new [[RenderSchedule.Script]]. Ensure that entries on any given element timeline are added chronologically. As an extremely simple example, the following code produces a script that changes the color of a single element:
|
|
75743
75745
|
* ```ts
|
|
75744
75746
|
* const script = new ScriptBuilder();
|
|
75745
75747
|
* const model = script.addModelTimeline("0x123");
|
|
@@ -164931,7 +164933,7 @@ class RealityTile extends _internal__WEBPACK_IMPORTED_MODULE_5__.Tile {
|
|
|
164931
164933
|
}
|
|
164932
164934
|
/** @internal */
|
|
164933
164935
|
useAdditiveRefinementStepchildren() {
|
|
164934
|
-
// Create additive stepchildren only if we are this tile is additive and we are
|
|
164936
|
+
// Create additive stepchildren only if we are this tile is additive and we are re-projecting and the radius exceeds the additiveRefinementThreshold.
|
|
164935
164937
|
// This criteria is currently only met by the Cesium OSM tileset.
|
|
164936
164938
|
const rangeDiagonal = this.rangeCorners ? this.rangeCorners[0].distance(this.rangeCorners[3]) : 0;
|
|
164937
164939
|
return this.additiveRefinement && this.isDisplayable && rangeDiagonal > additiveRefinementThreshold && this.depth < additiveRefinementDepthLimit && this.realityRoot.doReprojectChildren(this);
|
|
@@ -164939,12 +164941,12 @@ class RealityTile extends _internal__WEBPACK_IMPORTED_MODULE_5__.Tile {
|
|
|
164939
164941
|
/** @internal */
|
|
164940
164942
|
_loadChildren(resolve, reject) {
|
|
164941
164943
|
this.realityRoot.loader.loadChildren(this).then((children) => {
|
|
164942
|
-
/* If this is a large tile is to be included additively, but we are
|
|
164944
|
+
/* If this is a large tile is to be included additively, but we are re-projecting (Cesium OSM) then we must add step-children to display the geometry as an overly large
|
|
164943
164945
|
tile cannot be reprojected accurately. */
|
|
164944
164946
|
if (this.useAdditiveRefinementStepchildren())
|
|
164945
164947
|
this.loadAdditiveRefinementChildren((stepChildren) => { children = children ? children === null || children === void 0 ? void 0 : children.concat(stepChildren) : stepChildren; });
|
|
164946
164948
|
if (children)
|
|
164947
|
-
this.realityRoot.reprojectAndResolveChildren(this, children, resolve); /* Potentially
|
|
164949
|
+
this.realityRoot.reprojectAndResolveChildren(this, children, resolve); /* Potentially reproject and resolve these children */
|
|
164948
164950
|
}).catch((err) => {
|
|
164949
164951
|
reject(err);
|
|
164950
164952
|
});
|
|
@@ -166265,6 +166267,11 @@ class Tile {
|
|
|
166265
166267
|
get isNotFound() { return TileLoadStatus.NotFound === this.loadStatus; }
|
|
166266
166268
|
/** True if this tile's content has been loaded and is ready to be drawn. */
|
|
166267
166269
|
get isReady() { return TileLoadStatus.Ready === this.loadStatus; }
|
|
166270
|
+
/** Indicates the tile should not be selected for display because it is out of the range of LODs supported by the tile provider.
|
|
166271
|
+
* @see [[ImageryMapTile.isOutOfLodRange]].
|
|
166272
|
+
* @alpha
|
|
166273
|
+
*/
|
|
166274
|
+
get isOutOfLodRange() { return false; }
|
|
166268
166275
|
/** @public */
|
|
166269
166276
|
setNotFound() {
|
|
166270
166277
|
this._state = 4 /* NotFound */;
|
|
@@ -172040,10 +172047,12 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
172040
172047
|
this.quadId = quadId;
|
|
172041
172048
|
this.rectangle = rectangle;
|
|
172042
172049
|
this._mapTileUsageCount = 0;
|
|
172050
|
+
this._outOfLodRange = this.depth < imageryTree.minDepth;
|
|
172043
172051
|
}
|
|
172044
172052
|
get texture() { return this._texture; }
|
|
172045
172053
|
get tilingScheme() { return this.imageryTree.tilingScheme; }
|
|
172046
172054
|
get isDisplayable() { return (this.depth > 1) && super.isDisplayable; }
|
|
172055
|
+
get isOutOfLodRange() { return this._outOfLodRange; }
|
|
172047
172056
|
setContent(content) {
|
|
172048
172057
|
this._texture = content.imageryTexture; // No dispose - textures may be shared by terrain tiles so let garbage collector dispose them.
|
|
172049
172058
|
if (undefined === content.imageryTexture)
|
|
@@ -172053,7 +172062,7 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
172053
172062
|
selectCartoDrapeTiles(drapeTiles, rectangleToDrape, drapePixelSize, args) {
|
|
172054
172063
|
// Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
|
|
172055
172064
|
if (this.isLeaf || (this.rectangle.xLength() / this.maximumSize) < drapePixelSize || this._anyChildNotFound) {
|
|
172056
|
-
if (this.isDisplayable && !this.isNotFound)
|
|
172065
|
+
if (this.isDisplayable && !this.isNotFound && !this.isOutOfLodRange)
|
|
172057
172066
|
drapeTiles.push(this);
|
|
172058
172067
|
return _internal__WEBPACK_IMPORTED_MODULE_4__.TileTreeLoadStatus.Loaded;
|
|
172059
172068
|
}
|
|
@@ -172097,12 +172106,12 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
|
|
|
172097
172106
|
// If children depth is lower than min LOD, mark them as disabled.
|
|
172098
172107
|
// This is important: if those tiles are requested and the server refuse to serve them,
|
|
172099
172108
|
// they will be marked as not found and their descendant will never be displayed.
|
|
172100
|
-
const childrenAreDisabled = (this.depth + 1) < imageryTree.minDepth;
|
|
172101
172109
|
childIds.forEach((quadId) => {
|
|
172102
172110
|
const rectangle = imageryTree.tilingScheme.tileXYToRectangle(quadId.column, quadId.row, quadId.level);
|
|
172103
172111
|
const range = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createXYZXYZ(rectangle.low.x, rectangle.low.x, 0, rectangle.high.x, rectangle.high.y, 0);
|
|
172104
|
-
const maximumSize =
|
|
172105
|
-
|
|
172112
|
+
const maximumSize = imageryTree.imageryLoader.maximumScreenSize;
|
|
172113
|
+
const tile = new ImageryMapTile({ parent: this, isLeaf: childrenAreLeaves, contentId: quadId.contentId, range, maximumSize }, imageryTree, quadId, rectangle);
|
|
172114
|
+
children.push(tile);
|
|
172106
172115
|
});
|
|
172107
172116
|
resolve(children);
|
|
172108
172117
|
};
|
|
@@ -190494,7 +190503,10 @@ class Geometry {
|
|
|
190494
190503
|
static isSmallMetricDistanceSquared(distanceSquared) {
|
|
190495
190504
|
return Math.abs(distanceSquared) <= Geometry.smallMetricDistanceSquared;
|
|
190496
190505
|
}
|
|
190497
|
-
/**
|
|
190506
|
+
/**
|
|
190507
|
+
* Return `axis modulo 3` with proper handling of negative indices
|
|
190508
|
+
* ..., -3:x, -2:y, -1:z, 0:x, 1:y, 2:z, 3:x, 4:y, 5:z, 6:x, 7:y, 8:z, ...
|
|
190509
|
+
* */
|
|
190498
190510
|
static cyclic3dAxis(axis) {
|
|
190499
190511
|
/* Direct test for the most common cases, avoid modulo */
|
|
190500
190512
|
if (axis >= 0) {
|
|
@@ -229310,7 +229322,10 @@ class Point3d extends XYZ {
|
|
|
229310
229322
|
crossProductToPointsXY(pointA, pointB) {
|
|
229311
229323
|
return _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.crossProductXYXY(pointA.x - this.x, pointA.y - this.y, pointB.x - this.x, pointB.y - this.y);
|
|
229312
229324
|
}
|
|
229313
|
-
/**
|
|
229325
|
+
/**
|
|
229326
|
+
* Return a point interpolated between `this` point and the `other` point.
|
|
229327
|
+
* * fraction specifies where the interpolated point is located on the line passing `this` and `other`.
|
|
229328
|
+
* */
|
|
229314
229329
|
interpolate(fraction, other, result) {
|
|
229315
229330
|
if (fraction <= 0.5)
|
|
229316
229331
|
return Point3d.create(this.x + fraction * (other.x - this.x), this.y + fraction * (other.y - this.y), this.z + fraction * (other.z - this.z), result);
|
|
@@ -229656,8 +229671,18 @@ class Vector3d extends XYZ {
|
|
|
229656
229671
|
this.z *= a;
|
|
229657
229672
|
return true;
|
|
229658
229673
|
}
|
|
229659
|
-
/**
|
|
229674
|
+
/**
|
|
229675
|
+
* Return fractional projection of target vector onto this
|
|
229676
|
+
* * It's returning the signed projection magnitude divided by the target magnitude. In other words,
|
|
229677
|
+
* it's returning the length of the projection as a fraction of the target magnitude.
|
|
229678
|
+
* @param target the target vector
|
|
229679
|
+
* @param defaultFraction the returned value in case magnitude square of target vector is very small
|
|
229680
|
+
* */
|
|
229660
229681
|
fractionOfProjectionToVector(target, defaultFraction = 0) {
|
|
229682
|
+
/*
|
|
229683
|
+
* projection length is (this.target)/||target||
|
|
229684
|
+
* but here we return (this.target)/||target||^2
|
|
229685
|
+
*/
|
|
229661
229686
|
const numerator = this.dotProduct(target);
|
|
229662
229687
|
const denominator = target.magnitudeSquared();
|
|
229663
229688
|
if (denominator < _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistanceSquared)
|
|
@@ -229900,7 +229925,8 @@ class Vector3d extends XYZ {
|
|
|
229900
229925
|
return true;
|
|
229901
229926
|
}
|
|
229902
229927
|
/**
|
|
229903
|
-
* Compute cross product with `vectorB
|
|
229928
|
+
* Compute cross product with `vectorB`
|
|
229929
|
+
* * cross product vector will have the given length.
|
|
229904
229930
|
* @param vectorB second vector for cross product.
|
|
229905
229931
|
* @param productLength desired length of result vector.
|
|
229906
229932
|
* @param result optional preallocated vector
|
|
@@ -230046,7 +230072,7 @@ class Vector3d extends XYZ {
|
|
|
230046
230072
|
* * The returned angle is always positive and no larger than 180 degrees (PI radians)
|
|
230047
230073
|
* * The returned angle is "in the plane containing the two vectors"
|
|
230048
230074
|
* * Use `planarRadiansTo` and `signedRadiansTo` to take have angle measured in specific plane.
|
|
230049
|
-
* @param vectorB target vector
|
|
230075
|
+
* @param vectorB target vector.
|
|
230050
230076
|
*/
|
|
230051
230077
|
radiansTo(vectorB) {
|
|
230052
230078
|
// ||axb|| = ||a|| ||b|| |sin(t)| and a.b = ||a|| ||b|| cos(t) ==>
|
|
@@ -230058,7 +230084,7 @@ class Vector3d extends XYZ {
|
|
|
230058
230084
|
* * The returned angle is always positive and no larger than 180 degrees (PI radians)
|
|
230059
230085
|
* * The returned angle is "in the plane containing the two vectors"
|
|
230060
230086
|
* * Use `planarAngleTo` and `signedAngleTo` to take have angle measured in specific plane.
|
|
230061
|
-
* @param vectorB target vector
|
|
230087
|
+
* @param vectorB target vector.
|
|
230062
230088
|
*/
|
|
230063
230089
|
angleTo(vectorB) {
|
|
230064
230090
|
return _Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createRadians(this.radiansTo(vectorB));
|
|
@@ -230078,7 +230104,7 @@ class Vector3d extends XYZ {
|
|
|
230078
230104
|
* * The returned angle can range from negative 180 degrees (negative PI radians) to positive 180
|
|
230079
230105
|
* * degrees (positive PI radians), not closed on the negative side.
|
|
230080
230106
|
* * Use `planarAngleTo` and `signedAngleTo` to take have angle measured in other planes.
|
|
230081
|
-
* @param vectorB target vector
|
|
230107
|
+
* @param vectorB target vector.
|
|
230082
230108
|
*/
|
|
230083
230109
|
angleToXY(vectorB) {
|
|
230084
230110
|
return _Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createAtan2(this.crossProductXY(vectorB), this.dotProductXY(vectorB));
|
|
@@ -230090,7 +230116,8 @@ class Vector3d extends XYZ {
|
|
|
230090
230116
|
* * The returned angle is "in the plane containing the two vectors"
|
|
230091
230117
|
* * The returned angle has the same sign as vectorW dot product (thisVector cross vectorB)
|
|
230092
230118
|
* * vectorW does not have to be perpendicular to the plane.
|
|
230093
|
-
*
|
|
230119
|
+
* * Use planarRadiansTo to measure the angle between vectors that are projected to another plane.
|
|
230120
|
+
* @param vectorB target vector.
|
|
230094
230121
|
* @param vectorW distinguishes between the sides of the plane.
|
|
230095
230122
|
*/
|
|
230096
230123
|
signedRadiansTo(vectorB, vectorW) {
|
|
@@ -230109,34 +230136,39 @@ class Vector3d extends XYZ {
|
|
|
230109
230136
|
* * The returned angle is "in the plane containing the two vectors"
|
|
230110
230137
|
* * `vectorW` distinguishes between the sides of the plane, but does not have to be perpendicular.
|
|
230111
230138
|
* * The returned angle has the same sign as vectorW dot product (thisVector cross vectorB)
|
|
230112
|
-
*
|
|
230139
|
+
* * Use planarRadiansTo to measure the angle between vectors that are projected to another plane.
|
|
230140
|
+
* @param vectorB target vector.
|
|
230113
230141
|
* @param vectorW distinguishes between the sides of the plane.
|
|
230114
230142
|
*/
|
|
230115
230143
|
signedAngleTo(vectorB, vectorW) {
|
|
230116
230144
|
return _Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createRadians(this.signedRadiansTo(vectorB, vectorW));
|
|
230117
230145
|
}
|
|
230118
230146
|
/**
|
|
230119
|
-
* Return the
|
|
230147
|
+
* Return the radians (as a simple number, not strongly typed Angle) from this vector to vectorB,
|
|
230148
|
+
* measured between their projections to the plane with the given normal.
|
|
230120
230149
|
* * The returned angle can be positive or negative, with magnitude no larger than PI radians
|
|
230121
|
-
*
|
|
230122
|
-
* @param
|
|
230123
|
-
* @param planeNormal a normal vector to the plane.
|
|
230150
|
+
* @param vectorB target vector
|
|
230151
|
+
* @param planeNormal the normal vector to the plane.
|
|
230124
230152
|
*/
|
|
230125
230153
|
planarRadiansTo(vectorB, planeNormal) {
|
|
230126
230154
|
const square = planeNormal.dotProduct(planeNormal);
|
|
230127
230155
|
if (square === 0.0)
|
|
230128
230156
|
return 0.0;
|
|
230129
230157
|
const factor = 1.0 / square;
|
|
230130
|
-
|
|
230131
|
-
|
|
230132
|
-
|
|
230158
|
+
/*
|
|
230159
|
+
* projection of vector 'v' on normal 'n' is given by vProj = [dot(v,n)/||n||^2]*n
|
|
230160
|
+
* and projection of 'v' on the plane is given by 'v - vProj'
|
|
230161
|
+
*/
|
|
230162
|
+
const thisProj = this.plusScaled(planeNormal, -this.dotProduct(planeNormal) * factor);
|
|
230163
|
+
const vectorBProj = vectorB.plusScaled(planeNormal, -vectorB.dotProduct(planeNormal) * factor);
|
|
230164
|
+
return thisProj.signedRadiansTo(vectorBProj, planeNormal);
|
|
230133
230165
|
}
|
|
230134
230166
|
/**
|
|
230135
|
-
* Return the (as strongly typed Angle)
|
|
230167
|
+
* Return the angle (as strongly typed Angle) from this vector to vectorB,
|
|
230168
|
+
* measured between their projections to the plane with the given normal.
|
|
230136
230169
|
* * The returned angle can range from negative PI to positive PI (not closed on negative side)
|
|
230137
|
-
*
|
|
230138
|
-
* @param
|
|
230139
|
-
* @param planeNormal a normal vector to the plane.
|
|
230170
|
+
* @param vectorB target vector.
|
|
230171
|
+
* @param planeNormal the normal vector to the plane.
|
|
230140
230172
|
*/
|
|
230141
230173
|
planarAngleTo(vectorB, planeNormal) {
|
|
230142
230174
|
return _Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createRadians(this.planarRadiansTo(vectorB, planeNormal));
|
|
@@ -234807,12 +234839,12 @@ class Ray3d {
|
|
|
234807
234839
|
return pair;
|
|
234808
234840
|
}
|
|
234809
234841
|
/**
|
|
234810
|
-
* Return a ray
|
|
234811
|
-
* scale factor
|
|
234812
|
-
* @param pt1 start point of interpolation
|
|
234842
|
+
* Return a ray with `ray.origin` interpolated between pt1 and pt2 at the given fraction
|
|
234843
|
+
* and `ray.direction` set to the vector from pt1 to pt2 multiplied by the given scale factor.
|
|
234844
|
+
* @param pt1 start point of interpolation.
|
|
234813
234845
|
* @param fraction fractional position between points.
|
|
234814
|
-
* @param pt2 endpoint of interpolation
|
|
234815
|
-
* @param tangentScale scale factor to apply to the startToEnd vector
|
|
234846
|
+
* @param pt2 endpoint of interpolation.
|
|
234847
|
+
* @param tangentScale scale factor to apply to the startToEnd vector.
|
|
234816
234848
|
* @param result optional receiver.
|
|
234817
234849
|
*/
|
|
234818
234850
|
static interpolatePointAndTangent(pt1, fraction, pt2, tangentScale, result) {
|
|
@@ -270448,7 +270480,8 @@ class ITwinLocalization {
|
|
|
270448
270480
|
}
|
|
270449
270481
|
return value;
|
|
270450
270482
|
}
|
|
270451
|
-
/** Similar to `getLocalizedString` but the namespace is a separate
|
|
270483
|
+
/** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
|
|
270484
|
+
* to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.
|
|
270452
270485
|
* @param namespace - the namespace that identifies the particular localization file that contains the property.
|
|
270453
270486
|
* @param key - the key that matches a property in the JSON localization file.
|
|
270454
270487
|
* @returns The string corresponding to the first key that resolves.
|
|
@@ -270478,6 +270511,10 @@ class ITwinLocalization {
|
|
|
270478
270511
|
if ((options === null || options === void 0 ? void 0 : options.returnDetails) || (options === null || options === void 0 ? void 0 : options.returnObjects)) {
|
|
270479
270512
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
270480
270513
|
}
|
|
270514
|
+
options = {
|
|
270515
|
+
...options,
|
|
270516
|
+
ns: namespace, // ensure namespace argument is used
|
|
270517
|
+
};
|
|
270481
270518
|
const en = this.i18next.getFixedT("en", namespace);
|
|
270482
270519
|
const str = en(key, options);
|
|
270483
270520
|
if (typeof str !== "string")
|
|
@@ -291750,7 +291787,7 @@ class TestContext {
|
|
|
291750
291787
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
291751
291788
|
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` } });
|
|
291752
291789
|
await core_frontend_1.NoRenderApp.startup({
|
|
291753
|
-
applicationVersion: "3.5.0-dev.
|
|
291790
|
+
applicationVersion: "3.5.0-dev.49",
|
|
291754
291791
|
applicationId: this.settings.gprid,
|
|
291755
291792
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
291756
291793
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -310819,7 +310856,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
310819
310856
|
/***/ ((module) => {
|
|
310820
310857
|
|
|
310821
310858
|
"use strict";
|
|
310822
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.5.0-dev.
|
|
310859
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.5.0-dev.49","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.5.0-dev.49","@itwin/core-bentley":"workspace:^3.5.0-dev.49","@itwin/core-common":"workspace:^3.5.0-dev.49","@itwin/core-geometry":"workspace:^3.5.0-dev.49","@itwin/core-orbitgt":"workspace:^3.5.0-dev.49","@itwin/core-quantity":"workspace:^3.5.0-dev.49","@itwin/webgl-compatibility":"workspace:^3.5.0-dev.49"},"//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.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11","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"}}]}}');
|
|
310823
310860
|
|
|
310824
310861
|
/***/ }),
|
|
310825
310862
|
|