- ✅ 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
98 lines
2.6 KiB
TypeScript
98 lines
2.6 KiB
TypeScript
import * as PropertySymbol from '../PropertySymbol.js';
|
|
import BrowserWindow from '../window/BrowserWindow.js';
|
|
import SVGMatrix from './SVGMatrix.js';
|
|
import SVGTransformTypeEnum from './SVGTransformTypeEnum.js';
|
|
/**
|
|
* SVG transform.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform
|
|
*/
|
|
export default class SVGTransform {
|
|
static SVG_TRANSFORM_UNKNOWN: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_MATRIX: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_TRANSLATE: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_SCALE: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_ROTATE: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_SKEWX: SVGTransformTypeEnum;
|
|
static SVG_TRANSFORM_SKEWY: SVGTransformTypeEnum;
|
|
[PropertySymbol.window]: BrowserWindow;
|
|
[PropertySymbol.getAttribute]: (() => string | null) | null;
|
|
[PropertySymbol.setAttribute]: ((value: string) => void) | null;
|
|
[PropertySymbol.attributeValue]: string | null;
|
|
[PropertySymbol.readOnly]: boolean;
|
|
[PropertySymbol.matrix]: SVGMatrix | null;
|
|
/**
|
|
* 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 type.
|
|
*
|
|
* @returns Type.
|
|
*/
|
|
get type(): number;
|
|
/**
|
|
* Returns angle.
|
|
*
|
|
* @returns Angle.
|
|
*/
|
|
get angle(): number;
|
|
/**
|
|
* Returns matrix.
|
|
*
|
|
* @returns Matrix.
|
|
*/
|
|
get matrix(): SVGMatrix;
|
|
/**
|
|
* Set matrix.
|
|
*
|
|
* @param matrix Matrix.
|
|
*/
|
|
setMatrix(matrix: SVGMatrix): void;
|
|
/**
|
|
* Set translate.
|
|
*
|
|
* @param x X.
|
|
* @param y Y.
|
|
*/
|
|
setTranslate(x: number, y: number): void;
|
|
/**
|
|
* Set scale.
|
|
*
|
|
* @param x X.
|
|
* @param y Y.
|
|
*/
|
|
setScale(x: number, y: number): void;
|
|
/**
|
|
* Set rotate.
|
|
*
|
|
* @param angle Angle.
|
|
* @param x X.
|
|
* @param y Y.
|
|
*/
|
|
setRotate(angle: number, x: number, y: number): void;
|
|
/**
|
|
* Set skew x.
|
|
*
|
|
* @param angle Angle.
|
|
*/
|
|
setSkewX(angle: number): void;
|
|
/**
|
|
* Set skew y.
|
|
*
|
|
* @param angle Angle.
|
|
*/
|
|
setSkewY(angle: number): void;
|
|
}
|
|
//# sourceMappingURL=SVGTransform.d.ts.map
|