codigo0/node_modules/happy-dom/lib/nodes/svg-text-content-element/SVGTextContentElement.d.ts
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

80 lines
3.4 KiB
TypeScript

import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGAnimatedLength from '../../svg/SVGAnimatedLength.js';
import SVGAnimatedEnumeration from '../../svg/SVGAnimatedEnumeration.js';
import SVGPoint from '../../svg/SVGPoint.js';
import SVGRect from '../../svg/SVGRect.js';
/**
* SVG Text Content Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement
*/
export default class SVGTextContentElement extends SVGGraphicsElement {
static readonly LENGTHADJUST_UNKNOWN = 0;
static readonly LENGTHADJUST_SPACING = 1;
static readonly LENGTHADJUST_SPACINGANDGLYPHS = 2;
[PropertySymbol.textLength]: SVGAnimatedLength | null;
[PropertySymbol.lengthAdjust]: SVGAnimatedEnumeration | null;
/**
* Returns textLength.
*
* @returns Text length.
*/
get textLength(): SVGAnimatedLength;
/**
* Returns lengthAdjust.
*
* @returns Length adjust.
*/
get lengthAdjust(): SVGAnimatedEnumeration;
/**
* Returns the number of characters available for rendering.
*
* @returns Number of characters.
*/
getNumberOfChars(): number;
/**
* Returns a float representing the computed length for the text within the element.
*
* @returns Computed text length.
*/
getComputedTextLength(): number;
/**
* Returns a float representing the computed length of the formatted text advance distance for a substring of text within the element. Note that this method only accounts for the widths of the glyphs in the substring and any extra spacing inserted by the CSS 'letter-spacing' and 'word-spacing' properties. Visual spacing adjustments made by the 'x' attribute is ignored.
*
* @param _charnum The index of the first character in the substring.
* @param _nchars The number of characters in the substring.
*/
getSubStringLength(_charnum: number, _nchars: number): number;
/**
* Returns a SVGPoint representing the position of a typographic character after text layout has been performed.
*
* @param _charnum The index of the character.
*/
getStartPositionOfChar(_charnum: number): SVGPoint;
/**
* Returns a SVGPoint representing the trailing position of a typographic character after text layout has been performed.
*
* @param _charnum The index of the character.
*/
getEndPositionOfChar(_charnum: number): SVGPoint;
/**
* Returns a SVGRect representing the computed tight bounding box of the glyph cell that corresponds to a given typographic character.
*
* @param _charnum The index of the character.
*/
getExtentOfChar(_charnum: number): SVGRect;
/**
* Returns a float representing the rotation of typographic character.
*
* @param _charnum The index of the character.
*/
getRotationOfChar(_charnum: number): number;
/**
* Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the relationship between characters and glyphs is not one-to-one, only the first character of the relevant typographic character is returned
*
* @param _point The point to be tested.
*/
getCharNumAtPosition(_point: SVGPoint): number;
}
//# sourceMappingURL=SVGTextContentElement.d.ts.map