Files
headroom/frontend/node_modules/happy-dom/lib/nodes/html-image-element/HTMLImageElement.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

205 lines
4.0 KiB
TypeScript

import HTMLElement from '../html-element/HTMLElement.js';
import * as PropertySymbol from '../../PropertySymbol.js';
/**
* HTML Image Element.
*
* Reference:
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement.
*/
export default class HTMLImageElement extends HTMLElement {
[PropertySymbol.tagName]: string;
[PropertySymbol.complete]: boolean;
[PropertySymbol.naturalHeight]: number;
[PropertySymbol.naturalWidth]: number;
[PropertySymbol.loading]: string;
[PropertySymbol.x]: number;
[PropertySymbol.y]: number;
cloneNode: (deep?: boolean) => HTMLImageElement;
/**
* Returns complete.
*
* @returns Complete.
*/
get complete(): boolean;
/**
* Returns natural height.
*
* @returns Natural height.
*/
get naturalHeight(): number;
/**
* Returns natural width.
*
* @returns Natural width.
*/
get naturalWidth(): number;
/**
* Returns loading.
*
* @returns Loading.
*/
get loading(): string;
/**
* Sets loading.
*
* @param loading Loading.
*/
set loading(loading: string);
/**
* Returns x.
*/
get x(): number;
/**
* Returns y.
*/
get y(): number;
/**
* Returns decoding.
*
* @returns Decoding.
*/
get decoding(): string;
/**
* Sets decoding.
*
* @param decoding Decoding.
*/
set decoding(decoding: string);
/**
* Returns cross origin.
*
* @returns Cross origin.
*/
get crossOrigin(): string | null;
/**
* Sets cross origin.
*
* @param crossOrigin Cross origin.
*/
set crossOrigin(crossOrigin: string | null);
/**
* Returns alt.
*
* @returns Alt.
*/
get alt(): string;
/**
* Sets alt.
*
* @param alt Alt.
*/
set alt(alt: string);
/**
* Returns current src.
*
* @returns Current src.
*/
get currentSrc(): string;
/**
* Returns width.
*
* @returns Width.
*/
get width(): number;
/**
* Sets width.
*
* @param width Width.
*/
set width(width: number);
/**
* Returns height.
*
* @returns Height.
*/
get height(): number;
/**
* Sets height.
*
* @param height Height.
*/
set height(height: number);
/**
* Returns is map.
*
* @returns Is map.
*/
get isMap(): boolean;
/**
* Sets is map.
*
* @param ismap Is map.
*/
set isMap(isMap: boolean);
/**
* Returns referrer policy.
*
* @returns Referrer policy.
*/
get referrerPolicy(): string;
/**
* Sets referrer policy.
*
* @param referrerPolicy Referrer policy.
*/
set referrerPolicy(referrerPolicy: string);
/**
* Returns sizes.
*
* @returns Sizes.
*/
get sizes(): string;
/**
* Sets sizes.
*
* @param sizes Sizes.
*/
set sizes(sizes: string);
/**
* Returns source.
*
* @returns Source.
*/
get src(): string;
/**
* Sets source.
*
* @param src Source.
*/
set src(src: string);
/**
* Returns srcset.
*
* @returns Source.
*/
get srcset(): string;
/**
* Sets src set.
*
* @param srcset Src set.
*/
set srcset(srcset: string);
/**
* Returns use map.
*
* @returns Use map.
*/
get useMap(): string;
/**
* Sets is map.
*
* @param useMap Is map.
*/
set useMap(useMap: string);
/**
* The decode() method of the HTMLImageElement interface returns a Promise that resolves when the image is decoded and it is safe to append the image to the DOM.
*
* @returns Promise.
*/
decode(): Promise<void>;
/**
* @override
*/
[PropertySymbol.cloneNode](deep?: boolean): HTMLImageElement;
}
//# sourceMappingURL=HTMLImageElement.d.ts.map