panelui-native 0.113.1 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/camera/camera-model.js +142 -0
- package/lib/module/components/camera/camera-model.js.map +1 -0
- package/lib/module/components/camera/index.js +1546 -0
- package/lib/module/components/camera/index.js.map +1 -0
- package/lib/module/components/image-viewer/image-viewer-geometry.js +15 -0
- package/lib/module/components/image-viewer/image-viewer-geometry.js.map +1 -1
- package/lib/module/components/image-viewer/index.js +101 -37
- package/lib/module/components/image-viewer/index.js.map +1 -1
- package/lib/module/components/tabs/index.js +19 -7
- package/lib/module/components/tabs/index.js.map +1 -1
- package/lib/module/icons/index.js +20 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/camera/camera-model.d.ts +79 -0
- package/lib/typescript/src/components/camera/camera-model.d.ts.map +1 -0
- package/lib/typescript/src/components/camera/index.d.ts +481 -0
- package/lib/typescript/src/components/camera/index.d.ts.map +1 -0
- package/lib/typescript/src/components/image-viewer/image-viewer-geometry.d.ts +9 -0
- package/lib/typescript/src/components/image-viewer/image-viewer-geometry.d.ts.map +1 -1
- package/lib/typescript/src/components/image-viewer/index.d.ts +10 -3
- package/lib/typescript/src/components/image-viewer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tabs/index.d.ts +24 -2
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
- package/lib/typescript/src/icons/index.d.ts +4 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/components/camera/camera-model.ts +140 -0
- package/src/components/camera/index.tsx +1880 -0
- package/src/components/image-viewer/image-viewer-geometry.ts +15 -0
- package/src/components/image-viewer/index.tsx +122 -43
- package/src/components/tabs/index.tsx +48 -8
- package/src/icons/index.tsx +8 -0
- package/src/index.ts +36 -0
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PanelUIProvider","useTheme","useThemeMode","PANEL_THEMES","PANEL_THEME_NAMES","PANEL_EXTRA_THEMES","Portal","PortalHost","PortalProvider","Scrim","hasBlur","Glass","GlassContainer","hasGlass","useGlassMaterial","Text","Collapse","KeyboardAvoider","AnimatedPressable","ScrollProgress","useScrollProgress","hasNativeUI","hasHaptics","selectionTick","Accordion","Alert","Avatar","AvatarCropper","hasAvatarCropperExport","pickAvatarImage","Attachment","AreaChart","useAreaChart","AnimatedBadge","Badge","BarChart","useBarChart","CandlestickChart","useCandlestickChart","BottomSheet","Breadcrumb","Button","ButtonGroup","ToggleButton","ToggleButtonGroup","useToggleButton","DatePicker","DateTimePicker","Dialog","Feedback","Soundwave","Direction","useDirection","useDirectionSign","Fab","Flow","FileUpload","describeFileStatus","describeFileUploadRules","formatFileSize","hasFileUploadSource","useFileUpload","FlipCard","useFlipCard","FunnelChart","useFunnelChart","Frame","GridItem","HeatmapChart","useHeatmapChart","buildHeatmapCalendar","HexChart","useHexChart","Map","useMap","hasMapLibre","CARTO_SOURCE","RadarChart","useRadarChart","Select","useSelectSearch","SelectionMode","useSelectionMode","SectionRail","SectionProgress","Tabs","Table","Carousel","useCarouselState","Calendar","Card","Checkbox","Chip","useChip","CircularText","Collapsible","ColorPicker","Combobox","Compare","ContextMenu","Drawer","EmptyState","Field","Form","createForm","useForm","useField","ImageGeneration","ImageViewer","Input","InputGroup","NumberInput","OtpInput","SearchBar","Panelside","usePanelside","Pagination","paginationRange","PageHeader","PieChart","usePieChart","LiveLineChart","useLiveLineChart","BubbleChart","useBubbleChart","BumpChart","useBumpChart","bumpRanks","PyramidChart","usePyramidChart","PolarAreaChart","usePolarAreaChart","Plot","usePlot","usePlotCursor","areaPath","bandOf","barPath","compactNumber","linePath","segment","xAt","xOf","yOf","Textarea","ThemeSelector","useThemeSelection","TagInput","Item","Kpi","Countdown","Leaderboard","rankEntries","Label","LineChart","useLineChart","Loader","MarkdownEditor","Marker","Marquee","Menu","Meter","MessageScroller","useMessageScroller","useMessageScrollerVisibility","MirrorAreaChart","useMirrorAreaChart","Message","Popover","usePopoverAnchor","Planner","Post","Progress","ProgressButton","useProgressButton","QRCode","Questionnaire","RadioGroup","Rating","RingChart","useRingChart","Support","useSupport","SankeyChart","useSankeyChart","ScatterChart","useScatterChart","ScrollBlur","ScrollFade","ScrollHeader","Separator","Signature","hasSignatureFileSystem","hasSignatureRaster","Sketch","hasSketchRaster","AIInput","Shimmer","Reasoning","Response","Sources","Task","CodeBlock","resolveLanguage","Plan","ScrollText","TextAnimation","ScrollCanvas","ThinkingOrb","Skeleton","SlideButton","useSlideButton","Slider","Sortable","reorderItems","useSortableItem","Spinner","Splitter","SplitView","useSplitView","StackCard","useStackCard","Steps","Surface","Swipe","useSwipeGroup","Switch","TimePicker","Timeline","Toast","ToastViewport","toast","useToast","TreemapChart","useTreemapChart","squarifyLayout","Tree","Tooltip","Tour","Typography","WaterfallChart","useWaterfallChart","waterfallSteps","AlertTriangleIcon","AppleIcon","ArrowDownIcon","ArrowUpIcon","ArrowUpRightIcon","AudioLinesIcon","BadgeCheckIcon","BellIcon","BookmarkIcon","BoldIcon","CalendarIcon","CameraIcon","CardIcon","HeadsetIcon","LifebuoyIcon","HelpCircleIcon","MailIcon","CallIcon","BugIcon","BookIcon","TicketIcon","CheckCircleIcon","CheckIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronsUpDownIcon","ChevronUpIcon","CircleIcon","CodeIcon","ClockIcon","CompassIcon","CopyIcon","CrosshairIcon","DownloadIcon","EllipsisIcon","EyeIcon","FacebookIcon","FileIcon","FolderIcon","FolderOpenIcon","GlobeIcon","GoogleIcon","HeartIcon","HeadingIcon","IconColorProvider","InfoIcon","ItalicIcon","ImageIcon","KeyboardIcon","LinkIcon","ListIcon","ListChecksIcon","ListOrderedIcon","LockIcon","MaximizeIcon","MenuIcon","MessageCircleIcon","MicIcon","MinusIcon","MoonIcon","PackageIcon","PaperclipIcon","PauseIcon","PencilIcon","PlayIcon","PlusIcon","PlusSquareIcon","QuoteIcon","ReceiptIcon","RepeatIcon","RotateCcwIcon","RotateCwIcon","SearchIcon","SendArrowIcon","SendIcon","ShareNodesIcon","ShieldAlertIcon","ShieldCheckIcon","SparklesIcon","StarIcon","SunIcon","TrashIcon","UnlockIcon","UploadIcon","VideoIcon","XIcon","useIconColor","cn","formatColor","hsvToCss","hsvToHex","hsvToHsl","hsvToRgb","isValidColor","parseColor","rgbToHsv","clampTime","compareTime","displayHour","formatTime","isSameTime","isTimeInRange","meridiemLabels","minutesToTime","roundToStep","timeFromDate","timeToDate","timeToMinutes","timesOfDay"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAmC,kCAA+B;;AAE1F;AACA,SACEC,QAAQ,EACRC,YAAY,EACZC,YAAY,EACZC,iBAAiB,EACjBC,kBAAkB,QAKb,sBAAmB;;AAE1B;AACA,SAASC,MAAM,EAAEC,UAAU,EAAEC,cAAc,QAAQ,wBAAqB;AACxE;AACA;AACA;AACA,SAASC,KAAK,EAAEC,OAAO,QAAyB,uBAAoB;AACpE;AACA;AACA,SACEC,KAAK,EACLC,cAAc,EACdC,QAAQ,EACRC,gBAAgB,QAKX,uBAAoB;AAC3B,SAASC,IAAI,QAAwB,sBAAmB;AACxD,SAASC,QAAQ,QAA4B,0BAAuB;AACpE,SACEC,eAAe,QAEV,kCAA+B;AACtC,SACEC,iBAAiB,QAEZ,oCAAiC;AACxC,SACEC,cAAc,EACdC,iBAAiB,QAGZ,iCAA8B;;AAErC;AACA,SAASC,WAAW,QAAQ,mBAAU;AACtC,SAASC,UAAU,EAAEC,aAAa,QAAQ,oBAAiB;;AAE3D;AACA,SACEC,SAAS,QAQJ,iCAAwB;AAC/B,SACEC,KAAK,QAGA,6BAAoB;AAC3B,SACEC,MAAM,QAID,8BAAqB;AA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AAU,EACVC,cAAc,EACdC,SAAS,EACTC,UAAU,EACVC,SAAS,EACTC,WAAW,EACXC,iBAAiB,EACjBC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,YAAY,EACZC,QAAQ,EACRC,QAAQ,EACRC,cAAc,EACdC,eAAe,EACfC,QAAQ,EACRC,YAAY,EACZC,QAAQ,EACRC,iBAAiB,EACjBC,OAAO,EACPC,SAAS,EACTC,QAAQ,EACRC,WAAW,EACXC,aAAa,EACbC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,QAAQ,EACRC,cAAc,EACdC,SAAS,EACTC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,YAAY,EACZC,UAAU,EACVC,aAAa,EACbC,QAAQ,EACRC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,YAAY,EACZC,QAAQ,EACRC,OAAO,EACPC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,KAAK,EACLC,YAAY,QAIP,kBAAS;;AAEhB;AACA,cAAc,kBAAS;;AAEvB;AACA,SAASC,EAAE,QAAQ,eAAY;AAC/B,SACEC,WAAW,EACXC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,QAAQ,QAGH,kBAAe;AACtB,SACEC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,aAAa,EACbC,cAAc,EACdC,aAAa,EACbC,WAAW,EACXC,YAAY,EACZC,UAAU,EACVC,aAAa,EACbC,UAAU,QAGL,iBAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["PanelUIProvider","useTheme","useThemeMode","PANEL_THEMES","PANEL_THEME_NAMES","PANEL_EXTRA_THEMES","Portal","PortalHost","PortalProvider","Scrim","hasBlur","Glass","GlassContainer","hasGlass","useGlassMaterial","Text","Collapse","KeyboardAvoider","AnimatedPressable","ScrollProgress","useScrollProgress","hasNativeUI","hasHaptics","selectionTick","Accordion","Alert","Avatar","AvatarCropper","hasAvatarCropperExport","pickAvatarImage","Camera","hasCamera","useCamera","Attachment","AreaChart","useAreaChart","AnimatedBadge","Badge","BarChart","useBarChart","CandlestickChart","useCandlestickChart","BottomSheet","Breadcrumb","Button","ButtonGroup","ToggleButton","ToggleButtonGroup","useToggleButton","DatePicker","DateTimePicker","Dialog","Feedback","Soundwave","Direction","useDirection","useDirectionSign","Fab","Flow","FileUpload","describeFileStatus","describeFileUploadRules","formatFileSize","hasFileUploadSource","useFileUpload","FlipCard","useFlipCard","FunnelChart","useFunnelChart","Frame","GridItem","HeatmapChart","useHeatmapChart","buildHeatmapCalendar","HexChart","useHexChart","Map","useMap","hasMapLibre","CARTO_SOURCE","RadarChart","useRadarChart","Select","useSelectSearch","SelectionMode","useSelectionMode","SectionRail","SectionProgress","Tabs","Table","Carousel","useCarouselState","Calendar","Card","Checkbox","Chip","useChip","CircularText","Collapsible","ColorPicker","Combobox","Compare","ContextMenu","Drawer","EmptyState","Field","Form","createForm","useForm","useField","ImageGeneration","ImageViewer","Input","InputGroup","NumberInput","OtpInput","SearchBar","Panelside","usePanelside","Pagination","paginationRange","PageHeader","PieChart","usePieChart","LiveLineChart","useLiveLineChart","BubbleChart","useBubbleChart","BumpChart","useBumpChart","bumpRanks","PyramidChart","usePyramidChart","PolarAreaChart","usePolarAreaChart","Plot","usePlot","usePlotCursor","areaPath","bandOf","barPath","compactNumber","linePath","segment","xAt","xOf","yOf","Textarea","ThemeSelector","useThemeSelection","TagInput","Item","Kpi","Countdown","Leaderboard","rankEntries","Label","LineChart","useLineChart","Loader","MarkdownEditor","Marker","Marquee","Menu","Meter","MessageScroller","useMessageScroller","useMessageScrollerVisibility","MirrorAreaChart","useMirrorAreaChart","Message","Popover","usePopoverAnchor","Planner","Post","Progress","ProgressButton","useProgressButton","QRCode","Questionnaire","RadioGroup","Rating","RingChart","useRingChart","Support","useSupport","SankeyChart","useSankeyChart","ScatterChart","useScatterChart","ScrollBlur","ScrollFade","ScrollHeader","Separator","Signature","hasSignatureFileSystem","hasSignatureRaster","Sketch","hasSketchRaster","AIInput","Shimmer","Reasoning","Response","Sources","Task","CodeBlock","resolveLanguage","Plan","ScrollText","TextAnimation","ScrollCanvas","ThinkingOrb","Skeleton","SlideButton","useSlideButton","Slider","Sortable","reorderItems","useSortableItem","Spinner","Splitter","SplitView","useSplitView","StackCard","useStackCard","Steps","Surface","Swipe","useSwipeGroup","Switch","TimePicker","Timeline","Toast","ToastViewport","toast","useToast","TreemapChart","useTreemapChart","squarifyLayout","Tree","Tooltip","Tour","Typography","WaterfallChart","useWaterfallChart","waterfallSteps","AlertTriangleIcon","AppleIcon","ArrowDownIcon","ArrowUpIcon","ArrowUpRightIcon","AudioLinesIcon","BadgeCheckIcon","BellIcon","BookmarkIcon","BoldIcon","CalendarIcon","CameraIcon","CameraSwitchIcon","CardIcon","FlashIcon","FlashOffIcon","HeadsetIcon","LifebuoyIcon","HelpCircleIcon","MailIcon","CallIcon","BugIcon","BookIcon","TicketIcon","CheckCircleIcon","CheckIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronsUpDownIcon","ChevronUpIcon","CircleIcon","CodeIcon","ClockIcon","CompassIcon","CopyIcon","CrosshairIcon","DownloadIcon","EllipsisIcon","EyeIcon","FacebookIcon","FileIcon","FolderIcon","FolderOpenIcon","GlobeIcon","GoogleIcon","HeartIcon","HeadingIcon","IconColorProvider","InfoIcon","ItalicIcon","ImageIcon","KeyboardIcon","LinkIcon","ListIcon","ListChecksIcon","ListOrderedIcon","LockIcon","MaximizeIcon","MenuIcon","MessageCircleIcon","MicIcon","MinusIcon","MoonIcon","PackageIcon","PaperclipIcon","PauseIcon","PencilIcon","PlayIcon","PlusIcon","PlusSquareIcon","QuoteIcon","ReceiptIcon","RepeatIcon","RotateCcwIcon","RotateCwIcon","SearchIcon","SendArrowIcon","SendIcon","ShareNodesIcon","ShieldAlertIcon","ShieldCheckIcon","SparklesIcon","StarIcon","SunIcon","TimerIcon","TrashIcon","UnlockIcon","UploadIcon","VideoIcon","XIcon","useIconColor","cn","formatColor","hsvToCss","hsvToHex","hsvToHsl","hsvToRgb","isValidColor","parseColor","rgbToHsv","clampTime","compareTime","displayHour","formatTime","isSameTime","isTimeInRange","meridiemLabels","minutesToTime","roundToStep","timeFromDate","timeToDate","timeToMinutes","timesOfDay"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAmC,kCAA+B;;AAE1F;AACA,SACEC,QAAQ,EACRC,YAAY,EACZC,YAAY,EACZC,iBAAiB,EACjBC,kBAAkB,QAKb,sBAAmB;;AAE1B;AACA,SAASC,MAAM,EAAEC,UAAU,EAAEC,cAAc,QAAQ,wBAAqB;AACxE;AACA;AACA;AACA,SAASC,KAAK,EAAEC,OAAO,QAAyB,uBAAoB;AACpE;AACA;AACA,SACEC,KAAK,EACLC,cAAc,EACdC,QAAQ,EACRC,gBAAgB,QAKX,uBAAoB;AAC3B,SAASC,IAAI,QAAwB,sBAAmB;AACxD,SAASC,QAAQ,QAA4B,0BAAuB;AACpE,SACEC,eAAe,QAEV,kCAA+B;AACtC,SACEC,iBAAiB,QAEZ,oCAAiC;AACxC,SACEC,cAAc,EACdC,iBAAiB,QAGZ,iCAA8B;;AAErC;AACA,SAASC,WAAW,QAAQ,mBAAU;AACtC,SAASC,UAAU,EAAEC,aAAa,QAAQ,oBAAiB;;AAE3D;AACA,SACEC,SAAS,QAQJ,iCAAwB;AAC/B,SACEC,KAAK,QAGA,6BAAoB;AAC3B,SACEC,MAAM,QAID,8BAAqB;AAC5B,SACEC,aAAa,EACbC,sBAAsB,EACtBC,eAAe,QAYV,sCAA6B;AACpC,SACEC,MAAM,EACNC,SAAS,EACTC,SAAS,QA4BJ,8BAAqB;AAC5B,SACEC,UAAU,QAUL,kCAAyB;AAChC,SACEC,SAAS,EACTC,YAAY,QAYP,kCAAyB;AAChC,SACEC,aAAa,QAIR,sCAA6B;AACpC,SAASC,KAAK,QA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QAAQ,EACRC,cAAc,EACdC,eAAe,EACfC,QAAQ,EACRC,YAAY,EACZC,QAAQ,EACRC,iBAAiB,EACjBC,OAAO,EACPC,SAAS,EACTC,QAAQ,EACRC,WAAW,EACXC,aAAa,EACbC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,QAAQ,EACRC,cAAc,EACdC,SAAS,EACTC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,YAAY,EACZC,UAAU,EACVC,aAAa,EACbC,QAAQ,EACRC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,YAAY,EACZC,QAAQ,EACRC,OAAO,EACPC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,KAAK,EACLC,YAAY,QAIP,kBAAS;;AAEhB;AACA,cAAc,kBAAS;;AAEvB;AACA,SAASC,EAAE,QAAQ,eAAY;AAC/B,SACEC,WAAW,EACXC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,QAAQ,QAGH,kBAAe;AACtB,SACEC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,aAAa,EACbC,cAAc,EACdC,aAAa,EACbC,WAAW,EACXC,YAAY,EACZC,UAAU,EACVC,aAAa,EACbC,UAAU,QAGL,iBAAc","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Camera's arithmetic, kept apart from the component so it can be tested
|
|
3
|
+
* without a device. Every function here is pure; the ones the gestures call on
|
|
4
|
+
* the UI thread are worklets.
|
|
5
|
+
*/
|
|
6
|
+
/** Which camera the preview reads. */
|
|
7
|
+
export type CameraFacing = 'back' | 'front';
|
|
8
|
+
/** What the shutter makes. */
|
|
9
|
+
export type CameraMode = 'photo' | 'video';
|
|
10
|
+
/**
|
|
11
|
+
* The flash setting the control shows. `auto` lets the camera decide for a
|
|
12
|
+
* photo; a video has no auto, so there it reads as off.
|
|
13
|
+
*/
|
|
14
|
+
export type CameraFlashMode = 'off' | 'auto' | 'on';
|
|
15
|
+
/** Seconds the self-timer counts down before a photo. `0` is off. */
|
|
16
|
+
export type CameraTimerDelay = 0 | 3 | 10;
|
|
17
|
+
/** The timer settings, in the order the control steps through them. */
|
|
18
|
+
export declare const CAMERA_TIMERS: readonly CameraTimerDelay[];
|
|
19
|
+
/**
|
|
20
|
+
* How much of the zoom range a pinch's `scale - 1` is worth: pinching to twice
|
|
21
|
+
* the distance between the fingers moves half the range.
|
|
22
|
+
*/
|
|
23
|
+
export declare const PINCH_ZOOM_SENSITIVITY = 0.5;
|
|
24
|
+
/** How far one step of the screen reader's adjust moves the zoom. */
|
|
25
|
+
export declare const ZOOM_STEP = 0.1;
|
|
26
|
+
/**
|
|
27
|
+
* Zoom as expo-camera takes it: a fraction of the device's maximum, on `[0, 1]`.
|
|
28
|
+
* Anything else, `NaN` included, is pulled back onto that range.
|
|
29
|
+
*/
|
|
30
|
+
export declare function clampZoom(value: number): number;
|
|
31
|
+
/**
|
|
32
|
+
* The zoom a pinch reaches from the zoom it started at.
|
|
33
|
+
*
|
|
34
|
+
* Added to rather than multiplied, so a pinch that comes back to where the
|
|
35
|
+
* fingers started comes back to the zoom it started at, instead of compounding.
|
|
36
|
+
*/
|
|
37
|
+
export declare function zoomFromPinch(startZoom: number, scale: number): number;
|
|
38
|
+
/** The zoom a drag along the zoom bar points at, from where it is on the track. */
|
|
39
|
+
export declare function zoomFromTrack(x: number, width: number): number;
|
|
40
|
+
/** The zoom one adjust step up (`1`) or down (`-1`) from `zoom` lands on. */
|
|
41
|
+
export declare function stepZoom(zoom: number, direction: 1 | -1): number;
|
|
42
|
+
/**
|
|
43
|
+
* Which of `stops` the zoom is at, or `-1` between them. Close enough counts,
|
|
44
|
+
* since a pinch rarely lands on a value exactly.
|
|
45
|
+
*/
|
|
46
|
+
export declare function activeStop(zoom: number, stops: readonly {
|
|
47
|
+
value: number;
|
|
48
|
+
}[]): number;
|
|
49
|
+
/**
|
|
50
|
+
* Milliseconds as a recording clock: `mm:ss`, and `h:mm:ss` past an hour.
|
|
51
|
+
* Leading zeros stay, so the clock does not change width as it runs, and
|
|
52
|
+
* `00:00` is what it reads before recording starts.
|
|
53
|
+
*/
|
|
54
|
+
export declare function formatDuration(ms: number): string;
|
|
55
|
+
/** What the flash setting reads as in a mode: a video has no `auto`. */
|
|
56
|
+
export declare function flashIn(mode: CameraMode, flash: CameraFlashMode): CameraFlashMode;
|
|
57
|
+
/**
|
|
58
|
+
* The setting the flash control moves to. A photo cycles off, auto, on; a
|
|
59
|
+
* video only has off and on.
|
|
60
|
+
*/
|
|
61
|
+
export declare function nextFlash(mode: CameraMode, flash: CameraFlashMode): CameraFlashMode;
|
|
62
|
+
/**
|
|
63
|
+
* The `flash` expo-camera is given. It drives stills only, so in video it is
|
|
64
|
+
* off and the torch does the lighting instead.
|
|
65
|
+
*/
|
|
66
|
+
export declare function stillFlash(mode: CameraMode, flash: CameraFlashMode): CameraFlashMode;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the torch is lit: in video with the flash on, and only while a clip
|
|
69
|
+
* is being recorded, so it does not glare at the subject while they wait.
|
|
70
|
+
*/
|
|
71
|
+
export declare function torchFor(mode: CameraMode, flash: CameraFlashMode, recording: boolean): boolean;
|
|
72
|
+
/** The timer setting after `timer`, wrapping back to off. */
|
|
73
|
+
export declare function nextTimer(timer: CameraTimerDelay): CameraTimerDelay;
|
|
74
|
+
/**
|
|
75
|
+
* How far a capped recording has run, on `[0, 1]`. Without a cap there is
|
|
76
|
+
* nothing to fill, so it stays `0`.
|
|
77
|
+
*/
|
|
78
|
+
export declare function recordingProgress(elapsedMs: number, maxDurationSeconds?: number): number;
|
|
79
|
+
//# sourceMappingURL=camera-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera-model.d.ts","sourceRoot":"","sources":["../../../../../src/components/camera/camera-model.ts"],"names":[],"mappings":"AAAA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wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,GAAG,eAAe,CAMnF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,GAAG,eAAe,CAEpF;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAE9F;AAED,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAGnE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAGxF"}
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camera — a full-screen camera assembled from parts: the viewfinder, the
|
|
3
|
+
* shutter, zoom, flash, a self-timer, the recording clock, front and back, and
|
|
4
|
+
* the button into the library.
|
|
5
|
+
*
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <Camera onCapture={keep}>
|
|
8
|
+
* <Camera.Preview />
|
|
9
|
+
* <Camera.Header>
|
|
10
|
+
* <Camera.Flash />
|
|
11
|
+
* <Camera.Duration />
|
|
12
|
+
* <Camera.Timer />
|
|
13
|
+
* </Camera.Header>
|
|
14
|
+
* <Camera.Footer>
|
|
15
|
+
* <Camera.Zoom />
|
|
16
|
+
* <Camera.Modes />
|
|
17
|
+
* <Camera.Controls>
|
|
18
|
+
* <Camera.Library source={last} onPress={openLibrary} />
|
|
19
|
+
* <Camera.Shutter />
|
|
20
|
+
* <Camera.Flip />
|
|
21
|
+
* </Camera.Controls>
|
|
22
|
+
* </Camera.Footer>
|
|
23
|
+
* </Camera>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## The result is the app's
|
|
27
|
+
*
|
|
28
|
+
* A photo or a clip is handed to `onCapture` as the file the camera wrote, and
|
|
29
|
+
* nothing else happens to it here. Saving it to the photo library, holding it
|
|
30
|
+
* in memory for a preview, uploading it: each app wants a different one, and a
|
|
31
|
+
* component that picked would be wrong for most of them. The library button is
|
|
32
|
+
* the same — it draws the thumbnail it is given and calls `onPress`.
|
|
33
|
+
*
|
|
34
|
+
* ## Every part reads one state
|
|
35
|
+
*
|
|
36
|
+
* The root owns facing, mode, flash, zoom and the timer, each controlled or
|
|
37
|
+
* not, and every part reads them through context. `useCamera()` hands the same
|
|
38
|
+
* state and actions to anything else, so a part that does not suit can be
|
|
39
|
+
* swapped for a control of the app's own without losing the behaviour behind
|
|
40
|
+
* it. Leave a part out and its feature is simply not offered.
|
|
41
|
+
*
|
|
42
|
+
* ## Built on expo-camera
|
|
43
|
+
*
|
|
44
|
+
* The preview, the capture and the recording are expo-camera's, which runs in
|
|
45
|
+
* Expo Go. It is an optional dependency: without it the preview says so, and
|
|
46
|
+
* `hasCamera` is false.
|
|
47
|
+
*
|
|
48
|
+
* Its zoom is a fraction of the device's maximum, and that maximum is not
|
|
49
|
+
* exposed — on iOS the fraction is an exponent of it, on Android a multiple —
|
|
50
|
+
* so the same zoom is a different magnification on every phone. That is why
|
|
51
|
+
* nothing here labels a zoom "2×" on its own: the stops are the app's to name,
|
|
52
|
+
* and between them a bar shows where in the range the lens is.
|
|
53
|
+
*
|
|
54
|
+
* There is no way to focus on a point either, so a tap on the preview does
|
|
55
|
+
* nothing rather than draw a square over a focus that never moved.
|
|
56
|
+
*
|
|
57
|
+
* ## Over a black viewfinder
|
|
58
|
+
*
|
|
59
|
+
* The viewfinder is black in every theme and the picture on it is whatever
|
|
60
|
+
* the lens sees, so the chrome over it is white on a dark glaze in every theme.
|
|
61
|
+
* An active control is drawn inverted, white with a black glyph, which reads on
|
|
62
|
+
* any picture; recording is the destructive colour.
|
|
63
|
+
*
|
|
64
|
+
* Switching cameras hides the swap under a brief dark cover rather than
|
|
65
|
+
* turning the preview: on Android the preview is a surface that ignores view
|
|
66
|
+
* transforms, and the frame where one session hands over to the other is not
|
|
67
|
+
* something to show.
|
|
68
|
+
*/
|
|
69
|
+
import { type ReactNode, type RefAttributes } from 'react';
|
|
70
|
+
import { type ImageSourcePropType, type PressableProps, type ViewProps } from 'react-native';
|
|
71
|
+
import { type CameraFacing, type CameraFlashMode, type CameraMode, type CameraTimerDelay } from './camera-model.js';
|
|
72
|
+
export type { CameraFacing, CameraFlashMode, CameraMode, CameraTimerDelay } from './camera-model.js';
|
|
73
|
+
/** The picture expo-camera returns. */
|
|
74
|
+
interface CapturedPicture {
|
|
75
|
+
uri: string;
|
|
76
|
+
width: number;
|
|
77
|
+
height: number;
|
|
78
|
+
base64?: string;
|
|
79
|
+
exif?: Record<string, unknown>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The methods of expo-camera's `CameraView` this component calls, and the ones
|
|
83
|
+
* an app is likeliest to reach for through `CameraHandle.view`.
|
|
84
|
+
*/
|
|
85
|
+
export interface CameraViewHandle {
|
|
86
|
+
takePictureAsync(options?: object): Promise<CapturedPicture | undefined>;
|
|
87
|
+
recordAsync(options?: object): Promise<{
|
|
88
|
+
uri: string;
|
|
89
|
+
} | undefined>;
|
|
90
|
+
stopRecording(): void;
|
|
91
|
+
pausePreview(): Promise<void>;
|
|
92
|
+
resumePreview(): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* True when the camera can be shown, because `expo-camera` is installed and its
|
|
96
|
+
* native module is in the build. Expo Go has it.
|
|
97
|
+
*/
|
|
98
|
+
export declare const hasCamera: boolean;
|
|
99
|
+
/** A photo, as the camera wrote it. */
|
|
100
|
+
export interface CameraPhoto {
|
|
101
|
+
type: 'photo';
|
|
102
|
+
/** A local file. */
|
|
103
|
+
uri: string;
|
|
104
|
+
width: number;
|
|
105
|
+
height: number;
|
|
106
|
+
/** Present when `pictureOptions.base64` is set. */
|
|
107
|
+
base64?: string;
|
|
108
|
+
/** Present when `pictureOptions.exif` is set. */
|
|
109
|
+
exif?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
/** A clip, as the camera wrote it. */
|
|
112
|
+
export interface CameraVideo {
|
|
113
|
+
type: 'video';
|
|
114
|
+
/** A local file. */
|
|
115
|
+
uri: string;
|
|
116
|
+
/** How long it ran, in milliseconds, measured from when recording started. */
|
|
117
|
+
duration: number;
|
|
118
|
+
}
|
|
119
|
+
export type CameraCapture = CameraPhoto | CameraVideo;
|
|
120
|
+
/** Options for each photo, passed to expo-camera's `takePictureAsync`. */
|
|
121
|
+
export interface CameraPictureOptions {
|
|
122
|
+
/** JPEG quality, 0–1. Default 1. */
|
|
123
|
+
quality?: number;
|
|
124
|
+
/** Also return the image as base64. */
|
|
125
|
+
base64?: boolean;
|
|
126
|
+
/** Also return its EXIF data. */
|
|
127
|
+
exif?: boolean;
|
|
128
|
+
/** Skip orientation and quality processing, for speed. */
|
|
129
|
+
skipProcessing?: boolean;
|
|
130
|
+
/** Play the shutter sound. Default true; some regions require it. */
|
|
131
|
+
shutterSound?: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Props passed straight to expo-camera's `CameraView`, for what the parts do not
|
|
135
|
+
* cover. The parts' own state wins over the same prop here.
|
|
136
|
+
*/
|
|
137
|
+
export interface CameraViewOptions {
|
|
138
|
+
videoQuality?: '2160p' | '1080p' | '720p' | '480p' | '4:3';
|
|
139
|
+
videoStabilizationMode?: 'off' | 'standard' | 'cinematic' | 'auto';
|
|
140
|
+
/** Android only: the preview's aspect ratio. */
|
|
141
|
+
ratio?: '4:3' | '16:9' | '1:1';
|
|
142
|
+
/** iOS only: which lens, from `getAvailableLensesAsync`. */
|
|
143
|
+
selectedLens?: string;
|
|
144
|
+
pictureSize?: string;
|
|
145
|
+
animateShutter?: boolean;
|
|
146
|
+
[key: string]: unknown;
|
|
147
|
+
}
|
|
148
|
+
/** One zoom stop: a value in expo-camera's range, and the label the app gives it. */
|
|
149
|
+
export interface CameraZoomStop {
|
|
150
|
+
/** 0–1, a fraction of the device's maximum zoom. */
|
|
151
|
+
value: number;
|
|
152
|
+
/** What the chip says, such as `1×` or `2`. */
|
|
153
|
+
label: string;
|
|
154
|
+
/** Read out instead of `Zoom <label>`. */
|
|
155
|
+
accessibilityLabel?: string;
|
|
156
|
+
}
|
|
157
|
+
/** What `useCamera()` returns: the camera's state, and what can be done with it. */
|
|
158
|
+
export interface CameraState {
|
|
159
|
+
facing: CameraFacing;
|
|
160
|
+
mode: CameraMode;
|
|
161
|
+
/** The setting as chosen. In video, `auto` acts as off. */
|
|
162
|
+
flash: CameraFlashMode;
|
|
163
|
+
/** 0–1, a fraction of the device's maximum. */
|
|
164
|
+
zoom: number;
|
|
165
|
+
timer: CameraTimerDelay;
|
|
166
|
+
/** The camera has started and can capture. */
|
|
167
|
+
ready: boolean;
|
|
168
|
+
/** Camera access, or null until it is known. */
|
|
169
|
+
permission: {
|
|
170
|
+
granted: boolean;
|
|
171
|
+
canAskAgain: boolean;
|
|
172
|
+
} | null;
|
|
173
|
+
recording: boolean;
|
|
174
|
+
/** When recording started, as `Date.now()`, or null. */
|
|
175
|
+
recordingSince: number | null;
|
|
176
|
+
/** A photo is being taken. */
|
|
177
|
+
capturing: boolean;
|
|
178
|
+
/** Seconds left on the self-timer, or null when it is not counting. */
|
|
179
|
+
countdown: number | null;
|
|
180
|
+
/** The recording cap, in seconds, when there is one. */
|
|
181
|
+
maxDuration?: number;
|
|
182
|
+
setMode: (mode: CameraMode) => void;
|
|
183
|
+
setFlash: (flash: CameraFlashMode) => void;
|
|
184
|
+
setZoom: (zoom: number) => void;
|
|
185
|
+
setTimer: (timer: CameraTimerDelay) => void;
|
|
186
|
+
/** Swap front and back. Ignored while recording. */
|
|
187
|
+
flip: () => void;
|
|
188
|
+
/** What a press on the shutter does in the current mode. */
|
|
189
|
+
press: () => void;
|
|
190
|
+
takePhoto: () => Promise<CameraPhoto | null>;
|
|
191
|
+
startRecording: () => Promise<void>;
|
|
192
|
+
stopRecording: () => void;
|
|
193
|
+
cancelCountdown: () => void;
|
|
194
|
+
requestPermission: () => void;
|
|
195
|
+
}
|
|
196
|
+
/** A ref on `Camera`. */
|
|
197
|
+
export interface CameraHandle {
|
|
198
|
+
/** Takes a photo now, ignoring the timer, and resolves to it, or null if it failed. */
|
|
199
|
+
takePhoto: () => Promise<CameraPhoto | null>;
|
|
200
|
+
/** Starts recording; resolves once the clip has been handed to `onCapture`. */
|
|
201
|
+
startRecording: () => Promise<void>;
|
|
202
|
+
stopRecording: () => void;
|
|
203
|
+
flip: () => void;
|
|
204
|
+
/** expo-camera's `CameraView`, for anything this component does not wrap. */
|
|
205
|
+
readonly view: CameraViewHandle | null;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* The camera's state and actions, for a control of the app's own inside
|
|
209
|
+
* `<Camera>` — a shutter drawn differently, a timer in a menu.
|
|
210
|
+
*/
|
|
211
|
+
export declare function useCamera(): CameraState;
|
|
212
|
+
export interface CameraProps extends ViewProps {
|
|
213
|
+
/** Classes on the root, which fills its parent and is black. */
|
|
214
|
+
className?: string;
|
|
215
|
+
/** The parts. Put `Camera.Preview` first, so everything after it is drawn over the picture. */
|
|
216
|
+
children?: ReactNode;
|
|
217
|
+
/** Which camera, controlled. */
|
|
218
|
+
facing?: CameraFacing;
|
|
219
|
+
/** Which camera it opens on. */
|
|
220
|
+
defaultFacing?: CameraFacing;
|
|
221
|
+
/** Called when the camera switches between front and back. */
|
|
222
|
+
onFacingChange?: (facing: CameraFacing) => void;
|
|
223
|
+
/** Photo or video, controlled. */
|
|
224
|
+
mode?: CameraMode;
|
|
225
|
+
/** Photo or video to start in. */
|
|
226
|
+
defaultMode?: CameraMode;
|
|
227
|
+
/** Called when the mode changes. */
|
|
228
|
+
onModeChange?: (mode: CameraMode) => void;
|
|
229
|
+
/** The flash setting, controlled. In video, `on` lights the torch while recording. */
|
|
230
|
+
flash?: CameraFlashMode;
|
|
231
|
+
/** The flash setting to start with. */
|
|
232
|
+
defaultFlash?: CameraFlashMode;
|
|
233
|
+
/** Called when the flash setting changes. */
|
|
234
|
+
onFlashChange?: (flash: CameraFlashMode) => void;
|
|
235
|
+
/**
|
|
236
|
+
* Zoom, controlled: 0–1, a fraction of the device's maximum zoom, which is a
|
|
237
|
+
* different magnification on every phone. Reset to 0 when the camera flips.
|
|
238
|
+
*/
|
|
239
|
+
zoom?: number;
|
|
240
|
+
/** The zoom to start at. */
|
|
241
|
+
defaultZoom?: number;
|
|
242
|
+
/** Called as the zoom changes, many times during a pinch. */
|
|
243
|
+
onZoomChange?: (zoom: number) => void;
|
|
244
|
+
/** The self-timer, in seconds, controlled. Photos only. */
|
|
245
|
+
timer?: CameraTimerDelay;
|
|
246
|
+
/** The self-timer to start with. */
|
|
247
|
+
defaultTimer?: CameraTimerDelay;
|
|
248
|
+
/** Called when the self-timer setting changes. */
|
|
249
|
+
onTimerChange?: (timer: CameraTimerDelay) => void;
|
|
250
|
+
/**
|
|
251
|
+
* Called with each photo and clip. Nothing is saved: the file is where the
|
|
252
|
+
* camera wrote it, and keeping it, saving it or uploading it is up to you.
|
|
253
|
+
*/
|
|
254
|
+
onCapture?: (capture: CameraCapture) => void;
|
|
255
|
+
/**
|
|
256
|
+
* Called when the camera fails to start, a capture fails, or microphone
|
|
257
|
+
* access is refused. Without it, these are logged in development.
|
|
258
|
+
*/
|
|
259
|
+
onError?: (error: Error) => void;
|
|
260
|
+
/** Stops a recording after this many seconds, and fills the shutter's ring towards it. */
|
|
261
|
+
maxDuration?: number;
|
|
262
|
+
/** Record without sound, and without asking for the microphone. */
|
|
263
|
+
mute?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Save front-camera photos and clips mirrored, the way the preview shows
|
|
266
|
+
* them. Off, they are saved the way other people see you.
|
|
267
|
+
*/
|
|
268
|
+
mirror?: boolean;
|
|
269
|
+
/** Options for every photo. */
|
|
270
|
+
pictureOptions?: CameraPictureOptions;
|
|
271
|
+
/** Passed to expo-camera's `CameraView`. */
|
|
272
|
+
cameraProps?: CameraViewOptions;
|
|
273
|
+
/** A tick on the shutter, the flip and each setting change. */
|
|
274
|
+
haptics?: boolean;
|
|
275
|
+
/** Keep the header and footer clear of the notch and the home indicator. */
|
|
276
|
+
safeArea?: boolean;
|
|
277
|
+
}
|
|
278
|
+
export interface CameraPreviewProps extends ViewProps {
|
|
279
|
+
className?: string;
|
|
280
|
+
/** Drawn over the picture, under the header and footer: a grid, a guide, a frame. */
|
|
281
|
+
children?: ReactNode;
|
|
282
|
+
/** Two fingers zoom. */
|
|
283
|
+
pinchToZoom?: boolean;
|
|
284
|
+
/** A double tap swaps front and back. */
|
|
285
|
+
doubleTapToFlip?: boolean;
|
|
286
|
+
/** Shown while camera access has not been given. */
|
|
287
|
+
permissionTitle?: string;
|
|
288
|
+
permissionDescription?: string;
|
|
289
|
+
/** The button that asks for access. */
|
|
290
|
+
permissionAction?: string;
|
|
291
|
+
/** The button once access has been refused for good, which opens Settings. */
|
|
292
|
+
settingsAction?: string;
|
|
293
|
+
/** Read out for the viewfinder, which a screen reader adjusts to zoom. */
|
|
294
|
+
accessibilityLabel?: string;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* The live picture, filling the camera. Until camera access is given it asks
|
|
298
|
+
* for it in place, and once access is refused for good its button opens
|
|
299
|
+
* Settings, since asking again would do nothing.
|
|
300
|
+
*/
|
|
301
|
+
declare function CameraPreview({ className, children, pinchToZoom, doubleTapToFlip, permissionTitle, permissionDescription, permissionAction, settingsAction, accessibilityLabel, style, ...props }: CameraPreviewProps): import("react").JSX.Element;
|
|
302
|
+
declare namespace CameraPreview {
|
|
303
|
+
var displayName: string;
|
|
304
|
+
}
|
|
305
|
+
export interface CameraHeaderProps extends ViewProps {
|
|
306
|
+
className?: string;
|
|
307
|
+
children?: ReactNode;
|
|
308
|
+
}
|
|
309
|
+
/** The band along the top, over the picture: flash, the clock, the timer. */
|
|
310
|
+
declare function CameraHeader({ className, children, style, ...props }: CameraHeaderProps): import("react").JSX.Element;
|
|
311
|
+
declare namespace CameraHeader {
|
|
312
|
+
var displayName: string;
|
|
313
|
+
}
|
|
314
|
+
export interface CameraFooterProps extends ViewProps {
|
|
315
|
+
className?: string;
|
|
316
|
+
children?: ReactNode;
|
|
317
|
+
}
|
|
318
|
+
/** The band along the bottom, over the picture: zoom, the modes, the shutter row. */
|
|
319
|
+
declare function CameraFooter({ className, children, style, ...props }: CameraFooterProps): import("react").JSX.Element;
|
|
320
|
+
declare namespace CameraFooter {
|
|
321
|
+
var displayName: string;
|
|
322
|
+
}
|
|
323
|
+
export interface CameraControlsProps extends ViewProps {
|
|
324
|
+
className?: string;
|
|
325
|
+
children?: ReactNode;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* The row the shutter sits in, with what goes either side of it. Library and
|
|
329
|
+
* Flip are the same size, so the shutter lands in the middle.
|
|
330
|
+
*/
|
|
331
|
+
declare function CameraControls({ className, children, ...props }: CameraControlsProps): import("react").JSX.Element;
|
|
332
|
+
declare namespace CameraControls {
|
|
333
|
+
var displayName: string;
|
|
334
|
+
}
|
|
335
|
+
export interface CameraButtonProps extends Omit<PressableProps, 'children'> {
|
|
336
|
+
className?: string;
|
|
337
|
+
/** Drawn inverted, white with a black glyph, for a setting that is on. */
|
|
338
|
+
active?: boolean;
|
|
339
|
+
/** An icon. It is drawn white, or black when `active`, unless it is given a colour of its own. */
|
|
340
|
+
children: ReactNode;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* A round control over the picture for an action of your own: closing the
|
|
344
|
+
* camera, a grid, a setting. It is drawn like Flash and Timer, so a row of
|
|
345
|
+
* them reads as one set. Give it an `accessibilityLabel`; an icon has nothing
|
|
346
|
+
* to read out.
|
|
347
|
+
*/
|
|
348
|
+
declare function CameraButton({ className, active, children, ...props }: CameraButtonProps): import("react").JSX.Element;
|
|
349
|
+
declare namespace CameraButton {
|
|
350
|
+
var displayName: string;
|
|
351
|
+
}
|
|
352
|
+
export interface CameraFlashProps extends Omit<PressableProps, 'children' | 'onPress'> {
|
|
353
|
+
className?: string;
|
|
354
|
+
/** What each setting is read out as; `auto`'s is also shown beside the icon. */
|
|
355
|
+
labels?: Partial<Record<CameraFlashMode, string>>;
|
|
356
|
+
accessibilityLabel?: string;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* The flash. For a photo it steps off, auto, on; for a video, off and on, and
|
|
360
|
+
* on lights the torch while recording.
|
|
361
|
+
*/
|
|
362
|
+
declare function CameraFlashControl({ className, labels, accessibilityLabel, ...props }: CameraFlashProps): import("react").JSX.Element;
|
|
363
|
+
declare namespace CameraFlashControl {
|
|
364
|
+
var displayName: string;
|
|
365
|
+
}
|
|
366
|
+
export interface CameraTimerProps extends Omit<PressableProps, 'children' | 'onPress'> {
|
|
367
|
+
className?: string;
|
|
368
|
+
/** What off is read out as. */
|
|
369
|
+
offLabel?: string;
|
|
370
|
+
accessibilityLabel?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* The self-timer: off, 3 s, 10 s. While it counts, the seconds left fill the
|
|
374
|
+
* preview, and a press on the shutter cancels. Photos only, so it is dimmed in
|
|
375
|
+
* video.
|
|
376
|
+
*/
|
|
377
|
+
declare function CameraTimerControl({ className, offLabel, accessibilityLabel, ...props }: CameraTimerProps): import("react").JSX.Element;
|
|
378
|
+
declare namespace CameraTimerControl {
|
|
379
|
+
var displayName: string;
|
|
380
|
+
}
|
|
381
|
+
export interface CameraDurationProps extends ViewProps {
|
|
382
|
+
className?: string;
|
|
383
|
+
/** Show it in photo mode too, at `00:00`. By default it appears in video only. */
|
|
384
|
+
always?: boolean;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* The recording clock, `mm:ss`. It reads `00:00` in video before recording,
|
|
388
|
+
* and turns red with a dot while it runs. Hidden in photo mode.
|
|
389
|
+
*/
|
|
390
|
+
declare function CameraDuration({ className, always, ...props }: CameraDurationProps): import("react").JSX.Element | null;
|
|
391
|
+
declare namespace CameraDuration {
|
|
392
|
+
var displayName: string;
|
|
393
|
+
}
|
|
394
|
+
export interface CameraZoomProps extends ViewProps {
|
|
395
|
+
className?: string;
|
|
396
|
+
/**
|
|
397
|
+
* The chips to show, each a value in expo-camera's 0–1 range with the label
|
|
398
|
+
* you give it. Left out, one `1×` chip that undoes any zoom. The values that
|
|
399
|
+
* match a given magnification differ from phone to phone, so measure them on
|
|
400
|
+
* the devices you target before labelling them as one.
|
|
401
|
+
*/
|
|
402
|
+
stops?: CameraZoomStop[];
|
|
403
|
+
/** Show a bar of where the zoom sits in the range, which can be dragged, while zoomed in. */
|
|
404
|
+
bar?: boolean;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Zoom stops above the shutter, and a bar that shows how far in the zoom is
|
|
408
|
+
* once it is past the first.
|
|
409
|
+
*/
|
|
410
|
+
declare function CameraZoom({ className, stops, bar, ...props }: CameraZoomProps): import("react").JSX.Element;
|
|
411
|
+
declare namespace CameraZoom {
|
|
412
|
+
var displayName: string;
|
|
413
|
+
}
|
|
414
|
+
export interface CameraModesProps extends ViewProps {
|
|
415
|
+
className?: string;
|
|
416
|
+
/** What each mode is called. */
|
|
417
|
+
labels?: Partial<Record<CameraMode, string>>;
|
|
418
|
+
}
|
|
419
|
+
/** Video or photo, as a pill with a thumb that slides between them. Locked while recording. */
|
|
420
|
+
declare function CameraModes({ className, labels, ...props }: CameraModesProps): import("react").JSX.Element;
|
|
421
|
+
declare namespace CameraModes {
|
|
422
|
+
var displayName: string;
|
|
423
|
+
}
|
|
424
|
+
export interface CameraLibraryProps extends Omit<PressableProps, 'children'> {
|
|
425
|
+
className?: string;
|
|
426
|
+
/** The thumbnail: the last capture, or the newest photo in the library. An icon without one. */
|
|
427
|
+
source?: ImageSourcePropType;
|
|
428
|
+
accessibilityLabel?: string;
|
|
429
|
+
}
|
|
430
|
+
/** The way into the photos. What it opens is `onPress`'s to decide. */
|
|
431
|
+
declare function CameraLibrary({ className, source, accessibilityLabel, ...props }: CameraLibraryProps): import("react").JSX.Element;
|
|
432
|
+
declare namespace CameraLibrary {
|
|
433
|
+
var displayName: string;
|
|
434
|
+
}
|
|
435
|
+
export interface CameraFlipProps extends Omit<PressableProps, 'children' | 'onPress'> {
|
|
436
|
+
className?: string;
|
|
437
|
+
accessibilityLabel?: string;
|
|
438
|
+
}
|
|
439
|
+
/** Front and back. Not while recording: the clip would cut between two cameras. */
|
|
440
|
+
declare function CameraFlip({ className, accessibilityLabel, ...props }: CameraFlipProps): import("react").JSX.Element;
|
|
441
|
+
declare namespace CameraFlip {
|
|
442
|
+
var displayName: string;
|
|
443
|
+
}
|
|
444
|
+
export interface CameraShutterProps extends Omit<PressableProps, 'children' | 'onPress'> {
|
|
445
|
+
className?: string;
|
|
446
|
+
/** In video, holding the shutter records until it is let go. A tap still starts and stops. */
|
|
447
|
+
holdToRecord?: boolean;
|
|
448
|
+
/** Replaces what a press does. The shutter still draws the camera's state. */
|
|
449
|
+
onPress?: () => void;
|
|
450
|
+
/**
|
|
451
|
+
* Read out instead of the label it gives itself, which says what a press
|
|
452
|
+
* will do: take a photo, cancel the timer, record or stop.
|
|
453
|
+
*/
|
|
454
|
+
accessibilityLabel?: string;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* The shutter. A tap takes a photo, after the timer if one is set; in video a
|
|
458
|
+
* tap starts and stops, and a hold records for as long as it is held. The disc
|
|
459
|
+
* is white for a photo and red for a video, and squares off while recording. A
|
|
460
|
+
* ring fills towards `maxDuration` when there is one.
|
|
461
|
+
*/
|
|
462
|
+
declare function CameraShutter({ className, holdToRecord, onPress, accessibilityLabel, ...props }: CameraShutterProps): import("react").JSX.Element;
|
|
463
|
+
declare namespace CameraShutter {
|
|
464
|
+
var displayName: string;
|
|
465
|
+
}
|
|
466
|
+
export declare const Camera: import("react").ForwardRefExoticComponent<CameraProps & RefAttributes<CameraHandle>> & {
|
|
467
|
+
Preview: typeof CameraPreview;
|
|
468
|
+
Header: typeof CameraHeader;
|
|
469
|
+
Footer: typeof CameraFooter;
|
|
470
|
+
Controls: typeof CameraControls;
|
|
471
|
+
Button: typeof CameraButton;
|
|
472
|
+
Flash: typeof CameraFlashControl;
|
|
473
|
+
Timer: typeof CameraTimerControl;
|
|
474
|
+
Duration: typeof CameraDuration;
|
|
475
|
+
Zoom: typeof CameraZoom;
|
|
476
|
+
Modes: typeof CameraModes;
|
|
477
|
+
Library: typeof CameraLibrary;
|
|
478
|
+
Flip: typeof CameraFlip;
|
|
479
|
+
Shutter: typeof CameraShutter;
|
|
480
|
+
};
|
|
481
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/camera/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,OAAO,EAWL,KAAK,SAAS,EAEd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AACf,OAAO,EAQL,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmCtB,OAAO,EAYL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,mBAAgB,CAAC;AAExB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAgB,CAAC;AAqFlG,uCAAuC;AACvC,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,gBAA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