HighlightRegistry

sealed class HighlightRegistry : MutableMapLike<ERROR CLASS: Symbol not found for JsString, Highlight> (source)

The HighlightRegistry interface of the CSS Custom Highlight API is used to register Highlight objects to be styled using the API. It is accessed via CSS.highlights.

MDN Reference

Properties

Link copied to clipboard
abstract override val size: Int

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun delete(key: ERROR CLASS: Symbol not found for JsString): Boolean
Link copied to clipboard
abstract fun entries(): JsIterator<Tuple2<ERROR CLASS: Symbol not found for JsString, Highlight>>
Link copied to clipboard
abstract fun forEach(action: (value: Highlight, @R|kotlin/ParameterName|(name = String(key)) ERROR CLASS: Symbol not found for JsString) -> Unit)
Link copied to clipboard
abstract fun get(key: ERROR CLASS: Symbol not found for JsString): Highlight?
Link copied to clipboard
abstract override fun has(key: ERROR CLASS: Symbol not found for JsString): Boolean
Link copied to clipboard

The highlightsFromPoint() method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport.

Link copied to clipboard
abstract fun keys(): JsIterator<ERROR CLASS: Symbol not found for JsString>
Link copied to clipboard
abstract fun set(key: ERROR CLASS: Symbol not found for JsString, value: Highlight)
Link copied to clipboard
abstract fun values(): JsIterator<Highlight>