Files
headroom/frontend/node_modules/happy-dom/lib/range/RangeUtility.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

47 lines
1.5 KiB
TypeScript

import Node from '../nodes/node/Node.js';
import Range from './Range.js';
import IRangeBoundaryPoint from './IRangeBoundaryPoint.js';
/**
* Range utility.
*
* Based on:
* https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/range/boundary-point.js.
*/
export default class RangeUtility {
/**
* Compares boundary points.
*
* Based on logic from:
* https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/range/boundary-point.js
*
* @see https://dom.spec.whatwg.org/#concept-range-bp-after
* @param pointA Point A.
* @param pointB Point B.
* @returns A number, -1, 0, or 1, indicating whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of sourceRange.
*/
static compareBoundaryPointsPosition(pointA: IRangeBoundaryPoint, pointB: IRangeBoundaryPoint): number;
/**
* Validates a boundary point.
*
* @throws DOMException
* @param point Boundary point.
*/
static validateBoundaryPoint(point: IRangeBoundaryPoint): void;
/**
* Returns "true" if contained.
*
* @param node Node.
* @param range Range.
* @returns "true" if contained.
*/
static isContained(node: Node, range: Range): boolean;
/**
* Returns "true" if partially contained.
*
* @param node Node.
* @param range Range.
* @returns "true" if partially contained.
*/
static isPartiallyContained(node: Node, range: Range): boolean;
}
//# sourceMappingURL=RangeUtility.d.ts.map