Dom Util
Utility functions to work with the DOM tree, used by Leaflet internally.
Most functions expecting or returning a HTMLElement also work for SVG elements. The only difference is that classes refer to CSS classes in HTML and SVG classes in SVG.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the coordinates of an element previously positioned with setPosition.
Link copied to clipboard
Makes the outline of the element el
invisible. Used internally by Leaflet to prevent focusable elements from displaying an outline when the user performs a drag interaction on them.
Link copied to clipboard
Link copied to clipboard
Cancels the effects of a previous preventOutline.
Link copied to clipboard
Link copied to clipboard
Sets the position of el to coordinates specified by position, using CSS translate or top/left positioning depending on the browser (used by Leaflet internally to position its layers).
Link copied to clipboard
fun setTransform(el: <Error class: unknown class>, offset: Point, scale: Number = definedExternally)