- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
78 lines
1.9 KiB
TypeScript
78 lines
1.9 KiB
TypeScript
import * as PropertySymbol from '../PropertySymbol.js';
|
|
import BrowserWindow from '../window/BrowserWindow.js';
|
|
/**
|
|
* Rect object.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGRect
|
|
*/
|
|
export default class SVGRect {
|
|
[PropertySymbol.window]: BrowserWindow;
|
|
[PropertySymbol.getAttribute]: (() => string | null) | null;
|
|
[PropertySymbol.setAttribute]: ((value: string) => void) | null;
|
|
[PropertySymbol.attributeValue]: string | null;
|
|
[PropertySymbol.readOnly]: boolean;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param illegalConstructorSymbol Illegal constructor symbol.
|
|
* @param window Window.
|
|
* @param [options] Options.
|
|
* @param [options.readOnly] Read only.
|
|
* @param [options.getAttribute] Get attribute.
|
|
* @param [options.setAttribute] Set attribute.
|
|
*/
|
|
constructor(illegalConstructorSymbol: symbol, window: BrowserWindow, options?: {
|
|
readOnly?: boolean;
|
|
getAttribute?: () => string | null;
|
|
setAttribute?: (value: string) => void;
|
|
});
|
|
/**
|
|
* Returns x value.
|
|
*
|
|
* @returns X value.
|
|
*/
|
|
get x(): number;
|
|
/**
|
|
* Sets x value.
|
|
*
|
|
* @param value X value.
|
|
*/
|
|
set x(value: number);
|
|
/**
|
|
* Returns y value.
|
|
*
|
|
* @returns Y value.
|
|
*/
|
|
get y(): number;
|
|
/**
|
|
* Sets y value.
|
|
*
|
|
* @param value Y value.
|
|
*/
|
|
set y(value: number);
|
|
/**
|
|
* Returns width value.
|
|
*
|
|
* @returns Width value.
|
|
*/
|
|
get width(): number;
|
|
/**
|
|
* Sets width value.
|
|
*
|
|
* @param value Width value.
|
|
*/
|
|
set width(value: number);
|
|
/**
|
|
* Returns height value.
|
|
*
|
|
* @returns Height value.
|
|
*/
|
|
get height(): number;
|
|
/**
|
|
* Sets height value.
|
|
*
|
|
* @param value Height value.
|
|
*/
|
|
set height(value: number);
|
|
}
|
|
//# sourceMappingURL=SVGRect.d.ts.map
|