@waveform-playlist/browser 6.0.2 → 7.0.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/dist/index.d.ts +0 -55
- package/dist/index.js +64 -64
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2014 -1996
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1916,8 +1916,6 @@ export declare interface UseTrackDynamicEffectsReturn {
|
|
|
1916
1916
|
availableEffects: EffectDefinition[];
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
export declare const useWaveformPlaylist: () => WaveformPlaylistContextValue;
|
|
1920
|
-
|
|
1921
1919
|
export declare function useZoomControls({ initialSamplesPerPixel, zoomLevels, }: UseZoomControlsProps): ZoomControls;
|
|
1922
1920
|
|
|
1923
1921
|
declare interface UseZoomControlsProps {
|
|
@@ -2021,59 +2019,6 @@ declare interface WaveformGradient {
|
|
|
2021
2019
|
stops: GradientStop[];
|
|
2022
2020
|
}
|
|
2023
2021
|
|
|
2024
|
-
export declare interface WaveformPlaylistContextValue {
|
|
2025
|
-
isPlaying: boolean;
|
|
2026
|
-
currentTime: number;
|
|
2027
|
-
duration: number;
|
|
2028
|
-
audioBuffers: AudioBuffer[];
|
|
2029
|
-
peaksDataArray: TrackClipPeaks[];
|
|
2030
|
-
trackStates: TrackState[];
|
|
2031
|
-
annotations: AnnotationData[];
|
|
2032
|
-
activeAnnotationId: string | null;
|
|
2033
|
-
selectionStart: number;
|
|
2034
|
-
selectionEnd: number;
|
|
2035
|
-
isAutomaticScroll: boolean;
|
|
2036
|
-
continuousPlay: boolean;
|
|
2037
|
-
linkEndpoints: boolean;
|
|
2038
|
-
annotationsEditable: boolean;
|
|
2039
|
-
play: (startTime?: number, playDuration?: number) => Promise<void>;
|
|
2040
|
-
pause: () => void;
|
|
2041
|
-
stop: () => void;
|
|
2042
|
-
setCurrentTime: (time: number) => void;
|
|
2043
|
-
setTrackMute: (trackIndex: number, muted: boolean) => void;
|
|
2044
|
-
setTrackSolo: (trackIndex: number, soloed: boolean) => void;
|
|
2045
|
-
setTrackVolume: (trackIndex: number, volume: number) => void;
|
|
2046
|
-
setTrackPan: (trackIndex: number, pan: number) => void;
|
|
2047
|
-
setSelection: (start: number, end: number) => void;
|
|
2048
|
-
timeFormat: TimeFormat;
|
|
2049
|
-
setTimeFormat: (format: TimeFormat) => void;
|
|
2050
|
-
formatTime: (seconds: number) => string;
|
|
2051
|
-
samplesPerPixel: number;
|
|
2052
|
-
zoomIn: () => void;
|
|
2053
|
-
zoomOut: () => void;
|
|
2054
|
-
canZoomIn: boolean;
|
|
2055
|
-
canZoomOut: boolean;
|
|
2056
|
-
masterVolume: number;
|
|
2057
|
-
setMasterVolume: (volume: number) => void;
|
|
2058
|
-
setAutomaticScroll: (enabled: boolean) => void;
|
|
2059
|
-
setScrollContainer: (element: HTMLDivElement | null) => void;
|
|
2060
|
-
setContinuousPlay: (enabled: boolean) => void;
|
|
2061
|
-
setLinkEndpoints: (enabled: boolean) => void;
|
|
2062
|
-
setAnnotationsEditable: (enabled: boolean) => void;
|
|
2063
|
-
setAnnotations: default_2.Dispatch<default_2.SetStateAction<AnnotationData[]>>;
|
|
2064
|
-
setActiveAnnotationId: (id: string | null) => void;
|
|
2065
|
-
playoutRef: default_2.RefObject<TonePlayout | null>;
|
|
2066
|
-
currentTimeRef: default_2.RefObject<number>;
|
|
2067
|
-
sampleRate: number;
|
|
2068
|
-
waveHeight: number;
|
|
2069
|
-
timeScaleHeight: number;
|
|
2070
|
-
minimumPlaylistHeight: number;
|
|
2071
|
-
controls: {
|
|
2072
|
-
show: boolean;
|
|
2073
|
-
width: number;
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
2022
|
export declare const WaveformPlaylistProvider: default_2.FC<WaveformPlaylistProviderProps>;
|
|
2078
2023
|
|
|
2079
2024
|
declare interface WaveformPlaylistProviderProps {
|