@itwin/core-common
Version:
iTwin.js components common to frontend and backend
30 lines • 1.16 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Tile
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TileContentSource = void 0;
exports.getTileObjectReference = getTileObjectReference;
/**
* @internal
*/
var TileContentSource;
(function (TileContentSource) {
TileContentSource[TileContentSource["Backend"] = 0] = "Backend";
TileContentSource[TileContentSource["ExternalCache"] = 1] = "ExternalCache";
})(TileContentSource || (exports.TileContentSource = TileContentSource = {}));
/**
* @internal
*/
function getTileObjectReference(iModelId, changesetId, treeId, contentId, guid) {
return {
baseDirectory: iModelId,
relativeDirectory: `tiles/${treeId}/${guid ?? changesetId}`,
objectName: contentId,
};
}
//# sourceMappingURL=TileProps.js.map