@pixerate/editor-react 0.56.0 → 0.57.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VideoEditorController, VideoEditorState, VideoEditResult, VideoEditorOptions, VideoEditorToolProviderOptions, VideoPreviewOptions, VideoWaveformMode, probeVideoMedia } from '@pixerate/editor/video-editor';
|
|
1
|
+
import { VideoEditorController, VideoEditorState, VideoEditResult, VideoEditorOptions, VideoEditorToolProviderOptions, VideoPreviewOptions, VideoScopeKind, VideoWaveformMode, probeVideoMedia } from '@pixerate/editor/video-editor';
|
|
2
2
|
import { ToolRegistry } from '@pixerate/editor/tools';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
|
|
@@ -52,6 +52,22 @@ interface VideoPreviewProps {
|
|
|
52
52
|
*/
|
|
53
53
|
declare function VideoPreview({ controller, resolution, onFrame, className, style }: VideoPreviewProps): React__default.JSX.Element;
|
|
54
54
|
|
|
55
|
+
interface VideoScopesProps {
|
|
56
|
+
controller: VideoEditorController;
|
|
57
|
+
/** Which scopes to show, in order (default histogram, waveform and vectorscope). */
|
|
58
|
+
scopes?: readonly VideoScopeKind[];
|
|
59
|
+
/** Size of the histogram and waveform in pixels (default 256 × 128); the vectorscope is square, `height` a side. */
|
|
60
|
+
width?: number;
|
|
61
|
+
height?: number;
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Colour scopes of what the controller's `<VideoPreview>` draws: a histogram, a luma waveform and a
|
|
66
|
+
* vectorscope, redrawn after each frame, with exposure and clipping figures and notes. Reads the
|
|
67
|
+
* preview through `controller.previewPixels`, so it needs a preview of the same controller.
|
|
68
|
+
*/
|
|
69
|
+
declare function VideoScopes({ controller, scopes, width, height, className }: VideoScopesProps): React__default.JSX.Element;
|
|
70
|
+
|
|
55
71
|
interface VideoTransportProps {
|
|
56
72
|
controller: VideoEditorController;
|
|
57
73
|
/** Show the editing buttons (split, delete, ripple delete, undo, redo; default true). */
|
|
@@ -155,6 +171,8 @@ interface VideoEditorProps {
|
|
|
155
171
|
showIssues?: boolean;
|
|
156
172
|
/** Show the transcript panel for editing by text (default true). */
|
|
157
173
|
showTranscript?: boolean;
|
|
174
|
+
/** Show colour scopes (histogram, luma waveform, vectorscope) of the preview under it (default false). */
|
|
175
|
+
showScopes?: boolean;
|
|
158
176
|
className?: string;
|
|
159
177
|
}
|
|
160
178
|
/**
|
|
@@ -162,6 +180,6 @@ interface VideoEditorProps {
|
|
|
162
180
|
* transport, the timeline and the clip inspector, with the project's issues listed under the
|
|
163
181
|
* timeline. Every edit is one undo step; the controller's agent tools edit the same project.
|
|
164
182
|
*/
|
|
165
|
-
declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, className }: VideoEditorProps): React__default.JSX.Element;
|
|
183
|
+
declare function VideoEditor({ controller: given, options, editable, pxPerSecond, onPxPerSecondChange, resolution, showIssues, showTranscript, showScopes, className }: VideoEditorProps): React__default.JSX.Element;
|
|
166
184
|
|
|
167
|
-
export { ClipInspector, type ClipInspectorProps, MediaBin, type MediaBinProps, TranscriptPanel, type TranscriptPanelProps, type UseVideoEditorResult, VideoEditor, type VideoEditorProps, VideoPreview, type VideoPreviewProps, VideoTimeline, type VideoTimelineProps, VideoTransport, type VideoTransportProps, useVideoEditor, useVideoEditorController, useVideoEditorState, useVideoEditorTools };
|
|
185
|
+
export { ClipInspector, type ClipInspectorProps, MediaBin, type MediaBinProps, TranscriptPanel, type TranscriptPanelProps, type UseVideoEditorResult, VideoEditor, type VideoEditorProps, VideoPreview, type VideoPreviewProps, VideoScopes, type VideoScopesProps, VideoTimeline, type VideoTimelineProps, VideoTransport, type VideoTransportProps, useVideoEditor, useVideoEditorController, useVideoEditorState, useVideoEditorTools };
|