{"library":"dom-align","type":"library","category":null,"description":"dom-align is a JavaScript library designed for flexible and precise alignment of HTML DOM elements. It enables positioning a 'source' element relative to a 'target' element, supporting various alignment points (e.g., top-left, center, bottom-right), pixel-based offsets, and percentage-based offsets relative to the element's dimensions. A key feature is its ability to automatically adjust the source element's position if it overflows the viewport or specified boundaries, ensuring visibility. It provides robust cross-browser support, compatible with modern browsers like Chrome and Firefox, as well as older versions like Internet Explorer 9+. The current stable version is 1.12.4. While it does not adhere to a strict time-based release cadence, updates are typically released as new features are added, existing issues are resolved, or performance improvements are implemented. The library ships with comprehensive TypeScript type definitions, facilitating its use in typed JavaScript and TypeScript projects.","language":"javascript","status":"active","version":"1.12.4","tags":["javascript","dom","align","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dom-align","imports":["import domAlign from 'dom-align';","import type { AlignConfig } from 'dom-align';","import type { AlignResult } from 'dom-align';"]},{"cmd":"yarn add dom-align","imports":[]},{"cmd":"pnpm add dom-align","imports":[]}],"homepage":null,"github":"https://github.com/yiminghe/dom-align","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dom-align","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dom-align/compatibility"}}