UNPKG

@medyll/idae-be

Version:

A modern, lightweight, and extensible DOM manipulation library built with TypeScript. Designed for precise element targeting and manipulation using a callback-based approach. Features include advanced DOM traversal, event handling, style management, attri

30 lines (29 loc) 964 B
import { type Be } from './be.js'; import type { CommonHandler, PositionSnapOptions } from './types.js'; interface isHTMLReturn { isHtml: boolean; tag: string; attributes: { [key: string]: string; }; styles: { [key: string]: string; }; node: HTMLElement; beElem?: Be; content?: string; } export declare class BeUtils { static isHTML(str: string | HTMLElement, options: { returnHTMLelement?: boolean; transformTextToHtml?: boolean; }): isHTMLReturn; static calculateAnchorPoint(rect: DOMRect, anchor: PositionSnapOptions): [number, number]; static applyStyle(beElement: Be, property: string, value: string): void; static applyCallback(el: HTMLElement | HTMLCollection, callback: (el: HTMLElement) => void): void; static resolveIndirection<T = CommonHandler>(classHandler: CommonHandler, actions: keyof T): { method: keyof T; props: any; }; } export {};