Files
headroom/frontend/node_modules/happy-dom/lib/nodes/svg-geometry-element/SVGGeometryElement.js
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

81 lines
2.5 KiB
JavaScript

import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.js';
import SVGAnimatedNumber from '../../svg/SVGAnimatedNumber.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGPoint from '../../svg/SVGPoint.js';
/**
* SVG Geometry Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement
*/
export default class SVGGeometryElement extends SVGGraphicsElement {
// Internal properties
[PropertySymbol.pathLength] = null;
/**
* Returns path length.
*
* @returns Path length.
*/
get pathLength() {
if (!this[PropertySymbol.pathLength]) {
this[PropertySymbol.pathLength] = new SVGAnimatedNumber(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('pathLength'),
setAttribute: (value) => this.setAttribute('pathLength', value)
});
}
return this[PropertySymbol.pathLength];
}
/**
* Returns true if the point is in the fill of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the fill of the element.
*/
isPointInFill(point) {
if (!(point instanceof SVGPoint)) {
throw new TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);
}
// TODO: Implement isPointInFill()
return false;
}
/**
* Returns true if the point is in the stroke of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the stroke of the element.
*/
isPointInStroke(point) {
if (!(point instanceof SVGPoint)) {
throw new TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);
}
// TODO: Implement isPointInStroke()
return false;
}
/**
* Returns total length.
*
* Not implemented yet.
*
* @returns Total length.
*/
getTotalLength() {
// TODO: Implement getTotalLength()
return 0;
}
/**
* Returns point at length.
*
* Not implemented yet.
*
* @param _distance Distance.
* @returns Point at length.
*/
getPointAtLength(_distance) {
// TODO: Implement getPointAtLength()
return new SVGPoint(PropertySymbol.illegalConstructor, this[PropertySymbol.window]);
}
}
//# sourceMappingURL=SVGGeometryElement.js.map