/** * Dom Utils * some code reference leaflet * https://github.com/Leaflet/Leaflet/tree/master/src/core */ declare class DomUtil { /** * Returns an element given its DOM id, or returns the element itself * if it was passed directly. * @param id * @returns {HTMLElement|*} */ static get(id: any): any; /** * Returns the value for a certain style attribute on an element, * including computed values or values set through CSS. * @param el * @param style * @returns {null|*} */ static getStyle(el: any, style: any): any; /** * Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element. * @param tagName * @param className * @param container * @returns {HTMLElement} */ static create(tagName: any, className: any, container?: any): any; /** * Removes `el` from its parent element * @param {*} el */ static remove(el: any): void; /** * Removes all of `el`'s children elements from `el` * @param {*} el */ static empty(el: any): void; /** * Returns `true` if the element's class attribute contains `name`. * @param {*} el * @param {*} name */ static hasClass(el: any, name: any): any; /** * @function Adds `name` to the element's class attribute. * @param {*} el * @param {*} name */ static addClass(el: any, name: any): void; /** * @function Removes `name` from the element's class attribute. * @param {*} el * @param {*} name */ static removeClass(el: any, name: any): void; /** * Sets the element's class. * @param {*} el * @param {*} name */ static setClass(el: any, name: any): void; /** * @function Returns the element's class. * @param {*} el */ static getClass(el: any): any; /** * Creates svg * @param width * @param height * @param path * @param container * @returns {SVGElement} */ static createSvg(width: any, height: any, path: any, container: any): SVGElement; /** * Parses string to Dom * @param domStr * @param withWrapper * @param className * @returns {HTMLDivElement|NodeListOf} */ static parseDom(domStr: any, withWrapper: any, className: any): HTMLDivElement | NodeListOf; /** * enter full screen * @param el */ static enterFullscreen(el: any): void; /** * exit full screen */ static exitFullscreen(): void; /** * Creates video * @param url * @param className * @param container * @returns {HTMLElement} */ static createVideo(url: any, className: any, container?: any): any; } export default DomUtil;