-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.ts
More file actions
51 lines (44 loc) · 1.51 KB
/
index.ts
File metadata and controls
51 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Main components
export { CameraKitProvider, useCameraKit } from "./CameraKitProvider";
export type { MetricEventHandlerFactory } from "./CameraKitProvider";
// Logging
export type { CameraKitLogger, LogLevel } from "./internal/logging";
export { createConsoleLogger, createNoopLogger } from "./internal/logging";
export { LensPlayer } from "./LensPlayer";
export type { LensPlayerProps } from "./LensPlayer";
export { LiveCanvas, CaptureCanvas } from "./Canvas";
export type { CanvasChildProps } from "./Canvas";
// Hooks
export { useApplyLens } from "./useApplyLens";
export { useApplySource } from "./useApplySource";
export { usePlaybackOptions } from "./usePlaybackOptions";
export type { PlaybackOptions } from "./usePlaybackOptions";
export { useLensFrameMetrics } from "./useLensFrameMetrics";
// Types
export type {
SourceStatus,
LensStatus,
CurrentSource,
CurrentLens,
CameraSourceInput,
VideoSourceInput,
ImageSourceInput,
SourceInput,
CameraSourceOutput,
VideoSourceOutput,
ImageSourceOutput,
SourceOutput,
FixedOutputSize,
MatchInputSize,
OutputSize,
SourceOptions,
CameraFacing,
CameraConstraints,
CameraRotation,
CanvasType,
CameraInfo,
} from "./types";
export { NO_CURRENT_LENS, isCameraSource, isVideoSource, isImageSource, CameraRotationOptions } from "./types";
// Source utilities
export { createCameraKitSource, DEFAULT_CAMERA_DEVICE_ID, defaultStreamResolution } from "./internal/sourceUtils";
export type { SourceApplication, TupleOf } from "./internal/sourceUtils";