// Built-in JSX views and host helpers. Editor metadata only. /** Un nodo de dibujo JSX. */ interface View {} /** Propiedad de la vista. */ type ViewContent = View | string | number | boolean | null | undefined | ViewContent[]; /** Propiedad de la vista. */ type TextContent = string | number | bigint | boolean | symbol | { toString(): string } | null | undefined; /** Datos de color HDR para colores de dibujo y degradados. */ type HDRColor = { readonly $type: "CapDrive.HDR"; readonly color: string }; /** Propiedad de la vista. */ type RGBColor = { space?: "srgb" | "displayP3"; r: number; g: number; b: number; a?: number }; /** Propiedad de la vista. */ type Color = string | RGBColor | HDRColor; /** Propiedad de la vista. */ type ViewPoint = { x: number; y: number }; /** Propiedad de la vista. */ type ChartDataPoint = { value: { x: number; y: number | null }; label: { x: string; y: string } }; /** Propiedad de la vista. */ type ChartRange = readonly [min: number, max: number]; /** Propiedad de la vista. */ type MapCoordinate = { latitude: number; longitude: number }; /** Propiedad de la vista. */ type MapPathStyle = { stroke?: Color; lineWidth?: number; lineCap?: "round" | "butt" | "square"; lineJoin?: "round" | "miter" | "bevel"; dash?: readonly number[]; dashPhase?: number; outlineStroke?: Color; outlineWidth?: number; showEndpoints?: boolean }; /** Propiedad de la vista. */ type ChartAxisStyle = { stroke?: Paint; lineWidth?: number; lineCap?: "round" | "butt" | "square"; dash?: readonly number[]; dashPhase?: number }; /** Propiedad de la vista. */ type BarChartDataPoint = { value: number; label?: string }; /** Propiedad de la vista. */ type PathCommand = { op: "move"; x: number; y: number } | { op: "line"; x: number; y: number } | { op: "quad"; x: number; y: number; cx: number; cy: number } | { op: "cubic"; x: number; y: number; c1x: number; c1y: number; c2x: number; c2y: number } | { op: "arc"; x: number; y: number; radius: number; startAngle: number; sweepAngle: number } | { op: "close" }; /** Propiedad de la vista. */ type GradientStop = Color | { color: Color; location: number }; /** Propiedad de la vista. */ type GradientColors = ReadonlyArray; /** Propiedad de la vista. */ type LinearGradientOptions = { angle?: number; center?: ViewPoint }; /** Propiedad de la vista. */ type RadialGradientOptions = { startRadius?: number; endRadius?: number; center?: ViewPoint }; /** Propiedad de la vista. */ type AngularGradientOptions = { angle?: number; center?: ViewPoint }; /** Propiedad de la vista. */ type Gradient = { readonly type: "linear" | "radial" | "angular"; readonly angle?: number; readonly startRadius?: number; readonly endRadius?: number; readonly center?: ViewPoint; readonly colors: GradientColors }; /** Propiedad de la vista. */ type Paint = Color | Gradient; /** Propiedad de la vista. */ type DrawingEffect = { color?: Color; opacity?: number; radius?: number; x?: number; y?: number }; /** Propiedad de la vista. */ type ViewTransform = { translateX?: number; translateY?: number; scaleX?: number; scaleY?: number; rotation?: number; skewX?: number; skewY?: number; anchorX?: number; anchorY?: number }; /** Propiedad de la vista. */ type RepeatAxisValue = number | { x?: number; y?: number }; /** Propiedad de la vista. */ type AnimationProperty = "width" | "height" | "padding" | "x" | "y" | "opacity" | "cornerRadius" | "blur" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "fontSize" | "letterSpacing" | "minimumScaleFactor" | "spacing" | "radius" | "radiusX" | "radiusY" | "startAngle" | "sweepAngle" | "lineWidth" | "dashPhase" | "trimStart" | "trimEnd" | "barThickness" | "value" | "offset" | "anchor" | "period" | "minLength" | "color" | "stroke" | "background" | "shadowColor" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" | "period.x" | "period.y" | "value.x" | "value.y" | "anchor.x" | "anchor.y" | "offset.x" | "offset.y" | "start.x" | "start.y" | "end.x" | "end.y" | "rangeX.0" | "rangeX.1" | "rangeY.0" | "rangeY.1" | "xAxis.lineWidth" | "xAxis.dashPhase" | "yAxis.lineWidth" | "yAxis.dashPhase" | "xAxis.stroke" | "yAxis.stroke" | "regionOffset.x" | "regionOffset.y" | "pathStyle.lineWidth" | "pathStyle.outlineWidth" | "pathStyle.dashPhase" | "pathStyle.stroke" | "pathStyle.outlineStroke"; /** Propiedad de la vista. */ type Animation = { property: AnimationProperty; duration?: number; delay?: number; curve?: string; from?: number | Color; to?: number | Color; repeat?: number | "forever"; autoreverse?: boolean; wrap?: number }; /** Propiedad de la vista. */ type CircleAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "background" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "dashPhase" | "stroke" | "lineWidth" | "startAngle" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "sweepAngle"; from?: number; to?: number; wrap?: never }); /** Propiedad de la vista. */ type EllipseAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "background" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "dashPhase" | "stroke" | "lineWidth" | "startAngle" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "sweepAngle"; from?: number; to?: number; wrap?: never }); /** Propiedad de la vista. */ type ArcAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "background" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "dashPhase" | "stroke" | "lineWidth" | "startAngle" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "sweepAngle"; from?: number; to?: number; wrap?: never }); /** Propiedad de la vista. */ type MapAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "cornerRadius" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" | "regionOffset.x" | "regionOffset.y" | "pathStyle.lineWidth" | "pathStyle.outlineWidth" | "pathStyle.dashPhase"; from?: number; to?: number }) | (Omit & { property: "pathStyle.stroke" | "pathStyle.outlineStroke"; from?: Color; to?: Color; wrap?: never }); /** Propiedad de la vista. */ type LineChartAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "stroke" | "lineWidth" | "dashPhase" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "rangeX.0" | "rangeX.1" | "rangeY.0" | "rangeY.1"; from?: number; to?: number; wrap?: never }) | (Omit & { property: "xAxis.lineWidth" | "xAxis.dashPhase" | "yAxis.lineWidth" | "yAxis.dashPhase"; from?: number; to?: number }) | (Omit & { property: "xAxis.stroke" | "yAxis.stroke"; from?: Color; to?: Color; wrap?: never }); /** Propiedad de la vista. */ type BarChartAnimation = (Omit & { property: "width" | "height" | "x" | "y" | "opacity" | "background" | "cornerRadius" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "barThickness" | "stroke" | "lineWidth" | "dashPhase" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "rangeY.0" | "rangeY.1"; from?: number; to?: number; wrap?: never }) | (Omit & { property: "xAxis.lineWidth" | "xAxis.dashPhase" | "yAxis.lineWidth" | "yAxis.dashPhase"; from?: number; to?: number }) | (Omit & { property: "xAxis.stroke" | "yAxis.stroke"; from?: Color; to?: Color; wrap?: never }); /** Propiedad de la vista. */ type RadialLayoutAnimation = (Omit & { property: "width" | "height" | "padding" | "x" | "y" | "opacity" | "background" | "cornerRadius" | "blur" | "shadowColor" | "shadowOpacity" | "shadowRadius" | "shadowX" | "shadowY" | "radius" | "radiusX" | "radiusY" | "startAngle" | "transform.translateX" | "transform.translateY" | "transform.scaleX" | "transform.scaleY" | "transform.rotation" | "transform.skewX" | "transform.skewY" | "transform.anchorX" | "transform.anchorY" }) | (Omit & { property: "sweepAngle"; from?: number; to?: number; wrap?: never }); /** Propiedad de la vista. */ type SpacerAnimation = { property: "width" | "height" | "minLength"; duration?: number; delay?: number; curve?: string; from?: number; to?: number; repeat?: number | "forever"; autoreverse?: boolean; wrap?: number }; /** Propiedad de la vista. */ type ContentAnimation = { type: "fade" | "slide" | "scale" | "numericText" | "interpolate"; duration?: number; delay?: number; curve?: string; direction?: string; distance?: number; scale?: number }; /** Propiedad de la vista. */ type ViewSize = { width: number; height: number }; /** Propiedad de la vista. */ type ViewInsets = { top: number; leading: number; bottom: number; trailing: number }; /** Propiedad de la vista. */ type CardContentMetrics = { size: ViewSize; contentSize: ViewSize; headerSize: ViewSize; safeInsets: ViewInsets }; interface CommonViewProps { /** Identidad estable entre elementos hermanos. */ key?: string | number; /** Contenido de dibujo hijo. */ children?: ViewContent; /** Anchura en puntos, tamaño automático o relleno del contenedor. */ width?: number | "auto" | "fill"; /** Altura en puntos, tamaño automático o relleno del contenedor. */ height?: number | "auto" | "fill"; /** Relleno interior del contenido en puntos. */ padding?: number; /** Propiedad de la vista. */ x?: number; /** Propiedad de la vista. */ y?: number; /** Propiedad de la vista. */ opacity?: number; /** Propiedad de la vista. */ background?: Paint; /** Propiedad de la vista. */ cornerRadius?: number; /** Propiedad de la vista. */ clipped?: boolean; /** Propiedad de la vista. */ clip?: "rectangle" | "ellipse"; /** Propiedad de la vista. */ blur?: number; /** Propiedad de la vista. */ zIndex?: number; /** Propiedad de la vista. */ innerShadow?: DrawingEffect; /** Propiedad de la vista. */ glow?: DrawingEffect; /** Propiedad de la vista. */ shadowColor?: Color; /** Propiedad de la vista. */ shadowOpacity?: number; /** Propiedad de la vista. */ shadowRadius?: number; /** Propiedad de la vista. */ shadowX?: number; /** Propiedad de la vista. */ shadowY?: number; /** View de máscara alfa. Centrada sin afectar al diseño; null desactiva la máscara. */ mask?: View | null; /** Propiedad de la vista. */ transform?: ViewTransform; /** Propiedad de la vista. */ animations?: Animation[]; } interface TextProps extends CommonViewProps { /** Contenido de dibujo hijo. */ children?: TextContent | TextContent[]; /** Tamaño de fuente en puntos. */ fontSize?: number; /** Propiedad de la vista. */ fontWeight?: "ultraLight" | "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"; /** Propiedad de la vista. */ font?: "default" | "rounded" | "monospaced" | "serif"; /** Propiedad de la vista. */ monospacedDigits?: boolean; /** Propiedad de la vista. */ letterSpacing?: number; /** Propiedad de la vista. */ minimumScaleFactor?: number; /** Propiedad de la vista. */ lineLimit?: number | null; /** Propiedad de la vista. */ truncationMode?: "head" | "middle" | "tail"; /** Color de dibujo, incluidos los colores HDR. */ color?: Paint; /** Propiedad de la vista. */ alignment?: "leading" | "center" | "trailing"; /** Propiedad de la vista. */ contentAnimation?: ContentAnimation; } interface ImageProps extends CommonViewProps { children?: never; /** Propiedad de la vista. */ source: string; /** Propiedad de la vista. */ contentMode?: "fit" | "fill" | "stretch"; /** Propiedad de la vista. */ repeatMode?: "none" | "repeat" | "repeatX" | "repeatY"; /** Propiedad de la vista. */ renderingMode?: "original" | "template"; /** Color de dibujo, incluidos los colores HDR. */ color?: Paint; /** Propiedad de la vista. */ contentAnimation?: ContentAnimation; } interface GroupProps { /** Identidad estable entre elementos hermanos. */ key?: string | number; /** Contenido de dibujo hijo. */ children?: ViewContent; /** Propiedad de la vista. */ opacity?: number; /** Propiedad de la vista. */ background?: Paint; /** Propiedad de la vista. */ cornerRadius?: number; /** Propiedad de la vista. */ clipped?: boolean; /** Propiedad de la vista. */ clip?: "rectangle" | "ellipse"; /** Propiedad de la vista. */ blur?: number; /** Propiedad de la vista. */ zIndex?: number; /** Propiedad de la vista. */ innerShadow?: DrawingEffect; /** Propiedad de la vista. */ glow?: DrawingEffect; /** Propiedad de la vista. */ shadowColor?: Color; /** Propiedad de la vista. */ shadowOpacity?: number; /** Propiedad de la vista. */ shadowRadius?: number; /** Propiedad de la vista. */ shadowX?: number; /** Propiedad de la vista. */ shadowY?: number; /** View de máscara alfa. Centrada sin afectar al diseño; null desactiva la máscara. */ mask?: View | null; /** Propiedad de la vista. */ transform?: ViewTransform; /** Propiedad de la vista. */ animations?: Animation[]; } interface SpacerProps { children?: never; /** Identidad estable entre elementos hermanos. */ key?: string | number; /** Anchura en puntos, tamaño automático o relleno del contenedor. */ width?: number | "auto" | "fill"; /** Altura en puntos, tamaño automático o relleno del contenedor. */ height?: number | "auto" | "fill"; /** Propiedad de la vista. */ minLength?: number; /** Propiedad de la vista. */ animations?: SpacerAnimation[]; } interface VStackProps extends CommonViewProps { /** Espacio entre vistas hijas en puntos. */ spacing?: number; /** Propiedad de la vista. */ alignment?: "leading" | "center" | "trailing"; } interface HStackProps extends CommonViewProps { /** Espacio entre vistas hijas en puntos. */ spacing?: number; /** Propiedad de la vista. */ alignment?: "top" | "center" | "bottom" | "firstTextBaseline" | "lastTextBaseline"; } interface ZStackProps extends CommonViewProps { /** Propiedad de la vista. */ alignment?: "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing"; } interface MaterialProps { children?: never; /** Identidad estable entre elementos hermanos. */ key?: string | number; /** Anchura en puntos, tamaño automático o relleno del contenedor. */ width?: number | "auto" | "fill"; /** Altura en puntos, tamaño automático o relleno del contenedor. */ height?: number | "auto" | "fill"; /** Propiedad de la vista. */ x?: number; /** Propiedad de la vista. */ y?: number; /** Propiedad de la vista. */ opacity?: number; /** Propiedad de la vista. */ background?: Paint; /** Propiedad de la vista. */ cornerRadius?: number; /** Propiedad de la vista. */ clipped?: boolean; /** Propiedad de la vista. */ clip?: boolean | "rectangle" | "ellipse"; /** Propiedad de la vista. */ blur?: number; /** Propiedad de la vista. */ zIndex?: number; /** Propiedad de la vista. */ innerShadow?: DrawingEffect; /** Propiedad de la vista. */ glow?: DrawingEffect; /** Propiedad de la vista. */ shadowColor?: Color; /** Propiedad de la vista. */ shadowOpacity?: number; /** Propiedad de la vista. */ shadowRadius?: number; /** Propiedad de la vista. */ shadowX?: number; /** Propiedad de la vista. */ shadowY?: number; /** View de máscara alfa. Centrada sin afectar al diseño; null desactiva la máscara. */ mask?: View | null; /** Propiedad de la vista. */ transform?: ViewTransform; /** Propiedad de la vista. */ animations?: Animation[]; /** Propiedad de la vista. */ type: "frosted"; /** Propiedad de la vista. */ style?: "ultraThin" | "thin" | "regular" | "thick" | "ultraThick" | "bar"; } interface CardContentBase extends Omit { /** Texto de cabecera o una View. */ title?: string | View | null; /** Texto o View al final de la cabecera. */ trailing?: string | View | null; /** Propiedad de la vista. */ contentMode?: "inset" | "full"; /** Propiedad de la vista. */ headerBackground?: View | null; } interface SymbolProps extends CommonViewProps { children?: never; /** Propiedad de la vista. */ name: string; /** Tamaño de fuente en puntos. */ fontSize?: number; /** Propiedad de la vista. */ fontWeight?: "ultraLight" | "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"; /** Propiedad de la vista. */ imageScale?: "small" | "medium" | "large"; /** Propiedad de la vista. */ renderingMode?: "monochrome" | "hierarchical" | "palette" | "multicolor"; /** Propiedad de la vista. */ paletteColors?: [Color] | [Color, Color] | [Color, Color, Color]; /** Color de dibujo, incluidos los colores HDR. */ color?: Paint; /** Propiedad de la vista. */ contentAnimation?: ContentAnimation; } interface RepeatedLayoutProps extends Omit { /** Propiedad de la vista. */ axis?: "horizontal" | "vertical" | "both"; /** Propiedad de la vista. */ period?: RepeatAxisValue; /** Propiedad de la vista. */ value?: RepeatAxisValue; /** Propiedad de la vista. */ anchor?: RepeatAxisValue; /** Propiedad de la vista. */ offset?: RepeatAxisValue; /** Propiedad de la vista. */ alignment?: "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing"; } interface RadialLayoutProps extends CommonViewProps { /** Propiedad de la vista. */ animations?: RadialLayoutAnimation[]; /** Propiedad de la vista. */ radius?: number; /** Propiedad de la vista. */ radiusX?: number; /** Propiedad de la vista. */ radiusY?: number; /** Ángulo inicial en grados, normalizado módulo 360 al muestrear. */ startAngle?: number; /** Barrido en grados, limitado a -360…360 al muestrear. Los valores positivos giran en sentido horario; no admite wrap. */ sweepAngle?: number; /** Propiedad de la vista. */ includeEnd?: boolean; /** Propiedad de la vista. */ childRotation?: "none" | "radial" | "tangent"; } interface CircleProps extends Omit { children?: never; /** Propiedad de la vista. */ animations?: CircleAnimation[]; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Ángulo inicial en grados, normalizado módulo 360 al muestrear. */ startAngle?: number; /** Barrido en grados, limitado a -360…360 al muestrear. Los valores positivos giran en sentido horario; no admite wrap. */ sweepAngle?: number; /** Posición del trazo respecto al contorno completo del círculo o la elipse. Por defecto, inside. */ strokePosition?: "inside" | "center" | "outside"; } interface EllipseProps extends Omit { children?: never; /** Propiedad de la vista. */ animations?: EllipseAnimation[]; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Ángulo inicial en grados, normalizado módulo 360 al muestrear. */ startAngle?: number; /** Barrido en grados, limitado a -360…360 al muestrear. Los valores positivos giran en sentido horario; no admite wrap. */ sweepAngle?: number; /** Posición del trazo respecto al contorno completo del círculo o la elipse. Por defecto, inside. */ strokePosition?: "inside" | "center" | "outside"; } interface RectangleProps extends Omit { children?: never; /** Propiedad de la vista. */ trimStart?: number; /** Propiedad de la vista. */ trimEnd?: number; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ lineJoin?: "round" | "miter" | "bevel"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Propiedad de la vista. */ strokePosition?: "inside" | "center" | "outside"; } interface LineProps extends Omit { children?: never; /** Propiedad de la vista. */ trimStart?: number; /** Propiedad de la vista. */ trimEnd?: number; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Propiedad de la vista. */ start?: ViewPoint; /** Propiedad de la vista. */ end?: ViewPoint; } interface ArcProps extends Omit { children?: never; /** Propiedad de la vista. */ animations?: ArcAnimation[]; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Ángulo inicial en grados, normalizado módulo 360 al muestrear. */ startAngle?: number; /** Barrido en grados, limitado a -360…360 al muestrear. Los valores positivos giran en sentido horario; no admite wrap. */ sweepAngle?: number; /** Posición del trazo respecto al contorno completo del círculo o la elipse. Por defecto, inside. */ strokePosition?: "inside" | "center" | "outside"; } interface PolylineProps extends Omit { children?: never; /** Propiedad de la vista. */ trimStart?: number; /** Propiedad de la vista. */ trimEnd?: number; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ lineJoin?: "round" | "miter" | "bevel"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Coordenadas locales en puntos. Con menos de dos puntos no se dibuja nada. */ points: ReadonlyArray; /** Propiedad de la vista. */ closed?: boolean; /** Transición de contenido opcional. interpolate requiere igual número de puntos y estado de cierre; de lo contrario se actualiza inmediatamente. */ contentAnimation?: ContentAnimation; } interface MapProps extends Omit { children?: never; /** Propiedad de la vista. */ animations?: MapAnimation[]; /** Propiedad de la vista. */ showUserLocation?: boolean; /** Centro de cámara: ubicación nativa, ubicación actual del instrumento o coordenadas fijas. Por defecto userLocation. */ center?: "userLocation" | "dataLocation" | MapCoordinate; /** Desplazamiento del encuadre en puntos. x/y positivos mueven la región a la derecha/abajo y el contenido a la izquierda/arriba. */ regionOffset?: ViewPoint; /** Coordenadas del recorrido en orden. Null separa segmentos. Usa latitud/longitud; un arreglo vacío no dibuja recorrido. */ path?: ReadonlyArray; /** Estilo nativo: Color, ancho, extremos, uniones, guiones, contorno y marcadores opcionales. No admite degradados. */ pathStyle?: MapPathStyle; /** Rumbo: northUp, vehicle, path o grados módulo 360. El rumbo del recorrido respeta los cortes entre segmentos. */ heading?: "northUp" | "vehicle" | "path" | number; /** Animar cambios de cámara nativos. Activado por defecto, excepto en el primer cuadro y con movimiento reducido. */ cameraAnimation?: boolean; /** Propiedad de la vista. */ appearance?: "automatic" | "light" | "dark"; /** Propiedad de la vista. */ mapStyle?: "standard" | "satellite" | "hybrid"; /** Propiedad de la vista. */ pitch?: number; } interface PathProps extends Omit { children?: never; /** Propiedad de la vista. */ trimStart?: number; /** Propiedad de la vista. */ trimEnd?: number; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ lineJoin?: "round" | "miter" | "bevel"; /** Propiedad de la vista. */ dashPhase?: number; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ dash?: number[]; /** Regla de relleno: nonZero o evenOdd. */ fillRule?: "nonZero" | "evenOdd"; /** Comandos de ruta locales en puntos. Un arreglo vacío no dibuja nada. */ commands: ReadonlyArray; /** Transición de contenido opcional. interpolate requiere igual cantidad de comandos y secuencia de operaciones; de lo contrario se actualiza inmediatamente. */ contentAnimation?: ContentAnimation; } interface BarChartProps extends Omit { children?: never; /** Relleno de cada barra. Por defecto usa el color de primer plano del tema. */ background?: Paint; /** Radio de las esquinas de cada barra, limitado a su tamaño. */ cornerRadius?: number; /** Propiedad de la vista. */ animations?: BarChartAnimation[]; /** Línea horizontal en la parte inferior del gráfico. Por defecto usa primer plano y ancho 1pt; stroke: clear la oculta. */ xAxis?: ChartAxisStyle; /** Línea vertical a la izquierda del gráfico. Por defecto usa primer plano y ancho 1pt; stroke: clear la oculta. */ yAxis?: ChartAxisStyle; /** Categorías en orden del arreglo. Cada elemento tiene un valor numérico y una etiqueta opcional. */ data: ReadonlyArray; /** Dirección: vertical de izquierda a derecha; horizontal de arriba abajo. */ axis?: "horizontal" | "vertical"; /** Rango visible [min, max]. Si se omite, se ajusta a los datos e incluye cero. */ rangeY?: ChartRange; /** Mostrar etiquetas de categorías. Las ausentes quedan vacías; el diseño nativo evita superposiciones. */ showLabels?: boolean; /** Mostrar etiquetas numéricas del eje generadas automáticamente. */ showValueLabels?: boolean; /** Grosor de las barras en puntos o auto para adaptarse al espacio entre categorías. */ barThickness?: number | "auto"; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Posición del trazo respecto a cada barra. Por defecto inside. */ strokePosition?: "inside" | "center" | "outside"; /** Propiedad de la vista. */ dash?: number[]; /** Propiedad de la vista. */ dashPhase?: number; /** Transición opcional. interpolate requiere igual cantidad de categorías y dirección; en otro caso actualiza inmediatamente. */ contentAnimation?: ContentAnimation; } interface LineChartProps extends Omit { children?: never; /** Propiedad de la vista. */ animations?: LineChartAnimation[]; /** Línea horizontal en la parte inferior del gráfico. Por defecto usa primer plano y ancho 1pt; stroke: clear la oculta. */ xAxis?: ChartAxisStyle; /** Línea vertical a la izquierda del gráfico. Por defecto usa primer plano y ancho 1pt; stroke: clear la oculta. */ yAxis?: ChartAxisStyle; /** Datos del gráfico. value.x/y define coordenadas y label.x/y el texto; y nulo interrumpe la línea. */ data: ReadonlyArray; /** Rango numérico visible [min, max]. Si se omite, se ajusta a los datos. */ rangeX?: ChartRange; /** Rango numérico visible [min, max]. Si se omite, se ajusta a los datos. */ rangeY?: ChartRange; /** Mostrar etiquetas del eje. El diseño nativo selecciona un subconjunto sin superposiciones. */ showXLabels?: boolean; /** Mostrar etiquetas del eje. El diseño nativo selecciona un subconjunto sin superposiciones. */ showYLabels?: boolean; /** Color del contorno de la forma. */ stroke?: Paint; /** Propiedad de la vista. */ lineWidth?: number; /** Propiedad de la vista. */ lineCap?: "round" | "butt" | "square"; /** Propiedad de la vista. */ lineJoin?: "round" | "miter" | "bevel"; /** Propiedad de la vista. */ dash?: number[]; /** Propiedad de la vista. */ dashPhase?: number; /** Transición opcional. interpolate requiere igual número de muestras y posiciones de datos ausentes; de lo contrario, actualiza inmediatamente. */ contentAnimation?: ContentAnimation; } type CardContentProps = CardContentBase & ({ children?: ViewContent; renderer?: never } | { children?: never; renderer: (metrics: CardContentMetrics) => ViewContent }); declare namespace CapDriveJSX { /** * Dibuja texto. * @param {TextProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Text(props: TextProps): View; /** * Muestra un recurso de imagen incluido. * @param {ImageProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Image(props: ImageProps): View; /** * Aplica transformaciones y efectos a las vistas secundarias como un solo grupo. * @param {GroupProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Group(props: GroupProps): View; /** * Reserva espacio flexible. * @param {SpacerProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Spacer(props: SpacerProps): View; /** * Distribuye las vistas hijas verticalmente. * @param {VStackProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function VStack(props: VStackProps): View; /** * Distribuye las vistas hijas horizontalmente. * @param {HStackProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function HStack(props: HStackProps): View; /** * Superpone las vistas hijas de atrás hacia delante. * @param {ZStackProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function ZStack(props: ZStackProps): View; /** * Dibuja material de fondo nativo. * @param {MaterialProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Material(props: MaterialProps): View; /** * Distribuye la cabecera y el contenido de un instrumento. * @param {CardContentProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function CardContent(props: CardContentProps): View; /** * Dibuja un icono de SF Symbols. * @param {SymbolProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Symbol(props: SymbolProps): View; /** * Repite un dibujo periódico alrededor del valor actual. * @param {RepeatedLayoutProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function RepeatedLayout(props: RepeatedLayoutProps): View; /** * Distribuye las vistas hijas en un círculo o una elipse. * @param {RadialLayoutProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function RadialLayout(props: RadialLayoutProps): View; /** * Dibuja un círculo. * @param {CircleProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Circle(props: CircleProps): View; /** * Dibuja una elipse. * @param {EllipseProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Ellipse(props: EllipseProps): View; /** * Dibuja un rectángulo. * @param {RectangleProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Rectangle(props: RectangleProps): View; /** * Dibuja una línea recta. * @param {LineProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Line(props: LineProps): View; /** * Dibuja un arco circular o elíptico. * @param {ArcProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Arc(props: ArcProps): View; /** * Dibuja una serie de puntos conectados. * @param {PolylineProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Polyline(props: PolylineProps): View; /** * Muestra un mapa nativo. * @param {MapProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Map(props: MapProps): View; /** * Dibuja un trazado. * @param {PathProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function Path(props: PathProps): View; /** * Dibuja un gráfico de barras. * @param {BarChartProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function BarChart(props: BarChartProps): View; /** * Dibuja un gráfico de líneas. * @param {LineChartProps} props Propiedades de la vista. * @returns {View} Un nodo de dibujo JSX. */ function LineChart(props: LineChartProps): View; } declare function CardContent(props: CardContentProps): View; /** * Marca un color para la mejora HDR y conserva su color SDR base. * @param {string} color Un nombre de color o un color hexadecimal. * @returns {HDRColor} Datos de color HDR para colores de dibujo y degradados. */ interface HDRFactory { (color: string): HDRColor; new(color: string): HDRColor; } declare const HDR: HDRFactory; interface LinearGradientFactory { (colors: GradientColors, options?: LinearGradientOptions): Gradient; new(colors: GradientColors, options?: LinearGradientOptions): Gradient; } declare const LinearGradient: LinearGradientFactory; interface RadialGradientFactory { (colors: GradientColors, options?: RadialGradientOptions): Gradient; new(colors: GradientColors, options?: RadialGradientOptions): Gradient; } declare const RadialGradient: RadialGradientFactory; interface AngularGradientFactory { (colors: GradientColors, options?: AngularGradientOptions): Gradient; new(colors: GradientColors, options?: AngularGradientOptions): Gradient; } declare const AngularGradient: AngularGradientFactory;