main.cesium.DiscardEmptyTileImagePolicy.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* A policy for discarding tile images that contain no data (and so aren't actually images).
* This policy discards [DiscardEmptyTileImagePolicy.EMPTY_IMAGE], which is
* expected to be used in place of any empty tile images by the image loading code.
* @see Online Documentation
*/
@JsName("\$cesium__DiscardEmptyTileImagePolicy")
external class DiscardEmptyTileImagePolicy : TileDiscardPolicy {
/**
* Determines if the discard policy is ready to process images.
* @return True if the discard policy is ready to process images; otherwise, false.
* @see Online Documentation
*/
override fun isReady(): Boolean
/**
* Given a tile image, decide whether to discard that image.
* @param [image] An image to test.
* @return True if the image should be discarded; otherwise, false.
* @see Online Documentation
*/
override fun shouldDiscardImage(image: org.w3c.dom.HTMLImageElement): Boolean
companion object {
/**
* Default value for representing an empty image.
* @see Online Documentation
*/
val EMPTY_IMAGE: org.w3c.dom.HTMLImageElement
}
}