@itwin/frontend-tiles 4.0.0-dev.46
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/operation/build_ci/state.json +3 -0
- package/.rush/temp/package-deps_build_ci.json +21 -0
- package/.rush/temp/shrinkwrap-deps.json +287 -0
- package/LICENSE.md +9 -0
- package/README.md +12 -0
- package/config/rush-project.json +7 -0
- package/frontend-tiles.build.error.log +1 -0
- package/frontend-tiles.build.log +2 -0
- package/lib/cjs/BatchedSpatialTileTreeRefs.d.ts +4 -0
- package/lib/cjs/BatchedSpatialTileTreeRefs.d.ts.map +1 -0
- package/lib/cjs/BatchedSpatialTileTreeRefs.js +28 -0
- package/lib/cjs/BatchedSpatialTileTreeRefs.js.map +1 -0
- package/lib/cjs/BatchedTile.d.ts +24 -0
- package/lib/cjs/BatchedTile.d.ts.map +1 -0
- package/lib/cjs/BatchedTile.js +156 -0
- package/lib/cjs/BatchedTile.js.map +1 -0
- package/lib/cjs/BatchedTileContentReader.d.ts +23 -0
- package/lib/cjs/BatchedTileContentReader.d.ts.map +1 -0
- package/lib/cjs/BatchedTileContentReader.js +75 -0
- package/lib/cjs/BatchedTileContentReader.js.map +1 -0
- package/lib/cjs/BatchedTileTree.d.ts +23 -0
- package/lib/cjs/BatchedTileTree.d.ts.map +1 -0
- package/lib/cjs/BatchedTileTree.js +53 -0
- package/lib/cjs/BatchedTileTree.js.map +1 -0
- package/lib/cjs/BatchedTileTreeReference.d.ts +4 -0
- package/lib/cjs/BatchedTileTreeReference.d.ts.map +1 -0
- package/lib/cjs/BatchedTileTreeReference.js +25 -0
- package/lib/cjs/BatchedTileTreeReference.js.map +1 -0
- package/lib/cjs/BatchedTileTreeSupplier.d.ts +6 -0
- package/lib/cjs/BatchedTileTreeSupplier.d.ts.map +1 -0
- package/lib/cjs/BatchedTileTreeSupplier.js +39 -0
- package/lib/cjs/BatchedTileTreeSupplier.js.map +1 -0
- package/lib/cjs/BatchedTilesetReader.d.ts +14 -0
- package/lib/cjs/BatchedTilesetReader.d.ts.map +1 -0
- package/lib/cjs/BatchedTilesetReader.js +90 -0
- package/lib/cjs/BatchedTilesetReader.js.map +1 -0
- package/lib/cjs/FrontendTiles.d.ts +15 -0
- package/lib/cjs/FrontendTiles.d.ts.map +1 -0
- package/lib/cjs/FrontendTiles.js +17 -0
- package/lib/cjs/FrontendTiles.js.map +1 -0
- package/lib/cjs/LoggerCategory.d.ts +3 -0
- package/lib/cjs/LoggerCategory.d.ts.map +1 -0
- package/lib/cjs/LoggerCategory.js +10 -0
- package/lib/cjs/LoggerCategory.js.map +1 -0
- package/lib/cjs/frontend-tiles.d.ts +2 -0
- package/lib/cjs/frontend-tiles.d.ts.map +1 -0
- package/lib/cjs/frontend-tiles.js +18 -0
- package/lib/cjs/frontend-tiles.js.map +1 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -0
- package/lib/esm/BatchedSpatialTileTreeRefs.d.ts +4 -0
- package/lib/esm/BatchedSpatialTileTreeRefs.d.ts.map +1 -0
- package/lib/esm/BatchedSpatialTileTreeRefs.js +24 -0
- package/lib/esm/BatchedSpatialTileTreeRefs.js.map +1 -0
- package/lib/esm/BatchedTile.d.ts +24 -0
- package/lib/esm/BatchedTile.d.ts.map +1 -0
- package/lib/esm/BatchedTile.js +152 -0
- package/lib/esm/BatchedTile.js.map +1 -0
- package/lib/esm/BatchedTileContentReader.d.ts +23 -0
- package/lib/esm/BatchedTileContentReader.d.ts.map +1 -0
- package/lib/esm/BatchedTileContentReader.js +71 -0
- package/lib/esm/BatchedTileContentReader.js.map +1 -0
- package/lib/esm/BatchedTileTree.d.ts +23 -0
- package/lib/esm/BatchedTileTree.d.ts.map +1 -0
- package/lib/esm/BatchedTileTree.js +49 -0
- package/lib/esm/BatchedTileTree.js.map +1 -0
- package/lib/esm/BatchedTileTreeReference.d.ts +4 -0
- package/lib/esm/BatchedTileTreeReference.d.ts.map +1 -0
- package/lib/esm/BatchedTileTreeReference.js +21 -0
- package/lib/esm/BatchedTileTreeReference.js.map +1 -0
- package/lib/esm/BatchedTileTreeSupplier.d.ts +6 -0
- package/lib/esm/BatchedTileTreeSupplier.d.ts.map +1 -0
- package/lib/esm/BatchedTileTreeSupplier.js +35 -0
- package/lib/esm/BatchedTileTreeSupplier.js.map +1 -0
- package/lib/esm/BatchedTilesetReader.d.ts +14 -0
- package/lib/esm/BatchedTilesetReader.d.ts.map +1 -0
- package/lib/esm/BatchedTilesetReader.js +86 -0
- package/lib/esm/BatchedTilesetReader.js.map +1 -0
- package/lib/esm/FrontendTiles.d.ts +15 -0
- package/lib/esm/FrontendTiles.d.ts.map +1 -0
- package/lib/esm/FrontendTiles.js +13 -0
- package/lib/esm/FrontendTiles.js.map +1 -0
- package/lib/esm/LoggerCategory.d.ts +3 -0
- package/lib/esm/LoggerCategory.d.ts.map +1 -0
- package/lib/esm/LoggerCategory.js +7 -0
- package/lib/esm/LoggerCategory.js.map +1 -0
- package/lib/esm/frontend-tiles.d.ts +2 -0
- package/lib/esm/frontend-tiles.d.ts.map +1 -0
- package/lib/esm/frontend-tiles.js +6 -0
- package/lib/esm/frontend-tiles.js.map +1 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -0
- package/package.json +61 -0
- package/src/BatchedSpatialTileTreeRefs.ts +34 -0
- package/src/BatchedTile.ts +186 -0
- package/src/BatchedTileContentReader.ts +96 -0
- package/src/BatchedTileTree.ts +71 -0
- package/src/BatchedTileTreeReference.ts +28 -0
- package/src/BatchedTileTreeSupplier.ts +45 -0
- package/src/BatchedTilesetReader.ts +115 -0
- package/src/FrontendTiles.ts +24 -0
- package/src/LoggerCategory.ts +8 -0
- package/src/frontend-tiles.ts +6 -0
- package/tsconfig.json +6 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IModelConnection } from "@itwin/core-frontend";
|
|
2
|
+
/** Options supplied to [[initializeFrontendTiles]].
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export interface FrontendTilesOptions {
|
|
6
|
+
/** Given an iModel, provide the base URL where the tiles are stored representing all of the spatial models in the iModel.
|
|
7
|
+
* It is expected that baseUrl/tileset.json exists and contains a 3d tileset in which all relative URLs are relative to baseUrl.
|
|
8
|
+
*/
|
|
9
|
+
computeSpatialTilesetBaseUrl: (iModel: IModelConnection) => URL;
|
|
10
|
+
}
|
|
11
|
+
/** Initialize the frontend-tiles package to obtain tiles for spatial views.
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export declare function initializeFrontendTiles(options: FrontendTilesOptions): void;
|
|
15
|
+
//# sourceMappingURL=FrontendTiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrontendTiles.d.ts","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAA+C,MAAM,sBAAsB,CAAC;AAGrG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,4BAA4B,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,GAAG,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAE3E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
/** Initialize the frontend-tiles package to obtain tiles for spatial views.
|
|
11
|
+
* @alpha
|
|
12
|
+
*/
|
|
13
|
+
function initializeFrontendTiles(options) {
|
|
14
|
+
core_frontend_1.SpatialTileTreeReferences.create = (view) => (0, BatchedSpatialTileTreeRefs_1.createBatchedSpatialTileTreeReferences)(view.iModel, options.computeSpatialTilesetBaseUrl);
|
|
15
|
+
}
|
|
16
|
+
exports.initializeFrontendTiles = initializeFrontendTiles;
|
|
17
|
+
//# sourceMappingURL=FrontendTiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrontendTiles.js","sourceRoot":"","sources":["../../src/FrontendTiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAAqG;AACrG,6EAAsF;AAYtF;;GAEG;AACH,SAAgB,uBAAuB,CAAC,OAA6B;IACnE,yCAAyB,CAAC,MAAM,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,IAAA,mEAAsC,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC3J,CAAC;AAFD,0DAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { IModelConnection, SpatialTileTreeReferences, SpatialViewState } from \"@itwin/core-frontend\";\r\nimport { createBatchedSpatialTileTreeReferences } from \"./BatchedSpatialTileTreeRefs\";\r\n\r\n/** Options supplied to [[initializeFrontendTiles]].\r\n * @alpha\r\n */\r\nexport interface FrontendTilesOptions {\r\n /** Given an iModel, provide the base URL where the tiles are stored representing all of the spatial models in the iModel.\r\n * It is expected that baseUrl/tileset.json exists and contains a 3d tileset in which all relative URLs are relative to baseUrl.\r\n */\r\n computeSpatialTilesetBaseUrl: (iModel: IModelConnection) => URL;\r\n}\r\n\r\n/** Initialize the frontend-tiles package to obtain tiles for spatial views.\r\n * @alpha\r\n */\r\nexport function initializeFrontendTiles(options: FrontendTilesOptions): void {\r\n SpatialTileTreeReferences.create = (view: SpatialViewState) => createBatchedSpatialTileTreeReferences(view.iModel, options.computeSpatialTilesetBaseUrl);\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoggerCategory.d.ts","sourceRoot":"","sources":["../../src/LoggerCategory.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,eAAO,MAAM,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +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";
|
|
10
|
+
//# sourceMappingURL=LoggerCategory.js.map
|
|
@@ -0,0 +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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @internal */\r\nexport const loggerCategory = \"frontend-tiles\";\r\n\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-tiles.d.ts","sourceRoot":"","sources":["../../src/frontend-tiles.ts"],"names":[],"mappings":"AAKA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +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);
|
|
18
|
+
//# sourceMappingURL=frontend-tiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-tiles.js","sourceRoot":"","sources":["../../src/frontend-tiles.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,kDAAgC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nexport * from \"./FrontendTiles\";\r\n"]}
|