// Built-in JSX views and host helpers. Editor metadata only. /** Node gambar JSX. */ interface View {} /** Properti tampilan. */ type ViewContent = View | string | number | boolean | null | undefined | ViewContent[]; /** Properti tampilan. */ type TextContent = string | number | bigint | boolean | symbol | { toString(): string } | null | undefined; /** Data warna HDR untuk warna gambar dan gradien. */ type HDRColor = { readonly $type: "CapDrive.HDR"; readonly color: string }; /** Properti tampilan. */ type RGBColor = { space?: "srgb" | "displayP3"; r: number; g: number; b: number; a?: number }; /** Properti tampilan. */ type Color = string | RGBColor | HDRColor; /** Properti tampilan. */ type ViewPoint = { x: number; y: number }; /** Properti tampilan. */ type ChartDataPoint = { value: { x: number; y: number | null }; label: { x: string; y: string } }; /** Properti tampilan. */ type ChartRange = readonly [min: number, max: number]; /** Properti tampilan. */ type MapCoordinate = { latitude: number; longitude: number }; /** Properti tampilan. */ 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 }; /** Properti tampilan. */ type ChartAxisStyle = { stroke?: Paint; lineWidth?: number; lineCap?: "round" | "butt" | "square"; dash?: readonly number[]; dashPhase?: number }; /** Properti tampilan. */ type BarChartDataPoint = { value: number; label?: string }; /** Properti tampilan. */ 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" }; /** Properti tampilan. */ type GradientStop = Color | { color: Color; location: number }; /** Properti tampilan. */ type GradientColors = ReadonlyArray; /** Properti tampilan. */ type LinearGradientOptions = { angle?: number; center?: ViewPoint }; /** Properti tampilan. */ type RadialGradientOptions = { startRadius?: number; endRadius?: number; center?: ViewPoint }; /** Properti tampilan. */ type AngularGradientOptions = { angle?: number; center?: ViewPoint }; /** Properti tampilan. */ type Gradient = { readonly type: "linear" | "radial" | "angular"; readonly angle?: number; readonly startRadius?: number; readonly endRadius?: number; readonly center?: ViewPoint; readonly colors: GradientColors }; /** Properti tampilan. */ type Paint = Color | Gradient; /** Properti tampilan. */ type DrawingEffect = { color?: Color; opacity?: number; radius?: number; x?: number; y?: number }; /** Properti tampilan. */ type ViewTransform = { translateX?: number; translateY?: number; scaleX?: number; scaleY?: number; rotation?: number; skewX?: number; skewY?: number; anchorX?: number; anchorY?: number }; /** Properti tampilan. */ type RepeatAxisValue = number | { x?: number; y?: number }; /** Properti tampilan. */ 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"; /** Properti tampilan. */ type Animation = { property: AnimationProperty; duration?: number; delay?: number; curve?: string; from?: number | Color; to?: number | Color; repeat?: number | "forever"; autoreverse?: boolean; wrap?: number }; /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ 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 }); /** Properti tampilan. */ type SpacerAnimation = { property: "width" | "height" | "minLength"; duration?: number; delay?: number; curve?: string; from?: number; to?: number; repeat?: number | "forever"; autoreverse?: boolean; wrap?: number }; /** Properti tampilan. */ type ContentAnimation = { type: "fade" | "slide" | "scale" | "numericText" | "interpolate"; duration?: number; delay?: number; curve?: string; direction?: string; distance?: number; scale?: number }; /** Properti tampilan. */ type ViewSize = { width: number; height: number }; /** Properti tampilan. */ type ViewInsets = { top: number; leading: number; bottom: number; trailing: number }; /** Properti tampilan. */ type CardContentMetrics = { size: ViewSize; contentSize: ViewSize; headerSize: ViewSize; safeInsets: ViewInsets }; interface CommonViewProps { /** Identitas stabil di antara elemen sejajar. */ key?: string | number; /** Konten gambar anak. */ children?: ViewContent; /** Lebar dalam poin, ukuran otomatis, atau memenuhi induk. */ width?: number | "auto" | "fill"; /** Tinggi dalam poin, ukuran otomatis, atau memenuhi induk. */ height?: number | "auto" | "fill"; /** Padding konten dalam poin. */ padding?: number; /** Properti tampilan. */ x?: number; /** Properti tampilan. */ y?: number; /** Properti tampilan. */ opacity?: number; /** Properti tampilan. */ background?: Paint; /** Properti tampilan. */ cornerRadius?: number; /** Properti tampilan. */ clipped?: boolean; /** Properti tampilan. */ clip?: "rectangle" | "ellipse"; /** Properti tampilan. */ blur?: number; /** Properti tampilan. */ zIndex?: number; /** Properti tampilan. */ innerShadow?: DrawingEffect; /** Properti tampilan. */ glow?: DrawingEffect; /** Properti tampilan. */ shadowColor?: Color; /** Properti tampilan. */ shadowOpacity?: number; /** Properti tampilan. */ shadowRadius?: number; /** Properti tampilan. */ shadowX?: number; /** Properti tampilan. */ shadowY?: number; /** View masker alfa. Di tengah tanpa memengaruhi tata letak; null menonaktifkan masker. */ mask?: View | null; /** Properti tampilan. */ transform?: ViewTransform; /** Properti tampilan. */ animations?: Animation[]; } interface TextProps extends CommonViewProps { /** Konten gambar anak. */ children?: TextContent | TextContent[]; /** Ukuran font dalam poin. */ fontSize?: number; /** Properti tampilan. */ fontWeight?: "ultraLight" | "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"; /** Properti tampilan. */ font?: "default" | "rounded" | "monospaced" | "serif"; /** Properti tampilan. */ monospacedDigits?: boolean; /** Properti tampilan. */ letterSpacing?: number; /** Properti tampilan. */ minimumScaleFactor?: number; /** Properti tampilan. */ lineLimit?: number | null; /** Properti tampilan. */ truncationMode?: "head" | "middle" | "tail"; /** Warna gambar, termasuk warna HDR. */ color?: Paint; /** Properti tampilan. */ alignment?: "leading" | "center" | "trailing"; /** Properti tampilan. */ contentAnimation?: ContentAnimation; } interface ImageProps extends CommonViewProps { children?: never; /** Properti tampilan. */ source: string; /** Properti tampilan. */ contentMode?: "fit" | "fill" | "stretch"; /** Properti tampilan. */ repeatMode?: "none" | "repeat" | "repeatX" | "repeatY"; /** Properti tampilan. */ renderingMode?: "original" | "template"; /** Warna gambar, termasuk warna HDR. */ color?: Paint; /** Properti tampilan. */ contentAnimation?: ContentAnimation; } interface GroupProps { /** Identitas stabil di antara elemen sejajar. */ key?: string | number; /** Konten gambar anak. */ children?: ViewContent; /** Properti tampilan. */ opacity?: number; /** Properti tampilan. */ background?: Paint; /** Properti tampilan. */ cornerRadius?: number; /** Properti tampilan. */ clipped?: boolean; /** Properti tampilan. */ clip?: "rectangle" | "ellipse"; /** Properti tampilan. */ blur?: number; /** Properti tampilan. */ zIndex?: number; /** Properti tampilan. */ innerShadow?: DrawingEffect; /** Properti tampilan. */ glow?: DrawingEffect; /** Properti tampilan. */ shadowColor?: Color; /** Properti tampilan. */ shadowOpacity?: number; /** Properti tampilan. */ shadowRadius?: number; /** Properti tampilan. */ shadowX?: number; /** Properti tampilan. */ shadowY?: number; /** View masker alfa. Di tengah tanpa memengaruhi tata letak; null menonaktifkan masker. */ mask?: View | null; /** Properti tampilan. */ transform?: ViewTransform; /** Properti tampilan. */ animations?: Animation[]; } interface SpacerProps { children?: never; /** Identitas stabil di antara elemen sejajar. */ key?: string | number; /** Lebar dalam poin, ukuran otomatis, atau memenuhi induk. */ width?: number | "auto" | "fill"; /** Tinggi dalam poin, ukuran otomatis, atau memenuhi induk. */ height?: number | "auto" | "fill"; /** Properti tampilan. */ minLength?: number; /** Properti tampilan. */ animations?: SpacerAnimation[]; } interface VStackProps extends CommonViewProps { /** Jarak antartampilan anak dalam poin. */ spacing?: number; /** Properti tampilan. */ alignment?: "leading" | "center" | "trailing"; } interface HStackProps extends CommonViewProps { /** Jarak antartampilan anak dalam poin. */ spacing?: number; /** Properti tampilan. */ alignment?: "top" | "center" | "bottom" | "firstTextBaseline" | "lastTextBaseline"; } interface ZStackProps extends CommonViewProps { /** Properti tampilan. */ alignment?: "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing"; } interface MaterialProps { children?: never; /** Identitas stabil di antara elemen sejajar. */ key?: string | number; /** Lebar dalam poin, ukuran otomatis, atau memenuhi induk. */ width?: number | "auto" | "fill"; /** Tinggi dalam poin, ukuran otomatis, atau memenuhi induk. */ height?: number | "auto" | "fill"; /** Properti tampilan. */ x?: number; /** Properti tampilan. */ y?: number; /** Properti tampilan. */ opacity?: number; /** Properti tampilan. */ background?: Paint; /** Properti tampilan. */ cornerRadius?: number; /** Properti tampilan. */ clipped?: boolean; /** Properti tampilan. */ clip?: boolean | "rectangle" | "ellipse"; /** Properti tampilan. */ blur?: number; /** Properti tampilan. */ zIndex?: number; /** Properti tampilan. */ innerShadow?: DrawingEffect; /** Properti tampilan. */ glow?: DrawingEffect; /** Properti tampilan. */ shadowColor?: Color; /** Properti tampilan. */ shadowOpacity?: number; /** Properti tampilan. */ shadowRadius?: number; /** Properti tampilan. */ shadowX?: number; /** Properti tampilan. */ shadowY?: number; /** View masker alfa. Di tengah tanpa memengaruhi tata letak; null menonaktifkan masker. */ mask?: View | null; /** Properti tampilan. */ transform?: ViewTransform; /** Properti tampilan. */ animations?: Animation[]; /** Properti tampilan. */ type: "frosted"; /** Properti tampilan. */ style?: "ultraThin" | "thin" | "regular" | "thick" | "ultraThick" | "bar"; } interface CardContentBase extends Omit { /** Teks header atau View. */ title?: string | View | null; /** Teks atau View di ujung header. */ trailing?: string | View | null; /** Properti tampilan. */ contentMode?: "inset" | "full"; /** Properti tampilan. */ headerBackground?: View | null; } interface SymbolProps extends CommonViewProps { children?: never; /** Properti tampilan. */ name: string; /** Ukuran font dalam poin. */ fontSize?: number; /** Properti tampilan. */ fontWeight?: "ultraLight" | "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"; /** Properti tampilan. */ imageScale?: "small" | "medium" | "large"; /** Properti tampilan. */ renderingMode?: "monochrome" | "hierarchical" | "palette" | "multicolor"; /** Properti tampilan. */ paletteColors?: [Color] | [Color, Color] | [Color, Color, Color]; /** Warna gambar, termasuk warna HDR. */ color?: Paint; /** Properti tampilan. */ contentAnimation?: ContentAnimation; } interface RepeatedLayoutProps extends Omit { /** Properti tampilan. */ axis?: "horizontal" | "vertical" | "both"; /** Properti tampilan. */ period?: RepeatAxisValue; /** Properti tampilan. */ value?: RepeatAxisValue; /** Properti tampilan. */ anchor?: RepeatAxisValue; /** Properti tampilan. */ offset?: RepeatAxisValue; /** Properti tampilan. */ alignment?: "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing"; } interface RadialLayoutProps extends CommonViewProps { /** Properti tampilan. */ animations?: RadialLayoutAnimation[]; /** Properti tampilan. */ radius?: number; /** Properti tampilan. */ radiusX?: number; /** Properti tampilan. */ radiusY?: number; /** Sudut awal dalam derajat, dinormalisasi modulo 360 saat pengambilan sampel. */ startAngle?: number; /** Rentang sudut dalam derajat, dibatasi ke -360…360 saat pengambilan sampel. Nilai positif searah jarum jam; wrap tidak didukung. */ sweepAngle?: number; /** Properti tampilan. */ includeEnd?: boolean; /** Properti tampilan. */ childRotation?: "none" | "radial" | "tangent"; } interface CircleProps extends Omit { children?: never; /** Properti tampilan. */ animations?: CircleAnimation[]; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Sudut awal dalam derajat, dinormalisasi modulo 360 saat pengambilan sampel. */ startAngle?: number; /** Rentang sudut dalam derajat, dibatasi ke -360…360 saat pengambilan sampel. Nilai positif searah jarum jam; wrap tidak didukung. */ sweepAngle?: number; /** Posisi garis terhadap kontur lingkaran atau elips penuh. Default: inside. */ strokePosition?: "inside" | "center" | "outside"; } interface EllipseProps extends Omit { children?: never; /** Properti tampilan. */ animations?: EllipseAnimation[]; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Sudut awal dalam derajat, dinormalisasi modulo 360 saat pengambilan sampel. */ startAngle?: number; /** Rentang sudut dalam derajat, dibatasi ke -360…360 saat pengambilan sampel. Nilai positif searah jarum jam; wrap tidak didukung. */ sweepAngle?: number; /** Posisi garis terhadap kontur lingkaran atau elips penuh. Default: inside. */ strokePosition?: "inside" | "center" | "outside"; } interface RectangleProps extends Omit { children?: never; /** Properti tampilan. */ trimStart?: number; /** Properti tampilan. */ trimEnd?: number; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ lineJoin?: "round" | "miter" | "bevel"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Properti tampilan. */ strokePosition?: "inside" | "center" | "outside"; } interface LineProps extends Omit { children?: never; /** Properti tampilan. */ trimStart?: number; /** Properti tampilan. */ trimEnd?: number; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Properti tampilan. */ start?: ViewPoint; /** Properti tampilan. */ end?: ViewPoint; } interface ArcProps extends Omit { children?: never; /** Properti tampilan. */ animations?: ArcAnimation[]; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Sudut awal dalam derajat, dinormalisasi modulo 360 saat pengambilan sampel. */ startAngle?: number; /** Rentang sudut dalam derajat, dibatasi ke -360…360 saat pengambilan sampel. Nilai positif searah jarum jam; wrap tidak didukung. */ sweepAngle?: number; /** Posisi garis terhadap kontur lingkaran atau elips penuh. Default: inside. */ strokePosition?: "inside" | "center" | "outside"; } interface PolylineProps extends Omit { children?: never; /** Properti tampilan. */ trimStart?: number; /** Properti tampilan. */ trimEnd?: number; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ lineJoin?: "round" | "miter" | "bevel"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Koordinat titik lokal dalam satuan poin. Kurang dari dua titik tidak menggambar apa pun. */ points: ReadonlyArray; /** Properti tampilan. */ closed?: boolean; /** Transisi konten opsional. interpolate memerlukan jumlah titik dan status penutupan yang sama; jika tidak, konten langsung diperbarui. */ contentAnimation?: ContentAnimation; } interface MapProps extends Omit { children?: never; /** Properti tampilan. */ animations?: MapAnimation[]; /** Properti tampilan. */ showUserLocation?: boolean; /** Pusat kamera: lokasi native, lokasi instrumen saat ini, atau koordinat tetap. Defaultnya userLocation. */ center?: "userLocation" | "dataLocation" | MapCoordinate; /** Offset tampilan dalam poin layar. x/y positif menggeser area ke kanan/bawah dan isi peta ke kiri/atas. */ regionOffset?: ViewPoint; /** Koordinat rute berurutan. Null memisahkan segmen. Menggunakan lintang/bujur; array kosong tidak menggambar rute. */ path?: ReadonlyArray; /** Gaya rute native: Color, lebar, ujung, sambungan, garis putus, tepi, dan penanda ujung opsional. Gradien tidak didukung. */ pathStyle?: MapPathStyle; /** Arah kamera: northUp, vehicle, path, atau derajat modulo 360. Arah jalur mengikuti batas segmen. */ heading?: "northUp" | "vehicle" | "path" | number; /** Animasikan perubahan kamera native. Aktif secara default, kecuali bingkai pertama dan Kurangi Gerakan. */ cameraAnimation?: boolean; /** Properti tampilan. */ appearance?: "automatic" | "light" | "dark"; /** Properti tampilan. */ mapStyle?: "standard" | "satellite" | "hybrid"; /** Properti tampilan. */ pitch?: number; } interface PathProps extends Omit { children?: never; /** Properti tampilan. */ trimStart?: number; /** Properti tampilan. */ trimEnd?: number; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ lineJoin?: "round" | "miter" | "bevel"; /** Properti tampilan. */ dashPhase?: number; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ dash?: number[]; /** Aturan isian jalur: nonZero atau evenOdd. */ fillRule?: "nonZero" | "evenOdd"; /** Perintah jalur lokal dalam satuan poin. Array kosong tidak menggambar apa pun. */ commands: ReadonlyArray; /** Transisi konten opsional. interpolate memerlukan jumlah perintah dan urutan operasi yang sama; jika tidak, konten langsung diperbarui. */ contentAnimation?: ContentAnimation; } interface BarChartProps extends Omit { children?: never; /** Isian setiap batang. Defaultnya warna latar depan tema. */ background?: Paint; /** Radius sudut tiap batang, dibatasi sesuai ukurannya. */ cornerRadius?: number; /** Properti tampilan. */ animations?: BarChartAnimation[]; /** Garis sumbu horizontal di bawah grafik. Defaultnya warna latar depan selebar 1pt; gunakan stroke: clear untuk menyembunyikannya. */ xAxis?: ChartAxisStyle; /** Garis sumbu vertikal di kiri grafik. Defaultnya warna latar depan selebar 1pt; gunakan stroke: clear untuk menyembunyikannya. */ yAxis?: ChartAxisStyle; /** Kategori sesuai urutan array. Setiap item memiliki nilai angka dan label opsional. */ data: ReadonlyArray; /** Arah batang: vertical dari kiri ke kanan; horizontal dari atas ke bawah. */ axis?: "horizontal" | "vertical"; /** Rentang nilai terlihat [min, max]. Jika dihilangkan, menyesuaikan data dan menyertakan nol. */ rangeY?: ChartRange; /** Tampilkan label kategori. Label yang tidak ada tetap kosong; tata letak native mencegah tumpang tindih. */ showLabels?: boolean; /** Tampilkan label sumbu angka yang dibuat otomatis. */ showValueLabels?: boolean; /** Ketebalan batang dalam poin, atau auto mengikuti jarak kategori. */ barThickness?: number | "auto"; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Posisi garis tepi terhadap setiap batang. Defaultnya inside. */ strokePosition?: "inside" | "center" | "outside"; /** Properti tampilan. */ dash?: number[]; /** Properti tampilan. */ dashPhase?: number; /** Transisi konten opsional. interpolate memerlukan jumlah kategori dan arah yang sama; jika berbeda, langsung diperbarui. */ contentAnimation?: ContentAnimation; } interface LineChartProps extends Omit { children?: never; /** Properti tampilan. */ animations?: LineChartAnimation[]; /** Garis sumbu horizontal di bawah grafik. Defaultnya warna latar depan selebar 1pt; gunakan stroke: clear untuk menyembunyikannya. */ xAxis?: ChartAxisStyle; /** Garis sumbu vertikal di kiri grafik. Defaultnya warna latar depan selebar 1pt; gunakan stroke: clear untuk menyembunyikannya. */ yAxis?: ChartAxisStyle; /** Data grafik. value.x/y menentukan koordinat dan label.x/y teks; y null memutus garis. */ data: ReadonlyArray; /** Rentang angka sumbu yang terlihat [min, max]. Otomatis mengikuti data jika dihilangkan. */ rangeX?: ChartRange; /** Rentang angka sumbu yang terlihat [min, max]. Otomatis mengikuti data jika dihilangkan. */ rangeY?: ChartRange; /** Tampilkan label sumbu. Tata letak native memilih label yang tidak tumpang tindih. */ showXLabels?: boolean; /** Tampilkan label sumbu. Tata letak native memilih label yang tidak tumpang tindih. */ showYLabels?: boolean; /** Warna garis bentuk. */ stroke?: Paint; /** Properti tampilan. */ lineWidth?: number; /** Properti tampilan. */ lineCap?: "round" | "butt" | "square"; /** Properti tampilan. */ lineJoin?: "round" | "miter" | "bevel"; /** Properti tampilan. */ dash?: number[]; /** Properti tampilan. */ dashPhase?: number; /** Transisi opsional. interpolate memerlukan jumlah sampel dan posisi nilai kosong yang sama; jika berbeda, langsung diperbarui. */ contentAnimation?: ContentAnimation; } type CardContentProps = CardContentBase & ({ children?: ViewContent; renderer?: never } | { children?: never; renderer: (metrics: CardContentMetrics) => ViewContent }); declare namespace CapDriveJSX { /** * Menggambar teks. * @param {TextProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Text(props: TextProps): View; /** * Menampilkan sumber gambar yang disertakan. * @param {ImageProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Image(props: ImageProps): View; /** * Terapkan transformasi dan efek pada tampilan anak sebagai satu kelompok. * @param {GroupProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Group(props: GroupProps): View; /** * Menyediakan ruang fleksibel. * @param {SpacerProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Spacer(props: SpacerProps): View; /** * Menyusun tampilan anak secara vertikal. * @param {VStackProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function VStack(props: VStackProps): View; /** * Menyusun tampilan anak secara horizontal. * @param {HStackProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function HStack(props: HStackProps): View; /** * Menumpuk tampilan anak dari belakang ke depan. * @param {ZStackProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function ZStack(props: ZStackProps): View; /** * Menggambar material latar native. * @param {MaterialProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Material(props: MaterialProps): View; /** * Menata header dan konten instrumen. * @param {CardContentProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function CardContent(props: CardContentProps): View; /** * Menggambar ikon SF Symbols. * @param {SymbolProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Symbol(props: SymbolProps): View; /** * Mengulang gambar periodik di sekitar nilai saat ini. * @param {RepeatedLayoutProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function RepeatedLayout(props: RepeatedLayoutProps): View; /** * Menyusun tampilan anak pada lingkaran atau elips. * @param {RadialLayoutProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function RadialLayout(props: RadialLayoutProps): View; /** * Menggambar lingkaran. * @param {CircleProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Circle(props: CircleProps): View; /** * Menggambar elips. * @param {EllipseProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Ellipse(props: EllipseProps): View; /** * Menggambar persegi panjang. * @param {RectangleProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Rectangle(props: RectangleProps): View; /** * Menggambar garis lurus. * @param {LineProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Line(props: LineProps): View; /** * Menggambar busur lingkaran atau elips. * @param {ArcProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Arc(props: ArcProps): View; /** * Menggambar rangkaian titik yang terhubung. * @param {PolylineProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Polyline(props: PolylineProps): View; /** * Menampilkan peta native. * @param {MapProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Map(props: MapProps): View; /** * Menggambar jalur. * @param {PathProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function Path(props: PathProps): View; /** * Menggambar diagram batang. * @param {BarChartProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function BarChart(props: BarChartProps): View; /** * Menggambar diagram garis. * @param {LineChartProps} props Properti tampilan. * @returns {View} Node gambar JSX. */ function LineChart(props: LineChartProps): View; } declare function CardContent(props: CardContentProps): View; /** * Menandai warna untuk peningkatan HDR sambil mempertahankan warna SDR dasarnya. * @param {string} color Nama warna atau warna heksadesimal. * @returns {HDRColor} Data warna HDR untuk warna gambar dan gradien. */ 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;