@itwin/frontend-tiles 3.7.0-dev.6 → 3.7.0-dev.8
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/.rush/temp/66eda89ae927be7163ab4886bb1a316597deda28.log +10 -0
- package/.rush/temp/operation/build_ci/state.json +1 -1
- package/lib/cjs/BatchedSpatialTileTreeRefs.d.ts +4 -3
- package/lib/cjs/BatchedSpatialTileTreeRefs.d.ts.map +1 -1
- package/lib/cjs/BatchedSpatialTileTreeRefs.js +133 -34
- package/lib/cjs/BatchedSpatialTileTreeRefs.js.map +1 -1
- package/lib/cjs/BatchedTile.d.ts +23 -23
- package/lib/cjs/BatchedTile.d.ts.map +1 -1
- package/lib/cjs/BatchedTile.js +251 -250
- package/lib/cjs/BatchedTile.js.map +1 -1
- package/lib/cjs/BatchedTileContentReader.d.ts +22 -22
- package/lib/cjs/BatchedTileContentReader.js +76 -76
- package/lib/cjs/BatchedTileContentReader.js.map +1 -1
- package/lib/cjs/BatchedTileTree.d.ts +22 -22
- package/lib/cjs/BatchedTileTree.js +52 -52
- package/lib/cjs/BatchedTileTree.js.map +1 -1
- package/lib/cjs/BatchedTileTreeReference.d.ts +21 -17
- package/lib/cjs/BatchedTileTreeReference.d.ts.map +1 -1
- package/lib/cjs/BatchedTileTreeReference.js +73 -49
- package/lib/cjs/BatchedTileTreeReference.js.map +1 -1
- package/lib/cjs/BatchedTileTreeSupplier.d.ts +5 -5
- package/lib/cjs/BatchedTileTreeSupplier.js +38 -38
- package/lib/cjs/BatchedTileTreeSupplier.js.map +1 -1
- package/lib/cjs/BatchedTilesetReader.d.ts +13 -13
- package/lib/cjs/BatchedTilesetReader.js +88 -88
- package/lib/cjs/BatchedTilesetReader.js.map +1 -1
- package/lib/cjs/FrontendTiles.d.ts +32 -14
- package/lib/cjs/FrontendTiles.d.ts.map +1 -1
- package/lib/cjs/FrontendTiles.js +26 -16
- package/lib/cjs/FrontendTiles.js.map +1 -1
- package/lib/cjs/LoggerCategory.d.ts +2 -2
- package/lib/cjs/LoggerCategory.js +9 -9
- package/lib/cjs/LoggerCategory.js.map +1 -1
- package/lib/cjs/frontend-tiles.d.ts +1 -1
- package/lib/cjs/frontend-tiles.js +17 -17
- package/lib/cjs/frontend-tiles.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/BatchedSpatialTileTreeRefs.d.ts +4 -3
- package/lib/esm/BatchedSpatialTileTreeRefs.d.ts.map +1 -1
- package/lib/esm/BatchedSpatialTileTreeRefs.js +129 -30
- package/lib/esm/BatchedSpatialTileTreeRefs.js.map +1 -1
- package/lib/esm/BatchedTile.d.ts +23 -23
- package/lib/esm/BatchedTile.d.ts.map +1 -1
- package/lib/esm/BatchedTile.js +247 -246
- package/lib/esm/BatchedTile.js.map +1 -1
- package/lib/esm/BatchedTileContentReader.d.ts +22 -22
- package/lib/esm/BatchedTileContentReader.js +72 -72
- package/lib/esm/BatchedTileContentReader.js.map +1 -1
- package/lib/esm/BatchedTileTree.d.ts +22 -22
- package/lib/esm/BatchedTileTree.js +48 -48
- package/lib/esm/BatchedTileTree.js.map +1 -1
- package/lib/esm/BatchedTileTreeReference.d.ts +21 -17
- package/lib/esm/BatchedTileTreeReference.d.ts.map +1 -1
- package/lib/esm/BatchedTileTreeReference.js +69 -45
- package/lib/esm/BatchedTileTreeReference.js.map +1 -1
- package/lib/esm/BatchedTileTreeSupplier.d.ts +5 -5
- package/lib/esm/BatchedTileTreeSupplier.js +34 -34
- package/lib/esm/BatchedTileTreeSupplier.js.map +1 -1
- package/lib/esm/BatchedTilesetReader.d.ts +13 -13
- package/lib/esm/BatchedTilesetReader.js +84 -84
- package/lib/esm/BatchedTilesetReader.js.map +1 -1
- package/lib/esm/FrontendTiles.d.ts +32 -14
- package/lib/esm/FrontendTiles.d.ts.map +1 -1
- package/lib/esm/FrontendTiles.js +21 -12
- package/lib/esm/FrontendTiles.js.map +1 -1
- package/lib/esm/LoggerCategory.d.ts +2 -2
- package/lib/esm/LoggerCategory.js +6 -6
- package/lib/esm/LoggerCategory.js.map +1 -1
- package/lib/esm/frontend-tiles.d.ts +1 -1
- package/lib/esm/frontend-tiles.js +5 -5
- package/lib/esm/frontend-tiles.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/BatchedSpatialTileTreeRefs.ts +122 -5
- package/src/BatchedTile.ts +2 -1
- package/src/BatchedTileTreeReference.ts +36 -4
- package/src/FrontendTiles.ts +31 -3
- package/.rush/temp/package-deps_build_ci.json +0 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IModelConnection, TileTreeOwner } from "@itwin/core-frontend";
|
|
2
|
-
/** @internal */
|
|
3
|
-
export declare type TreeId = URL;
|
|
4
|
-
/** @internal */
|
|
5
|
-
export declare function getBatchedTileTreeOwner(iModel: IModelConnection, baseUrl: URL): TileTreeOwner;
|
|
1
|
+
import { IModelConnection, TileTreeOwner } from "@itwin/core-frontend";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare type TreeId = URL;
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare function getBatchedTileTreeOwner(iModel: IModelConnection, baseUrl: URL): TileTreeOwner;
|
|
6
6
|
//# sourceMappingURL=BatchedTileTreeSupplier.d.ts.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getBatchedTileTreeOwner = void 0;
|
|
8
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
9
|
-
const LoggerCategory_1 = require("./LoggerCategory");
|
|
10
|
-
const BatchedTilesetReader_1 = require("./BatchedTilesetReader");
|
|
11
|
-
const BatchedTileTree_1 = require("./BatchedTileTree");
|
|
12
|
-
class BatchedTileTreeSupplier {
|
|
13
|
-
compareTileTreeIds(lhs, rhs) {
|
|
14
|
-
// Currently each iModel has exactly 1 unique tile tree for all spatial models.
|
|
15
|
-
return (0, core_bentley_1.compareStrings)(lhs.toString(), rhs.toString());
|
|
16
|
-
}
|
|
17
|
-
async createTileTree(baseUrl, iModel) {
|
|
18
|
-
const url = new URL("tileset.json", baseUrl);
|
|
19
|
-
url.search = baseUrl.search;
|
|
20
|
-
try {
|
|
21
|
-
const response = await fetch(url.toString());
|
|
22
|
-
const json = await response.json();
|
|
23
|
-
const reader = new BatchedTilesetReader_1.BatchedTilesetReader(json, iModel, baseUrl);
|
|
24
|
-
const params = await reader.readTileTreeParams();
|
|
25
|
-
return new BatchedTileTree_1.BatchedTileTree(params);
|
|
26
|
-
}
|
|
27
|
-
catch (err) {
|
|
28
|
-
core_bentley_1.Logger.logException(LoggerCategory_1.loggerCategory, err);
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const batchedTileTreeSupplier = new BatchedTileTreeSupplier();
|
|
34
|
-
/** @internal */
|
|
35
|
-
function getBatchedTileTreeOwner(iModel, baseUrl) {
|
|
36
|
-
return iModel.tiles.getTileTreeOwner(baseUrl, batchedTileTreeSupplier);
|
|
37
|
-
}
|
|
38
|
-
exports.getBatchedTileTreeOwner = getBatchedTileTreeOwner;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getBatchedTileTreeOwner = void 0;
|
|
8
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
9
|
+
const LoggerCategory_1 = require("./LoggerCategory");
|
|
10
|
+
const BatchedTilesetReader_1 = require("./BatchedTilesetReader");
|
|
11
|
+
const BatchedTileTree_1 = require("./BatchedTileTree");
|
|
12
|
+
class BatchedTileTreeSupplier {
|
|
13
|
+
compareTileTreeIds(lhs, rhs) {
|
|
14
|
+
// Currently each iModel has exactly 1 unique tile tree for all spatial models.
|
|
15
|
+
return (0, core_bentley_1.compareStrings)(lhs.toString(), rhs.toString());
|
|
16
|
+
}
|
|
17
|
+
async createTileTree(baseUrl, iModel) {
|
|
18
|
+
const url = new URL("tileset.json", baseUrl);
|
|
19
|
+
url.search = baseUrl.search;
|
|
20
|
+
try {
|
|
21
|
+
const response = await fetch(url.toString());
|
|
22
|
+
const json = await response.json();
|
|
23
|
+
const reader = new BatchedTilesetReader_1.BatchedTilesetReader(json, iModel, baseUrl);
|
|
24
|
+
const params = await reader.readTileTreeParams();
|
|
25
|
+
return new BatchedTileTree_1.BatchedTileTree(params);
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
core_bentley_1.Logger.logException(LoggerCategory_1.loggerCategory, err);
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const batchedTileTreeSupplier = new BatchedTileTreeSupplier();
|
|
34
|
+
/** @internal */
|
|
35
|
+
function getBatchedTileTreeOwner(iModel, baseUrl) {
|
|
36
|
+
return iModel.tiles.getTileTreeOwner(baseUrl, batchedTileTreeSupplier);
|
|
37
|
+
}
|
|
38
|
+
exports.getBatchedTileTreeOwner = getBatchedTileTreeOwner;
|
|
39
39
|
//# sourceMappingURL=BatchedTileTreeSupplier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchedTileTreeSupplier.js","sourceRoot":"","sources":["../../src/BatchedTileTreeSupplier.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,sDAA6D;AAI7D,qDAAkD;AAClD,iEAA8D;AAC9D,uDAAoD;AAKpD,MAAM,uBAAuB;IACpB,kBAAkB,CAAC,GAAW,EAAE,GAAW;QAChD,+EAA+E;QAC/E,OAAO,IAAA,6BAAc,EAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,OAAe,EAAE,MAAwB;QACnE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAC7C,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC5B,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,MAAM,MAAM,GAAG,IAAI,2CAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACjD,OAAO,IAAI,iCAAe,CAAC,MAAM,CAAC,CAAC;SACpC;QAAC,OAAO,GAAG,EAAE;YACZ,qBAAM,CAAC,YAAY,CAAC,+BAAc,EAAE,GAAG,CAAC,CAAC;YACzC,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF;AAED,MAAM,uBAAuB,GAAqB,IAAI,uBAAuB,EAAE,CAAC;AAEhF,gBAAgB;AAChB,SAAgB,uBAAuB,CAAC,MAAwB,EAAE,OAAY;IAC5E,OAAO,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;AACzE,CAAC;AAFD,0DAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"BatchedTileTreeSupplier.js","sourceRoot":"","sources":["../../src/BatchedTileTreeSupplier.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,sDAA6D;AAI7D,qDAAkD;AAClD,iEAA8D;AAC9D,uDAAoD;AAKpD,MAAM,uBAAuB;IACpB,kBAAkB,CAAC,GAAW,EAAE,GAAW;QAChD,+EAA+E;QAC/E,OAAO,IAAA,6BAAc,EAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,OAAe,EAAE,MAAwB;QACnE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAC7C,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC5B,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,MAAM,MAAM,GAAG,IAAI,2CAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACjD,OAAO,IAAI,iCAAe,CAAC,MAAM,CAAC,CAAC;SACpC;QAAC,OAAO,GAAG,EAAE;YACZ,qBAAM,CAAC,YAAY,CAAC,+BAAc,EAAE,GAAG,CAAC,CAAC;YACzC,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF;AAED,MAAM,uBAAuB,GAAqB,IAAI,uBAAuB,EAAE,CAAC;AAEhF,gBAAgB;AAChB,SAAgB,uBAAuB,CAAC,MAAwB,EAAE,OAAY;IAC5E,OAAO,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;AACzE,CAAC;AAFD,0DAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport { compareStrings, Logger } from \"@itwin/core-bentley\";\nimport {\n IModelConnection, TileTree, TileTreeOwner, TileTreeSupplier,\n} from \"@itwin/core-frontend\";\nimport { loggerCategory } from \"./LoggerCategory\";\nimport { BatchedTilesetReader } from \"./BatchedTilesetReader\";\nimport { BatchedTileTree } from \"./BatchedTileTree\";\n\n/** @internal */\nexport type TreeId = URL;\n\nclass BatchedTileTreeSupplier implements TileTreeSupplier {\n public compareTileTreeIds(lhs: TreeId, rhs: TreeId): number {\n // Currently each iModel has exactly 1 unique tile tree for all spatial models.\n return compareStrings(lhs.toString(), rhs.toString());\n }\n\n public async createTileTree(baseUrl: TreeId, iModel: IModelConnection): Promise<TileTree | undefined> {\n const url = new URL(\"tileset.json\", baseUrl);\n url.search = baseUrl.search;\n try {\n const response = await fetch(url.toString());\n const json = await response.json();\n\n const reader = new BatchedTilesetReader(json, iModel, baseUrl);\n const params = await reader.readTileTreeParams();\n return new BatchedTileTree(params);\n } catch (err) {\n Logger.logException(loggerCategory, err);\n return undefined;\n }\n }\n}\n\nconst batchedTileTreeSupplier: TileTreeSupplier = new BatchedTileTreeSupplier();\n\n/** @internal */\nexport function getBatchedTileTreeOwner(iModel: IModelConnection, baseUrl: URL): TileTreeOwner {\n return iModel.tiles.getTileTreeOwner(baseUrl, batchedTileTreeSupplier);\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Tileset3dSchema as schema } from "@itwin/core-common";
|
|
2
|
-
import { IModelConnection } from "@itwin/core-frontend";
|
|
3
|
-
import { BatchedTileTreeParams } from "./BatchedTileTree";
|
|
4
|
-
import { BatchedTile, BatchedTileParams } from "./BatchedTile";
|
|
5
|
-
/** @internal */
|
|
6
|
-
export declare class BatchedTilesetReader {
|
|
7
|
-
private readonly _iModel;
|
|
8
|
-
private readonly _tileset;
|
|
9
|
-
readonly baseUrl: URL;
|
|
10
|
-
constructor(json: unknown, iModel: IModelConnection, baseUrl: URL);
|
|
11
|
-
readTileParams(json: schema.Tile, parent?: BatchedTile): BatchedTileParams;
|
|
12
|
-
readTileTreeParams(): Promise<BatchedTileTreeParams>;
|
|
13
|
-
}
|
|
1
|
+
import { Tileset3dSchema as schema } from "@itwin/core-common";
|
|
2
|
+
import { IModelConnection } from "@itwin/core-frontend";
|
|
3
|
+
import { BatchedTileTreeParams } from "./BatchedTileTree";
|
|
4
|
+
import { BatchedTile, BatchedTileParams } from "./BatchedTile";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare class BatchedTilesetReader {
|
|
7
|
+
private readonly _iModel;
|
|
8
|
+
private readonly _tileset;
|
|
9
|
+
readonly baseUrl: URL;
|
|
10
|
+
constructor(json: unknown, iModel: IModelConnection, baseUrl: URL);
|
|
11
|
+
readTileParams(json: schema.Tile, parent?: BatchedTile): BatchedTileParams;
|
|
12
|
+
readTileTreeParams(): Promise<BatchedTileTreeParams>;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=BatchedTilesetReader.d.ts.map
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.BatchedTilesetReader = void 0;
|
|
8
|
-
const core_geometry_1 = require("@itwin/core-geometry");
|
|
9
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
10
|
-
function isTileset3d(json) {
|
|
11
|
-
if (typeof json !== "object")
|
|
12
|
-
return false;
|
|
13
|
-
const props = json;
|
|
14
|
-
if (!props.root || !props.asset)
|
|
15
|
-
return false;
|
|
16
|
-
// ###TODO spec requires geometricError to be present on tileset and all tiles; exporter is omitting from tileset.
|
|
17
|
-
if (undefined === props.geometricError)
|
|
18
|
-
props.geometricError = props.root.geometricError;
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
function rangeFromBoundingVolume(vol) {
|
|
22
|
-
if (vol.box) {
|
|
23
|
-
const center = new core_geometry_1.Point3d(vol.box[0], vol.box[1], vol.box[2]);
|
|
24
|
-
const ux = new core_geometry_1.Vector3d(vol.box[3], vol.box[4], vol.box[5]);
|
|
25
|
-
const uy = new core_geometry_1.Vector3d(vol.box[6], vol.box[7], vol.box[8]);
|
|
26
|
-
const uz = new core_geometry_1.Vector3d(vol.box[9], vol.box[10], vol.box[11]);
|
|
27
|
-
const range = core_geometry_1.Range3d.createNull();
|
|
28
|
-
for (let i = -1; i <= 1; i += 2)
|
|
29
|
-
for (let j = -1; j <= 1; j += 2)
|
|
30
|
-
for (let k = -1; k <= 1; k += 2)
|
|
31
|
-
range.extendPoint(center.plus3Scaled(ux, i, uy, j, uz, k));
|
|
32
|
-
return range;
|
|
33
|
-
}
|
|
34
|
-
else if (vol.sphere) {
|
|
35
|
-
const center = new core_geometry_1.Point3d(vol.sphere[0], vol.sphere[1], vol.sphere[2]);
|
|
36
|
-
const radius = vol.sphere[3];
|
|
37
|
-
return core_geometry_1.Range3d.createXYZXYZ(center.x - radius, center.y - radius, center.z - radius, center.x + radius, center.y + radius, center.z + radius);
|
|
38
|
-
}
|
|
39
|
-
// We won't get region bounding volumes in our tiles.
|
|
40
|
-
throw new Error("region bounding volume unimplemented");
|
|
41
|
-
}
|
|
42
|
-
function transformFromJSON(json) {
|
|
43
|
-
const translation = new core_geometry_1.Point3d(json[12], json[13], json[14]);
|
|
44
|
-
const matrix = core_geometry_1.Matrix3d.createRowValues(json[0], json[4], json[8], json[1], json[5], json[9], json[2], json[6], json[10]);
|
|
45
|
-
return core_geometry_1.Transform.createOriginAndMatrix(translation, matrix);
|
|
46
|
-
}
|
|
47
|
-
/** @internal */
|
|
48
|
-
class BatchedTilesetReader {
|
|
49
|
-
constructor(json, iModel, baseUrl) {
|
|
50
|
-
if (!isTileset3d(json))
|
|
51
|
-
throw new Error("Invalid tileset JSON");
|
|
52
|
-
this._iModel = iModel;
|
|
53
|
-
this._tileset = json;
|
|
54
|
-
this.baseUrl = baseUrl;
|
|
55
|
-
}
|
|
56
|
-
readTileParams(json, parent) {
|
|
57
|
-
var _a;
|
|
58
|
-
const content = json.content;
|
|
59
|
-
const geometricError = json.geometricError;
|
|
60
|
-
const range = rangeFromBoundingVolume(json.boundingVolume);
|
|
61
|
-
const isLeaf = undefined === json.children || json.children.length === 0;
|
|
62
|
-
// ###TODO evaluate this. The geometric errors in the tiles seem far too small.
|
|
63
|
-
const maximumSizeScale = 8;
|
|
64
|
-
return {
|
|
65
|
-
parent,
|
|
66
|
-
contentId: (_a = content === null || content === void 0 ? void 0 : content.uri) !== null && _a !== void 0 ? _a : "",
|
|
67
|
-
range,
|
|
68
|
-
contentRange: (content === null || content === void 0 ? void 0 : content.boundingVolume) ? rangeFromBoundingVolume(content.boundingVolume) : undefined,
|
|
69
|
-
isLeaf,
|
|
70
|
-
maximumSize: maximumSizeScale * core_frontend_1.RealityModelTileUtils.maximumSizeFromGeometricTolerance(range, geometricError),
|
|
71
|
-
childrenProps: isLeaf ? undefined : json.children,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
async readTileTreeParams() {
|
|
75
|
-
const root = this._tileset.root;
|
|
76
|
-
const location = root.transform ? transformFromJSON(root.transform) : core_geometry_1.Transform.createIdentity();
|
|
77
|
-
return {
|
|
78
|
-
id: "spatial-models",
|
|
79
|
-
modelId: this._iModel.transientIds.getNext(),
|
|
80
|
-
iModel: this._iModel,
|
|
81
|
-
location,
|
|
82
|
-
priority: core_frontend_1.TileLoadPriority.Primary,
|
|
83
|
-
rootTile: this.readTileParams(root),
|
|
84
|
-
reader: this,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.BatchedTilesetReader = BatchedTilesetReader;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.BatchedTilesetReader = void 0;
|
|
8
|
+
const core_geometry_1 = require("@itwin/core-geometry");
|
|
9
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
10
|
+
function isTileset3d(json) {
|
|
11
|
+
if (typeof json !== "object")
|
|
12
|
+
return false;
|
|
13
|
+
const props = json;
|
|
14
|
+
if (!props.root || !props.asset)
|
|
15
|
+
return false;
|
|
16
|
+
// ###TODO spec requires geometricError to be present on tileset and all tiles; exporter is omitting from tileset.
|
|
17
|
+
if (undefined === props.geometricError)
|
|
18
|
+
props.geometricError = props.root.geometricError;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
function rangeFromBoundingVolume(vol) {
|
|
22
|
+
if (vol.box) {
|
|
23
|
+
const center = new core_geometry_1.Point3d(vol.box[0], vol.box[1], vol.box[2]);
|
|
24
|
+
const ux = new core_geometry_1.Vector3d(vol.box[3], vol.box[4], vol.box[5]);
|
|
25
|
+
const uy = new core_geometry_1.Vector3d(vol.box[6], vol.box[7], vol.box[8]);
|
|
26
|
+
const uz = new core_geometry_1.Vector3d(vol.box[9], vol.box[10], vol.box[11]);
|
|
27
|
+
const range = core_geometry_1.Range3d.createNull();
|
|
28
|
+
for (let i = -1; i <= 1; i += 2)
|
|
29
|
+
for (let j = -1; j <= 1; j += 2)
|
|
30
|
+
for (let k = -1; k <= 1; k += 2)
|
|
31
|
+
range.extendPoint(center.plus3Scaled(ux, i, uy, j, uz, k));
|
|
32
|
+
return range;
|
|
33
|
+
}
|
|
34
|
+
else if (vol.sphere) {
|
|
35
|
+
const center = new core_geometry_1.Point3d(vol.sphere[0], vol.sphere[1], vol.sphere[2]);
|
|
36
|
+
const radius = vol.sphere[3];
|
|
37
|
+
return core_geometry_1.Range3d.createXYZXYZ(center.x - radius, center.y - radius, center.z - radius, center.x + radius, center.y + radius, center.z + radius);
|
|
38
|
+
}
|
|
39
|
+
// We won't get region bounding volumes in our tiles.
|
|
40
|
+
throw new Error("region bounding volume unimplemented");
|
|
41
|
+
}
|
|
42
|
+
function transformFromJSON(json) {
|
|
43
|
+
const translation = new core_geometry_1.Point3d(json[12], json[13], json[14]);
|
|
44
|
+
const matrix = core_geometry_1.Matrix3d.createRowValues(json[0], json[4], json[8], json[1], json[5], json[9], json[2], json[6], json[10]);
|
|
45
|
+
return core_geometry_1.Transform.createOriginAndMatrix(translation, matrix);
|
|
46
|
+
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
class BatchedTilesetReader {
|
|
49
|
+
constructor(json, iModel, baseUrl) {
|
|
50
|
+
if (!isTileset3d(json))
|
|
51
|
+
throw new Error("Invalid tileset JSON");
|
|
52
|
+
this._iModel = iModel;
|
|
53
|
+
this._tileset = json;
|
|
54
|
+
this.baseUrl = baseUrl;
|
|
55
|
+
}
|
|
56
|
+
readTileParams(json, parent) {
|
|
57
|
+
var _a;
|
|
58
|
+
const content = json.content;
|
|
59
|
+
const geometricError = json.geometricError;
|
|
60
|
+
const range = rangeFromBoundingVolume(json.boundingVolume);
|
|
61
|
+
const isLeaf = undefined === json.children || json.children.length === 0;
|
|
62
|
+
// ###TODO evaluate this. The geometric errors in the tiles seem far too small.
|
|
63
|
+
const maximumSizeScale = 8;
|
|
64
|
+
return {
|
|
65
|
+
parent,
|
|
66
|
+
contentId: (_a = content === null || content === void 0 ? void 0 : content.uri) !== null && _a !== void 0 ? _a : "",
|
|
67
|
+
range,
|
|
68
|
+
contentRange: (content === null || content === void 0 ? void 0 : content.boundingVolume) ? rangeFromBoundingVolume(content.boundingVolume) : undefined,
|
|
69
|
+
isLeaf,
|
|
70
|
+
maximumSize: maximumSizeScale * core_frontend_1.RealityModelTileUtils.maximumSizeFromGeometricTolerance(range, geometricError),
|
|
71
|
+
childrenProps: isLeaf ? undefined : json.children,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
async readTileTreeParams() {
|
|
75
|
+
const root = this._tileset.root;
|
|
76
|
+
const location = root.transform ? transformFromJSON(root.transform) : core_geometry_1.Transform.createIdentity();
|
|
77
|
+
return {
|
|
78
|
+
id: "spatial-models",
|
|
79
|
+
modelId: this._iModel.transientIds.getNext(),
|
|
80
|
+
iModel: this._iModel,
|
|
81
|
+
location,
|
|
82
|
+
priority: core_frontend_1.TileLoadPriority.Primary,
|
|
83
|
+
rootTile: this.readTileParams(root),
|
|
84
|
+
reader: this,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.BatchedTilesetReader = BatchedTilesetReader;
|
|
89
89
|
//# sourceMappingURL=BatchedTilesetReader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchedTilesetReader.js","sourceRoot":"","sources":["../../src/BatchedTilesetReader.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAE8B;AAE9B,wDAAiG;AAIjG,SAAS,WAAW,CAAC,IAAa;IAChC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAC1B,OAAO,KAAK,CAAC;IAEf,MAAM,KAAK,GAAG,IAAsB,CAAC;IAErC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK;QAC7B,OAAO,KAAK,CAAC;IAEf,kHAAkH;IAClH,IAAI,SAAS,KAAK,KAAK,CAAC,cAAc;QACpC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;IAEnD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,uBAAuB,CAAC,GAA0B;IACzD,IAAI,GAAG,CAAC,GAAG,EAAE;QACX,MAAM,MAAM,GAAG,IAAI,uBAAO,CAAC,GAAG,CAAC,GAAG,CA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S,CAAC,CAAC,CAAC,CAAC,yBAAS,CAAC,cAAc,EAAE,CAAC;QAEjG,OAAO;YACL,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE;YAC5C,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,QAAQ;YACR,QAAQ,EAAE,gCAAgB,CAAC,OAAO;YAClC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;YACnC,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;CACF;AA/CD,oDA+CC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"BatchedTilesetReader.js","sourceRoot":"","sources":["../../src/BatchedTilesetReader.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAE8B;AAE9B,wDAAiG;AAIjG,SAAS,WAAW,CAAC,IAAa;IAChC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAC1B,OAAO,KAAK,CAAC;IAEf,MAAM,KAAK,GAAG,IAAsB,CAAC;IAErC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK;QAC7B,OAAO,KAAK,CAAC;IAEf,kHAAkH;IAClH,IAAI,SAAS,KAAK,KAAK,CAAC,cAAc;QACpC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;IAEnD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,uBAAuB,CAAC,GAA0B;IACzD,IAAI,GAAG,CAAC,GAAG,EAAE;QACX,MAAM,MAAM,GAAG,IAAI,uBAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/D,MAAM,EAAE,GAAG,IAAI,wBAAQ,CAAC,GAAG,CAAC,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MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,QAAQ;YACR,QAAQ,EAAE,gCAAgB,CAAC,OAAO;YAClC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;YACnC,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;CACF;AA/CD,oDA+CC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport {\n Matrix3d, Point3d, Range3d, Transform, Vector3d,\n} from \"@itwin/core-geometry\";\nimport { Tileset3dSchema as schema } from \"@itwin/core-common\";\nimport { IModelConnection, RealityModelTileUtils, TileLoadPriority } from \"@itwin/core-frontend\";\nimport { BatchedTileTreeParams } from \"./BatchedTileTree\";\nimport { BatchedTile, BatchedTileParams } from \"./BatchedTile\";\n\nfunction isTileset3d(json: unknown): json is schema.Tileset {\n if (typeof json !== \"object\")\n return false;\n\n const props = json as schema.Tileset;\n\n if (!props.root || !props.asset)\n return false;\n\n // ###TODO spec requires geometricError to be present on tileset and all tiles; exporter is omitting from tileset.\n if (undefined === props.geometricError)\n props.geometricError = props.root.geometricError;\n\n return true;\n}\n\nfunction rangeFromBoundingVolume(vol: schema.BoundingVolume): Range3d {\n if (vol.box) {\n const center = new Point3d(vol.box[0], vol.box[1], vol.box[2]);\n const ux = new Vector3d(vol.box[3], vol.box[4], vol.box[5]);\n const uy = new Vector3d(vol.box[6], vol.box[7], vol.box[8]);\n const uz = new Vector3d(vol.box[9], vol.box[10], vol.box[11]);\n\n const range = Range3d.createNull();\n for (let i = -1; i <= 1; i += 2)\n for (let j = -1; j <= 1; j += 2)\n for (let k = -1; k <= 1; k += 2)\n range.extendPoint(center.plus3Scaled(ux, i, uy, j, uz, k));\n\n return range;\n } else if (vol.sphere) {\n const center = new Point3d(vol.sphere[0], vol.sphere[1], vol.sphere[2]);\n const radius = vol.sphere[3];\n return Range3d.createXYZXYZ(center.x - radius, center.y - radius, center.z - radius, center.x + radius, center.y + radius, center.z + radius);\n }\n\n // We won't get region bounding volumes in our tiles.\n throw new Error(\"region bounding volume unimplemented\");\n}\n\nfunction transformFromJSON(json: schema.Transform): Transform {\n const translation = new Point3d(json[12], json[13], json[14]);\n const matrix = Matrix3d.createRowValues(\n json[0], json[4], json[8],\n json[1], json[5], json[9],\n json[2], json[6], json[10]\n );\n\n return Transform.createOriginAndMatrix(translation, matrix);\n}\n\n/** @internal */\nexport class BatchedTilesetReader {\n private readonly _iModel: IModelConnection;\n private readonly _tileset: schema.Tileset;\n public readonly baseUrl: URL;\n\n public constructor(json: unknown, iModel: IModelConnection, baseUrl: URL) {\n if (!isTileset3d(json))\n throw new Error(\"Invalid tileset JSON\");\n\n this._iModel = iModel;\n this._tileset = json;\n this.baseUrl = baseUrl;\n }\n\n public readTileParams(json: schema.Tile, parent?: BatchedTile): BatchedTileParams {\n const content = json.content;\n const geometricError = json.geometricError;\n const range = rangeFromBoundingVolume(json.boundingVolume);\n const isLeaf = undefined === json.children || json.children.length === 0;\n\n // ###TODO evaluate this. The geometric errors in the tiles seem far too small.\n const maximumSizeScale = 8;\n return {\n parent,\n contentId: content?.uri ?? \"\",\n range,\n contentRange: content?.boundingVolume ? rangeFromBoundingVolume(content.boundingVolume) : undefined,\n isLeaf,\n maximumSize: maximumSizeScale * RealityModelTileUtils.maximumSizeFromGeometricTolerance(range, geometricError),\n childrenProps: isLeaf ? undefined : json.children,\n };\n }\n\n public async readTileTreeParams(): Promise<BatchedTileTreeParams> {\n const root = this._tileset.root;\n const location = root.transform ? transformFromJSON(root.transform) : Transform.createIdentity();\n\n return {\n id: \"spatial-models\",\n modelId: this._iModel.transientIds.getNext(),\n iModel: this._iModel,\n location,\n priority: TileLoadPriority.Primary,\n rootTile: this.readTileParams(root),\n reader: this,\n };\n }\n}\n"]}
|
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
import { IModelConnection } from "@itwin/core-frontend";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
|
|
1
|
+
import { IModelConnection, SpatialTileTreeReferences } from "@itwin/core-frontend";
|
|
2
|
+
/** A function that can provide the base URL where a tileset representing all of the spatial models in a given iModel are stored.
|
|
3
|
+
* The tileset is expected to reside at "baseUrl/tileset.json" and to have been produced by the [mesh export service](https://developer.bentley.com/apis/mesh-export/).
|
|
4
|
+
* If no such tileset exists for the given iModel, return `undefined`.
|
|
5
|
+
* @see [[FrontendTilesOptions.computeSpatialTilesetBaseUrl]].
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export declare type ComputeSpatialTilesetBaseUrl = (iModel: IModelConnection) => Promise<URL | undefined>;
|
|
9
|
+
/** Options supplied to [[initializeFrontendTiles]].
|
|
10
|
+
* @alpha
|
|
11
|
+
*/
|
|
12
|
+
export interface FrontendTilesOptions {
|
|
13
|
+
/** Provide the base URL for the pre-published tileset for a given iModel. */
|
|
14
|
+
computeSpatialTilesetBaseUrl: ComputeSpatialTilesetBaseUrl;
|
|
15
|
+
/** The maximum number of levels in the tile tree to skip loading if they do not provide the desired level of detail for the current view.
|
|
16
|
+
* Default: 4.
|
|
17
|
+
* Reducing this value will load more intermediate tiles, which causes more gradual refinement: low-resolution tiles will display quickly, followed more gradually by
|
|
18
|
+
* successively higher-resolution ones.
|
|
19
|
+
* Increasing the value jumps more directly to tiles of the exact level of detail desired, which may load more, smaller tiles up-front, leaving some areas of the view
|
|
20
|
+
* vacant for longer; and when zooming out some newly-exposed areas of the view may remain vacant for longer because no lower-resolution tiles are initially available to
|
|
21
|
+
* fill them. However, tiles close to the viewer (and therefore likely of most interest to them) will refine to an appropriate level of detail more quickly.
|
|
22
|
+
*/
|
|
23
|
+
maxLevelsToSkip?: number;
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const createFallbackSpatialTileTreeReferences: typeof SpatialTileTreeReferences.create;
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare function getMaxLevelsToSkip(): number;
|
|
29
|
+
/** Initialize the frontend-tiles package to obtain tiles for spatial views.
|
|
30
|
+
* @alpha
|
|
31
|
+
*/
|
|
32
|
+
export declare function initializeFrontendTiles(options: FrontendTilesOptions): void;
|
|
15
33
|
//# sourceMappingURL=FrontendTiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontendTiles.d.ts","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"FrontendTiles.d.ts","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAoB,MAAM,sBAAsB,CAAC;AAGrG;;;;;GAKG;AACH,oBAAY,4BAA4B,GAAG,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC;AAElG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6EAA6E;IAC7E,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,yCAAmC,CAAC;AAIxF,gBAAgB;AAChB,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAK3E"}
|
package/lib/cjs/FrontendTiles.js
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.initializeFrontendTiles = void 0;
|
|
8
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
9
|
-
const BatchedSpatialTileTreeRefs_1 = require("./BatchedSpatialTileTreeRefs");
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.initializeFrontendTiles = exports.getMaxLevelsToSkip = exports.createFallbackSpatialTileTreeReferences = void 0;
|
|
8
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
9
|
+
const BatchedSpatialTileTreeRefs_1 = require("./BatchedSpatialTileTreeRefs");
|
|
10
|
+
/** @internal */
|
|
11
|
+
exports.createFallbackSpatialTileTreeReferences = core_frontend_1.SpatialTileTreeReferences.create;
|
|
12
|
+
let maxLevelsToSkip = 4;
|
|
13
|
+
/** @internal */
|
|
14
|
+
function getMaxLevelsToSkip() {
|
|
15
|
+
return maxLevelsToSkip;
|
|
16
|
+
}
|
|
17
|
+
exports.getMaxLevelsToSkip = getMaxLevelsToSkip;
|
|
18
|
+
/** Initialize the frontend-tiles package to obtain tiles for spatial views.
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
function initializeFrontendTiles(options) {
|
|
22
|
+
if (undefined !== options.maxLevelsToSkip && options.maxLevelsToSkip >= 0)
|
|
23
|
+
maxLevelsToSkip = options.maxLevelsToSkip;
|
|
24
|
+
core_frontend_1.SpatialTileTreeReferences.create = (view) => (0, BatchedSpatialTileTreeRefs_1.createBatchedSpatialTileTreeReferences)(view, options.computeSpatialTilesetBaseUrl);
|
|
25
|
+
}
|
|
26
|
+
exports.initializeFrontendTiles = initializeFrontendTiles;
|
|
17
27
|
//# sourceMappingURL=FrontendTiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontendTiles.js","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAAqG;AACrG,6EAAsF;
|
|
1
|
+
{"version":3,"file":"FrontendTiles.js","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAAqG;AACrG,6EAAsF;AA2BtF,gBAAgB;AACH,QAAA,uCAAuC,GAAG,yCAAyB,CAAC,MAAM,CAAC;AAExF,IAAI,eAAe,GAAG,CAAC,CAAC;AAExB,gBAAgB;AAChB,SAAgB,kBAAkB;IAChC,OAAO,eAAe,CAAC;AACzB,CAAC;AAFD,gDAEC;AAED;;GAEG;AACH,SAAgB,uBAAuB,CAAC,OAA6B;IACnE,IAAI,SAAS,KAAK,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,IAAI,CAAC;QACvE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAE5C,yCAAyB,CAAC,MAAM,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,IAAA,mEAAsC,EAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACpJ,CAAC;AALD,0DAKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport { IModelConnection, SpatialTileTreeReferences, SpatialViewState } from \"@itwin/core-frontend\";\nimport { createBatchedSpatialTileTreeReferences } from \"./BatchedSpatialTileTreeRefs\";\n\n/** A function that can provide the base URL where a tileset representing all of the spatial models in a given iModel are stored.\n * The tileset is expected to reside at \"baseUrl/tileset.json\" and to have been produced by the [mesh export service](https://developer.bentley.com/apis/mesh-export/).\n * If no such tileset exists for the given iModel, return `undefined`.\n * @see [[FrontendTilesOptions.computeSpatialTilesetBaseUrl]].\n * @alpha\n */\nexport type ComputeSpatialTilesetBaseUrl = (iModel: IModelConnection) => Promise<URL | undefined>;\n\n/** Options supplied to [[initializeFrontendTiles]].\n * @alpha\n */\nexport interface FrontendTilesOptions {\n /** Provide the base URL for the pre-published tileset for a given iModel. */\n computeSpatialTilesetBaseUrl: ComputeSpatialTilesetBaseUrl;\n /** The maximum number of levels in the tile tree to skip loading if they do not provide the desired level of detail for the current view.\n * Default: 4.\n * Reducing this value will load more intermediate tiles, which causes more gradual refinement: low-resolution tiles will display quickly, followed more gradually by\n * successively higher-resolution ones.\n * Increasing the value jumps more directly to tiles of the exact level of detail desired, which may load more, smaller tiles up-front, leaving some areas of the view\n * vacant for longer; and when zooming out some newly-exposed areas of the view may remain vacant for longer because no lower-resolution tiles are initially available to\n * fill them. However, tiles close to the viewer (and therefore likely of most interest to them) will refine to an appropriate level of detail more quickly.\n */\n maxLevelsToSkip?: number;\n}\n\n/** @internal */\nexport const createFallbackSpatialTileTreeReferences = SpatialTileTreeReferences.create;\n\nlet maxLevelsToSkip = 4;\n\n/** @internal */\nexport function getMaxLevelsToSkip(): number {\n return maxLevelsToSkip;\n}\n\n/** Initialize the frontend-tiles package to obtain tiles for spatial views.\n * @alpha\n */\nexport function initializeFrontendTiles(options: FrontendTilesOptions): void {\n if (undefined !== options.maxLevelsToSkip && options.maxLevelsToSkip >= 0)\n maxLevelsToSkip = options.maxLevelsToSkip;\n\n SpatialTileTreeReferences.create = (view: SpatialViewState) => createBatchedSpatialTileTreeReferences(view, options.computeSpatialTilesetBaseUrl);\n}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
export declare const loggerCategory = "frontend-tiles";
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare const loggerCategory = "frontend-tiles";
|
|
3
3
|
//# sourceMappingURL=LoggerCategory.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.loggerCategory = void 0;
|
|
8
|
-
/** @internal */
|
|
9
|
-
exports.loggerCategory = "frontend-tiles";
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.loggerCategory = void 0;
|
|
8
|
+
/** @internal */
|
|
9
|
+
exports.loggerCategory = "frontend-tiles";
|
|
10
10
|
//# sourceMappingURL=LoggerCategory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerCategory.js","sourceRoot":"","sources":["../../src/LoggerCategory.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,gBAAgB;AACH,QAAA,cAAc,GAAG,gBAAgB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"LoggerCategory.js","sourceRoot":"","sources":["../../src/LoggerCategory.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,gBAAgB;AACH,QAAA,cAAc,GAAG,gBAAgB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @internal */\nexport const loggerCategory = \"frontend-tiles\";\n\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./FrontendTiles";
|
|
1
|
+
export * from "./FrontendTiles";
|
|
2
2
|
//# sourceMappingURL=frontend-tiles.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./FrontendTiles"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FrontendTiles"), exports);
|
|
18
18
|
//# sourceMappingURL=frontend-tiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-tiles.js","sourceRoot":"","sources":["../../src/frontend-tiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,kDAAgC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"frontend-tiles.js","sourceRoot":"","sources":["../../src/frontend-tiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,kDAAgC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./FrontendTiles\";\n"]}
|