import Check from "../Core/Check.js"; import defaultValue from "../Core/defaultValue.js"; /** * An object containing feature metadata. *
* See the {@link https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata|EXT_feature_metadata Extension} for glTF. *
* * @param {Object} options Object with the following properties: * @param {MetadataSchema} options.schema The parsed schema. * @param {Object.* See the {@link https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata/schema/statistics.schema.json|statistics schema reference} for the full set of properties. *
* * @memberof FeatureMetadata.prototype * @type {Object} * @readonly * @private */ statistics: { get: function () { return this._statistics; }, }, /** * Extras in the JSON object. * * @memberof FeatureMetadata.prototype * @type {*} * @readonly * @private */ extras: { get: function () { return this._extras; }, }, /** * Extensions in the JSON object. * * @memberof FeatureMetadata.prototype * @type {Object} * @readonly * @private */ extensions: { get: function () { return this._extensions; }, }, }); /** * Gets the feature table with the given ID. * * @param {String} featureTableId The feature table ID. * @returns {FeatureTable} The feature table. * @private */ FeatureMetadata.prototype.getFeatureTable = function (featureTableId) { //>>includeStart('debug', pragmas.debug); Check.typeOf.string("featureTableId", featureTableId); //>>includeEnd('debug'); return this._featureTables[featureTableId]; }; /** * Gets the feature texture with the given ID. * * @param {String} featureTextureId The feature texture ID. * @returns {FeatureTexture} The feature texture. * @private */ FeatureMetadata.prototype.getFeatureTexture = function (featureTextureId) { //>>includeStart('debug', pragmas.debug); Check.typeOf.string("featureTextureId", featureTextureId); //>>includeEnd('debug'); return this._featureTextures[featureTextureId]; }; export default FeatureMetadata;