codigo0/node_modules/happy-dom/lib/event/events/MouseEvent.js
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  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
2026-01-25 21:09:47 +01:00

48 lines
1.3 KiB
JavaScript

import UIEvent from '../UIEvent.js';
/**
*
*/
export default class MouseEvent extends UIEvent {
altKey;
button;
buttons;
clientX;
clientY;
ctrlKey;
metaKey;
movementX;
movementY;
offsetX;
offsetY;
region;
relatedTarget;
screenX;
screenY;
shiftKey;
/**
* Constructor.
*
* @param type Event type.
* @param [eventInit] Event init.
*/
constructor(type, eventInit = null) {
super(type, eventInit);
this.altKey = eventInit?.altKey ?? false;
this.button = eventInit?.button ?? 0;
this.buttons = eventInit?.buttons ?? 0;
this.clientX = eventInit?.clientX ?? 0;
this.clientY = eventInit?.clientY ?? 0;
this.ctrlKey = eventInit?.ctrlKey ?? false;
this.metaKey = eventInit?.metaKey ?? false;
this.movementX = eventInit?.movementX ?? 0;
this.movementY = eventInit?.movementY ?? 0;
this.offsetX = eventInit?.offsetX ?? 0;
this.offsetY = eventInit?.offsetY ?? 0;
this.region = eventInit?.region ?? '';
this.relatedTarget = eventInit?.relatedTarget ?? null;
this.screenX = eventInit?.screenX ?? 0;
this.screenY = eventInit?.screenY ?? 0;
this.shiftKey = eventInit?.shiftKey ?? false;
}
}
//# sourceMappingURL=MouseEvent.js.map