@bentley/imodeljs-common
Advanced tools
Comparing version 3.0.0-dev.56 to 3.0.0-dev.57
@@ -81,5 +81,5 @@ /** @packageDocumentation | ||
scaleAboutCenter(scale: number): void; | ||
/** Get the front center point */ | ||
/** The point at the center of the front face of this frustum */ | ||
get frontCenter(): Point3d; | ||
/** Get the front center point */ | ||
/** The point at the center of the rear face of this frustum */ | ||
get rearCenter(): Point3d; | ||
@@ -86,0 +86,0 @@ /** Scale this frustum's XY (viewing) plane about its center */ |
@@ -118,5 +118,5 @@ "use strict"; | ||
} | ||
/** Get the front center point */ | ||
/** The point at the center of the front face of this frustum */ | ||
get frontCenter() { return this.getCorner(Npc.LeftBottomFront).interpolate(.5, this.getCorner(Npc.RightTopFront)); } | ||
/** Get the front center point */ | ||
/** The point at the center of the rear face of this frustum */ | ||
get rearCenter() { return this.getCorner(Npc.LeftBottomRear).interpolate(.5, this.getCorner(Npc.RightTopRear)); } | ||
@@ -123,0 +123,0 @@ /** Scale this frustum's XY (viewing) plane about its center */ |
@@ -6,6 +6,7 @@ /** @packageDocumentation | ||
import { CloudStorageContainerDescriptor, CloudStorageContainerUrl } from "../CloudStorage"; | ||
import { TileContentIdentifier } from "../CloudStorageTileCache"; | ||
import { IModelRpcProps } from "../IModel"; | ||
import { RpcInterface } from "../RpcInterface"; | ||
import { IModelTileTreeProps, TileVersionInfo } from "../TileProps"; | ||
import { ElementGraphicsRequestProps } from "../tile/ElementGraphics"; | ||
import { IModelTileTreeProps, TileContentSource, TileVersionInfo } from "../TileProps"; | ||
/** @public */ | ||
@@ -26,11 +27,12 @@ export declare abstract class IModelTileRpcInterface extends RpcInterface { | ||
requestTileTreeProps(_tokenProps: IModelRpcProps, _id: string): Promise<IModelTileTreeProps>; | ||
/** @deprecated Use generateTileContent. | ||
* @internal | ||
*/ | ||
requestTileContent(iModelToken: IModelRpcProps, treeId: string, contentId: string, isCanceled?: () => boolean, guid?: string): Promise<Uint8Array>; | ||
/** Ask the backend to generate content for the specified tile. This function, unlike the deprecated `requestTileContent`, does not check the cloud storage tile cache - | ||
* Use `CloudStorageTileCache.retrieve` for that. | ||
* @returns TileContentSource - if Backend, use retrieveTileContent. If ExternalCache, use TileAdmin.requestCachedTileContent | ||
* @internal | ||
*/ | ||
generateTileContent(_rpcProps: IModelRpcProps, _treeId: string, _contentId: string, _guid: string | undefined): Promise<Uint8Array>; | ||
generateTileContent(_rpcProps: IModelRpcProps, _treeId: string, _contentId: string, _guid: string | undefined): Promise<TileContentSource>; | ||
/** Retrieves tile content from the backend once it's generated by generateTileContent. | ||
* @internal | ||
*/ | ||
retrieveTileContent(_rpcProps: IModelRpcProps, _key: TileContentIdentifier): Promise<Uint8Array>; | ||
/** @internal */ | ||
@@ -45,3 +47,2 @@ queryVersionInfo(): Promise<TileVersionInfo>; | ||
purgeTileTrees(_tokenProps: IModelRpcProps, _modelIds: Id64Array | undefined): Promise<void>; | ||
private static checkCache; | ||
/** Requests graphics for a single element in "iMdl" format. | ||
@@ -48,0 +49,0 @@ * @returns graphics in iMdl format, or `undefined` if the element's geometry produced no graphics or the request was canceled before completion. |
@@ -11,4 +11,2 @@ "use strict"; | ||
exports.IModelTileRpcInterface = void 0; | ||
const bentleyjs_core_1 = require("@bentley/bentleyjs-core"); | ||
const CloudStorageTileCache_1 = require("../CloudStorageTileCache"); | ||
const RpcInterface_1 = require("../RpcInterface"); | ||
@@ -35,13 +33,5 @@ const RpcManager_1 = require("../RpcManager"); | ||
async requestTileTreeProps(_tokenProps, _id) { return this.forward(arguments); } | ||
/** @deprecated Use generateTileContent. | ||
* @internal | ||
*/ | ||
async requestTileContent(iModelToken, treeId, contentId, isCanceled, guid) { | ||
const cached = await IModelTileRpcInterface.checkCache(iModelToken, treeId, contentId, guid); | ||
if (undefined === cached && undefined !== isCanceled && isCanceled()) | ||
throw new bentleyjs_core_1.AbandonedError(); | ||
return cached || this.forward(arguments); | ||
} | ||
/** Ask the backend to generate content for the specified tile. This function, unlike the deprecated `requestTileContent`, does not check the cloud storage tile cache - | ||
* Use `CloudStorageTileCache.retrieve` for that. | ||
* @returns TileContentSource - if Backend, use retrieveTileContent. If ExternalCache, use TileAdmin.requestCachedTileContent | ||
* @internal | ||
@@ -52,2 +42,8 @@ */ | ||
} | ||
/** Retrieves tile content from the backend once it's generated by generateTileContent. | ||
* @internal | ||
*/ | ||
async retrieveTileContent(_rpcProps, _key) { | ||
return this.forward(arguments); | ||
} | ||
/** @internal */ | ||
@@ -64,5 +60,2 @@ async queryVersionInfo() { | ||
async purgeTileTrees(_tokenProps, _modelIds) { return this.forward(arguments); } | ||
static async checkCache(tokenProps, treeId, contentId, guid) { | ||
return CloudStorageTileCache_1.CloudStorageTileCache.getCache().retrieve({ tokenProps, treeId, contentId, guid }); | ||
} | ||
/** Requests graphics for a single element in "iMdl" format. | ||
@@ -81,3 +74,3 @@ * @returns graphics in iMdl format, or `undefined` if the element's geometry produced no graphics or the request was canceled before completion. | ||
/** The semantic version of the interface. */ | ||
IModelTileRpcInterface.interfaceVersion = "2.3.0"; | ||
IModelTileRpcInterface.interfaceVersion = "3.0.0"; | ||
//# sourceMappingURL=IModelTileRpcInterface.js.map |
@@ -64,2 +64,9 @@ /** @packageDocumentation | ||
} | ||
/** | ||
* @internal | ||
*/ | ||
export declare enum TileContentSource { | ||
Backend = 0, | ||
ExternalCache = 1 | ||
} | ||
//# sourceMappingURL=TileProps.d.ts.map |
@@ -10,2 +10,11 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TileContentSource = void 0; | ||
/** | ||
* @internal | ||
*/ | ||
var TileContentSource; | ||
(function (TileContentSource) { | ||
TileContentSource[TileContentSource["Backend"] = 0] = "Backend"; | ||
TileContentSource[TileContentSource["ExternalCache"] = 1] = "ExternalCache"; | ||
})(TileContentSource = exports.TileContentSource || (exports.TileContentSource = {})); | ||
//# sourceMappingURL=TileProps.js.map |
{ | ||
"name": "@bentley/imodeljs-common", | ||
"version": "3.0.0-dev.56", | ||
"version": "3.0.0-dev.57", | ||
"description": "iModel.js components common to frontend and backend", | ||
@@ -30,14 +30,14 @@ "main": "lib/imodeljs-common.js", | ||
"peerDependencies": { | ||
"@bentley/bentleyjs-core": "^3.0.0-dev.56", | ||
"@bentley/geometry-core": "^3.0.0-dev.56", | ||
"@bentley/imodelhub-client": "^3.0.0-dev.56", | ||
"@bentley/itwin-client": "^3.0.0-dev.56" | ||
"@bentley/bentleyjs-core": "^3.0.0-dev.57", | ||
"@bentley/geometry-core": "^3.0.0-dev.57", | ||
"@bentley/imodelhub-client": "^3.0.0-dev.57", | ||
"@bentley/itwin-client": "^3.0.0-dev.57" | ||
}, | ||
"devDependencies": { | ||
"@bentley/bentleyjs-core": "3.0.0-dev.56", | ||
"@bentley/build-tools": "3.0.0-dev.56", | ||
"@bentley/eslint-plugin": "3.0.0-dev.56", | ||
"@bentley/geometry-core": "3.0.0-dev.56", | ||
"@bentley/imodelhub-client": "3.0.0-dev.56", | ||
"@bentley/itwin-client": "3.0.0-dev.56", | ||
"@bentley/bentleyjs-core": "3.0.0-dev.57", | ||
"@bentley/build-tools": "3.0.0-dev.57", | ||
"@bentley/eslint-plugin": "3.0.0-dev.57", | ||
"@bentley/geometry-core": "3.0.0-dev.57", | ||
"@bentley/imodelhub-client": "3.0.0-dev.57", | ||
"@bentley/itwin-client": "3.0.0-dev.57", | ||
"@types/chai": "^4.1.4", | ||
@@ -44,0 +44,0 @@ "@types/flatbuffers": "~1.10.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41610
4561972