Sha256: 678a3031a867a29681c99d06ac2accfede69c966ba6533125510fcdfa3bd765d

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

/*global define*/
define([
    ], function(
        ) {
    "use strict";

    /**
     * A {@link TileDiscardPolicy} specifying that tile images should never be discard.
     *
     * @alias NeverTileDiscardPolicy
     * @constructor
     *
     * @see DiscardMissingTileImagePolicy
     */
    var NeverTileDiscardPolicy = function(description) {
    };

    /**
     * Determines if the discard policy is ready to process images.
     * @returns True if the discard policy is ready to process images; otherwise, false.
     */
    NeverTileDiscardPolicy.prototype.isReady = function() {
        return true;
    };

    /**
     * Given a tile image, decide whether to discard that image.
     *
     * @param {Image|Promise} image An image, or a promise that will resolve to an image.
     *
     * @returns A promise that will resolve to true if the tile should be discarded.
     */
    NeverTileDiscardPolicy.prototype.shouldDiscardImage = function(image) {
        return false;
    };

    return NeverTileDiscardPolicy;
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cesium-0.18.0 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js
cesium-0.17.0 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js
cesium-0.16.0 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js
cesium-0.15.0 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js
cesium-0.14.0 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js
cesium-0.13.2 app/assets/javascripts/Scene/NeverTileDiscardPolicy.js