codigo0/node_modules/happy-dom/lib/event/events/PointerEvent.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

46 lines
1.4 KiB
JavaScript

import MouseEvent from './MouseEvent.js';
/**
*
*/
export default class PointerEvent extends MouseEvent {
pointerId;
width;
height;
pressure;
tangentialPressure;
tiltX;
tiltY;
twist;
altitudeAngle;
azimuthAngle;
pointerType;
isPrimary;
coalescedEvents;
predictedEvents;
/**
* Constructor.
*
* @param type Event type.
* @param [eventInit] Event init.
*/
constructor(type, eventInit = null) {
super(type, eventInit);
this.pointerId = eventInit?.pointerId ?? 0;
this.width = eventInit?.width ?? 1;
this.height = eventInit?.height ?? 1;
this.pressure = eventInit?.pressure ?? 0;
this.tangentialPressure = eventInit?.tangentialPressure ?? 0;
this.tiltX = eventInit?.tiltX ?? 0;
this.tiltY = eventInit?.tiltY ?? 0;
this.twist = eventInit?.twist ?? 0;
this.altitudeAngle = eventInit?.altitudeAngle ?? 0;
this.azimuthAngle = eventInit?.azimuthAngle ?? 0;
this.pointerType = eventInit?.pointerType ?? '';
this.isPrimary = eventInit?.isPrimary ?? false;
this.coalescedEvents = eventInit?.coalescedEvents ?? [];
this.predictedEvents = eventInit?.predictedEvents ?? [];
}
getCoalescedEvents = () => this.coalescedEvents;
getPredictedEvents = () => this.predictedEvents;
}
//# sourceMappingURL=PointerEvent.js.map