tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
42 lines (30 loc) âĸ 2.33 kB
Markdown
### ⨠Highlights
This release introduces **`TinyHtml`**, a new utility designed to simplify and empower DOM manipulation in a clean, chainable, and jQuery-inspired way.
### đĻ What's new
* **đ§ą TinyHtml**
* Lightweight and modern DOM utility class.
* Provides intuitive methods for:
* â
Element querying and traversal
* đ¯ Event binding (`on`, `once`, `off`, `trigger`)
* đ§Š Attribute and property management
* đ Size and position handling (`offset`, `outerWidth`, etc.)
* 𧲠Collision detection (including directional locking)
* đ Viewport visibility checks (`isInViewport`, `isScrolledIntoView`)
* đī¸ DOM removal and utilities like `remove`, `index`, etc.
* Fully supports both static and instance-based usage.
### đ ī¸ Improvements & Internal
* Added internal event registry for better event management in `TinyHtml`.
* Enhanced compatibility for viewport and scroll calculations on `window`.
### â ī¸ Deprecated Functions (to be removed in future release)
The following utility functions are now officially part of the `TinyHtml` class and have been marked as **deprecated**. They will remain temporarily available for backward compatibility, but **will be removed in a future release**.
| đ§ Function | â
Replacement | âšī¸ Status |
| ------------------------- | ---------------------------------------------- | ------------- |
| `areHtmlElsColliding` | `TinyHtml.isCollWith(el1, el2)` | â ī¸ Deprecated |
| `areHtmlElsPerfColliding` | `TinyHtml.isCollPerfWith(el1, el2)` | â ī¸ Deprecated |
| `getHtmlElBordersWidth` | `TinyHtml.borderWidth(el)` | â ī¸ Deprecated |
| `getHtmlElBorders` | `TinyHtml.border(el)` | â ī¸ Deprecated |
| `getHtmlElMargin` | `TinyHtml.margin(el)` | â ī¸ Deprecated |
| `getHtmlElPadding` | `TinyHtml.padding(el)` | â ī¸ Deprecated |
| `isInViewport` | `TinyHtml.isInViewport(el)` | â ī¸ Deprecated |
| `isScrolledIntoView` | `TinyHtml.isScrolledIntoView(el)` | â ī¸ Deprecated |
**Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.15.0...1.16.0