@itwin/rpcinterface-full-stack-tests 4.4.0-dev.3 → 4.4.0-dev.4
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/bundled-tests.js +59 -28
- 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/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_4_14_node_modules_loaders_gl_draco_d-aa4ff5.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -258727,14 +258727,16 @@ var HalfEdgeMask;
|
|
|
258727
258727
|
/**
|
|
258728
258728
|
* Mask commonly set consistently around exterior faces.
|
|
258729
258729
|
* * A boundary edge with interior to one side, exterior to the other, will have EXTERIOR only on the outside.
|
|
258730
|
-
* * An
|
|
258730
|
+
* * An edge inserted "within a purely exterior face" can have EXTERIOR on both sides.
|
|
258731
258731
|
* * An interior edge (such as added during triangulation) will have no EXTERIOR bits.
|
|
258732
|
+
* * Visualization can be found at geometry/internaldocs/Graph.md
|
|
258732
258733
|
*/
|
|
258733
258734
|
HalfEdgeMask[HalfEdgeMask["EXTERIOR"] = 1] = "EXTERIOR";
|
|
258734
258735
|
/**
|
|
258735
|
-
* Mask commonly set (on both sides) of original geometry edges that are transition from outside
|
|
258736
|
+
* Mask commonly set (on both sides) of original geometry edges that are transition from outside to inside.
|
|
258736
258737
|
* * At the moment of creating an edge from primary user boundary loop coordinates, the fact that an edge is BOUNDARY
|
|
258737
258738
|
* is often clear even though there is uncertainty about which side should be EXTERIOR.
|
|
258739
|
+
* * Visualization can be found at geometry/internaldocs/Graph.md
|
|
258738
258740
|
*/
|
|
258739
258741
|
HalfEdgeMask[HalfEdgeMask["BOUNDARY_EDGE"] = 2] = "BOUNDARY_EDGE";
|
|
258740
258742
|
/**
|
|
@@ -258885,7 +258887,7 @@ class HalfEdge {
|
|
|
258885
258887
|
/**
|
|
258886
258888
|
* Create a new vertex within the edge beginning at `baseA`.
|
|
258887
258889
|
* * This creates two new nodes in their own vertex loop.
|
|
258888
|
-
* * If the base is undefined
|
|
258890
|
+
* * If the base is `undefined`, create a single-edge loop.
|
|
258889
258891
|
* * Existing nodes stay in their face and vertex loops and retain xyz and i values.
|
|
258890
258892
|
* * Unlike [[pinch]], this breaks the edgeMate pairing of the input edge:
|
|
258891
258893
|
* each node of the input edge gets a new node as its edge mate.
|
|
@@ -259382,7 +259384,15 @@ class HalfEdge {
|
|
|
259382
259384
|
const other = this.facePredecessor;
|
|
259383
259385
|
return _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(other.x - this.x, other.y - this.y, other.z - this.z, result);
|
|
259384
259386
|
}
|
|
259385
|
-
/**
|
|
259387
|
+
/**
|
|
259388
|
+
* Test if `spaceNode` is in the sector of `sectorNode`.
|
|
259389
|
+
* * The sector at `sectorNode` is defined by two rays starting at `sectorNode` and extending along the edges
|
|
259390
|
+
* owned by `sectorNode` and its face predecessor.
|
|
259391
|
+
* * In general, this method returns `true` if the coordinates of `spaceNode` are _strictly_ inside this sector
|
|
259392
|
+
* (not on the rays).
|
|
259393
|
+
* * Interpretation is whether a viewer at `sectorNode` can see `spaceNode` between the two rays.
|
|
259394
|
+
* * Degenerate sectors of 180 or 360 degrees have special handling.
|
|
259395
|
+
*/
|
|
259386
259396
|
static isNodeVisibleInSector(spaceNode, sectorNode) {
|
|
259387
259397
|
// remark: fussy details ported from native code. The obscure cases seemed "unlikely" at first. But pre-existing
|
|
259388
259398
|
// unit tests for triangulation pinged just about everything. So it really matters to do the "0" cases this way
|
|
@@ -259443,7 +259453,7 @@ class HalfEdge {
|
|
|
259443
259453
|
* @param nodeB the second node in the chain; the node at the sector vertex.
|
|
259444
259454
|
* @param nodeC the third node in the chain, nominally the face successor of nodeB.
|
|
259445
259455
|
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. Typically this is a
|
|
259446
|
-
* fraction of the sector's face's signed area. We can't compute area here, so if undefined
|
|
259456
|
+
* fraction of the sector's face's signed area. We can't compute area here, so if `undefined`, zero tolerance is used.
|
|
259447
259457
|
* @returns true iff the sector is convex. A degenerate sector, where the incident edges overlap, returns false.
|
|
259448
259458
|
*/
|
|
259449
259459
|
static isSectorConvex(nodeA, nodeB, nodeC, signedAreaTol = 0) {
|
|
@@ -259462,7 +259472,7 @@ class HalfEdge {
|
|
|
259462
259472
|
* (convex) or a right turn (not-convex). Note that if we have a convex face, then to traverse it in ccw orientation,
|
|
259463
259473
|
* we always do left turns. However, if the face is not convex, we make both left and right turns.
|
|
259464
259474
|
* * This computation ignores z-coordinates.
|
|
259465
|
-
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. If undefined
|
|
259475
|
+
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. If `undefined`, a fraction
|
|
259466
259476
|
* (`Geometry.smallMetricDistanceSquared`) of the computed signed area is used. Pass 0 to skip toleranced computation.
|
|
259467
259477
|
* @returns true iff the sector is convex. A degenerate sector, where the incident edges overlap, returns false.
|
|
259468
259478
|
*/
|
|
@@ -259751,7 +259761,7 @@ class HalfEdge {
|
|
|
259751
259761
|
}
|
|
259752
259762
|
/**
|
|
259753
259763
|
* Compute fractional coordinates of the intersection of edges from given base nodes.
|
|
259754
|
-
* * If parallel or colinear, return undefined
|
|
259764
|
+
* * If parallel or colinear, return `undefined`.
|
|
259755
259765
|
* * If (possibly extended) lines intersect, return the fractions of intersection as x,y in the result.
|
|
259756
259766
|
* @param nodeA0 base node of edge A.
|
|
259757
259767
|
* @param nodeB0 base node of edge B.
|
|
@@ -259772,7 +259782,7 @@ class HalfEdge {
|
|
|
259772
259782
|
}
|
|
259773
259783
|
/**
|
|
259774
259784
|
* Compute fractional position (possibly outside 0..1) of the intersection of a horizontal line with an edge.
|
|
259775
|
-
* * If the edge is horizontal with (approximate) identical y, return the node.
|
|
259785
|
+
* * If the edge is horizontal with (approximate) identical y, return the base node.
|
|
259776
259786
|
* * If the edge is horizontal with different y, return `undefined`.
|
|
259777
259787
|
* @param node0 base node of edge.
|
|
259778
259788
|
* @param y y coordinate of the horizontal line.
|
|
@@ -259924,7 +259934,7 @@ class HalfEdgeGraph {
|
|
|
259924
259934
|
/**
|
|
259925
259935
|
* Create a new vertex within the edge beginning at `base`.
|
|
259926
259936
|
* * This creates two new nodes in their own vertex loop.
|
|
259927
|
-
* * If the base is undefined
|
|
259937
|
+
* * If the base is `undefined`, create a single-edge loop.
|
|
259928
259938
|
* * Existing nodes stay in their face and vertex loops and retain xyz and i values.
|
|
259929
259939
|
* * Unlike [[pinch]], this breaks the edgeMate pairing of the input edge:
|
|
259930
259940
|
* each node of the input edge gets a new node as its edge mate.
|
|
@@ -261014,6 +261024,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
261014
261024
|
* @internal
|
|
261015
261025
|
*/
|
|
261016
261026
|
class NodeXYZUV {
|
|
261027
|
+
/** Constructor */
|
|
261017
261028
|
constructor(node, x, y, z, u, v) {
|
|
261018
261029
|
this._x = x;
|
|
261019
261030
|
this._y = y;
|
|
@@ -261022,7 +261033,8 @@ class NodeXYZUV {
|
|
|
261022
261033
|
this._v = v;
|
|
261023
261034
|
this._node = node;
|
|
261024
261035
|
}
|
|
261025
|
-
/**
|
|
261036
|
+
/**
|
|
261037
|
+
* Set all content directly from args.
|
|
261026
261038
|
* @returns `this` reference
|
|
261027
261039
|
*/
|
|
261028
261040
|
set(node, x, y, z, u, v) {
|
|
@@ -261034,6 +261046,7 @@ class NodeXYZUV {
|
|
|
261034
261046
|
this._node = node;
|
|
261035
261047
|
return this;
|
|
261036
261048
|
}
|
|
261049
|
+
/** Set from `other` */
|
|
261037
261050
|
setFrom(other) {
|
|
261038
261051
|
this._x = other.x;
|
|
261039
261052
|
this._y = other.y;
|
|
@@ -261042,9 +261055,13 @@ class NodeXYZUV {
|
|
|
261042
261055
|
this._v = other.v;
|
|
261043
261056
|
this._node = other.node;
|
|
261044
261057
|
}
|
|
261045
|
-
/**
|
|
261046
|
-
*
|
|
261047
|
-
* *
|
|
261058
|
+
/**
|
|
261059
|
+
* Create a `NodeXYZUV` with:
|
|
261060
|
+
* * node from the given HalfEdge.
|
|
261061
|
+
* * x,y,z as the coordinates of `node`.
|
|
261062
|
+
* * u as the xy dot product of vectorA with `ray.direction`, where vectorA is the vector from ray origin to
|
|
261063
|
+
* `node` coordinates.
|
|
261064
|
+
* * v as the xy cross product of `ray.direction` with vectorA.
|
|
261048
261065
|
*/
|
|
261049
261066
|
static createNodeAndRayOrigin(node, ray, result) {
|
|
261050
261067
|
const x = node.x;
|
|
@@ -261058,28 +261075,42 @@ class NodeXYZUV {
|
|
|
261058
261075
|
return result.set(node, x, y, z, u, v);
|
|
261059
261076
|
return new NodeXYZUV(node, x, y, z, u, v);
|
|
261060
261077
|
}
|
|
261061
|
-
/** Create a `NodeXYZUV` with explicit node
|
|
261078
|
+
/** Create a `NodeXYZUV` with explicit `node`, xyz, uv. */
|
|
261062
261079
|
static create(node, x = 0, y = 0, z = 0, u = 0, v = 0) {
|
|
261063
261080
|
return new NodeXYZUV(node, x, y, z, u, v);
|
|
261064
261081
|
}
|
|
261065
261082
|
/** Access the node. */
|
|
261066
|
-
get node() {
|
|
261067
|
-
|
|
261068
|
-
|
|
261069
|
-
/** Access the
|
|
261070
|
-
get
|
|
261071
|
-
|
|
261072
|
-
|
|
261073
|
-
/** Access the
|
|
261074
|
-
get
|
|
261075
|
-
|
|
261076
|
-
|
|
261083
|
+
get node() {
|
|
261084
|
+
return this._node;
|
|
261085
|
+
}
|
|
261086
|
+
/** Access the x coordinate. */
|
|
261087
|
+
get x() {
|
|
261088
|
+
return this._x;
|
|
261089
|
+
}
|
|
261090
|
+
/** Access the y coordinate. */
|
|
261091
|
+
get y() {
|
|
261092
|
+
return this._y;
|
|
261093
|
+
}
|
|
261094
|
+
/** Access the z coordinate. */
|
|
261095
|
+
get z() {
|
|
261096
|
+
return this._z;
|
|
261097
|
+
}
|
|
261098
|
+
/** Access the u coordinate. */
|
|
261099
|
+
get u() {
|
|
261100
|
+
return this._u;
|
|
261101
|
+
}
|
|
261102
|
+
/** Access the v coordinate. */
|
|
261103
|
+
get v() {
|
|
261104
|
+
return this._v;
|
|
261105
|
+
}
|
|
261077
261106
|
/** Access the x,y,z coordinates as Point3d with optional caller-supplied result. */
|
|
261078
261107
|
getXYZAsPoint3d(result) {
|
|
261079
261108
|
return _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(this._x, this._y, this._z, result);
|
|
261080
261109
|
}
|
|
261081
261110
|
/** Access the uv coordinates as Point2d with optional caller-supplied result. */
|
|
261082
|
-
getUVAsPoint2d(result) {
|
|
261111
|
+
getUVAsPoint2d(result) {
|
|
261112
|
+
return _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_2__.Point2d.create(this._u, this._v, result);
|
|
261113
|
+
}
|
|
261083
261114
|
/** Toleranced comparison function for u coordinate */
|
|
261084
261115
|
classifyU(target, tol) {
|
|
261085
261116
|
const delta = this.u - target;
|
|
@@ -284982,7 +285013,7 @@ class TestContext {
|
|
|
284982
285013
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
284983
285014
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
284984
285015
|
await core_frontend_1.NoRenderApp.startup({
|
|
284985
|
-
applicationVersion: "4.4.0-dev.
|
|
285016
|
+
applicationVersion: "4.4.0-dev.4",
|
|
284986
285017
|
applicationId: this.settings.gprid,
|
|
284987
285018
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
284988
285019
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -303746,7 +303777,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
303746
303777
|
/***/ ((module) => {
|
|
303747
303778
|
|
|
303748
303779
|
"use strict";
|
|
303749
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.
|
|
303780
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.4","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 && npm run -s webpackWorkers && npm run -s copy:workers","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","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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 -c extraction.eslint.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 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/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.4.0-dev.4","@itwin/core-bentley":"workspace:^4.4.0-dev.4","@itwin/core-common":"workspace:^4.4.0-dev.4","@itwin/core-geometry":"workspace:^4.4.0-dev.4","@itwin/core-orbitgt":"workspace:^4.4.0-dev.4","@itwin/core-quantity":"workspace:^4.4.0-dev.4"},"//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.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.1.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","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
303750
303781
|
|
|
303751
303782
|
/***/ }),
|
|
303752
303783
|
|