UNPKG

ts-useful

Version:

Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.

38 lines (37 loc) 1.06 kB
import { coordinate } from "./types"; import { surroundOptions } from "./types/surroundOptions"; export declare class EclipticHTML { /** * * @param item * @returns coordinate */ static htmlCenter: (item: HTMLElement) => coordinate; /** * * @param item * @returns coordinate */ static itemLocation: (item: HTMLElement) => coordinate; /** * * @param item * @param distance * @returns number */ static calcRadius: (item: HTMLElement, distance: number) => number; /** * Extracts a set transform coordinates * @param elm HTMLElement * @returns coordinate */ static TransformCoordinates: (elm: HTMLElement) => coordinate; private static htmlCollectionToArray; /** * * @param item HTMLElement * @param withItems HTMLElement[] | HTMLCollection * @param options surroundOptions */ static SurroundHTML: (item: HTMLElement, withItems: HTMLElement[] | HTMLCollection, options: surroundOptions) => void; }